forked from qt-creator/qt-creator
BuildManager: Provide context of earlier build steps to init
This information can be used to get information from earlier steps, which e.g. queried for android devices to deploy to. Change-Id: Iefe1c9443915cb6211f86f98ff7aaf3cb75145ba Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
This commit is contained in:
@@ -152,7 +152,7 @@ void AutogenStep::ctor()
|
||||
setDefaultDisplayName(tr("Autogen"));
|
||||
}
|
||||
|
||||
bool AutogenStep::init()
|
||||
bool AutogenStep::init(QList<const BuildStep *> &earlierSteps)
|
||||
{
|
||||
BuildConfiguration *bc = buildConfiguration();
|
||||
|
||||
@@ -165,7 +165,7 @@ bool AutogenStep::init()
|
||||
pp->setArguments(additionalArguments());
|
||||
pp->resolveAll();
|
||||
|
||||
return AbstractProcessStep::init();
|
||||
return AbstractProcessStep::init(earlierSteps);
|
||||
}
|
||||
|
||||
void AutogenStep::run(QFutureInterface<bool> &interface)
|
||||
|
||||
@@ -96,7 +96,7 @@ class AutogenStep : public ProjectExplorer::AbstractProcessStep
|
||||
public:
|
||||
explicit AutogenStep(ProjectExplorer::BuildStepList *bsl);
|
||||
|
||||
bool init() override;
|
||||
bool init(QList<const BuildStep *> &earlierSteps) override;
|
||||
void run(QFutureInterface<bool> &interface) override;
|
||||
ProjectExplorer::BuildStepConfigWidget *createConfigWidget() override;
|
||||
bool immutable() const override;
|
||||
|
||||
@@ -151,7 +151,7 @@ void AutoreconfStep::ctor()
|
||||
setDefaultDisplayName(tr("Autoreconf"));
|
||||
}
|
||||
|
||||
bool AutoreconfStep::init()
|
||||
bool AutoreconfStep::init(QList<const BuildStep *> &earlierSteps)
|
||||
{
|
||||
BuildConfiguration *bc = buildConfiguration();
|
||||
|
||||
@@ -164,7 +164,7 @@ bool AutoreconfStep::init()
|
||||
pp->setArguments(additionalArguments());
|
||||
pp->resolveAll();
|
||||
|
||||
return AbstractProcessStep::init();
|
||||
return AbstractProcessStep::init(earlierSteps);
|
||||
}
|
||||
|
||||
void AutoreconfStep::run(QFutureInterface<bool> &interface)
|
||||
|
||||
@@ -96,7 +96,7 @@ class AutoreconfStep : public ProjectExplorer::AbstractProcessStep
|
||||
public:
|
||||
explicit AutoreconfStep(ProjectExplorer::BuildStepList *bsl);
|
||||
|
||||
bool init() override;
|
||||
bool init(QList<const BuildStep *> &earlierSteps) override;
|
||||
void run(QFutureInterface<bool> &interface) override;
|
||||
ProjectExplorer::BuildStepConfigWidget *createConfigWidget() override;
|
||||
bool immutable() const override;
|
||||
|
||||
@@ -166,7 +166,7 @@ void ConfigureStep::ctor()
|
||||
setDefaultDisplayName(tr("Configure"));
|
||||
}
|
||||
|
||||
bool ConfigureStep::init()
|
||||
bool ConfigureStep::init(QList<const BuildStep *> &earlierSteps)
|
||||
{
|
||||
BuildConfiguration *bc = buildConfiguration();
|
||||
|
||||
@@ -178,7 +178,7 @@ bool ConfigureStep::init()
|
||||
pp->setArguments(additionalArguments());
|
||||
pp->resolveAll();
|
||||
|
||||
return AbstractProcessStep::init();
|
||||
return AbstractProcessStep::init(earlierSteps);
|
||||
}
|
||||
|
||||
void ConfigureStep::run(QFutureInterface<bool>& interface)
|
||||
|
||||
@@ -95,7 +95,7 @@ class ConfigureStep : public ProjectExplorer::AbstractProcessStep
|
||||
public:
|
||||
explicit ConfigureStep(ProjectExplorer::BuildStepList *bsl);
|
||||
|
||||
bool init() override;
|
||||
bool init(QList<const BuildStep *> &earlierSteps) override;
|
||||
void run(QFutureInterface<bool> &interface) override;
|
||||
ProjectExplorer::BuildStepConfigWidget *createConfigWidget() override;
|
||||
bool immutable() const override;
|
||||
|
||||
@@ -160,7 +160,7 @@ void MakeStep::setClean(bool clean)
|
||||
m_clean = clean;
|
||||
}
|
||||
|
||||
bool MakeStep::init()
|
||||
bool MakeStep::init(QList<const BuildStep *> &earlierSteps)
|
||||
{
|
||||
BuildConfiguration *bc = buildConfiguration();
|
||||
if (!bc)
|
||||
@@ -200,7 +200,7 @@ bool MakeStep::init()
|
||||
appendOutputParser(parser);
|
||||
outputParser()->setWorkingDirectory(pp->effectiveWorkingDirectory());
|
||||
|
||||
return AbstractProcessStep::init();
|
||||
return AbstractProcessStep::init(earlierSteps);
|
||||
}
|
||||
|
||||
void MakeStep::run(QFutureInterface<bool> &interface)
|
||||
|
||||
@@ -94,7 +94,7 @@ class MakeStep : public ProjectExplorer::AbstractProcessStep
|
||||
public:
|
||||
explicit MakeStep(ProjectExplorer::BuildStepList *bsl);
|
||||
|
||||
bool init() override;
|
||||
bool init(QList<const BuildStep *> &earlierSteps) override;
|
||||
void run(QFutureInterface<bool> &interface) override;
|
||||
ProjectExplorer::BuildStepConfigWidget *createConfigWidget() override;
|
||||
void setClean(bool clean);
|
||||
|
||||
Reference in New Issue
Block a user