1
# Additional Qt project file for qtmain lib on Symbian
4
DESTDIR = $$QMAKE_LIBDIR_QT
7
CONFIG += staticlib warn_on
11
# Note: UID only needed for ensuring that no filename generation conflicts occur
12
TARGET.UID3 = 0x2001E61F
15
INCLUDEPATH += tmp $$QMAKE_INCDIR_QT/QtCore $$MW_LAYER_SYSTEMINCLUDE
16
SOURCES = qts60main.cpp \
19
# This block serves the minimalistic resource file for S60 3.1 platforms.
20
# Note there is no way to ifdef S60 version in mmp file, that is why the resource
21
# file is always compiled for WINSCW
22
minimalAppResource31 = \
23
"START RESOURCE s60main.rss" \
25
"TARGETPATH resource\apps" \
27
MMP_RULES += minimalAppResource31
29
# s60main needs to be built in ARM mode for GCCE to work.
30
MMP_RULES+="ALWAYS_BUILD_AS_ARM"
32
# staticlib should not have any lib depencies in s60
33
# This seems not to work, some hard coded libs are still added as dependency
36
error("$$_FILE_ is intended only for Symbian!")
40
# abld build commands generated resources after the static library is built, and
41
# we have dependency to resource from static lib -> resources need to be generated
42
# explicitly before library
43
rsgFix2.commands = "-$(DEL_FILE) $(EPOCROOT)Epoc32\Data\z\resource\apps\s60main.rsc >NUL 2>&1"
44
rsgFix.commands = "-$(ABLD) resource $(PLATFORM) $(CFG) 2>NUL"
45
QMAKE_EXTRA_TARGETS += rsgFix rsgFix2
46
PRE_TARGETDEPS += rsgFix rsgFix2