diff options
author | Rolland Dudemaine <rolland@ghs.com> | 2011-11-15 16:28:26 (GMT) |
---|---|---|
committer | Harald Fernengel <harald.fernengel@nokia.com> | 2011-11-15 16:28:26 (GMT) |
commit | a74ba4514efac05c7af6f4824ca622dd5d5a2698 (patch) | |
tree | 1ba1c8ee69aa72baea13af2892d5e87e9ea11df7 /qmake | |
parent | ea1f480170a285b2c46e934ce32af10f59b9d1fa (diff) | |
download | Qt-a74ba4514efac05c7af6f4824ca622dd5d5a2698.zip Qt-a74ba4514efac05c7af6f4824ca622dd5d5a2698.tar.gz Qt-a74ba4514efac05c7af6f4824ca622dd5d5a2698.tar.bz2 |
Use the project root from .gpj project files, instead of local path.
Merge-request: 1438
Reviewed-by: Harald Fernengel <harald.fernengel@nokia.com>
Diffstat (limited to 'qmake')
-rw-r--r-- | qmake/generators/integrity/gbuild.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/qmake/generators/integrity/gbuild.cpp b/qmake/generators/integrity/gbuild.cpp index ffb2d0a..8df858a 100644 --- a/qmake/generators/integrity/gbuild.cpp +++ b/qmake/generators/integrity/gbuild.cpp @@ -259,6 +259,8 @@ GBuildMakefileGenerator::writeMakefile(QTextStream &text) t << "\t:sourceDir=." << "\n"; t << "\t:outputDir=work" << relpath << "\n"; + t << "\t-I${%expand_path(.)}/work" << relpath << "\n"; + t << "\t--cxx_include_directory ${%expand_path(.)}/work" << relpath << "\n"; if (filename.endsWith("projects.gpj")) { t << "\t:sourceDir=work\n"; t << "\t-Iwork\n"; @@ -336,7 +338,7 @@ GBuildMakefileGenerator::writeMakefile(QTextStream &text) t << "\t-name " << tmpstr << "\n"; tmpstr.insert(tmpstr.lastIndexOf(QDir::separator()) + 1, "qrc_"); tmpstr.append(".cpp"); - t << "\t-o work/" << tmpstr << "\n"; + t << "\t-o work/" << relpath << QDir::separator() << tmpstr << "\n"; } } { @@ -348,7 +350,7 @@ GBuildMakefileGenerator::writeMakefile(QTextStream &text) tmpstr.insert(tmpstr.lastIndexOf(QDir::separator()) + 1, "ui_"); tmpstr.remove(".ui"); tmpstr.append(".h"); - t << "\t-o work/" << tmpstr << "\n"; + t << "\t-o work/" << relpath << QDir::separator() << tmpstr << "\n"; } } @@ -371,7 +373,7 @@ GBuildMakefileGenerator::writeMakefile(QTextStream &text) { QStringList &l = project->values("GENERATED_SOURCES"); for (QStringList::Iterator it = l.begin(); it != l.end(); ++it) { - t << "work/" << (*it).section(QDir::separator(), -1) << "\n"; + t << "work/" << relpath << QDir::separator() << (*it).section(QDir::separator(), -1) << "\n"; } } |