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

@@ -171,11 +171,7 @@ private:
void updateDetails()
{
ProcessParameters param;
param.setMacroExpander(m_buildStep->macroExpander());
param.setWorkingDirectory(m_buildStep->buildDirectory());
param.setEnvironment(m_buildStep->buildEnvironment());
param.setCommandLine({m_buildStep->buildCommand(), m_buildStep->allArguments()});
m_buildStep->setupProcessParameters(&param);
setSummaryText(param.summary(displayName()));
}
@@ -191,6 +187,9 @@ IosBuildStep::IosBuildStep(BuildStepList *parent, Id id)
{
setDefaultDisplayName(tr("xcodebuild"));
setCommandLineProvider([this] { return CommandLine(buildCommand(), allArguments()); });
setUseEnglishOutput();
if (parent->id() == ProjectExplorer::Constants::BUILDSTEPS_CLEAN) {
m_clean = true;
setExtraArguments(QStringList("clean"));
@@ -211,11 +210,7 @@ bool IosBuildStep::init()
}
ProcessParameters *pp = processParameters();
pp->setMacroExpander(bc->macroExpander());
pp->setWorkingDirectory(bc->buildDirectory());
Utils::Environment env = bc->environment();
Utils::Environment::setupEnglishOutput(&env);
pp->setEnvironment(env);
setupProcessParameters(pp);
pp->setCommandLine({buildCommand(), allArguments()});
// If we are cleaning, then build can fail with an error code, but that doesn't mean