make default_pro.prf advertize dynamically created .qmake.cache

moving the detection of .qmake.cache to the qmake startup had the side
effect that a suddenly popping up cache would not be picked up by
nested projects any more.
this is not supposed to work in the first place, but the syncqt hack for
building against non-installed modules relies on it. until we have
cleaned that up properly, we need a way to notify qmake about the
appearance of the cache file.

Change-Id: I450646b936e3bb2ef2ed3aba05df58e521ccdc61
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
This commit is contained in:
Oswald Buddenhagen 2012-03-01 14:34:48 +01:00 committed by Qt by Nokia
parent 2658a52017
commit 4494ddfec7
2 changed files with 5 additions and 0 deletions

View File

@ -48,4 +48,7 @@ CONFIG = lex yacc warn_on debug uic resources $$CONFIG
}
unset(QTFWD)
unset(PRO_BASENAME)
# Let qmake know about the unexpectedly appearing cache file.
_QMAKE_CACHE_ = $$QMAKE_SYNCQT_OUTDIR/.qmake.cache
}

View File

@ -1177,6 +1177,8 @@ QMakeProject::parse(const QString &t, QHash<QString, QStringList> &place, int nu
}
if(var == "REQUIRES") // special case to get communicated to backends!
doProjectCheckReqs(vallist, place);
else if (var == "_QMAKE_CACHE_")
Option::mkfile::cachefile = varlist.isEmpty() ? QString() : varlist.at(0);
}
return true;
}