QmakePM: Introduce Qmake:Makefile variable

Change-Id: I21551b21ee444dbe40a939a49bddaf184b486160
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Orgad Shaneh
2017-03-19 00:27:32 +02:00
committed by Orgad Shaneh
parent 939d0cdc2c
commit 28127bd955

View File

@@ -156,6 +156,13 @@ void QmakeBuildConfiguration::ctor()
this, &QmakeBuildConfiguration::emitProFileEvaluateNeeded);
connect(target(), &Target::kitChanged,
this, &QmakeBuildConfiguration::kitChanged);
MacroExpander *expander = macroExpander();
expander->registerVariable("Qmake:Makefile", "Qmake makefile", [this]() -> QString {
const QString file = makefile();
if (!file.isEmpty())
return file;
return QLatin1String("Makefile");
});
}
void QmakeBuildConfiguration::kitChanged()