src/s60installs/s60installs.pro
changeset 5 603d3f8b6302
parent 0 876b1a06bc25
equal deleted inserted replaced
3:e4ebb16b39ea 5:603d3f8b6302
     7 
     7 
     8     SUBDIRS =
     8     SUBDIRS =
     9     TARGET = "QtMobility"
     9     TARGET = "QtMobility"
    10     TARGET.UID3 = 0x2002AC89
    10     TARGET.UID3 = 0x2002AC89
    11 
    11 
    12     VERSION = 1.0.2
    12     VERSION = 1.0.3
    13 
    13 
    14     vendorinfo = \
    14     vendorinfo = \
    15         "; Localised Vendor name" \
    15         "; Localised Vendor name" \
    16         "%{\"Nokia\"}" \
    16         "%{\"Nokia\"}" \
    17         " " \
    17         " " \
    39         EPOCROOT50 = $${EPOCROOT}
    39         EPOCROOT50 = $${EPOCROOT}
    40     } else {
    40     } else {
    41         EPOCROOT50 = $$(EPOCROOT50)
    41         EPOCROOT50 = $$(EPOCROOT50)
    42     }
    42     }
    43 
    43 
       
    44     #Symbian^3 and beyond requires special package flags
       
    45     #we cannot use S60_VERSION == 5.2 as Qt 4.6.x does not define it yet
       
    46     #see $QTDIR/mkspecs/common/symbian/symbian.conf for details
       
    47     exists($${EPOCROOT}epoc32/release/winscw/udeb/z/system/install/series60v5.2.sis)|exists($${EPOCROOT}epoc32/data/z/system/install/series60v5.2.sis)|exists($${EPOCROOT}epoc32/release/armv5/lib/libstdcppv5.dso) {
       
    48         pkg_version = $$replace(VERSION,"\.",",")
       
    49         qtmobilitydeployment.pkg_prerules += "$${LITERAL_HASH}{\"QtMobility\"},(0x2002AC89),$${pkg_version},TYPE=SA,RU,NR"
       
    50     }
       
    51 
    44     contains(mobility_modules, messaging): qtmobilitydeployment.sources += \
    52     contains(mobility_modules, messaging): qtmobilitydeployment.sources += \
    45         $${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/QtMessaging.dll
    53         $${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/QtMessaging.dll
    46 
    54 	
    47     contains(mobility_modules, serviceframework): qtmobilitydeployment.sources += \
    55     contains(mobility_modules, serviceframework) { 
       
    56         qtmobilitydeployment.sources += \
    48         $${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/QtServiceFramework.dll \
    57         $${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/QtServiceFramework.dll \
    49         $${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/qsfwdatabasemanagerserver.exe
    58         $${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/qsfwdatabasemanagerserver.exe
       
    59         contains(QT_CONFIG, declarative): {
       
    60             qtmobilitydeployment.sources += \
       
    61             $${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/declarative_serviceframework.dll
       
    62             pluginstubs += \
       
    63             "\"$$QT_MOBILITY_BUILD_TREE\\plugins\\declarative\\serviceframework\\qmakepluginstubs\\declarative_serviceframework.qtplugin\"  - \"!:\\resource\\qt\\imports\\QtMobility\\serviceframework\\declarative_serviceframework.qtplugin\""
       
    64             qmldirs += \
       
    65             "\"$$QT_MOBILITY_BUILD_TREE\\plugins\\declarative\\serviceframework\\qmldir\"  - \"!:\\resource\\qt\\imports\\QtMobility\\serviceframework\\qmldir\""
       
    66         }
       
    67     }
    50 
    68 
    51     contains(mobility_modules, location): qtmobilitydeployment.sources += \
    69     contains(mobility_modules, location): qtmobilitydeployment.sources += \
    52         $${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/QtLocation.dll
    70         $${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/QtLocation.dll
    53 
    71 
    54     contains(mobility_modules, systeminfo): qtmobilitydeployment.sources += \
    72     contains(mobility_modules, systeminfo): qtmobilitydeployment.sources += \
    55         $${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/QtSystemInfo.dll
    73         $${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/QtSystemInfo.dll
    56 
    74 
    57     contains(mobility_modules, publishsubscribe): qtmobilitydeployment.sources += \
    75     contains(mobility_modules, publishsubscribe) {
       
    76         qtmobilitydeployment.sources += \
    58         $${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/QtPublishSubscribe.dll \
    77         $${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/QtPublishSubscribe.dll \
    59         $${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/qpspathmapperserver.exe
    78         $${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/qpspathmapperserver.exe
       
    79         contains(QT_CONFIG, declarative) {
       
    80             qtmobilitydeployment.sources += \
       
    81             $${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/declarative_publishsubscribe.dll
       
    82             pluginstubs += \
       
    83             "\"$$QT_MOBILITY_BUILD_TREE\\plugins\\declarative\\publishsubscribe\\qmakepluginstubs\\declarative_publishsubscribe.qtplugin\"  - \"!:\\resource\\qt\\imports\\QtMobility\\publishsubscribe\\declarative_publishsubscribe.qtplugin\""
       
    84             qmldirs += \
       
    85             "\"$$QT_MOBILITY_BUILD_TREE\\plugins\\declarative\\publishsubscribe\\qmldir\"  - \"!:\\resource\\qt\\imports\\QtMobility\\publishsubscribe\\qmldir\""
       
    86         }
       
    87     }
    60 
    88 
    61     contains(mobility_modules, versit): qtmobilitydeployment.sources += \
    89     contains(mobility_modules, versit): qtmobilitydeployment.sources += \
    62         $${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/QtVersit.dll
    90         $${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/QtVersit.dll
    63 
    91 
    64 
    92 
   113                 "   \"$${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/qtcontacts_symbiansim.dll\" - \"!:\\sys\\bin\\qtcontacts_symbiansim.dll\"" \
   141                 "   \"$${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/qtcontacts_symbiansim.dll\" - \"!:\\sys\\bin\\qtcontacts_symbiansim.dll\"" \
   114                 "ENDIF"
   142                 "ENDIF"
   115 
   143 
   116             qtmobilitydeployment.pkg_postrules += symbiancntsim
   144             qtmobilitydeployment.pkg_postrules += symbiancntsim
   117         }
   145         }
   118 
   146 	 contains(QT_CONFIG, declarative): {
       
   147             qtmobilitydeployment.sources += \
       
   148             $${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/declarative_contacts.dll
       
   149             pluginstubs += \
       
   150             "\"$$QT_MOBILITY_BUILD_TREE\\plugins\\declarative\\contacts\\qmakepluginstubs\\declarative_contacts.qtplugin\"  - \"!:\\resource\\qt\\imports\\QtMobility\\contacts\\declarative_contacts.qtplugin\""
       
   151             qmldirs += \
       
   152             "\"$$QT_MOBILITY_BUILD_TREE\\plugins\\declarative\\contacts\\qmldir\"  - \"!:\\resource\\qt\\imports\\QtMobility\\contacts\\qmldir\""
       
   153         }
   119     }
   154     }
   120 
   155 
   121     contains(mobility_modules, multimedia) {
   156     contains(mobility_modules, multimedia) {
   122 
   157 
   123         qtmobilitydeployment.sources += \
   158         qtmobilitydeployment.sources += \
   153         }
   188         }
   154 
   189 
   155         pluginstubs += \
   190         pluginstubs += \
   156             "\"$$QT_MOBILITY_BUILD_TREE/plugins/multimedia/symbian/mmf/qmakepluginstubs/qtmultimediakit_mmfengine.qtplugin\" - \"!:\\resource\\qt\\plugins\\mediaservice\\qtmultimediakit_mmfengine.qtplugin\"" \
   191             "\"$$QT_MOBILITY_BUILD_TREE/plugins/multimedia/symbian/mmf/qmakepluginstubs/qtmultimediakit_mmfengine.qtplugin\" - \"!:\\resource\\qt\\plugins\\mediaservice\\qtmultimediakit_mmfengine.qtplugin\"" \
   157             "\"$$QT_MOBILITY_BUILD_TREE/plugins/multimedia/m3u/qmakepluginstubs/qtmultimediakit_m3u.qtplugin\"     - \"!:\\resource\\qt\\plugins\\playlistformats\\qtmultimediakit_m3u.qtplugin\"" \
   192             "\"$$QT_MOBILITY_BUILD_TREE/plugins/multimedia/m3u/qmakepluginstubs/qtmultimediakit_m3u.qtplugin\"     - \"!:\\resource\\qt\\plugins\\playlistformats\\qtmultimediakit_m3u.qtplugin\"" \
       
   193 	    
       
   194 	contains(QT_CONFIG, declarative): {
       
   195             qtmobilitydeployment.sources += \
       
   196             $${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/declarative_multimedia.dll
       
   197             pluginstubs += \
       
   198             "\"$$QT_MOBILITY_BUILD_TREE\\plugins\\declarative\\multimedia\\qmakepluginstubs\\declarative_multimedia.qtplugin\"  - \"!:\\resource\\qt\\imports\\Qt\\multimedia\\declarative_multimedia.qtplugin\""
       
   199             qmldirs += \
       
   200             "\"$$QT_MOBILITY_BUILD_TREE\\plugins\\declarative\\multimedia\\qmldir\"  - \"!:\\resource\\qt\\imports\\Qt\\multimedia\\qmldir\""
       
   201         }
   158     }
   202     }
   159 
   203 
   160     contains(mobility_modules, sensors) {
   204     contains(mobility_modules, sensors) {
   161 
   205 
       
   206         equals(sensors_symbian_enabled,yes) {
       
   207             sensorplugin=symbian
       
   208         } else:equals(sensors_s60_31_enabled,yes) {
       
   209             sensorplugin=s60_sensor_api
       
   210         } else {
       
   211             error("Must have a Symbian sensor backend available")
       
   212         }
       
   213 
   162         qtmobilitydeployment.sources += \
   214         qtmobilitydeployment.sources += \
   163             $${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/QtSensors.dll
   215             $${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/QtSensors.dll
   164 
   216 
   165         sensors = ""
   217         sensors = \
   166 
   218             "IF package(0x1028315F)" \
   167         equals(sensors_s60_31_enabled,yes) {
   219             "   \"$${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/qtsensors_sym.dll\" - \"!:\\sys\\bin\\qtsensors_sym.dll\"" \
   168             sensors += \
   220             "   \"$${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/qtsensors_generic.dll\" - \"!:\\sys\\bin\\qtsensors_generic.dll\"" \
   169                 "IF package(0x102032BE)" \
   221             "ELSEIF package(0x102752AE)" \
   170                 "   \"$${EPOCROOT31}epoc32/release/$(PLATFORM)/$(TARGET)/qtsensors_s60sensorapi.dll\" - \"!:\\sys\\bin\\qtsensor_s60sensorapi.dll\"" \
   222             "   \"$${EPOCROOT32}epoc32/release/$(PLATFORM)/$(TARGET)/qtsensors_sym.dll\" - \"!:\\sys\\bin\\qtsensors_sym.dll\"" \
   171                 "   \"$${EPOCROOT31}epoc32/release/$(PLATFORM)/$(TARGET)/qtsensors_generic.dll\" - \"!:\\sys\\bin\\qtsensors_generic.dll\"" \
   223             "   \"$${EPOCROOT32}epoc32/release/$(PLATFORM)/$(TARGET)/qtsensors_generic.dll\" - \"!:\\sys\\bin\\qtsensors_generic.dll\"" \
   172                 "ENDIF"
   224             "ELSEIF package(0x102032BE)" \
   173         } else:equals(sensors_symbian_enabled,yes) {
   225             "   \"$${EPOCROOT31}epoc32/release/$(PLATFORM)/$(TARGET)/qtsensors_sym.dll\" - \"!:\\sys\\bin\\qtsensors_sym.dll\"" \
   174             sensors += \
   226             "   \"$${EPOCROOT31}epoc32/release/$(PLATFORM)/$(TARGET)/qtsensors_generic.dll\" - \"!:\\sys\\bin\\qtsensors_generic.dll\"" \
   175                 "IF package(0x102752AE)" \
   227             "ELSE" \
   176                 "   \"$${EPOCROOT32}epoc32/release/$(PLATFORM)/$(TARGET)/qtsensors_sym.dll\" - \"!:\\sys\\bin\\qtsensors_sym.dll\"" \
   228             "   \"$${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/qtsensors_sym.dll\" - \"!:\\sys\\bin\\qtsensors_sym.dll\"" \
   177                 "   \"$${EPOCROOT32}epoc32/release/$(PLATFORM)/$(TARGET)/qtsensors_generic.dll\" - \"!:\\sys\\bin\\qtsensors_generic.dll\"" \
   229             "   \"$${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/qtsensors_generic.dll\" - \"!:\\sys\\bin\\qtsensors_generic.dll\"" \
   178                 "ELSE" \
   230             "ENDIF"
   179                 "   \"$${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/qtsensors_sym.dll\" - \"!:\\sys\\bin\\qtsensors_sym.dll\"" \
   231 
   180                 "   \"$${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/qtsensors_generic.dll\" - \"!:\\sys\\bin\\qtsensors_generic.dll\"" \
   232         pluginstubs += \
   181                 "ENDIF"
   233             "\"$$QT_MOBILITY_BUILD_TREE/plugins/sensors/$$sensorplugin/qmakepluginstubs/qtsensors_sym.qtplugin\"  - \"!:\\resource\\qt\\plugins\\sensors\\qtsensors_sym.qtplugin\"" \
   182         }
   234             "\"$$QT_MOBILITY_BUILD_TREE/plugins/sensors/generic/qmakepluginstubs/qtsensors_generic.qtplugin\"  - \"!:\\resource\\qt\\plugins\\sensors\\qtsensors_generic.qtplugin\""
   183 
   235 
   184         !isEmpty(sensors):qtmobilitydeployment.pkg_postrules += sensors
   236         !isEmpty(sensors):qtmobilitydeployment.pkg_postrules += sensors
   185 
   237         contains(QT_CONFIG, declarative): {
   186         equals(sensors_s60_31_enabled,yes) {
   238             qtmobilitydeployment.sources += \
   187             pluginstubs += \
   239             $${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/declarative_sensors.dll
   188                 "\"$$QT_MOBILITY_BUILD_TREE/plugins/sensors/s60_sensor_api/qmakepluginstubs/qtsensors_s60sensorapi.qtplugin\"  - \"!:\\resource\\qt\\plugins\\sensors\\qtsensors_s60sensorapi.qtplugin\""\
   240             pluginstubs += \
   189                 "\"$$QT_MOBILITY_BUILD_TREE/plugins/sensors/generic/qmakepluginstubs/qtsensors_generic.qtplugin\"  - \"!:\\resource\\qt\\plugins\\sensors\\qtsensors_generic.qtplugin\""
   241             "\"$$QT_MOBILITY_BUILD_TREE\\plugins\\declarative\\sensors\\qmakepluginstubs\\declarative_sensors.qtplugin\"  - \"!:\\resource\\qt\\imports\\QtMobility\\sensors\\declarative_sensors.qtplugin\""
   190         } else:equals(sensors_symbian_enabled,yes) {
   242             qmldirs += \
   191             pluginstubs += \
   243             "\"$$QT_MOBILITY_BUILD_TREE\\plugins\\declarative\\sensors\\qmldir\"  - \"!:\\resource\\qt\\imports\\QtMobility\\sensors\\qmldir\""
   192                 "\"$$QT_MOBILITY_BUILD_TREE/plugins/sensors/symbian/qmakepluginstubs/qtsensors_sym.qtplugin\"  - \"!:\\resource\\qt\\plugins\\sensors\\qtsensors_sym.qtplugin\""\
   244         }
   193                 "\"$$QT_MOBILITY_BUILD_TREE/plugins/sensors/generic/qmakepluginstubs/qtsensors_generic.qtplugin\"  - \"!:\\resource\\qt\\plugins\\sensors\\qtsensors_generic.qtplugin\""
       
   194         }
       
   195 
       
   196     }
   245     }
   197 
   246 
   198     !isEmpty(pluginstubs):qtmobilitydeployment.pkg_postrules += pluginstubs
   247     !isEmpty(pluginstubs):qtmobilitydeployment.pkg_postrules += pluginstubs
       
   248     !isEmpty(qmldirs):qtmobilitydeployment.pkg_postrules += qmldirs
   199 
   249 
   200     qtmobilitydeployment.path = /sys/bin
   250     qtmobilitydeployment.path = /sys/bin
   201 
   251 
   202     DEPLOYMENT += qtmobilitydeployment
   252     # Support backup and restore for QtMobility libraries and applications
   203     
   253     mobilitybackup.sources = backup_registration.xml
       
   254     mobilitybackup.path = c:/private/10202D56/import/packages/$$replace(TARGET.UID3, 0x,)
       
   255 
       
   256     DEPLOYMENT += qtmobilitydeployment\
       
   257                 mobilitybackup
       
   258 
   204     BLD_INF_RULES.prj_exports += "./qtmobility.iby           $$CORE_MW_LAYER_IBY_EXPORT_PATH(qtmobility.iby)"
   259     BLD_INF_RULES.prj_exports += "./qtmobility.iby           $$CORE_MW_LAYER_IBY_EXPORT_PATH(qtmobility.iby)"
   205     
   260     
   206 } else {
   261 } else {
   207     message(Deployment of infixed library names not supported)
   262     message(Deployment of infixed library names not supported)
   208 }
   263 }