aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/api/runenvironment.cpp
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2016-12-23 13:50:44 +0100
committerChristian Kandeler <christian.kandeler@qt.io>2016-12-23 15:52:36 +0000
commit601e29904be6188e0a15be4fdd79591c428ab80b (patch)
treea913a0dfaa38df61f38b145e683a312ef95a24ef /src/lib/corelib/api/runenvironment.cpp
parentd518178df885d2c58bf2ff5a1f45f1af8fd04ae4 (diff)
Remove usage of PropertyFinder from RunEnvironment
Change-Id: I3f15233a7dfed1cad79175989cb7310259a437b3 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/lib/corelib/api/runenvironment.cpp')
-rw-r--r--src/lib/corelib/api/runenvironment.cpp18
1 files changed, 4 insertions, 14 deletions
diff --git a/src/lib/corelib/api/runenvironment.cpp b/src/lib/corelib/api/runenvironment.cpp
index 3316f9fab..60487293b 100644
--- a/src/lib/corelib/api/runenvironment.cpp
+++ b/src/lib/corelib/api/runenvironment.cpp
@@ -51,7 +51,6 @@
#include <tools/hostosinfo.h>
#include <tools/installoptions.h>
#include <tools/preferences.h>
-#include <tools/propertyfinder.h>
#include <tools/qbsassert.h>
#include <tools/shellutils.h>
@@ -212,14 +211,9 @@ static QString findExecutable(const QStringList &fileNames)
int RunEnvironment::doRunTarget(const QString &targetBin, const QStringList &arguments)
{
- const QStringList targetOS = PropertyFinder().propertyValue(
- d->resolvedProduct->moduleProperties->value(),
- QLatin1String("qbs"),
+ const QStringList targetOS = d->resolvedProduct->moduleProperties->qbsPropertyValue(
QLatin1String("targetOS")).toStringList();
-
- const QStringList toolchain = PropertyFinder().propertyValue(
- d->resolvedProduct->moduleProperties->value(),
- QLatin1String("qbs"),
+ const QStringList toolchain = d->resolvedProduct->moduleProperties->qbsPropertyValue(
QLatin1String("toolchain")).toStringList();
QString targetExecutable = targetBin;
@@ -228,15 +222,11 @@ int RunEnvironment::doRunTarget(const QString &targetBin, const QStringList &arg
if (targetOS.contains(QLatin1String("ios"))) {
QString bundlePath = d->resolvedProduct->buildDirectory();
- const bool install = PropertyFinder().propertyValue(
- d->resolvedProduct->moduleProperties->value(),
- QLatin1String("qbs"),
+ const bool install = d->resolvedProduct->moduleProperties->qbsPropertyValue(
QLatin1String("install")).toBool();
if (install) {
bundlePath = d->installOptions.installRoot();
- const QString installDir = PropertyFinder().propertyValue(
- d->resolvedProduct->moduleProperties->value(),
- QLatin1String("qbs"),
+ const QString installDir = d->resolvedProduct->moduleProperties->qbsPropertyValue(
QLatin1String("installDir")).toString();
bundlePath += QLatin1Char('/') + installDir;
}