src/s60installs/s60installs.pro
changeset 19 fcece45ef507
parent 18 2f34d5167611
child 22 79de32ba3296
equal deleted inserted replaced
18:2f34d5167611 19:fcece45ef507
     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     }
       
    83 
       
    84     contains(QT_CONFIG, audio-backend) {
       
    85         qaudio_backend_plugins.sources += qaudio.dll
       
    86         qaudio_backend_plugins.path = c:$$QT_PLUGINS_BASE_DIR/audio
       
    87         DEPLOYMENT += qaudio_backend_plugins
       
    88     }
    94     }
    89 
    95 
    90     # Support backup & restore for Qt libraries
    96     # Support backup & restore for Qt libraries
    91     qtbackup.sources = backup_registration.xml
    97     qtbackup.sources = backup_registration.xml
    92     qtbackup.path = c:/private/10202D56/import/packages/$$replace(TARGET.UID3, 0x,)
    98     qtbackup.path = c:/private/10202D56/import/packages/$$replace(TARGET.UID3, 0x,)
    93 
    99 
    94     DEPLOYMENT += qtresources qtlibraries qtbackup imageformats_plugins codecs_plugins graphicssystems_plugins
   100     DEPLOYMENT += qtlibraries qtbackup imageformats_plugins codecs_plugins graphicssystems_plugins
    95 
   101 
    96     contains(QT_CONFIG, svg): {
   102     contains(QT_CONFIG, svg): {
    97        qtlibraries.sources += QtSvg.dll
   103        qtlibraries.sources += QtSvg$${QT_LIBINFIX}.dll
    98        imageformats_plugins.sources += qsvg.dll
   104        imageformats_plugins.sources += qsvg$${QT_LIBINFIX}.dll
    99        iconengines_plugins.sources = qsvgicon.dll
   105        iconengines_plugins.sources = qsvgicon$${QT_LIBINFIX}.dll
   100        iconengines_plugins.path = c:$$QT_PLUGINS_BASE_DIR/iconengines
   106        iconengines_plugins.path = c:$$QT_PLUGINS_BASE_DIR/iconengines
   101        DEPLOYMENT += iconengines_plugins
   107        DEPLOYMENT += iconengines_plugins
   102     }
   108     }
   103 
   109 
   104     contains(QT_CONFIG, phonon): {
   110     contains(QT_CONFIG, phonon): {
   105        qtlibraries.sources += phonon.dll
   111        qtlibraries.sources += phonon$${QT_LIBINFIX}.dll
   106     }
   112     }
   107 
   113 
   108     contains(QT_CONFIG, script): {
   114     contains(QT_CONFIG, script): {
   109         qtlibraries.sources += QtScript.dll
   115         qtlibraries.sources += QtScript$${QT_LIBINFIX}.dll
   110     }
   116     }
   111 
   117 
   112     contains(QT_CONFIG, xmlpatterns): {
   118     contains(QT_CONFIG, xmlpatterns): {
   113        qtlibraries.sources += QtXmlPatterns.dll
   119        qtlibraries.sources += QtXmlPatterns$${QT_LIBINFIX}.dll
   114     }
   120     }
   115 
   121 
   116     contains(QT_CONFIG, declarative): {
   122     contains(QT_CONFIG, declarative): {
   117         qtlibraries.sources += QtDeclarative.dll
   123         qtlibraries.sources += QtDeclarative$${QT_LIBINFIX}.dll
   118     }
   124     }
   119 
   125 
   120     graphicssystems_plugins.path = c:$$QT_PLUGINS_BASE_DIR/graphicssystems
   126     graphicssystems_plugins.path = c:$$QT_PLUGINS_BASE_DIR/graphicssystems
   121     contains(QT_CONFIG, openvg) {
   127     contains(QT_CONFIG, openvg) {
   122         qtlibraries.sources += QtOpenVG.dll
   128         qtlibraries.sources += QtOpenVG$${QT_LIBINFIX}.dll
   123         graphicssystems_plugins.sources += qvggraphicssystem.dll
   129         graphicssystems_plugins.sources += qvggraphicssystem$${QT_LIBINFIX}.dll
   124     }
   130     }
   125 
   131 
   126     contains(QT_CONFIG, multimedia) {
   132     contains(QT_CONFIG, multimedia) {
   127         qtlibraries.sources += QtMultimedia.dll
   133         qtlibraries.sources += QtMultimedia$${QT_LIBINFIX}.dll
   128     }
   134     }
   129 
   135 
   130     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)"
   131     #:QTP:QTPROD-220: Qt Examples should be exported to ROFS3
       
   132     BLD_INF_RULES.prj_exports += "qtdemoapps.iby $$CUSTOMER_VARIANT_APP_LAYER_IBY_EXPORT_PATH(qtdemoapps.iby)"
   137     BLD_INF_RULES.prj_exports += "qtdemoapps.iby $$CUSTOMER_VARIANT_APP_LAYER_IBY_EXPORT_PATH(qtdemoapps.iby)"
   133 }
   138 }
   134