summaryrefslogtreecommitdiffstats
path: root/mkspecs/features/ios
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@digia.com>2013-05-08 12:21:05 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-05-08 14:07:41 +0200
commit1308aa25fbf45995eac075688165e42d9e1c90f5 (patch)
tree305f432e77adc393f1bf8b2e42ccea96ddfd4606 /mkspecs/features/ios
parent032befa819cfb335876a08ca7aa5acab6d7a2f17 (diff)
Cache Xcode and SDK settings in .qmake.cache if it exists
The Xcode and SDK settings are expensive to resolve, as we're using system() calls to resolve them. We now try to detect the presence of a .qmake.cache file (and inform the user that creating one would be a good idea), and use the file to cache the various settings after resolving them. The Xcode logic had to be moved form xcode.conf as part of the mkspec, into default_pre/post.prf, so that we could cache() the resolved values. Task-number: QTBUG-30586 Change-Id: Ib5368cfee6f7e4a4a33f6be70d0e20d96896fe56 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Diffstat (limited to 'mkspecs/features/ios')
-rw-r--r--mkspecs/features/ios/default_pre.prf6
1 files changed, 6 insertions, 0 deletions
diff --git a/mkspecs/features/ios/default_pre.prf b/mkspecs/features/ios/default_pre.prf
index e2956bd77d..fa0245aa2c 100644
--- a/mkspecs/features/ios/default_pre.prf
+++ b/mkspecs/features/ios/default_pre.prf
@@ -2,3 +2,9 @@
unset(MAKEFILE_GENERATOR)
load(default_pre)
+
+# Check for supported Xcode versions
+lessThan(QMAKE_XCODE_VERSION, "4.3"): \
+ error("This mkspec requires Xcode 4.3 or later")
+!lessThan(QMAKE_XCODE_VERSION, "4.7"): \
+ warning("The version of Xcode installed on this system is not recognized - custom compiler settings may be necessary")