diff options
author | Tor Arne Vestbø <tor.arne.vestbo@digia.com> | 2013-05-08 12:21:05 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-05-08 14:07:41 +0200 |
commit | 1308aa25fbf45995eac075688165e42d9e1c90f5 (patch) | |
tree | 305f432e77adc393f1bf8b2e42ccea96ddfd4606 /mkspecs/features/mac/default_post.prf | |
parent | 032befa819cfb335876a08ca7aa5acab6d7a2f17 (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/mac/default_post.prf')
-rw-r--r-- | mkspecs/features/mac/default_post.prf | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mkspecs/features/mac/default_post.prf b/mkspecs/features/mac/default_post.prf index 437e3d93e4..0538a81771 100644 --- a/mkspecs/features/mac/default_post.prf +++ b/mkspecs/features/mac/default_post.prf @@ -16,6 +16,14 @@ qt:!isEmpty(QT_CONFIG) { } } +isEmpty(_QMAKE_CACHE_) { + warning("No .qmake.cache is present. This significantly slows down qmake with this makespec.") + warning("Call 'cache()' in the top-level project file to rectify this problem.") +} else { + cache(QMAKE_XCODE_DEVELOPER_PATH) + cache(QMAKE_XCODE_VERSION) +} + # Ensure that we process sdk.prf first, as it will update QMAKE_CXX # and friends that other features/extra compilers may depend on. sdk: load(sdk) |