mkspecs/features/symbian/qt.prf
changeset 7 f7bc934e204c
parent 3 41300fa6a67c
equal deleted inserted replaced
3:41300fa6a67c 7:f7bc934e204c
     1 contains(DEFINES, QT_MAKEDLL)|contains(DEFINES, QT_DLL) {
     1 contains(DEFINES, QT_MAKEDLL)|contains(DEFINES, QT_DLL) {
     2     CONFIG *= epocallowdlldata
     2     CONFIG *= epocallowdlldata
     3 }
     3 }
     4 
     4 
     5 CONFIG += qtmain stl
     5 CONFIG += qtmain
     6 
     6 
     7 load(qt)
     7 load(qt)
     8 
     8 
     9 # Allow .pro files to specify include path(s) to be prepended to the list.
     9 # Allow .pro files to specify include path(s) to be prepended to the list.
    10 #
    10 #
    20 #	PREPEND_INCLUDEPATH = /epoc32/include
    20 #	PREPEND_INCLUDEPATH = /epoc32/include
    21 #
    21 #
    22 INCLUDEPATH = $$PREPEND_INCLUDEPATH $$INCLUDEPATH
    22 INCLUDEPATH = $$PREPEND_INCLUDEPATH $$INCLUDEPATH
    23 
    23 
    24 # Add dependency to Qt package to all other projects besides Qt libs.
    24 # Add dependency to Qt package to all other projects besides Qt libs.
    25 # Note: Qt libs with full capabilities has UID3 of 0x2001E61C,
    25 # Note: Qt libs package with full capabilities has UID3 of 0x2001E61C,
    26 #       while self-signed version typically has temporary UID3 of 0xE001E61C.
    26 #       while self-signed version typically has temporary UID3 of 0xE001E61C.
    27 contains(CONFIG, qt):!contains(TARGET.UID3, 0x2001E61C):!contains(TARGET.UID3, 0xE001E61C) {
    27 contains(CONFIG, qt):!contains(TARGET.UID3, 0x2001E61C):!contains(TARGET.UID3, 0xE001E61C):isEmpty(QT_LIBINFIX) {
    28     default_deployment.pkg_prerules += \
    28     pkg_depends_qt += \
    29         "; Default dependency to Qt libraries" \
    29         "; Default dependency to Qt libraries" \
    30         "(0x2001E61C), $${QT_MAJOR_VERSION}, $${QT_MINOR_VERSION}, $${QT_PATCH_VERSION},  {\"Qt\"}"
    30         "(0x2001E61C), $${QT_MAJOR_VERSION}, $${QT_MINOR_VERSION}, $${QT_PATCH_VERSION},  {\"Qt\"}"
       
    31 
       
    32     # Projects linking to webkit need dependency to webkit
       
    33     contains(QT, webkit): {
       
    34         pkg_depends_webkit += \
       
    35             "; Dependency to Qt Webkit" \
       
    36             "(0x200267C2), $${QT_MAJOR_VERSION}, $${QT_MINOR_VERSION}, $${QT_PATCH_VERSION},  {\"QtWebKit\"}"
       
    37     } else {
       
    38         default_deployment.pkg_prerules -= pkg_depends_webkit
       
    39     }
       
    40 } else {
       
    41     default_deployment.pkg_prerules -= pkg_depends_webkit pkg_depends_qt
    31 }
    42 }
    32 
    43 
    33 isEmpty(TARGET.EPOCSTACKSIZE):TARGET.EPOCSTACKSIZE = 0x14000
    44 isEmpty(TARGET.EPOCSTACKSIZE):TARGET.EPOCSTACKSIZE = 0x14000
    34 isEmpty(TARGET.EPOCHEAPSIZE):TARGET.EPOCHEAPSIZE = 0x020000 0x800000
    45 isEmpty(TARGET.EPOCHEAPSIZE):TARGET.EPOCHEAPSIZE = 0x020000 0x800000
    35 
    46 
    36 INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE
    47 INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE
    37 for(QTLIB, $$list($$lower($$unique(QT)))) {
       
    38     unset(qlib)
       
    39     isEqual(QTLIB, phonon):qlib = phonon
       
    40     else:qlib = qt$$QTLIB
       
    41     INCLUDEPATH += $$MW_LAYER_PUBLIC_EXPORT_PATH($$qlib)
       
    42 }
       
    43 
    48 
    44 #QTP: add userinclude 
    49 #QTP: add userinclude 
    45 MMP_RULES+="USERINCLUDE  ."
    50 MMP_RULES+="USERINCLUDE  ."