summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@digia.com>2013-10-23 14:02:59 +0200
committerOswald Buddenhagen <oswald.buddenhagen@digia.com>2013-10-29 12:26:37 +0100
commit561ee92ede76bdcdba9ce6dbe42ec3de596d4117 (patch)
tree4e1187e8dbbfbaa058773a1f63dd108845244076 /src/shared
parent612bc8ef85de467931f210174ca797497a1b769c (diff)
downloadqt-creator-561ee92ede76bdcdba9ce6dbe42ec3de596d4117.tar.gz
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> (cherry picked from qtbase/1cdbe4752bef972db5471e811e9a781749cd0380) Reviewed-by: Daniel Teske <daniel.teske@digia.com>
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/proparser/qmakeevaluator.cpp2
-rw-r--r--src/shared/proparser/qmakeglobals.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/shared/proparser/qmakeevaluator.cpp b/src/shared/proparser/qmakeevaluator.cpp
index d08282d4b1..0df4406391 100644
--- a/src/shared/proparser/qmakeevaluator.cpp
+++ b/src/shared/proparser/qmakeevaluator.cpp
@@ -975,6 +975,8 @@ void QMakeEvaluator::loadDefaults()
vars[ProKey("_DATE_")] << ProString(QDateTime::currentDateTime().toString());
if (!m_option->qmake_abslocation.isEmpty())
vars[ProKey("QMAKE_QMAKE")] << ProString(m_option->qmake_abslocation);
+ if (!m_option->qmake_args.isEmpty())
+ vars[ProKey("QMAKE_ARGS")] = ProStringList(m_option->qmake_args);
#if defined(Q_OS_WIN32)
vars[ProKey("QMAKE_HOST.os")] << ProString("Windows");
diff --git a/src/shared/proparser/qmakeglobals.h b/src/shared/proparser/qmakeglobals.h
index 4e45f3fb6a..0f2b37ed26 100644
--- a/src/shared/proparser/qmakeglobals.h
+++ b/src/shared/proparser/qmakeglobals.h
@@ -105,6 +105,7 @@ public:
QProcessEnvironment environment;
#endif
QString qmake_abslocation;
+ QStringList qmake_args;
QString qmakespec, xqmakespec;
QString user_template, user_template_prefix;