forked from qt-creator/qt-creator
Autotools: Hide AutotoolsBuildSystem definition in .cpp
Change-Id: I7ef251452c522593da955a64024068682f7fdfb1 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -1032,7 +1032,7 @@ Task Project::createProjectTask(Task::TaskType type, const QString &description)
|
||||
return Task(type, description, FilePath(), -1, Id());
|
||||
}
|
||||
|
||||
void Project::setBuildSystemCreatorImpl(const std::function<BuildSystem *(Target *)> &creator)
|
||||
void Project::setBuildSystemCreator(const std::function<BuildSystem *(Target *)> &creator)
|
||||
{
|
||||
d->m_buildSystemCreator = creator;
|
||||
}
|
||||
|
||||
@@ -234,11 +234,11 @@ protected:
|
||||
const QString &description);
|
||||
template <typename BuildSystemImpl>
|
||||
void setBuildSystemCreator() {
|
||||
setBuildSystemCreatorImpl([](Target *t) { return new BuildSystemImpl(t); });
|
||||
setBuildSystemCreator([](Target *t) { return new BuildSystemImpl(t); });
|
||||
}
|
||||
private:
|
||||
void setBuildSystemCreatorImpl(const std::function<BuildSystem *(Target *)> &creator);
|
||||
void setBuildSystemCreator(const std::function<BuildSystem *(Target *)> &creator);
|
||||
|
||||
private:
|
||||
void addTarget(std::unique_ptr<Target> &&target);
|
||||
|
||||
void addProjectLanguage(Utils::Id id);
|
||||
|
||||
Reference in New Issue
Block a user