forked from qt-creator/qt-creator
Ios: Use new AbstractProcessStep convenience functions
Change-Id: I8a20690b679a4f2205295be48e4e5e99dee94d79 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -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(¶m);
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user