summaryrefslogtreecommitdiff
path: root/qmake
diff options
context:
space:
mode:
authorRolland Dudemaine <rolland@ghs.com>2011-11-15 17:28:26 +0100
committerHarald Fernengel <harald.fernengel@nokia.com>2011-11-15 17:28:26 +0100
commita74ba4514efac05c7af6f4824ca622dd5d5a2698 (patch)
tree1ba1c8ee69aa72baea13af2892d5e87e9ea11df7 /qmake
parentea1f480170a285b2c46e934ce32af10f59b9d1fa (diff)
downloadqt4-tools-a74ba4514efac05c7af6f4824ca622dd5d5a2698.tar.gz
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.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/qmake/generators/integrity/gbuild.cpp b/qmake/generators/integrity/gbuild.cpp
index ffb2d0a7d0..8df858a75c 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";
}
}