forked from qt-creator/qt-creator
ProjectExplorer: Enable factories to autodetect a specific toolchain
This is necessary to auto-detect the toolchain e.g. found in an existing cmake or qbs build directory. Change-Id: I1405d1337855d55fa0145e8b50a5864ff0d4231b Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -319,6 +319,13 @@ QList<ToolChain *> ToolChainFactory::autoDetect(const QList<ToolChain *> &alread
|
||||
return QList<ToolChain *>();
|
||||
}
|
||||
|
||||
QList<ToolChain *> ToolChainFactory::autoDetect(const Utils::FileName &compilerPath, const Core::Id &language)
|
||||
{
|
||||
Q_UNUSED(compilerPath);
|
||||
Q_UNUSED(language);
|
||||
return QList<ToolChain *>();
|
||||
}
|
||||
|
||||
bool ToolChainFactory::canCreate()
|
||||
{
|
||||
return false;
|
||||
|
||||
@@ -170,6 +170,7 @@ public:
|
||||
QString displayName() const { return m_displayName; }
|
||||
|
||||
virtual QList<ToolChain *> autoDetect(const QList<ToolChain *> &alreadyKnown);
|
||||
virtual QList<ToolChain *> autoDetect(const Utils::FileName &compilerPath, const Core::Id &language);
|
||||
|
||||
virtual bool canCreate();
|
||||
virtual ToolChain *create(Core::Id l);
|
||||
|
||||
Reference in New Issue
Block a user