src/s60main/s60main.pro
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 7 f7bc934e204c
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
    14     CONFIG	-=  jpeg
    14     CONFIG	-=  jpeg
    15     INCLUDEPATH	+=  tmp $$QMAKE_INCDIR_QT/QtCore $$MW_LAYER_SYSTEMINCLUDE
    15     INCLUDEPATH	+=  tmp $$QMAKE_INCDIR_QT/QtCore $$MW_LAYER_SYSTEMINCLUDE
    16     SOURCES	 =  qts60main.cpp \
    16     SOURCES	 =  qts60main.cpp \
    17                     qts60main_mcrt0.cpp
    17                     qts60main_mcrt0.cpp
    18 
    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.
    19     # s60main needs to be built in ARM mode for GCCE to work.
    30     MMP_RULES+="ALWAYS_BUILD_AS_ARM"
    20     MMP_RULES+="ALWAYS_BUILD_AS_ARM"
    31 
    21 
    32     # staticlib should not have any lib depencies in s60
    22     # staticlib should not have any lib depencies in s60
    33     # This seems not to work, some hard coded libs are still added as dependency
    23     # This seems not to work, some hard coded libs are still added as dependency
    34     LIBS =
    24     LIBS =
    35 } else {
    25 } else {
    36     error("$$_FILE_ is intended only for Symbian!")
    26     error("$$_FILE_ is intended only for Symbian!")
    37 }
    27 }
    38 
    28 
    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)
    29 include(../qbase.pri)