summaryrefslogtreecommitdiffstats
path: root/qmake
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2011-02-21 14:00:07 (GMT)
committerMiikka Heikkinen <miikka.heikkinen@digia.com>2011-02-21 14:15:41 (GMT)
commitde1417c6648a2589f56a7df0603b26387037aa31 (patch)
tree4b0884712b7b3b57de7611a6454958cb8b90279e /qmake
parent2d4298854ba57667a8aa0a0dd3a4bd7ce41aceae (diff)
downloadQt-de1417c6648a2589f56a7df0603b26387037aa31.zip
Qt-de1417c6648a2589f56a7df0603b26387037aa31.tar.gz
Qt-de1417c6648a2589f56a7df0603b26387037aa31.tar.bz2
Added support for QMAKE_CLEAN in symbian-sbsv2
Files specified in QMAKE_CLEAN variable will now be properly cleaned in symbian-sbsv2 builds. Task-number: QTBUG-17004 Reviewed-by: Janne Koskinen
Diffstat (limited to 'qmake')
-rw-r--r--qmake/generators/symbian/symmake_sbsv2.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/qmake/generators/symbian/symmake_sbsv2.cpp b/qmake/generators/symbian/symmake_sbsv2.cpp
index 9eccd46..f94a63f 100644
--- a/qmake/generators/symbian/symmake_sbsv2.cpp
+++ b/qmake/generators/symbian/symmake_sbsv2.cpp
@@ -721,6 +721,18 @@ void SymbianSbsv2MakefileGenerator::writeBldInfExtensionRulesPart(QTextStream& t
t << "END" << endl;
t << endl;
+ // Handle QMAKE_CLEAN
+ QStringList cleanFiles = project->values("QMAKE_CLEAN");
+ if (!cleanFiles.isEmpty()) {
+ QStringList absoluteCleanFiles;
+ foreach (QString cleanFile, cleanFiles) {
+ QFileInfo fi(cleanFile);
+ absoluteCleanFiles << fi.absoluteFilePath();
+ }
+ t << "START EXTENSION qt/qmake_clean" << endl;
+ t << "OPTION CLEAN_FILES " << absoluteCleanFiles.join(" ") << endl;
+ t << "END" << endl;
+ }
t << endl;
}