43 win32:system(type $${QT_MOBILITY_SOURCE_TREE}\features\mobility.prf.template >> $$PRF_OUTPUT) |
43 win32:system(type $${QT_MOBILITY_SOURCE_TREE}\features\mobility.prf.template >> $$PRF_OUTPUT) |
44 symbian:system(type $${QT_MOBILITY_SOURCE_TREE}\features\mobility.prf.template >> $$PRF_OUTPUT) |
44 symbian:system(type $${QT_MOBILITY_SOURCE_TREE}\features\mobility.prf.template >> $$PRF_OUTPUT) |
45 |
45 |
46 PRF_CONFIG=$${QT_MOBILITY_BUILD_TREE}/features/mobilityconfig.prf |
46 PRF_CONFIG=$${QT_MOBILITY_BUILD_TREE}/features/mobilityconfig.prf |
47 system(echo MOBILITY_CONFIG=$${mobility_modules} > $$PRF_CONFIG) |
47 system(echo MOBILITY_CONFIG=$${mobility_modules} > $$PRF_CONFIG) |
|
48 system(echo MOBILITY_VERSION = 1.0.2 >> $$PRF_CONFIG) |
|
49 system(echo MOBILITY_MAJOR_VERSION = 1 >> $$PRF_CONFIG) |
|
50 system(echo MOBILITY_MINOR_VERSION = 0 >> $$PRF_CONFIG) |
|
51 system(echo MOBILITY_PATCH_VERSION = 2 >> $$PRF_CONFIG) |
48 |
52 |
49 #symbian does not generate make install rule. we have to copy prf manually |
53 #symbian does not generate make install rule. we have to copy prf manually |
50 symbian { |
54 symbian { |
51 FORMATDIR=$$[QT_INSTALL_DATA]\mkspecs\features |
55 FORMATDIR=$$[QT_INSTALL_DATA]\mkspecs\features |
52 FORMATDIR=$$replace(FORMATDIR,/,\\ ) |
56 FORMATDIR=$$replace(FORMATDIR,/,\\ ) |
74 |
78 |
75 #updating and deployment of translations requires Qt 4.6.3/qtPrepareTool |
79 #updating and deployment of translations requires Qt 4.6.3/qtPrepareTool |
76 !symbian:defined(qtPrepareTool):SUBDIRS += translations |
80 !symbian:defined(qtPrepareTool):SUBDIRS += translations |
77 |
81 |
78 # install Qt style headers |
82 # install Qt style headers |
79 qtmheaders.path = $${QT_MOBILITY_INCLUDE} |
|
80 |
83 |
81 !symbian { |
84 !symbian { |
82 qtmheaders.files = $${QT_MOBILITY_BUILD_TREE}/include/QtmBearer/* \ |
85 contains(mobility_modules,bearer) { |
83 $${QT_MOBILITY_BUILD_TREE}/include/QtmContacts/* \ |
86 qtmheadersbearer.path = $${QT_MOBILITY_INCLUDE}/QtBearer |
84 $${QT_MOBILITY_BUILD_TREE}/include/QtmLocation/* \ |
87 qtmheadersbearer.files = $${QT_MOBILITY_BUILD_TREE}/include/QtBearer/* |
85 $${QT_MOBILITY_BUILD_TREE}/include/QtmMessaging/* \ |
88 INSTALLS += qtmheadersbearer |
86 $${QT_MOBILITY_BUILD_TREE}/include/QtMultimedia/* \ |
89 } |
87 $${QT_MOBILITY_BUILD_TREE}/include/QtmPubSub/* \ |
90 |
88 $${QT_MOBILITY_BUILD_TREE}/include/QtmServiceFramework/* \ |
91 contains(mobility_modules,contacts) { |
89 $${QT_MOBILITY_BUILD_TREE}/include/QtmVersit/* \ |
92 qtmheaderscontacts.path = $${QT_MOBILITY_INCLUDE}/QtContacts |
90 $${QT_MOBILITY_BUILD_TREE}/include/QtmSystemInfo/* \ |
93 qtmheaderscontacts.files = $${QT_MOBILITY_BUILD_TREE}/include/QtContacts/* |
91 $${QT_MOBILITY_BUILD_TREE}/include/QtmSensors/* |
94 INSTALLS += qtmheaderscontacts |
92 INSTALLS += qtmheaders |
95 } |
|
96 |
|
97 contains(mobility_modules,location) { |
|
98 qtmheaderslocation.path = $${QT_MOBILITY_INCLUDE}/QtLocation |
|
99 qtmheaderslocation.files = $${QT_MOBILITY_BUILD_TREE}/include/QtLocation/* |
|
100 INSTALLS += qtmheaderslocation |
|
101 } |
|
102 |
|
103 contains(mobility_modules,messaging) { |
|
104 qtmheadersmessaging.path = $${QT_MOBILITY_INCLUDE}/QtMessaging |
|
105 qtmheadersmessaging.files = $${QT_MOBILITY_BUILD_TREE}/include/QtMessaging/* |
|
106 INSTALLS += qtmheadersmessaging |
|
107 } |
|
108 |
|
109 contains(mobility_modules,multimedia) { |
|
110 qtmheadersmultimedia.path = $${QT_MOBILITY_INCLUDE}/QtMultimediaKit |
|
111 qtmheadersmultimedia.files = $${QT_MOBILITY_BUILD_TREE}/include/QtMultimediaKit/* |
|
112 INSTALLS += qtmheadersmultimedia |
|
113 } |
|
114 |
|
115 contains(mobility_modules,publishsubscribe) { |
|
116 qtmheaderspubsub.path = $${QT_MOBILITY_INCLUDE}/QtPublishSubscribe |
|
117 qtmheaderspubsub.files = $${QT_MOBILITY_BUILD_TREE}/include/QtPublishSubscribe/* |
|
118 INSTALLS += qtmheaderspubsub |
|
119 } |
|
120 |
|
121 contains(mobility_modules,serviceframework) { |
|
122 qtmheaderssfw.path = $${QT_MOBILITY_INCLUDE}/QtServiceFramework |
|
123 qtmheaderssfw.files = $${QT_MOBILITY_BUILD_TREE}/include/QtServiceFramework/* |
|
124 INSTALLS += qtmheaderssfw |
|
125 } |
|
126 |
|
127 contains(mobility_modules,versit) { |
|
128 qtmheadersversit.path = $${QT_MOBILITY_INCLUDE}/QtVersit |
|
129 qtmheadersversit.files = $${QT_MOBILITY_BUILD_TREE}/include/QtVersit/* |
|
130 INSTALLS += qtmheadersversit |
|
131 } |
|
132 |
|
133 contains(mobility_modules,systeminfo) { |
|
134 qtmheaderssysteminfo.path = $${QT_MOBILITY_INCLUDE}/QtSystemInfo |
|
135 qtmheaderssysteminfo.files = $${QT_MOBILITY_BUILD_TREE}/include/QtSystemInfo/* |
|
136 INSTALLS += qtmheaderssysteminfo |
|
137 } |
|
138 |
|
139 contains(mobility_modules,sensors) { |
|
140 qtmheaderssensors.path = $${QT_MOBILITY_INCLUDE}/QtSensors |
|
141 qtmheaderssensors.files = $${QT_MOBILITY_BUILD_TREE}/include/QtSensors/* |
|
142 INSTALLS += qtmheaderssensors |
|
143 } |
93 } else { |
144 } else { |
94 #absolute path does not work and so is shadow building for Symbian |
145 #absolute path does not work and |
95 qtmAppHeaders = include/QtmContacts/* \ |
146 #include <QtMyLibrary/class.h> style does not work either |
96 include/QtmVersit/* |
147 qtmAppHeaders = include/QtContacts/* \ |
|
148 include/QtVersit/* |
97 |
149 |
98 qtmMwHeaders = include/QtmBearer/* \ |
150 qtmMwHeaders = include/QtBearer/* \ |
99 include/QtmLocation/* \ |
151 include/QtLocation/* \ |
100 include/QtmMessaging/* \ |
152 include/QtMessaging/* \ |
101 include/QtMultimedia/* \ |
153 include/QtMultimediaKit/* \ |
102 include/QtmPubSub/* \ |
154 include/QtPublishSubscribe/* \ |
103 include/QtmServiceFramework/* \ |
155 include/QtServiceFramework/* \ |
104 include/QtmSystemInfo/* \ |
156 include/QtSystemInfo/* \ |
105 include/QtmSensors/* |
157 include/QtSensors/* |
106 |
158 |
107 contains(mobility_modules,contacts|versit) { |
159 contains(mobility_modules,contacts|versit) { |
108 for(api, qtmAppHeaders) { |
160 for(api, qtmAppHeaders) { |
109 INCLUDEFILES=$$files($$api); |
161 INCLUDEFILES=$$files($$api); |
110 #files() attaches a ';' at the end which we need to remove |
162 #files() attaches a ';' at the end which we need to remove |
111 cleanedFiles=$$replace(INCLUDEFILES, ;,) |
163 cleanedFiles=$$replace(INCLUDEFILES, ;,) |
|
164 cleanedFiles=$$replace(cleanedFiles, \\\,/) |
112 for(header, cleanedFiles) { |
165 for(header, cleanedFiles) { |
113 exists($$header): |
166 exists($$header): |
114 BLD_INF_RULES.prj_exports += "$$header $$APP_LAYER_PUBLIC_EXPORT_PATH($$basename(header))" |
167 BLD_INF_RULES.prj_exports += "$$header $$APP_LAYER_PUBLIC_EXPORT_PATH($$basename(header))" |
115 } |
168 } |
116 } |
169 } |
119 contains(mobility_modules,serviceframework|location|bearer|publishsubscribe|systeminfo|multimedia|messaging) { |
172 contains(mobility_modules,serviceframework|location|bearer|publishsubscribe|systeminfo|multimedia|messaging) { |
120 for(api, qtmMwHeaders) { |
173 for(api, qtmMwHeaders) { |
121 INCLUDEFILES=$$files($$api); |
174 INCLUDEFILES=$$files($$api); |
122 #files() attaches a ';' at the end which we need to remove |
175 #files() attaches a ';' at the end which we need to remove |
123 cleanedFiles=$$replace(INCLUDEFILES, ;,) |
176 cleanedFiles=$$replace(INCLUDEFILES, ;,) |
|
177 cleanedFiles=$$replace(cleanedFiles, \\\, /) |
124 for(header, cleanedFiles) { |
178 for(header, cleanedFiles) { |
125 exists($$header): |
179 exists($$header): |
126 BLD_INF_RULES.prj_exports += "$$header $$MW_LAYER_PUBLIC_EXPORT_PATH($$basename(header))" |
180 BLD_INF_RULES.prj_exports += "$$header $$MW_LAYER_PUBLIC_EXPORT_PATH($$basename(header))" |
127 } |
181 } |
128 } |
182 } |