summaryrefslogtreecommitdiffstats
path: root/mkspecs/features/uikit
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@qt.io>2016-08-30 10:35:50 -0700
committerJake Petroules <jake.petroules@qt.io>2016-09-05 15:24:54 +0000
commitbeaa792e2021aad52ecd98a0e0f0f48571069dba (patch)
tree610079d8c09e20ecd86d5b7ce3bce5983316c093 /mkspecs/features/uikit
parent603628b1ea1a4003f6295fd97025bd38520af143 (diff)
Make TARGETED_DEVICE_FAMILY variable platform independent
This reduces unnecessary OS conditions in qmake since these platforms are mutually exclusive, and also opens up their potential for use on future devices (like carOS(?), which is device idiom '5'). This is also more similar to what Xcode does, as the TARGETED_DEVICE_FAMILY variable is not platform specific. Change-Id: I29d209cd8e0779f492bda829008264773e13c75c Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'mkspecs/features/uikit')
-rw-r--r--mkspecs/features/uikit/default_post.prf9
1 files changed, 6 insertions, 3 deletions
diff --git a/mkspecs/features/uikit/default_post.prf b/mkspecs/features/uikit/default_post.prf
index f34d0a9f2c..9a231ffc84 100644
--- a/mkspecs/features/uikit/default_post.prf
+++ b/mkspecs/features/uikit/default_post.prf
@@ -19,10 +19,13 @@ equals(TEMPLATE, app):qt {
load(default_post)
macx-xcode {
+ ios:isEmpty(QMAKE_APPLE_TARGETED_DEVICE_FAMILY):!isEmpty(QMAKE_IOS_TARGETED_DEVICE_FAMILY) {
+ warning("QMAKE_IOS_TARGETED_DEVICE_FAMILY is deprecated; use QMAKE_APPLE_TARGETED_DEVICE_FAMILY")
+ QMAKE_APPLE_TARGETED_DEVICE_FAMILY = $$QMAKE_IOS_TARGETED_DEVICE_FAMILY
+ }
+
device_family.name = TARGETED_DEVICE_FAMILY
- ios: device_family.value = $$QMAKE_IOS_TARGETED_DEVICE_FAMILY
- tvos: device_family.value = $$QMAKE_TVOS_TARGETED_DEVICE_FAMILY
- watchos: device_family.value = $$QMAKE_WATCHOS_TARGETED_DEVICE_FAMILY
+ device_family.value = $$QMAKE_APPLE_TARGETED_DEVICE_FAMILY
QMAKE_MAC_XCODE_SETTINGS += device_family
ios {