summaryrefslogtreecommitdiffstats
path: root/qmake/library/qmakeglobals.h
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@qt.io>2017-02-03 18:12:52 +0100
committerOswald Buddenhagen <oswald.buddenhagen@qt.io>2017-02-06 16:34:17 +0000
commit4adc1012e19f5e12ab2fb96effc9ea88d2a05eda (patch)
tree585b19485d52f94295adc64c08bed44a95a11f8d /qmake/library/qmakeglobals.h
parentad51c8aa0a00c1bbec7386472ca454079e284051 (diff)
add a bunch of complementary options to -after
in particular, -before (just for symmetry, as it's the default), -early (the actual objective), and -late (for symmetry again). Change-Id: I274303582a348b052c3e5106ff360ab4fd7d4ee2 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'qmake/library/qmakeglobals.h')
-rw-r--r--qmake/library/qmakeglobals.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/qmake/library/qmakeglobals.h b/qmake/library/qmakeglobals.h
index 86b1d28da4..000f685b73 100644
--- a/qmake/library/qmakeglobals.h
+++ b/qmake/library/qmakeglobals.h
@@ -50,6 +50,8 @@ QT_BEGIN_NAMESPACE
class QMakeEvaluator;
+enum QMakeEvalPhase { QMakeEvalEarly, QMakeEvalBefore, QMakeEvalAfter, QMakeEvalLate };
+
class QMakeBaseKey
{
public:
@@ -83,12 +85,13 @@ public:
class QMAKE_EXPORT QMakeCmdLineParserState
{
public:
- QMakeCmdLineParserState(const QString &_pwd) : pwd(_pwd), after(false) {}
+ QMakeCmdLineParserState(const QString &_pwd) : pwd(_pwd), phase(QMakeEvalBefore) {}
QString pwd;
- QStringList precmds, preconfigs, postcmds, postconfigs, extraargs;
- bool after;
+ QStringList cmds[4], configs[4];
+ QStringList extraargs;
+ QMakeEvalPhase phase;
- void flush() { after = false; }
+ void flush() { phase = QMakeEvalBefore; }
};
class QMAKE_EXPORT QMakeGlobals
@@ -110,7 +113,7 @@ public:
QString qtconf;
QString qmakespec, xqmakespec;
QString user_template, user_template_prefix;
- QString precmds, postcmds;
+ QString extra_cmds[4];
#ifdef PROEVALUATOR_DEBUG
int debugLevel;