diff options
author | hjk <hjk@qt.io> | 2019-12-05 16:19:42 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2019-12-06 14:49:59 +0000 |
commit | 3c41b91d44838fcadfa50c4044e338d43a27cc10 (patch) | |
tree | ade3a866f972b8b4b367a21ccb88d7fa2417caff /src/plugins/autotoolsprojectmanager | |
parent | f0316dbae9405166c4a6981db55295440ded7962 (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/autotoolsprojectmanager')
-rw-r--r-- | src/plugins/autotoolsprojectmanager/autotoolsbuildconfiguration.cpp | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/plugins/autotoolsprojectmanager/autotoolsbuildconfiguration.cpp b/src/plugins/autotoolsprojectmanager/autotoolsbuildconfiguration.cpp index 42f665b0e6..0950ae46bc 100644 --- a/src/plugins/autotoolsprojectmanager/autotoolsbuildconfiguration.cpp +++ b/src/plugins/autotoolsprojectmanager/autotoolsbuildconfiguration.cpp @@ -57,27 +57,22 @@ AutotoolsBuildConfiguration::AutotoolsBuildConfiguration(Target *parent, Core::I void AutotoolsBuildConfiguration::initialize() { - BuildConfiguration::initialize(); - - BuildStepList *buildSteps = stepList(BUILDSTEPS_BUILD); - // ### Build Steps Build ### // autogen.sh or autoreconf QFile autogenFile(target()->project()->projectDirectory().toString() + "/autogen.sh"); if (autogenFile.exists()) - buildSteps->appendStep(Constants::AUTOGEN_STEP_ID); + buildSteps()->appendStep(Constants::AUTOGEN_STEP_ID); else - buildSteps->appendStep(Constants::AUTORECONF_STEP_ID); + buildSteps()->appendStep(Constants::AUTORECONF_STEP_ID); // ./configure. - buildSteps->appendStep(Constants::CONFIGURE_STEP_ID); + buildSteps()->appendStep(Constants::CONFIGURE_STEP_ID); // make - buildSteps->appendStep(Constants::MAKE_STEP_ID); + buildSteps()->appendStep(Constants::MAKE_STEP_ID); // ### Build Steps Clean ### - BuildStepList *cleanSteps = stepList(BUILDSTEPS_CLEAN); - cleanSteps->appendStep(Constants::MAKE_STEP_ID); + cleanSteps()->appendStep(Constants::MAKE_STEP_ID); } |