Ios: Use new AbstractProcessStep convenience functions

Change-Id: I8a20690b679a4f2205295be48e4e5e99dee94d79
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2020-08-13 17:34:54 +02:00
parent e1d0b4cf48
commit 0cfe11a960
2 changed files with 9 additions and 21 deletions

View File

@@ -63,17 +63,14 @@ IosDsymBuildStep::IosDsymBuildStep(BuildStepList *parent, Id id) :
AbstractProcessStep(parent, id),
m_clean(parent->id() == ProjectExplorer::Constants::BUILDSTEPS_CLEAN)
{
setCommandLineProvider([this] { return CommandLine(command(), arguments()); });
setUseEnglishOutput();
}
bool IosDsymBuildStep::init()
{
ProcessParameters *pp = processParameters();
pp->setMacroExpander(macroExpander());
pp->setWorkingDirectory(buildDirectory());
Utils::Environment env = buildEnvironment();
Utils::Environment::setupEnglishOutput(&env);
pp->setEnvironment(env);
pp->setCommandLine({command(), arguments()});
setupProcessParameters(pp);
// If we are cleaning, then build can fail with an error code, but that doesn't mean
// we should stop the clean queue
@@ -257,11 +254,7 @@ IosDsymBuildStepConfigWidget::~IosDsymBuildStepConfigWidget()
void IosDsymBuildStepConfigWidget::updateDetails()
{
ProcessParameters param;
param.setMacroExpander(m_buildStep->macroExpander());
param.setWorkingDirectory(m_buildStep->buildDirectory());
param.setEnvironment(m_buildStep->buildEnvironment());
param.setCommandLine({m_buildStep->command(), m_buildStep->arguments()});
m_buildStep->setupProcessParameters(&param);
setSummaryText(param.summary(displayName()));
}