summaryrefslogtreecommitdiff
path: root/share/qbs/modules/xcode
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2017-11-09 16:10:24 +0100
committerChristian Kandeler <christian.kandeler@qt.io>2017-11-20 09:43:06 +0000
commit2ff14a89f8bd97e7c355596db548c8556f8cbdfb (patch)
tree51d626570016c133e1867458983743064b698687 /share/qbs/modules/xcode
parent9b838c0dc6ee80f5dbd60819a22a569d89ec014c (diff)
downloadqbs-2ff14a89f8bd97e7c355596db548c8556f8cbdfb.tar.gz
Make Module.setup{Build,Run}Environment first-class citizens
They did not have the project and product variables available, and they accessed module properties in a way that made it look as if they were normal properties rather than scripts, which was misleading. Now everything works the same as in Rule scripts and JS commands. Task-number: QBS-744 Change-Id: I11d70876185d528282a56747747dd8310a77fbc4 Reviewed-by: Jake Petroules <jake.petroules@qt.io>
Diffstat (limited to 'share/qbs/modules/xcode')
-rw-r--r--share/qbs/modules/xcode/xcode.qbs10
1 files changed, 5 insertions, 5 deletions
diff --git a/share/qbs/modules/xcode/xcode.qbs b/share/qbs/modules/xcode/xcode.qbs
index 60f49fe71..0df7f5204 100644
--- a/share/qbs/modules/xcode/xcode.qbs
+++ b/share/qbs/modules/xcode/xcode.qbs
@@ -223,14 +223,14 @@ Module {
}
setupBuildEnvironment: {
- var v = new ModUtils.EnvironmentVariable("PATH", qbs.pathListSeparator, false);
- v.prepend(platformPath + "/Developer/usr/bin");
- v.prepend(developerPath + "/usr/bin");
+ var v = new ModUtils.EnvironmentVariable("PATH", product.qbs.pathListSeparator, false);
+ v.prepend(product.xcode.platformPath + "/Developer/usr/bin");
+ v.prepend(product.xcode.developerPath + "/usr/bin");
v.set();
- for (var key in buildEnv) {
+ for (var key in product.xcode.buildEnv) {
v = new ModUtils.EnvironmentVariable(key);
- v.value = buildEnv[key];
+ v.value = product.xcode.buildEnv[key];
v.set();
}
}