diff options
author | Tor Arne Vestbø <tor.arne.vestbo@digia.com> | 2013-10-23 14:02:59 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-10-24 20:20:59 +0200 |
commit | 1cdbe4752bef972db5471e811e9a781749cd0380 (patch) | |
tree | 63aea5a8b2c449e42994d0895a8b461042107906 /mkspecs | |
parent | c584f3d9a8e9dec113d9036729a6fbee77d4976f (diff) |
qmake: Expose qmake arguments as QMAKE_ARGS
Allows project files or mkspecs to call qmake recursively using system()
with the right arguments, which we use to fix the ios default_post.prf.
Change-Id: I90d69e2b156bb0f0af1279188b11f81c84c24fb8
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Diffstat (limited to 'mkspecs')
-rw-r--r-- | mkspecs/macx-ios-clang/features/default_post.prf | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mkspecs/macx-ios-clang/features/default_post.prf b/mkspecs/macx-ios-clang/features/default_post.prf index 0d38c058c9..5121de1d12 100644 --- a/mkspecs/macx-ios-clang/features/default_post.prf +++ b/mkspecs/macx-ios-clang/features/default_post.prf @@ -27,7 +27,11 @@ equals(TEMPLATE, app) { TARGET_XCODE_PROJECT_DIR = $${TARGET}.xcodeproj - system("cd $$system_quote($$OUT_PWD) && $${QMAKE_QMAKE} $$system_quote($$_PRO_FILE_) -spec macx-xcode") + args = + for(arg, QMAKE_ARGS): \ + args += $$system_quote($$arg) + + system("cd $$system_quote($$OUT_PWD) && $$QMAKE_QMAKE $$args $$system_quote($$_PRO_FILE_) -spec macx-xcode") # We use xcodebuild to do the actual build, but filter out the verbose # output that shows all environment variables for each build step. |