forked from qt-creator/qt-creator
QmakePM: Introduce Qmake:Makefile variable
Change-Id: I21551b21ee444dbe40a939a49bddaf184b486160 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
939d0cdc2c
commit
28127bd955
@@ -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()
|
||||
|
Reference in New Issue
Block a user