1 /**************************************************************************** |
1 /**************************************************************************** |
2 ** |
2 ** |
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 ** All rights reserved. |
4 ** All rights reserved. |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
6 ** |
6 ** |
7 ** This file is part of the qmake application of the Qt Toolkit. |
7 ** This file is part of the qmake application of the Qt Toolkit. |
8 ** |
8 ** |
173 t << endl; |
173 t << endl; |
174 t << BLD_INF_FILENAME ":" << endl; |
174 t << BLD_INF_FILENAME ":" << endl; |
175 t << "\t$(QMAKE)" << endl; |
175 t << "\t$(QMAKE)" << endl; |
176 t << endl; |
176 t << endl; |
177 |
177 |
|
178 QString winscw("winscw"); |
178 t << "debug: " << BLD_INF_FILENAME << endl; |
179 t << "debug: " << BLD_INF_FILENAME << endl; |
|
180 t << "\t$(SBS)"; |
179 foreach(QString item, debugPlatforms) { |
181 foreach(QString item, debugPlatforms) { |
180 t << "\t$(SBS) -c " << item << "_udeb" << testClause << endl; |
182 if(QString::compare(item, winscw) == 0) |
|
183 t << " -c " << item << "_udeb.mwccinc" << testClause; |
|
184 else |
|
185 t << " -c " << item << "_udeb" << testClause; |
181 } |
186 } |
182 t << endl; |
187 t << endl; |
183 t << "release: " << BLD_INF_FILENAME << endl; |
188 t << "release: " << BLD_INF_FILENAME << endl; |
|
189 t << "\t$(SBS)"; |
184 foreach(QString item, releasePlatforms) { |
190 foreach(QString item, releasePlatforms) { |
185 t << "\t$(SBS) -c " << item << "_urel" << testClause << endl; |
191 if(QString::compare(item, winscw) == 0) |
186 } |
192 t << " -c " << item << "_urel.mwccinc" << testClause; |
187 t << endl; |
193 else |
188 |
194 t << " -c " << item << "_urel" << testClause; |
189 QString winscw("winscw"); |
195 } |
|
196 t << endl; |
|
197 |
190 // For more specific builds, targets are in this form: build-platform, e.g. release-armv5 |
198 // For more specific builds, targets are in this form: build-platform, e.g. release-armv5 |
191 foreach(QString item, debugPlatforms) { |
199 foreach(QString item, debugPlatforms) { |
192 t << "debug-" << item << ": " << BLD_INF_FILENAME << endl; |
200 t << "debug-" << item << ": " << BLD_INF_FILENAME << endl; |
193 if(QString::compare(item, winscw) == 0) |
201 if(QString::compare(item, winscw) == 0) |
194 t << "\t$(SBS) -c " << item << "_udeb.mwccinc" << testClause << endl; |
202 t << "\t$(SBS) -c " << item << "_udeb.mwccinc" << testClause << endl; |
233 |
241 |
234 t << "clean: " << BLD_INF_FILENAME << endl; |
242 t << "clean: " << BLD_INF_FILENAME << endl; |
235 t << "\t-$(SBS) reallyclean" << endl; |
243 t << "\t-$(SBS) reallyclean" << endl; |
236 t << endl; |
244 t << endl; |
237 |
245 |
238 // create execution target |
246 t << "clean-debug: " << BLD_INF_FILENAME << endl; |
239 if (debugPlatforms.contains("winscw") && targetType == TypeExe) { |
247 t << "\t$(SBS) reallyclean"; |
240 t << "run:" << endl; |
248 foreach(QString item, debugPlatforms) { |
241 t << "\t-call " << epocRoot() << "epoc32/release/winscw/udeb/" << fixedTarget << ".exe" << endl << endl; |
249 t << " -c " << item << "_udeb" << testClause; |
242 } |
250 } |
|
251 t << endl; |
|
252 t << "clean-release: " << BLD_INF_FILENAME << endl; |
|
253 t << "\t$(SBS) reallyclean"; |
|
254 foreach(QString item, releasePlatforms) { |
|
255 t << " -c " << item << "_urel" << testClause; |
|
256 } |
|
257 t << endl; |
|
258 |
|
259 // For more specific builds, targets are in this form: clean-build-platform, e.g. clean-release-armv5 |
|
260 foreach(QString item, debugPlatforms) { |
|
261 t << "clean-debug-" << item << ": " << BLD_INF_FILENAME << endl; |
|
262 t << "\t$(SBS) reallyclean -c " << item << "_udeb" << testClause << endl; |
|
263 } |
|
264 foreach(QString item, releasePlatforms) { |
|
265 t << "clean-release-" << item << ": " << BLD_INF_FILENAME << endl; |
|
266 t << "\t$(SBS) reallyclean -c " << item << "_urel" << testClause << endl; |
|
267 } |
|
268 t << endl; |
|
269 |
|
270 generateExecutionTargets(t, debugPlatforms); |
243 } |
271 } |
244 |
272 |
245 void SymbianSbsv2MakefileGenerator::writeBldInfExtensionRulesPart(QTextStream& t, const QString &iconTargetFile) |
273 void SymbianSbsv2MakefileGenerator::writeBldInfExtensionRulesPart(QTextStream& t, const QString &iconTargetFile) |
246 { |
274 { |
247 // Makes sure we have needed FLMs in place. |
275 // Makes sure we have needed FLMs in place. |