aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/genericprojectmanager
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2019-12-05 16:19:42 +0100
committerhjk <hjk@qt.io>2019-12-06 14:49:59 +0000
commit3c41b91d44838fcadfa50c4044e338d43a27cc10 (patch)
treeade3a866f972b8b4b367a21ccb88d7fa2417caff /src/plugins/genericprojectmanager
parentf0316dbae9405166c4a6981db55295440ded7962 (diff)
ProjectExplorer: Settle on fixed set of build step lists
Even if the implementation allowed different lists than 'build' and 'clean', that's the only set that has been used, ever. If really needed, this could be re-instated, but for now having them fixed removes part of the neeed for a two-phase construction and helps to simplify user code. Change-Id: I3df09a1829a7d020ef8963d358ea80f8d199ba13 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/genericprojectmanager')
-rw-r--r--src/plugins/genericprojectmanager/genericbuildconfiguration.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/plugins/genericprojectmanager/genericbuildconfiguration.cpp b/src/plugins/genericprojectmanager/genericbuildconfiguration.cpp
index b70f1e33d7..bfe729d502 100644
--- a/src/plugins/genericprojectmanager/genericbuildconfiguration.cpp
+++ b/src/plugins/genericprojectmanager/genericbuildconfiguration.cpp
@@ -60,13 +60,8 @@ GenericBuildConfiguration::GenericBuildConfiguration(Target *parent, Core::Id id
void GenericBuildConfiguration::initialize()
{
- BuildConfiguration::initialize();
-
- BuildStepList *buildSteps = stepList(ProjectExplorer::Constants::BUILDSTEPS_BUILD);
- buildSteps->appendStep(Constants::GENERIC_MS_ID);
-
- BuildStepList *cleanSteps = stepList(ProjectExplorer::Constants::BUILDSTEPS_CLEAN);
- cleanSteps->appendStep(Constants::GENERIC_MS_ID);
+ buildSteps()->appendStep(Constants::GENERIC_MS_ID);
+ cleanSteps()->appendStep(Constants::GENERIC_MS_ID);
updateCacheAndEmitEnvironmentChanged();
}