forked from qt-creator/qt-creator
Autotools: Use new setup scheme for build steps
Change-Id: I4c228a1324e5d426ea2c288f105df2c097a972c7 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#include "autotoolsprojectmanagertr.h"
|
||||
|
||||
#include <projectexplorer/abstractprocessstep.h>
|
||||
#include <projectexplorer/buildstep.h>
|
||||
#include <projectexplorer/processparameters.h>
|
||||
#include <projectexplorer/project.h>
|
||||
#include <projectexplorer/projectexplorerconstants.h>
|
||||
@@ -15,8 +16,6 @@
|
||||
#include <utils/aspects.h>
|
||||
#include <utils/qtcprocess.h>
|
||||
|
||||
#include <QDateTime>
|
||||
|
||||
using namespace ProjectExplorer;
|
||||
using namespace Utils;
|
||||
|
||||
@@ -111,12 +110,21 @@ Tasking::GroupItem ConfigureStep::runRecipe()
|
||||
* The factory is used to create instances of ConfigureStep.
|
||||
*/
|
||||
|
||||
ConfigureStepFactory::ConfigureStepFactory()
|
||||
class ConfigureStepFactory final : public BuildStepFactory
|
||||
{
|
||||
registerStep<ConfigureStep>(Constants::CONFIGURE_STEP_ID);
|
||||
setDisplayName(Tr::tr("Configure", "Display name for AutotoolsProjectManager::ConfigureStep id."));
|
||||
setSupportedProjectType(Constants::AUTOTOOLS_PROJECT_ID);
|
||||
setSupportedStepList(ProjectExplorer::Constants::BUILDSTEPS_BUILD);
|
||||
public:
|
||||
ConfigureStepFactory()
|
||||
{
|
||||
registerStep<ConfigureStep>(Constants::CONFIGURE_STEP_ID);
|
||||
setDisplayName(Tr::tr("Configure", "Display name for AutotoolsProjectManager::ConfigureStep id."));
|
||||
setSupportedProjectType(Constants::AUTOTOOLS_PROJECT_ID);
|
||||
setSupportedStepList(ProjectExplorer::Constants::BUILDSTEPS_BUILD);
|
||||
}
|
||||
};
|
||||
|
||||
void setupConfigureStep()
|
||||
{
|
||||
static ConfigureStepFactory theConfigureStepFactory;
|
||||
}
|
||||
|
||||
} // AutotoolsProjectManager::Internal
|
||||
|
||||
Reference in New Issue
Block a user