diff options
author | Shane Kearns <shane.kearns@sosco.com> | 2009-09-22 07:11:19 (GMT) |
---|---|---|
committer | Shane Kearns <shane.kearns@sosco.com> | 2009-09-22 07:14:10 (GMT) |
commit | b92da40d6a921c8518dd39477a9e53df343225c3 (patch) | |
tree | 7f2cb0bae70ed10621c00edd3b42a5bd9499e42d /qmake/generators/symbian/symmake.cpp | |
parent | eda6cd89b57b433847662f96ab21876d97f9eb60 (diff) | |
download | Qt-b92da40d6a921c8518dd39477a9e53df343225c3.zip Qt-b92da40d6a921c8518dd39477a9e53df343225c3.tar.gz Qt-b92da40d6a921c8518dd39477a9e53df343225c3.tar.bz2 |
Support for generating OPTION GCCE from QMAKE_CXXFLAGS.GCCE
Added GCCE as a compiler in SymbianMakefileGenerator::writeMmpFileCompilerOptionPart
Task-number: QT-1163
Reviewed-by: axis
Diffstat (limited to 'qmake/generators/symbian/symmake.cpp')
-rw-r--r-- | qmake/generators/symbian/symmake.cpp | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/qmake/generators/symbian/symmake.cpp b/qmake/generators/symbian/symmake.cpp index db69a4f..dd1dd5f 100644 --- a/qmake/generators/symbian/symmake.cpp +++ b/qmake/generators/symbian/symmake.cpp @@ -933,7 +933,7 @@ void SymbianMakefileGenerator::writeMmpFileCapabilityPart(QTextStream& t) void SymbianMakefileGenerator::writeMmpFileCompilerOptionPart(QTextStream& t) { - QString cw, armcc; + QString cw, armcc, gcce; if (0 != project->values("QMAKE_CXXFLAGS.CW").size()) { cw.append(project->values("QMAKE_CXXFLAGS.CW").join(" ")); @@ -945,6 +945,11 @@ void SymbianMakefileGenerator::writeMmpFileCompilerOptionPart(QTextStream& t) armcc.append(" "); } + if (0 != project->values("QMAKE_CXXFLAGS.GCCE").size()) { + gcce.append(project->values("QMAKE_CXXFLAGS.GCCE").join(" ")); + gcce.append(" "); + } + if (0 != project->values("QMAKE_CFLAGS.CW").size()) { cw.append(project->values("QMAKE_CFLAGS.CW").join(" ")); cw.append(" "); @@ -955,11 +960,18 @@ void SymbianMakefileGenerator::writeMmpFileCompilerOptionPart(QTextStream& t) armcc.append(" "); } + if (0 != project->values("QMAKE_CFLAGS.GCCE").size()) { + gcce.append(project->values("QMAKE_CXXFLAGS.GCCE").join(" ")); + gcce.append(" "); + } + if (0 != project->values("QMAKE_CXXFLAGS").size()) { cw.append(project->values("QMAKE_CXXFLAGS").join(" ")); cw.append(" "); armcc.append(project->values("QMAKE_CXXFLAGS").join(" ")); armcc.append(" "); + gcce.append(project->values("QMAKE_CXXFLAGS").join(" ")); + gcce.append(" "); } if (0 != project->values("QMAKE_CFLAGS").size()) { @@ -967,17 +979,23 @@ void SymbianMakefileGenerator::writeMmpFileCompilerOptionPart(QTextStream& t) cw.append(" "); armcc.append(project->values("QMAKE_CFLAGS").join(" ")); armcc.append(" "); + gcce.append(project->values("QMAKE_CFLAGS").join(" ")); + gcce.append(" "); } if (!cw.isEmpty() && cw[cw.size()-1] == ' ') cw.chop(1); if (!armcc.isEmpty() && armcc[armcc.size()-1] == ' ') armcc.chop(1); + if (!gcce.isEmpty() && gcce[gcce.size()-1] == ' ') + gcce.chop(1); if (!cw.isEmpty()) - t << "OPTION" << '\t' << " CW " << cw << endl; + t << "OPTION CW " << cw << endl; if (!armcc.isEmpty()) - t << "OPTION" << '\t' << " ARMCC " << armcc << endl; + t << "OPTION ARMCC " << armcc << endl; + if (!gcce.isEmpty()) + t << "OPTION GCCE " << gcce << endl; t << endl; } |