aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/tools/installoptions.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@theqtcompany.com>2015-02-05 17:22:40 +0100
committerChristian Kandeler <christian.kandeler@theqtcompany.com>2015-02-06 09:01:07 +0000
commit351303d115d69c9a5809d40afbaa166041a804ca (patch)
tree49d276d44c9418108e33f781b55a3f96cbe32a73 /src/lib/corelib/tools/installoptions.cpp
parent5a8a2764a669a4deff9426be42ebb1542c71da65 (diff)
Take qbs.installRoot into account in ProductInstaller.
This is now the default value. Also, fix property look-up in ProductInstaller; PropertyFinder needs a top-level "modules" key which the project configuration does not have. Change-Id: Ibfd7296165a4f3d50b7469fcd1ce957fb89c806c Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
Diffstat (limited to 'src/lib/corelib/tools/installoptions.cpp')
-rw-r--r--src/lib/corelib/tools/installoptions.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/corelib/tools/installoptions.cpp b/src/lib/corelib/tools/installoptions.cpp
index cd20a47a3..fe8c3efcb 100644
--- a/src/lib/corelib/tools/installoptions.cpp
+++ b/src/lib/corelib/tools/installoptions.cpp
@@ -59,12 +59,14 @@ QString effectiveInstallRoot(const InstallOptions &options, const TopLevelProjec
if (!installRoot.isEmpty())
return installRoot;
+ QVariantMap configForPropertyFinder;
+ configForPropertyFinder.insert(QLatin1String("modules"), project->buildConfiguration());
if (options.installIntoSysroot()) {
- return PropertyFinder().propertyValue(project->buildConfiguration(),
+ return PropertyFinder().propertyValue(configForPropertyFinder,
QLatin1String("qbs"), QLatin1String("sysroot")).toString();
}
-
- return project->buildDirectory + QLatin1Char('/') + InstallOptions::defaultInstallRoot();
+ return PropertyFinder().propertyValue(configForPropertyFinder,
+ QLatin1String("qbs"), QLatin1String("installRoot")).toString();
}
} // namespace Internal