summaryrefslogtreecommitdiffstats
path: root/src/s60main/s60main.pro
diff options
context:
space:
mode:
authoraxis <qt-info@nokia.com>2009-04-24 11:34:15 (GMT)
committeraxis <qt-info@nokia.com>2009-04-24 11:34:15 (GMT)
commit8f427b2b914d5b575a4a7c0ed65d2fb8f45acc76 (patch)
treea17e1a767a89542ab59907462206d7dcf2e504b2 /src/s60main/s60main.pro
downloadQt-8f427b2b914d5b575a4a7c0ed65d2fb8f45acc76.zip
Qt-8f427b2b914d5b575a4a7c0ed65d2fb8f45acc76.tar.gz
Qt-8f427b2b914d5b575a4a7c0ed65d2fb8f45acc76.tar.bz2
Long live Qt for S60!
Diffstat (limited to 'src/s60main/s60main.pro')
-rw-r--r--src/s60main/s60main.pro55
1 files changed, 55 insertions, 0 deletions
diff --git a/src/s60main/s60main.pro b/src/s60main/s60main.pro
new file mode 100644
index 0000000..f74943f
--- /dev/null
+++ b/src/s60main/s60main.pro
@@ -0,0 +1,55 @@
+# Additional Qt project file for qtmain lib on Symbian
+TEMPLATE = lib
+TARGET = qtmain
+DESTDIR = $$QMAKE_LIBDIR_QT
+QT =
+
+CONFIG += staticlib warn_on
+CONFIG -= qt shared
+
+symbian {
+ # Note: UID only needed for ensuring that no filename generation conflicts occur
+ TARGET.UID3 = 0x2001E61F
+ CONFIG += png zlib
+ CONFIG -= jpeg
+ INCLUDEPATH += tmp $$QMAKE_INCDIR_QT/QtCore $$MW_LAYER_SYSTEMINCLUDE
+ SOURCES = qts60main.cpp \
+ qts60mainapplication.cpp \
+ qts60mainappui.cpp \
+ qts60maindocument.cpp
+
+ HEADERS = qts60mainapplication.h \
+ qts60mainappui.h \
+ qts60maindocument.h
+
+ # This block serves the minimalistic resource file for S60 3.1 platforms.
+ # Note there is no way to ifdef S60 version in mmp file, that is why the resource
+ # file is always compiled for WINSCW
+ minimalAppResource31 = \
+ "START RESOURCE s60main.rss" \
+ "HEADER" \
+ "TARGETPATH resource\apps" \
+ "END"
+ MMP_RULES += minimalAppResource31
+
+ # s60main needs to be built in ARM mode for GCCE to work.
+ MMP_RULES+="ALWAYS_BUILD_AS_ARM"
+
+ # staticlib should not have any lib depencies in s60
+ # This seems not to work, some hard coded libs are still added as dependency
+ LIBS =
+} else {
+ error("$$_FILE_ is intended only for Symbian!")
+}
+
+symbian-abld: {
+ # abld build commands generated resources after the static library is built, and
+ # we have dependency to resource from static lib -> resources need to be generated
+ # explicitly before library
+ rsgFix2.commands = "-$(DEL_FILE) $(EPOCROOT)Epoc32\Data\z\resource\apps\s60main.rsc >NUL 2>&1"
+ rsgFix.commands = "-$(ABLD) resource $(PLATFORM) $(CFG) 2>NUL"
+ QMAKE_EXTRA_TARGETS += rsgFix rsgFix2
+ PRE_TARGETDEPS += rsgFix rsgFix2
+}
+
+include(../qbase.pri)