aboutsummaryrefslogtreecommitdiffstats
path: root/share/qbs/imports/qbs/DarwinTools
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@petroules.com>2015-08-07 15:29:28 -0700
committerJake Petroules <jake.petroules@petroules.com>2015-08-10 10:17:49 +0000
commite8fb0b0b9bd6449738858453332432df155afeaf (patch)
tree9f50d340d45188de827dfd8622e604d3cb1ee303 /share/qbs/imports/qbs/DarwinTools
parent2569a7420415a15de33319a96a18fff965ddaea2 (diff)
Make the xcode module an optional dependency of the ib module.
It's not strictly required since ibtool and actool are installed at /usr/bin if the command line tools package is installed. Change-Id: Ia422da2b2e32fd4252e0ee11c9b257b4f27e3a05 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Diffstat (limited to 'share/qbs/imports/qbs/DarwinTools')
-rw-r--r--share/qbs/imports/qbs/DarwinTools/darwin-tools.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/share/qbs/imports/qbs/DarwinTools/darwin-tools.js b/share/qbs/imports/qbs/DarwinTools/darwin-tools.js
index bca77ef4b..e8426ab06 100644
--- a/share/qbs/imports/qbs/DarwinTools/darwin-tools.js
+++ b/share/qbs/imports/qbs/DarwinTools/darwin-tools.js
@@ -51,6 +51,18 @@ function appleDeviceNumber(deviceName) {
}
/**
+ * Returns the list of target devices available for the given qbs target OS list.
+ */
+function targetDevices(targetOS) {
+ if (targetOS.contains("osx"))
+ return ["mac"];
+ if (targetOS.contains("ios"))
+ return ["iphone", "ipad"];
+ if (targetOS.contains("watchos"))
+ return ["watch"];
+}
+
+/**
* Returns the TARGETED_DEVICE_FAMILY string given a list of target device names.
*/
function targetedDeviceFamily(deviceNames) {