summaryrefslogtreecommitdiffstats
path: root/mkspecs/macx-ios-clang/features/sdk.prf
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@digia.com>2015-02-13 15:25:06 +0100
committerTor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>2015-03-06 19:01:41 +0000
commit4fb2014657c1fcd74ee4cd7f669173eace4868e3 (patch)
treec6d45e32d0aa4605c43cef92788f39f776e7aa40 /mkspecs/macx-ios-clang/features/sdk.prf
parent006fc32ca7ab5a837ef7b4d5bb4debb753414675 (diff)
iOS: Resolve correct SDK as part of sdk.prf instead of default_post.prf
The latter location resulted in the wrong SDK paths being resolved if sdk.prf was loaded before default_post.prf through an explicit load(sdk) call. Change-Id: Ia443260572fbdf5f9ed1daf558c2962703274e32 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@theqtcompany.com> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>
Diffstat (limited to 'mkspecs/macx-ios-clang/features/sdk.prf')
-rw-r--r--mkspecs/macx-ios-clang/features/sdk.prf11
1 files changed, 11 insertions, 0 deletions
diff --git a/mkspecs/macx-ios-clang/features/sdk.prf b/mkspecs/macx-ios-clang/features/sdk.prf
index 607a71bb26..003789b5be 100644
--- a/mkspecs/macx-ios-clang/features/sdk.prf
+++ b/mkspecs/macx-ios-clang/features/sdk.prf
@@ -1,3 +1,14 @@
+# In case the user sets the SDK manually
+contains(QMAKE_MAC_SDK, ^iphonesimulator.*) {
+ iphonesimulator_and_iphoneos: \
+ error("iOS simulator is handled automatically for iphonesimulator_and_iphoneos")
+
+ CONFIG += iphonesimulator
+}
+
+iphonesimulator_and_iphoneos:iphonesimulator: \
+ QMAKE_MAC_SDK ~= s,^iphoneos,iphonesimulator,
+
load(sdk)
lessThan(QMAKE_MAC_SDK_VERSION, "8.0"): \