forked from qt-creator/qt-creator
Project: Remove knowsAllBuildExecutables feature
This is feature is no longer needed. Change-Id: Ia0798402fcb4c06fb4dd38225359738306211176 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Alexis Jeandet <alexis.jeandet@member.fsf.org> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -58,7 +58,6 @@ CMakeProject::CMakeProject(const FilePath &fileName)
|
||||
setProjectLanguages(Core::Context(ProjectExplorer::Constants::CXX_LANGUAGE_ID));
|
||||
setDisplayName(projectDirectory().fileName());
|
||||
setCanBuildProducts();
|
||||
setKnowsAllBuildExecutables(true);
|
||||
setHasMakeInstallEquivalent(true);
|
||||
}
|
||||
|
||||
|
@@ -47,7 +47,6 @@ MesonProject::MesonProject(const Utils::FilePath &path)
|
||||
setProjectLanguages(Core::Context(ProjectExplorer::Constants::CXX_LANGUAGE_ID));
|
||||
setDisplayName(projectDirectory().fileName());
|
||||
setCanBuildProducts();
|
||||
setKnowsAllBuildExecutables(true);
|
||||
setHasMakeInstallEquivalent(true);
|
||||
}
|
||||
|
||||
|
@@ -183,7 +183,6 @@ public:
|
||||
Utils::Id m_id;
|
||||
bool m_needsInitialExpansion = false;
|
||||
bool m_canBuildProducts = false;
|
||||
bool m_knowsAllBuildExecutables = true;
|
||||
bool m_hasMakeInstallEquivalent = false;
|
||||
bool m_needsBuildConfigurations = true;
|
||||
bool m_needsDeployConfigurations = true;
|
||||
@@ -903,11 +902,6 @@ void Project::setHasMakeInstallEquivalent(bool enabled)
|
||||
d->m_hasMakeInstallEquivalent = enabled;
|
||||
}
|
||||
|
||||
void Project::setKnowsAllBuildExecutables(bool value)
|
||||
{
|
||||
d->m_knowsAllBuildExecutables = value;
|
||||
}
|
||||
|
||||
void Project::setNeedsBuildConfigurations(bool value)
|
||||
{
|
||||
d->m_needsBuildConfigurations = value;
|
||||
@@ -976,11 +970,6 @@ void Project::configureAsExampleProject(Kit * /*kit*/)
|
||||
{
|
||||
}
|
||||
|
||||
bool Project::knowsAllBuildExecutables() const
|
||||
{
|
||||
return d->m_knowsAllBuildExecutables;
|
||||
}
|
||||
|
||||
bool Project::hasMakeInstallEquivalent() const
|
||||
{
|
||||
return d->m_hasMakeInstallEquivalent;
|
||||
|
@@ -147,10 +147,6 @@ public:
|
||||
|
||||
virtual ProjectImporter *projectImporter() const;
|
||||
|
||||
// The build system is able to report all executables that can be built, independent
|
||||
// of configuration.
|
||||
bool knowsAllBuildExecutables() const;
|
||||
|
||||
virtual DeploymentKnowledge deploymentKnowledge() const { return DeploymentKnowledge::Bad; }
|
||||
bool hasMakeInstallEquivalent() const;
|
||||
virtual MakeInstallCommand makeInstallCommand(const Target *target, const QString &installRoot);
|
||||
@@ -228,7 +224,6 @@ protected:
|
||||
void removeProjectLanguage(Utils::Id id);
|
||||
void setHasMakeInstallEquivalent(bool enabled);
|
||||
|
||||
void setKnowsAllBuildExecutables(bool value);
|
||||
void setNeedsBuildConfigurations(bool value);
|
||||
void setNeedsDeployConfigurations(bool value);
|
||||
|
||||
|
@@ -684,7 +684,7 @@ void Target::updateDefaultRunConfigurations()
|
||||
present = true;
|
||||
}
|
||||
}
|
||||
if (!present && project()->knowsAllBuildExecutables())
|
||||
if (!present)
|
||||
toRemove.append(rc);
|
||||
}
|
||||
configuredCount -= toRemove.count();
|
||||
|
Reference in New Issue
Block a user