give location information for QMAKE_SUBSTITUTES conditionals

Change-Id: I9b6bee252d4ed4bf263394ace29a4fb3b324a8cd
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
This commit is contained in:
Oswald Buddenhagen 2012-08-28 20:53:25 +02:00 committed by Qt by Nokia
parent 0f53c2c4e8
commit 3322759b49
2 changed files with 4 additions and 4 deletions

View File

@ -538,7 +538,7 @@ MakefileGenerator::init()
if (line.startsWith("!!IF ")) {
if (state.isEmpty() || state.top() == IN_CONDITION) {
QString test = line.mid(5, line.length()-(5+1));
if (project->test(test))
if (project->test(test, inn, count))
state.push(IN_CONDITION);
else
state.push(PENDING_CONDITION);
@ -551,7 +551,7 @@ MakefileGenerator::init()
in.fileName().toLatin1().constData(), count);
} else if (state.top() == PENDING_CONDITION) {
QString test = line.mid(7, line.length()-(7+1));
if (project->test(test)) {
if (project->test(test, inn, count)) {
state.pop();
state.push(IN_CONDITION);
}

View File

@ -64,8 +64,8 @@ public:
ProString expand(const QString &v, const QString &file, int line);
QStringList expand(const ProKey &func, const QList<ProStringList> &args);
bool test(const QString &v)
{ m_current.clear(); return evaluateConditional(v, QStringLiteral("(generator)")); }
bool test(const QString &v, const QString &file, int line)
{ m_current.clear(); return evaluateConditional(v, file, line); }
bool test(const ProKey &func, const QList<ProStringList> &args);
bool isSet(const ProKey &v) const { return m_valuemapStack.first().contains(v); }