aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/autotoolsprojectmanager/autogenstep.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/autotoolsprojectmanager/autogenstep.cpp')
-rw-r--r--src/plugins/autotoolsprojectmanager/autogenstep.cpp24
1 files changed, 9 insertions, 15 deletions
diff --git a/src/plugins/autotoolsprojectmanager/autogenstep.cpp b/src/plugins/autotoolsprojectmanager/autogenstep.cpp
index 07bc98024e..3b093dc36a 100644
--- a/src/plugins/autotoolsprojectmanager/autogenstep.cpp
+++ b/src/plugins/autotoolsprojectmanager/autogenstep.cpp
@@ -60,7 +60,7 @@ class AutogenStep : public AbstractProcessStep
Q_DECLARE_TR_FUNCTIONS(AutotoolsProjectManager::Internal::AutogenStep)
public:
- AutogenStep(BuildStepList *bsl, Core::Id id);
+ AutogenStep(BuildStepList *bsl, Utils::Id id);
private:
bool init() override;
@@ -70,7 +70,7 @@ private:
bool m_runAutogen = false;
};
-AutogenStep::AutogenStep(BuildStepList *bsl, Core::Id id) : AbstractProcessStep(bsl, id)
+AutogenStep::AutogenStep(BuildStepList *bsl, Utils::Id id) : AbstractProcessStep(bsl, id)
{
setDefaultDisplayName(tr("Autogen"));
@@ -86,12 +86,10 @@ AutogenStep::AutogenStep(BuildStepList *bsl, Core::Id id) : AbstractProcessStep(
});
setSummaryUpdater([this] {
- BuildConfiguration *bc = buildConfiguration();
-
ProcessParameters param;
- param.setMacroExpander(bc->macroExpander());
- param.setEnvironment(bc->environment());
- param.setWorkingDirectory(bc->target()->project()->projectDirectory());
+ param.setMacroExpander(macroExpander());
+ param.setEnvironment(buildEnvironment());
+ param.setWorkingDirectory(project()->projectDirectory());
param.setCommandLine({FilePath::fromString("./autogen.sh"),
m_additionalArgumentsAspect->value(),
CommandLine::Raw});
@@ -102,12 +100,10 @@ AutogenStep::AutogenStep(BuildStepList *bsl, Core::Id id) : AbstractProcessStep(
bool AutogenStep::init()
{
- BuildConfiguration *bc = buildConfiguration();
-
ProcessParameters *pp = processParameters();
- pp->setMacroExpander(bc->macroExpander());
- pp->setEnvironment(bc->environment());
- pp->setWorkingDirectory(bc->target()->project()->projectDirectory());
+ pp->setMacroExpander(macroExpander());
+ pp->setEnvironment(buildEnvironment());
+ pp->setWorkingDirectory(project()->projectDirectory());
pp->setCommandLine({FilePath::fromString("./autogen.sh"),
m_additionalArgumentsAspect->value(),
CommandLine::Raw});
@@ -117,10 +113,8 @@ bool AutogenStep::init()
void AutogenStep::doRun()
{
- BuildConfiguration *bc = buildConfiguration();
-
// Check whether we need to run autogen.sh
- const QString projectDir = bc->target()->project()->projectDirectory().toString();
+ const QString projectDir = project()->projectDirectory().toString();
const QFileInfo configureInfo(projectDir + "/configure");
const QFileInfo configureAcInfo(projectDir + "/configure.ac");
const QFileInfo makefileAmInfo(projectDir + "/Makefile.am");