| 1 | # Use subdirs template to suppress generation of unnecessary files | 
|---|
| 2 | TEMPLATE = subdirs | 
|---|
| 3 |  | 
|---|
| 4 | symbian: { | 
|---|
| 5 | load(data_caging_paths) | 
|---|
| 6 |  | 
|---|
| 7 | SUBDIRS= | 
|---|
| 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 | 
|---|
| 10 | TARGET = "Qt$${QT_LIBINFIX}" | 
|---|
| 11 |  | 
|---|
| 12 | isEmpty(QT_LIBINFIX) { | 
|---|
| 13 | TARGET.UID3 = 0x2001E61C | 
|---|
| 14 | } else { | 
|---|
| 15 | # Always use experimental UID for infixed configuration to avoid UID clash | 
|---|
| 16 | TARGET.UID3 = 0xE001E61C | 
|---|
| 17 | } | 
|---|
| 18 | VERSION=$${QT_MAJOR_VERSION}.$${QT_MINOR_VERSION}.$${QT_PATCH_VERSION} | 
|---|
| 19 |  | 
|---|
| 20 | DESTDIR = $$QMAKE_LIBDIR_QT | 
|---|
| 21 |  | 
|---|
| 22 | qtlibraries.sources = \ | 
|---|
| 23 | $$QMAKE_LIBDIR_QT/QtCore$${QT_LIBINFIX}.dll \ | 
|---|
| 24 | $$QMAKE_LIBDIR_QT/QtXml$${QT_LIBINFIX}.dll \ | 
|---|
| 25 | $$QMAKE_LIBDIR_QT/QtGui$${QT_LIBINFIX}.dll \ | 
|---|
| 26 | $$QMAKE_LIBDIR_QT/QtNetwork$${QT_LIBINFIX}.dll \ | 
|---|
| 27 | $$QMAKE_LIBDIR_QT/QtTest$${QT_LIBINFIX}.dll \ | 
|---|
| 28 | $$QMAKE_LIBDIR_QT/QtSql$${QT_LIBINFIX}.dll | 
|---|
| 29 |  | 
|---|
| 30 | symbian-abld|symbian-sbsv2 { | 
|---|
| 31 | pluginLocations = $${EPOCROOT}epoc32/release/$(PLATFORM)/$(TARGET) | 
|---|
| 32 | bearerPluginLocation = $${EPOCROOT}epoc32/release/$(PLATFORM)/$(TARGET) | 
|---|
| 33 | bearerStubZ = $${EPOCROOT}$${HW_ZDIR}$${QT_PLUGINS_BASE_DIR}/bearer/qsymbianbearer$${QT_LIBINFIX}.qtplugin | 
|---|
| 34 | BLD_INF_RULES.prj_exports += \ | 
|---|
| 35 | "qsymbianbearer.qtplugin /$${HW_ZDIR}$${QT_PLUGINS_BASE_DIR}/bearer/qsymbianbearer$${QT_LIBINFIX}.qtplugin" \ | 
|---|
| 36 | "qsymbianbearer.qtplugin /epoc32/winscw/c$${QT_PLUGINS_BASE_DIR}/bearer/qsymbianbearer$${QT_LIBINFIX}.qtplugin" | 
|---|
| 37 | } else { | 
|---|
| 38 | pluginLocations = $$QT_BUILD_TREE/plugins/s60 | 
|---|
| 39 | bearerPluginLocation = $$QT_BUILD_TREE/plugins/bearer | 
|---|
| 40 | bearerStubZ = $${PWD}/qsymbianbearer.qtplugin | 
|---|
| 41 | } | 
|---|
| 42 |  | 
|---|
| 43 | contains(S60_VERSION, 3.1)|contains(S60_VERSION, 3.2)|contains(S60_VERSION, 5.0) { | 
|---|
| 44 | qts60plugindeployment = \ | 
|---|
| 45 | "IF package(0x20022E6D)" \ | 
|---|
| 46 | "   \"$$pluginLocations/qts60plugin_5_0$${QT_LIBINFIX}.dll\" - \"c:\\sys\\bin\\qts60plugin_5_0$${QT_LIBINFIX}.dll\"" \ | 
|---|
| 47 | "   \"$$bearerPluginLocation/qsymbianbearer$${QT_LIBINFIX}.dll\" - \"c:\\sys\\bin\\qsymbianbearer$${QT_LIBINFIX}.dll\"" \ | 
|---|
| 48 | "ELSEIF package(0x1028315F)" \ | 
|---|
| 49 | "   \"$$pluginLocations/qts60plugin_5_0$${QT_LIBINFIX}.dll\" - \"c:\\sys\\bin\\qts60plugin_5_0$${QT_LIBINFIX}.dll\"" \ | 
|---|
| 50 | "   \"$$bearerPluginLocation/qsymbianbearer$${QT_LIBINFIX}_3_2.dll\" - \"c:\\sys\\bin\\qsymbianbearer$${QT_LIBINFIX}.dll\"" \ | 
|---|
| 51 | "ELSEIF package(0x102752AE)" \ | 
|---|
| 52 | "   \"$$pluginLocations/qts60plugin_3_2$${QT_LIBINFIX}.dll\" - \"c:\\sys\\bin\\qts60plugin_3_2$${QT_LIBINFIX}.dll\"" \ | 
|---|
| 53 | "   \"$$bearerPluginLocation/qsymbianbearer$${QT_LIBINFIX}_3_2.dll\" - \"c:\\sys\\bin\\qsymbianbearer$${QT_LIBINFIX}.dll\"" \ | 
|---|
| 54 | "ELSEIF package(0x102032BE)" \ | 
|---|
| 55 | "   \"$$pluginLocations/qts60plugin_3_1$${QT_LIBINFIX}.dll\" - \"c:\\sys\\bin\\qts60plugin_3_1$${QT_LIBINFIX}.dll\"" \ | 
|---|
| 56 | "   \"$$bearerPluginLocation/qsymbianbearer$${QT_LIBINFIX}_3_1.dll\" - \"c:\\sys\\bin\\qsymbianbearer$${QT_LIBINFIX}.dll\"" \ | 
|---|
| 57 | "ELSE" \ | 
|---|
| 58 | "   \"$$pluginLocations/qts60plugin_5_0$${QT_LIBINFIX}.dll\" - \"c:\\sys\\bin\\qts60plugin_5_0$${QT_LIBINFIX}.dll\"" \ | 
|---|
| 59 | "   \"$$bearerPluginLocation/qsymbianbearer$${QT_LIBINFIX}.dll\" - \"c:\\sys\\bin\\qsymbianbearer$${QT_LIBINFIX}.dll\"" \ | 
|---|
| 60 | "ENDIF" \ | 
|---|
| 61 | "   \"$$bearerStubZ\" - \"c:$$replace(QT_PLUGINS_BASE_DIR,/,\\)\\bearer\\qsymbianbearer$${QT_LIBINFIX}.qtplugin\" | 
|---|
| 62 | } else { | 
|---|
| 63 | # No need to deploy plugins for older platform versions when building on Symbian3 or later | 
|---|
| 64 | qts60plugindeployment = \ | 
|---|
| 65 | "   \"$$pluginLocations/qts60plugin_5_0$${QT_LIBINFIX}.dll\" - \"c:\\sys\\bin\\qts60plugin_5_0$${QT_LIBINFIX}.dll\"" | 
|---|
| 66 |  | 
|---|
| 67 | bearer_plugin.sources = $$QT_BUILD_TREE/plugins/bearer/qsymbianbearer$${QT_LIBINFIX}.dll | 
|---|
| 68 | bearer_plugin.path = c:$$QT_PLUGINS_BASE_DIR/bearer | 
|---|
| 69 | DEPLOYMENT += bearer_plugin | 
|---|
| 70 | } | 
|---|
| 71 |  | 
|---|
| 72 | qtlibraries.pkg_postrules += qts60plugindeployment | 
|---|
| 73 |  | 
|---|
| 74 | qtlibraries.path = c:/sys/bin | 
|---|
| 75 |  | 
|---|
| 76 | vendorinfo = \ | 
|---|
| 77 | "; Localised Vendor name" \ | 
|---|
| 78 | "%{\"Nokia\"}" \ | 
|---|
| 79 | " " \ | 
|---|
| 80 | "; Unique Vendor name" \ | 
|---|
| 81 | ":\"Nokia, Qt\"" \ | 
|---|
| 82 | " " | 
|---|
| 83 |  | 
|---|
| 84 |  | 
|---|
| 85 | qtlibraries.pkg_prerules = vendorinfo | 
|---|
| 86 | qtlibraries.pkg_prerules += "; Dependencies of Qt libraries" | 
|---|
| 87 |  | 
|---|
| 88 | # It is expected that Symbian^3 and newer phones will have sufficiently new OpenC already installed | 
|---|
| 89 | contains(S60_VERSION, 3.1)|contains(S60_VERSION, 3.2)|contains(S60_VERSION, 5.0) { | 
|---|
| 90 | qtlibraries.pkg_prerules += "(0x20013851), 1, 5, 1, {\"PIPS Installer\"}" | 
|---|
| 91 | contains(QT_CONFIG, openssl) | contains(QT_CONFIG, openssl-linked) { | 
|---|
| 92 | qtlibraries.pkg_prerules += "(0x200110CB), 1, 5, 1, {\"Open C LIBSSL Common\"}" | 
|---|
| 93 | } | 
|---|
| 94 | contains(CONFIG, stl) { | 
|---|
| 95 | qtlibraries.pkg_prerules += "(0x2000F866), 1, 0, 0, {\"Standard C++ Library Common\"}" | 
|---|
| 96 | } | 
|---|
| 97 | } | 
|---|
| 98 | qtlibraries.pkg_prerules += "(0x2002af5f), 0, 5, 0, {\"sqlite3\"}" | 
|---|
| 99 |  | 
|---|
| 100 | !contains(QT_CONFIG, no-jpeg): imageformats_plugins.sources += $$QT_BUILD_TREE/plugins/imageformats/qjpeg$${QT_LIBINFIX}.dll | 
|---|
| 101 | !contains(QT_CONFIG, no-gif):  imageformats_plugins.sources += $$QT_BUILD_TREE/plugins/imageformats/qgif$${QT_LIBINFIX}.dll | 
|---|
| 102 | !contains(QT_CONFIG, no-mng):  imageformats_plugins.sources += $$QT_BUILD_TREE/plugins/imageformats/qmng$${QT_LIBINFIX}.dll | 
|---|
| 103 | !contains(QT_CONFIG, no-tiff): imageformats_plugins.sources += $$QT_BUILD_TREE/plugins/imageformats/qtiff$${QT_LIBINFIX}.dll | 
|---|
| 104 | !contains(QT_CONFIG, no-ico):  imageformats_plugins.sources += $$QT_BUILD_TREE/plugins/imageformats/qico$${QT_LIBINFIX}.dll | 
|---|
| 105 | imageformats_plugins.path = c:$$QT_PLUGINS_BASE_DIR/imageformats | 
|---|
| 106 |  | 
|---|
| 107 | codecs_plugins.sources = $$QT_BUILD_TREE/plugins/codecs/qcncodecs$${QT_LIBINFIX}.dll $$QT_BUILD_TREE/plugins/codecs/qjpcodecs$${QT_LIBINFIX}.dll $$QT_BUILD_TREE/plugins/codecs/qtwcodecs$${QT_LIBINFIX}.dll $$QT_BUILD_TREE/plugins/codecs/qkrcodecs$${QT_LIBINFIX}.dll | 
|---|
| 108 | codecs_plugins.path = c:$$QT_PLUGINS_BASE_DIR/codecs | 
|---|
| 109 |  | 
|---|
| 110 | contains(QT_CONFIG, phonon-backend) { | 
|---|
| 111 | phonon_backend_plugins.sources += $$QT_BUILD_TREE/plugins/phonon_backend/phonon_mmf$${QT_LIBINFIX}.dll | 
|---|
| 112 |  | 
|---|
| 113 | phonon_backend_plugins.path = c:$$QT_PLUGINS_BASE_DIR/phonon_backend | 
|---|
| 114 | DEPLOYMENT += phonon_backend_plugins | 
|---|
| 115 | } | 
|---|
| 116 |  | 
|---|
| 117 | # Support backup & restore for Qt libraries | 
|---|
| 118 | qtbackup.sources = backup_registration.xml | 
|---|
| 119 | qtbackup.path = c:/private/10202D56/import/packages/$$replace(TARGET.UID3, 0x,) | 
|---|
| 120 |  | 
|---|
| 121 | DEPLOYMENT += qtlibraries \ | 
|---|
| 122 | qtbackup \ | 
|---|
| 123 | imageformats_plugins \ | 
|---|
| 124 | codecs_plugins \ | 
|---|
| 125 | graphicssystems_plugins | 
|---|
| 126 |  | 
|---|
| 127 | contains(QT_CONFIG, svg): { | 
|---|
| 128 | qtlibraries.sources += $$QMAKE_LIBDIR_QT/QtSvg$${QT_LIBINFIX}.dll | 
|---|
| 129 | imageformats_plugins.sources += $$QT_BUILD_TREE/plugins/imageformats/qsvg$${QT_LIBINFIX}.dll | 
|---|
| 130 | iconengines_plugins.sources = $$QT_BUILD_TREE/plugins/iconengines/qsvgicon$${QT_LIBINFIX}.dll | 
|---|
| 131 | iconengines_plugins.path = c:$$QT_PLUGINS_BASE_DIR/iconengines | 
|---|
| 132 | DEPLOYMENT += iconengines_plugins | 
|---|
| 133 | } | 
|---|
| 134 |  | 
|---|
| 135 | contains(QT_CONFIG, phonon): { | 
|---|
| 136 | qtlibraries.sources += $$QMAKE_LIBDIR_QT/phonon$${QT_LIBINFIX}.dll | 
|---|
| 137 | } | 
|---|
| 138 |  | 
|---|
| 139 | contains(QT_CONFIG, script): { | 
|---|
| 140 | qtlibraries.sources += $$QMAKE_LIBDIR_QT/QtScript$${QT_LIBINFIX}.dll | 
|---|
| 141 | } | 
|---|
| 142 |  | 
|---|
| 143 | contains(QT_CONFIG, xmlpatterns): { | 
|---|
| 144 | qtlibraries.sources += $$QMAKE_LIBDIR_QT/QtXmlPatterns$${QT_LIBINFIX}.dll | 
|---|
| 145 | } | 
|---|
| 146 |  | 
|---|
| 147 | contains(QT_CONFIG, declarative): { | 
|---|
| 148 | qtlibraries.sources += $$QMAKE_LIBDIR_QT/QtDeclarative$${QT_LIBINFIX}.dll | 
|---|
| 149 |  | 
|---|
| 150 | folderlistmodelImport.sources = $$QT_BUILD_TREE/imports/Qt/labs/folderlistmodel/qmlfolderlistmodelplugin$${QT_LIBINFIX}.dll | 
|---|
| 151 | gesturesImport.sources = $$QT_BUILD_TREE/imports/Qt/labs/gestures/qmlgesturesplugin$${QT_LIBINFIX}.dll | 
|---|
| 152 | particlesImport.sources = $$QT_BUILD_TREE/imports/Qt/labs/particles/qmlparticlesplugin$${QT_LIBINFIX}.dll | 
|---|
| 153 |  | 
|---|
| 154 | folderlistmodelImport.sources += $$QT_SOURCE_TREE/src/imports/folderlistmodel/qmldir | 
|---|
| 155 | gesturesImport.sources += $$QT_SOURCE_TREE/src/imports/gestures/qmldir | 
|---|
| 156 | particlesImport.sources += $$QT_SOURCE_TREE/src/imports/particles/qmldir | 
|---|
| 157 |  | 
|---|
| 158 | folderlistmodelImport.path = c:$$QT_IMPORTS_BASE_DIR/Qt/labs/folderlistmodel | 
|---|
| 159 | gesturesImport.path = c:$$QT_IMPORTS_BASE_DIR/Qt/labs/gestures | 
|---|
| 160 | particlesImport.path = c:$$QT_IMPORTS_BASE_DIR/Qt/labs/particles | 
|---|
| 161 |  | 
|---|
| 162 | DEPLOYMENT += folderlistmodelImport gesturesImport particlesImport | 
|---|
| 163 | } | 
|---|
| 164 |  | 
|---|
| 165 | graphicssystems_plugins.path = c:$$QT_PLUGINS_BASE_DIR/graphicssystems | 
|---|
| 166 | contains(QT_CONFIG, openvg) { | 
|---|
| 167 | qtlibraries.sources += $$QMAKE_LIBDIR_QT/QtOpenVG$${QT_LIBINFIX}.dll | 
|---|
| 168 | graphicssystems_plugins.sources += $$QT_BUILD_TREE/plugins/graphicssystems/qvggraphicssystem$${QT_LIBINFIX}.dll | 
|---|
| 169 | } | 
|---|
| 170 |  | 
|---|
| 171 | contains(QT_CONFIG, opengl) { | 
|---|
| 172 | qtlibraries.sources += $$QMAKE_LIBDIR_QT/QtOpenGL$${QT_LIBINFIX}.dll | 
|---|
| 173 | graphicssystems_plugins.sources += $$QT_BUILD_TREE/plugins/graphicssystems/qglgraphicssystem$${QT_LIBINFIX}.dll | 
|---|
| 174 | } | 
|---|
| 175 |  | 
|---|
| 176 | contains(QT_CONFIG, multimedia){ | 
|---|
| 177 | qtlibraries.sources += $$QMAKE_LIBDIR_QT/QtMultimedia$${QT_LIBINFIX}.dll | 
|---|
| 178 | } | 
|---|
| 179 |  | 
|---|
| 180 | BLD_INF_RULES.prj_exports += "qt.iby $$CORE_MW_LAYER_IBY_EXPORT_PATH(qt.iby)" | 
|---|
| 181 | } | 
|---|