|
1 # Additional Qt project file for qtmain lib on Symbian |
|
2 TEMPLATE = lib |
|
3 TARGET = qtmain |
|
4 DESTDIR = $$QMAKE_LIBDIR_QT |
|
5 QT = |
|
6 |
|
7 CONFIG += staticlib warn_on |
|
8 CONFIG -= qt shared |
|
9 |
|
10 symbian { |
|
11 # Note: UID only needed for ensuring that no filename generation conflicts occur |
|
12 TARGET.UID3 = 0x2001E61F |
|
13 CONFIG += png zlib |
|
14 CONFIG -= jpeg |
|
15 INCLUDEPATH += tmp $$QMAKE_INCDIR_QT/QtCore $$MW_LAYER_SYSTEMINCLUDE |
|
16 SOURCES = qts60main.cpp \ |
|
17 qts60main_mcrt0.cpp |
|
18 |
|
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" \ |
|
24 "HEADER" \ |
|
25 "TARGETPATH resource\apps" \ |
|
26 "END" |
|
27 MMP_RULES += minimalAppResource31 |
|
28 |
|
29 # s60main needs to be built in ARM mode for GCCE to work. |
|
30 MMP_RULES+="ALWAYS_BUILD_AS_ARM" |
|
31 |
|
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 |
|
34 LIBS = |
|
35 } else { |
|
36 error("$$_FILE_ is intended only for Symbian!") |
|
37 } |
|
38 |
|
39 symbian-abld: { |
|
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 |
|
47 } |
|
48 |
|
49 include(../qbase.pri) |