src/s60installs/s60installs.pro
branchRCL_3
changeset 8 3f74d0d4af4c
parent 5 d3bac044e0f0
child 14 c0432d11811c
equal deleted inserted replaced
6:dee5afe5301f 8:3f74d0d4af4c
     5     load(data_caging_paths)
     5     load(data_caging_paths)
     6 
     6 
     7     SUBDIRS=
     7     SUBDIRS=
     8     # WARNING: Changing TARGET name will break Symbian SISX upgrade functionality
     8     # WARNING: Changing TARGET name will break Symbian SISX upgrade functionality
     9     # DO NOT TOUCH TARGET VARIABLE IF YOU ARE NOT SURE WHAT YOU ARE DOING
     9     # DO NOT TOUCH TARGET VARIABLE IF YOU ARE NOT SURE WHAT YOU ARE DOING
    10     TARGET = "Qt"
    10     TARGET = "Qt$${QT_LIBINFIX}"
    11     TARGET.UID3 = 0x2001E61C
    11 
       
    12     isEmpty(QT_LIBINFIX) {
       
    13         TARGET.UID3 = 0x2001E61C
       
    14 
       
    15         # sqlite3 is expected to be already found on phone if infixed configuration is built.
       
    16         BLD_INF_RULES.prj_exports += \
       
    17             "sqlite3.sis $${EPOCROOT}epoc32/data/qt/sis/sqlite3.sis" \
       
    18             "sqlite3_selfsigned.sis $${EPOCROOT}epoc32/data/qt/sis/sqlite3_selfsigned.sis"
       
    19         sqlitedeployment = \
       
    20             "; Deploy sqlite onto phone that does not have it already" \
       
    21             "@\"$${EPOCROOT}epoc32/data/qt/sis/sqlite3.sis\", (0x2002af5f)"
       
    22         qtlibraries.pkg_postrules += sqlitedeployment
       
    23     } else {
       
    24         # Always use experimental UID for infixed configuration to avoid UID clash
       
    25         TARGET.UID3 = 0xE001E61C
       
    26     }
    12     VERSION=$${QT_MAJOR_VERSION}.$${QT_MINOR_VERSION}.$${QT_PATCH_VERSION}
    27     VERSION=$${QT_MAJOR_VERSION}.$${QT_MINOR_VERSION}.$${QT_PATCH_VERSION}
    13 
    28 
    14     qtresources.sources = $${EPOCROOT}$$HW_ZDIR$$APP_RESOURCE_DIR/s60main.rsc
    29     qtresources.sources = $${EPOCROOT}$$HW_ZDIR$$APP_RESOURCE_DIR/s60main$${QT_LIBINFIX}.rsc
    15     qtresources.path = c:$$APP_RESOURCE_DIR
    30     qtresources.path = c:$$APP_RESOURCE_DIR
       
    31     DEPLOYMENT += qtresources
    16 
    32 
    17     qtlibraries.sources = \
    33     qtlibraries.sources = \
    18         QtCore.dll \
    34         QtCore$${QT_LIBINFIX}.dll \
    19         QtXml.dll \
    35         QtXml$${QT_LIBINFIX}.dll \
    20         QtGui.dll \
    36         QtGui$${QT_LIBINFIX}.dll \
    21         QtNetwork.dll \
    37         QtNetwork$${QT_LIBINFIX}.dll \
    22         QtTest.dll \
    38         QtTest$${QT_LIBINFIX}.dll \
    23         QtSql.dll
    39         QtSql$${QT_LIBINFIX}.dll
    24 
    40 
    25     qts60plugindeployment = \
    41     qts60plugindeployment = \
    26         "IF package(0x1028315F)" \
    42         "IF package(0x1028315F)" \
    27         "   \"$${EPOCROOT}epoc32/release/$(PLATFORM)/$(TARGET)/qts60plugin_5_0.dll\" - \"c:\\sys\\bin\\qts60plugin_5_0.dll\"" \
    43         "   \"$${EPOCROOT}epoc32/release/$(PLATFORM)/$(TARGET)/qts60plugin_5_0$${QT_LIBINFIX}.dll\" - \"c:\\sys\\bin\\qts60plugin_5_0$${QT_LIBINFIX}.dll\"" \
    28         "ELSEIF package(0x102752AE)" \
    44         "ELSEIF package(0x102752AE)" \
    29         "   \"$${EPOCROOT}epoc32/release/$(PLATFORM)/$(TARGET)/qts60plugin_3_2.dll\" - \"c:\\sys\\bin\\qts60plugin_3_2.dll\"" \
    45         "   \"$${EPOCROOT}epoc32/release/$(PLATFORM)/$(TARGET)/qts60plugin_3_2$${QT_LIBINFIX}.dll\" - \"c:\\sys\\bin\\qts60plugin_3_2$${QT_LIBINFIX}.dll\"" \
    30         "ELSEIF package(0x102032BE)" \
    46         "ELSEIF package(0x102032BE)" \
    31         "   \"$${EPOCROOT}epoc32/release/$(PLATFORM)/$(TARGET)/qts60plugin_3_1.dll\" - \"c:\\sys\\bin\\qts60plugin_3_1.dll\"" \
    47         "   \"$${EPOCROOT}epoc32/release/$(PLATFORM)/$(TARGET)/qts60plugin_3_1$${QT_LIBINFIX}.dll\" - \"c:\\sys\\bin\\qts60plugin_3_1$${QT_LIBINFIX}.dll\"" \
    32         "ELSE" \
    48         "ELSE" \
    33         "   \"$${EPOCROOT}epoc32/release/$(PLATFORM)/$(TARGET)/qts60plugin_5_0.dll\" - \"c:\\sys\\bin\\qts60plugin_5_0.dll\"" \
    49         "   \"$${EPOCROOT}epoc32/release/$(PLATFORM)/$(TARGET)/qts60plugin_5_0$${QT_LIBINFIX}.dll\" - \"c:\\sys\\bin\\qts60plugin_5_0$${QT_LIBINFIX}.dll\"" \
    34         "ENDIF"
    50         "ENDIF"
    35     qtlibraries.pkg_postrules += qts60plugindeployment
    51     qtlibraries.pkg_postrules += qts60plugindeployment
    36 
    52 
    37     sqlitedeployment = \
       
    38         "; Deploy sqlite onto phone that does not have it already" \
       
    39         "@\"$$PWD/sqlite3.sis\", (0x2002af5f)"
       
    40     qtlibraries.pkg_postrules += sqlitedeployment
       
    41 
    53 
    42     qtlibraries.path = c:/sys/bin
    54     qtlibraries.path = c:/sys/bin
    43 
    55 
    44     vendorinfo = \
    56     vendorinfo = \
    45         "; Localised Vendor name" \
    57         "; Localised Vendor name" \
    62     #contains(CONFIG, stl) {
    74     #contains(CONFIG, stl) {
    63     #    qtlibraries.pkg_prerules += "(0x2000F866), 1, 0, 0, {\"Standard C++ Library Common\"}"
    75     #    qtlibraries.pkg_prerules += "(0x2000F866), 1, 0, 0, {\"Standard C++ Library Common\"}"
    64     #}
    76     #}
    65     #qtlibraries.pkg_prerules += "(0x2002af5f), 0, 5, 0, {\"sqlite3\"}"
    77     #qtlibraries.pkg_prerules += "(0x2002af5f), 0, 5, 0, {\"sqlite3\"}"
    66 
    78 
    67     !contains(QT_CONFIG, no-jpeg): imageformats_plugins.sources += qjpeg.dll
    79     !contains(QT_CONFIG, no-jpeg): imageformats_plugins.sources += qjpeg$${QT_LIBINFIX}.dll
    68     !contains(QT_CONFIG, no-gif):  imageformats_plugins.sources += qgif.dll
    80     !contains(QT_CONFIG, no-gif):  imageformats_plugins.sources += qgif$${QT_LIBINFIX}.dll
    69     !contains(QT_CONFIG, no-mng):  imageformats_plugins.sources += qmng.dll
    81     !contains(QT_CONFIG, no-mng):  imageformats_plugins.sources += qmng$${QT_LIBINFIX}.dll
    70     !contains(QT_CONFIG, no-tiff): imageformats_plugins.sources += qtiff.dll
    82     !contains(QT_CONFIG, no-tiff): imageformats_plugins.sources += qtiff$${QT_LIBINFIX}.dll
    71     !contains(QT_CONFIG, no-ico):  imageformats_plugins.sources += qico.dll
    83     !contains(QT_CONFIG, no-ico):  imageformats_plugins.sources += qico$${QT_LIBINFIX}.dll
    72     imageformats_plugins.path = c:$$QT_PLUGINS_BASE_DIR/imageformats
    84     imageformats_plugins.path = c:$$QT_PLUGINS_BASE_DIR/imageformats
    73 
    85 
    74     codecs_plugins.sources = qcncodecs.dll qjpcodecs.dll qtwcodecs.dll qkrcodecs.dll
    86     codecs_plugins.sources = qcncodecs$${QT_LIBINFIX}.dll qjpcodecs$${QT_LIBINFIX}.dll qtwcodecs$${QT_LIBINFIX}.dll qkrcodecs$${QT_LIBINFIX}.dll
    75     codecs_plugins.path = c:$$QT_PLUGINS_BASE_DIR/codecs
    87     codecs_plugins.path = c:$$QT_PLUGINS_BASE_DIR/codecs
    76 
    88 
    77     contains(QT_CONFIG, phonon-backend) {
    89     contains(QT_CONFIG, phonon-backend) {
    78         phonon_backend_plugins.sources += phonon_mmf.dll
    90         phonon_backend_plugins.sources += phonon_mmf$${QT_LIBINFIX}.dll
    79 
    91 
    80         phonon_backend_plugins.path = c:$$QT_PLUGINS_BASE_DIR/phonon_backend
    92         phonon_backend_plugins.path = c:$$QT_PLUGINS_BASE_DIR/phonon_backend
    81         DEPLOYMENT += phonon_backend_plugins
    93         DEPLOYMENT += phonon_backend_plugins
    82     }
    94     }
    83 
    95 
    84     # Support backup & restore for Qt libraries
    96     # Support backup & restore for Qt libraries
    85     qtbackup.sources = backup_registration.xml
    97     qtbackup.sources = backup_registration.xml
    86     qtbackup.path = c:/private/10202D56/import/packages/$$replace(TARGET.UID3, 0x,)
    98     qtbackup.path = c:/private/10202D56/import/packages/$$replace(TARGET.UID3, 0x,)
    87 
    99 
    88     DEPLOYMENT += qtresources qtlibraries qtbackup imageformats_plugins codecs_plugins graphicssystems_plugins
   100     DEPLOYMENT += qtlibraries qtbackup imageformats_plugins codecs_plugins graphicssystems_plugins
    89 
   101 
    90     contains(QT_CONFIG, svg): {
   102     contains(QT_CONFIG, svg): {
    91        qtlibraries.sources += QtSvg.dll
   103        qtlibraries.sources += QtSvg$${QT_LIBINFIX}.dll
    92        imageformats_plugins.sources += qsvg.dll
   104        imageformats_plugins.sources += qsvg$${QT_LIBINFIX}.dll
    93        iconengines_plugins.sources = qsvgicon.dll
   105        iconengines_plugins.sources = qsvgicon$${QT_LIBINFIX}.dll
    94        iconengines_plugins.path = c:$$QT_PLUGINS_BASE_DIR/iconengines
   106        iconengines_plugins.path = c:$$QT_PLUGINS_BASE_DIR/iconengines
    95        DEPLOYMENT += iconengines_plugins
   107        DEPLOYMENT += iconengines_plugins
    96     }
   108     }
    97 
   109 
    98     contains(QT_CONFIG, phonon): {
   110     contains(QT_CONFIG, phonon): {
    99        qtlibraries.sources += phonon.dll
   111        qtlibraries.sources += phonon$${QT_LIBINFIX}.dll
   100     }
   112     }
   101 
   113 
   102     contains(QT_CONFIG, script): {
   114     contains(QT_CONFIG, script): {
   103         qtlibraries.sources += QtScript.dll
   115         qtlibraries.sources += QtScript$${QT_LIBINFIX}.dll
   104     }
   116     }
   105 
   117 
   106     contains(QT_CONFIG, xmlpatterns): {
   118     contains(QT_CONFIG, xmlpatterns): {
   107        qtlibraries.sources += QtXmlPatterns.dll
   119        qtlibraries.sources += QtXmlPatterns$${QT_LIBINFIX}.dll
   108     }
   120     }
   109 
   121 
   110     contains(QT_CONFIG, declarative): {
   122     contains(QT_CONFIG, declarative): {
   111         qtlibraries.sources += QtDeclarative.dll
   123         qtlibraries.sources += QtDeclarative$${QT_LIBINFIX}.dll
   112     }
   124     }
   113 
   125 
   114     graphicssystems_plugins.path = c:$$QT_PLUGINS_BASE_DIR/graphicssystems
   126     graphicssystems_plugins.path = c:$$QT_PLUGINS_BASE_DIR/graphicssystems
   115     contains(QT_CONFIG, openvg) {
   127     contains(QT_CONFIG, openvg) {
   116         qtlibraries.sources += QtOpenVG.dll
   128         qtlibraries.sources += QtOpenVG$${QT_LIBINFIX}.dll
   117         graphicssystems_plugins.sources += qvggraphicssystem.dll
   129         graphicssystems_plugins.sources += qvggraphicssystem$${QT_LIBINFIX}.dll
   118     }
   130     }
   119 
   131 
   120     contains(QT_CONFIG, multimedia) {
   132     contains(QT_CONFIG, multimedia) {
   121         qtlibraries.sources += QtMultimedia.dll
   133         qtlibraries.sources += QtMultimedia$${QT_LIBINFIX}.dll
   122     }
   134     }
   123 
   135 
   124     #BLD_INF_RULES.prj_exports += "qt.iby $$CORE_MW_LAYER_IBY_EXPORT_PATH(qt.iby)"
   136     BLD_INF_RULES.prj_exports += "qt.iby $$CORE_MW_LAYER_IBY_EXPORT_PATH(qt.iby)"
   125     #:QTP:QTPROD-220: Qt Examples should be exported to ROFS3
   137     BLD_INF_RULES.prj_exports += "qtdemoapps.iby $$CUSTOMER_VARIANT_APP_LAYER_IBY_EXPORT_PATH(qtdemoapps.iby)"
   126     #BLD_INF_RULES.prj_exports += "qtdemoapps.iby $$CUSTOMER_VARIANT_APP_LAYER_IBY_EXPORT_PATH(qtdemoapps.iby)"
       
   127     PLUGIN_STUBS = $$files(qmakepluginstubs/*)
       
   128     for(STUB, PLUGIN_STUBS) {
       
   129         STUB_FILENAME = $$basename(STUB)
       
   130         BLD_INF_RULES.prj_exports += "qmakepluginstubs/$${STUB_FILENAME} /epoc32/data/qt/qtlibspluginstubs/$${STUB_FILENAME}"
       
   131     }
       
   132 }
   138 }
   133