aboutsummaryrefslogtreecommitdiffstats
path: root/share/qbs/modules/bundle/BundleModule.qbs
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2019-10-02 16:03:25 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2019-10-04 14:05:04 +0000
commitad11bb7383bf730ca0241af24a8b4179af157c7f (patch)
tree8042111cbcf446eb2f824f73f86a3b8d394dd11e /share/qbs/modules/bundle/BundleModule.qbs
parent7822a01904d60a883cc089175d1ca5400663040c (diff)
Darwin: Adapt to Xcode 11
- xcspec files can now refer to variables in variable names, as in the following line: CONTENTS_FOLDER_PATH = "$(CONTENTS_FOLDER_PATH_SHALLOW_BUNDLE_$ (SHALLOW_BUNDLE)) - Some new environment variables have been introduced and need to be set when running our probes; e.g. "SWIFT_PLATFORM_TARGET_PREFIX". - The symbolLinkMode autotest made an invalid assumption about order of output. Change-Id: Ic845c2c4a8eafb4ece0f0bb04e6e492681a02979 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'share/qbs/modules/bundle/BundleModule.qbs')
-rw-r--r--share/qbs/modules/bundle/BundleModule.qbs6
1 files changed, 5 insertions, 1 deletions
diff --git a/share/qbs/modules/bundle/BundleModule.qbs b/share/qbs/modules/bundle/BundleModule.qbs
index f1845fe30..1e83dc458 100644
--- a/share/qbs/modules/bundle/BundleModule.qbs
+++ b/share/qbs/modules/bundle/BundleModule.qbs
@@ -63,9 +63,13 @@ Module {
"GENERATE_PKGINFO_FILE": generatePackageInfo !== undefined
? (generatePackageInfo ? "YES" : "NO")
: undefined,
+ "IS_MACCATALYST": "NO",
+ "LD_RUNPATH_SEARCH_PATHS_NO": [],
"PRODUCT_NAME": product.targetName,
"LOCAL_APPS_DIR": Environment.getEnv("HOME") + "/Applications",
"LOCAL_LIBRARY_DIR": Environment.getEnv("HOME") + "/Library",
+ "SWIFT_PLATFORM_TARGET_PREFIX": isMacOs ? "macos"
+ : qbs.targetOS.contains("ios") ? "ios" : "",
"TARGET_BUILD_DIR": product.buildDirectory,
"WRAPPER_NAME": bundleName,
"WRAPPER_EXTENSION": extension
@@ -427,7 +431,7 @@ Module {
|| {};
for (key in partialInfoPlist) {
if (partialInfoPlist.hasOwnProperty(key)
- && !aggregatePlist.hasOwnProperty(key))
+ && aggregatePlist[key] === undefined)
aggregatePlist[key] = partialInfoPlist[key];
}
}