16 !include($$QT_MOBILITY_BUILD_TREE/config.pri) { |
16 !include($$QT_MOBILITY_BUILD_TREE/config.pri) { |
17 error("Please run configure script"); |
17 error("Please run configure script"); |
18 #also fails if .qmake.cache was not generated which may |
18 #also fails if .qmake.cache was not generated which may |
19 #happen if we are trying to shadow build w/o running configure |
19 #happen if we are trying to shadow build w/o running configure |
20 } |
20 } |
21 |
|
22 #creating qbuildcfg header |
|
23 !exists($$QT_MOBILITY_BUILD_TREE/src/global){ |
|
24 message("creating qbuildcfg header") |
|
25 symbian|win32|wince*{ |
|
26 system($$QMAKE_MKDIR $$QT_MOBILITY_BUILD_TREE\src\global) |
|
27 } |
|
28 else{ |
|
29 system($$QMAKE_MKDIR $$QT_MOBILITY_BUILD_TREE/src/global) |
|
30 } |
|
31 } |
|
32 |
|
33 QCFGH_OUTPUT=$$QT_MOBILITY_BUILD_TREE/src/global/qbuildcfg.h |
|
34 mobilityprefixpath = $$QT_MOBILITY_PREFIX |
|
35 symbian|win32|wince*{ |
|
36 mobilityprefixpath = $$replace(mobilityprefixpath, \\\, \\\\) |
|
37 system(echo static const char qt_mobility_configure_prefix_path_str [512 + 12] = \"$$mobilityprefixpath\\0\"; > $$QCFGH_OUTPUT) |
|
38 } |
|
39 else{ |
|
40 system(echo static const char qt_mobility_configure_prefix_path_str [512 + 12] = '\\\"$$mobilityprefixpath\\\0\\\"\;' > $$QCFGH_OUTPUT) |
|
41 } |
|
42 |
|
43 |
21 |
44 #don't build QtMobility if chosen config mismatches Qt's config |
22 #don't build QtMobility if chosen config mismatches Qt's config |
45 win32:!contains(CONFIG_WIN32,build_all) { |
23 win32:!contains(CONFIG_WIN32,build_all) { |
46 contains(QT_CONFIG,debug):!contains(QT_CONFIG,release):contains(CONFIG_WIN32,release) { |
24 contains(QT_CONFIG,debug):!contains(QT_CONFIG,release):contains(CONFIG_WIN32,release) { |
47 # Qt only build in debug mode |
25 # Qt only build in debug mode |
113 contains(build_unit_tests, yes):SUBDIRS+=tests |
91 contains(build_unit_tests, yes):SUBDIRS+=tests |
114 contains(build_examples, yes):SUBDIRS+=examples |
92 contains(build_examples, yes):SUBDIRS+=examples |
115 |
93 |
116 # install Qt style headers |
94 # install Qt style headers |
117 qtmheaders.path = $${QT_MOBILITY_INCLUDE} |
95 qtmheaders.path = $${QT_MOBILITY_INCLUDE} |
118 qtmheaders.files = $${QT_MOBILITY_BUILD_TREE}/include/* |
|
119 |
96 |
120 INSTALLS += qtmheaders |
97 !symbian { |
|
98 qtmheaders.files = $${QT_MOBILITY_BUILD_TREE}/include/QtmBearer/* \ |
|
99 $${QT_MOBILITY_BUILD_TREE}/include/QtmContacts/* \ |
|
100 $${QT_MOBILITY_BUILD_TREE}/include/QtmLocation/* \ |
|
101 $${QT_MOBILITY_BUILD_TREE}/include/QtmMessaging/* \ |
|
102 $${QT_MOBILITY_BUILD_TREE}/include/QtmMedia/* \ |
|
103 $${QT_MOBILITY_BUILD_TREE}/include/QtmPubSub/* \ |
|
104 $${QT_MOBILITY_BUILD_TREE}/include/QtmServiceFramework/* \ |
|
105 $${QT_MOBILITY_BUILD_TREE}/include/QtmVersit/* \ |
|
106 $${QT_MOBILITY_BUILD_TREE}/include/QtmSystemInfo/* \ |
|
107 $${QT_MOBILITY_BUILD_TREE}/include/QtmSensors/* |
|
108 INSTALLS += qtmheaders |
|
109 } else { |
|
110 |
|
111 # Can we assume the path exists? |
|
112 # paths = $$MW_LAYER_PUBLIC_EXPORT_PATH("") \ |
|
113 # $$APP_LAYER_PUBLIC_EXPORT_PATH("") |
|
114 # for(i, paths) { |
|
115 # exportPath=$$EPOCROOT"."$$dirname($$i) |
|
116 # nativePath=$$replace(exportPath, /,\) |
|
117 # !exists($$nativePath):system($$QMAKE_MKDIR $$nativePath) |
|
118 # } |
|
119 |
|
120 #absolute path does not work and so is shadow building for Symbian |
|
121 qtmAppHeaders = include/QtmContacts/* \ |
|
122 include/QtmVersit/* |
|
123 |
|
124 qtmMwHeaders = include/QtmBearer/* \ |
|
125 include/QtmLocation/* \ |
|
126 include/QtmMessaging/* \ |
|
127 include/QtmMedia/* \ |
|
128 include/QtmPubSub/* \ |
|
129 include/QtmServiceFramework/* \ |
|
130 include/QtmSystemInfo/* \ |
|
131 include/QtmSensors/* |
|
132 |
|
133 contains(mobility_modules,contacts|versit) { |
|
134 for(api, qtmAppHeaders) { |
|
135 INCLUDEFILES=$$files($$api); |
|
136 #files() attaches a ';' at the end which we need to remove |
|
137 cleanedFiles=$$replace(INCLUDEFILES, ;,) |
|
138 for(header, cleanedFiles) { |
|
139 exists($$header): |
|
140 BLD_INF_RULES.prj_exports += "$$header $$APP_LAYER_PUBLIC_EXPORT_PATH($$basename(header))" |
|
141 } |
|
142 } |
|
143 } |
|
144 |
|
145 contains(mobility_modules,serviceframework|location|bearer|publishsubscribe|systeminfo|multimedia|messaging) { |
|
146 for(api, qtmMwHeaders) { |
|
147 INCLUDEFILES=$$files($$api); |
|
148 #files() attaches a ';' at the end which we need to remove |
|
149 cleanedFiles=$$replace(INCLUDEFILES, ;,) |
|
150 for(header, cleanedFiles) { |
|
151 exists($$header): |
|
152 BLD_INF_RULES.prj_exports += "$$header $$MW_LAYER_PUBLIC_EXPORT_PATH($$basename(header))" |
|
153 } |
|
154 } |
|
155 } |
|
156 } |
|
157 |