Skip to content

Commit

Permalink
remove make arg option from colcon
Browse files Browse the repository at this point in the history
  • Loading branch information
christianrauch authored and christian-rauch committed Aug 2, 2024
1 parent dfa11a7 commit 5985477
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 30 deletions.
11 changes: 0 additions & 11 deletions src/project_manager/ros_colcon_step.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ const char ROS_COLCON_STEP_DISPLAY_NAME[] = QT_TRANSLATE_NOOP("ROSProjectManager
const char ROS_COLCON_STEP[] = "ROSProjectManager.ROSColconStep.Target";
const char ROS_COLCON_STEP_ARGUMENTS_KEY[] = "ROSProjectManager.ROSColconStep.ColconArguments";
const char ROS_COLCON_STEP_CMAKE_ARGUMENTS_KEY[] = "ROSProjectManager.ROSColconStep.CMakeArguments";
const char ROS_COLCON_STEP_MAKE_ARGUMENTS_KEY[] = "ROSProjectManager.ROSColconStep.MakeArguments";

ROSColconStep::ROSColconStep(BuildStepList *parent, const Utils::Id id) :
AbstractProcessStep(parent, id)
Expand Down Expand Up @@ -147,15 +146,13 @@ void ROSColconStep::toMap(Utils::Store &map) const
map.insert(ROS_COLCON_STEP, m_target);
map.insert(ROS_COLCON_STEP_ARGUMENTS_KEY, m_colconArguments);
map.insert(ROS_COLCON_STEP_CMAKE_ARGUMENTS_KEY, m_cmakeArguments);
map.insert(ROS_COLCON_STEP_MAKE_ARGUMENTS_KEY, m_makeArguments);
}

void ROSColconStep::fromMap(const Utils::Store &map)
{
m_target = (BuildTargets)map.value(ROS_COLCON_STEP).toInt();
m_colconArguments = map.value(ROS_COLCON_STEP_ARGUMENTS_KEY).toString();
m_cmakeArguments = map.value(ROS_COLCON_STEP_CMAKE_ARGUMENTS_KEY).toString();
m_makeArguments = map.value(ROS_COLCON_STEP_MAKE_ARGUMENTS_KEY).toString();

BuildStep::fromMap(map);
}
Expand Down Expand Up @@ -190,9 +187,6 @@ QString ROSColconStep::allArguments(ROSUtils::BuildType buildType, bool includeD
break;
}

if (!m_makeArguments.isEmpty())
args << QString("--make-args %1").arg(m_makeArguments);

return args.join(" ");
}

Expand Down Expand Up @@ -250,7 +244,6 @@ ROSColconStepWidget::ROSColconStepWidget(ROSColconStep *makeStep)

m_ui->colconArgumentsLineEdit->setText(m_makeStep->m_colconArguments);
m_ui->cmakeArgumentsLineEdit->setText(m_makeStep->m_cmakeArguments);
m_ui->makeArgumentsLineEdit->setText(m_makeStep->m_makeArguments);

updateDetails();

Expand All @@ -260,9 +253,6 @@ ROSColconStepWidget::ROSColconStepWidget(ROSColconStep *makeStep)
connect(m_ui->cmakeArgumentsLineEdit, &QLineEdit::textEdited,
this, &ROSColconStepWidget::updateDetails);

connect(m_ui->makeArgumentsLineEdit, &QLineEdit::textEdited,
this, &ROSColconStepWidget::updateDetails);

connect(m_makeStep, SIGNAL(enabledChanged()),
this, SLOT(enabledChanged()));

Expand Down Expand Up @@ -294,7 +284,6 @@ void ROSColconStepWidget::updateDetails()
{
m_makeStep->m_colconArguments = m_ui->colconArgumentsLineEdit->text();
m_makeStep->m_cmakeArguments = m_ui->cmakeArgumentsLineEdit->text();
m_makeStep->m_makeArguments = m_ui->makeArgumentsLineEdit->text();

ROSBuildConfiguration *bc = m_makeStep->rosBuildConfiguration();
ROSUtils::WorkspaceInfo workspaceInfo = ROSUtils::getWorkspaceInfo(bc->project()->projectDirectory(), bc->rosBuildSystem(), bc->project()->distribution());
Expand Down
1 change: 0 additions & 1 deletion src/project_manager/ros_colcon_step.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ class ROSColconStep : public ProjectExplorer::AbstractProcessStep
BuildTargets m_target;
QString m_colconArguments;
QString m_cmakeArguments;
QString m_makeArguments;
QRegularExpression m_percentProgress;
};

Expand Down
20 changes: 2 additions & 18 deletions src/project_manager/ros_colcon_step.ui
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
<x>0</x>
<y>0</y>
<width>545</width>
<height>105</height>
<height>79</height>
</rect>
</property>
<layout class="QFormLayout" name="formLayout">
<property name="fieldGrowthPolicy">
<enum>QFormLayout::ExpandingFieldsGrow</enum>
<enum>QFormLayout::FieldGrowthPolicy::ExpandingFieldsGrow</enum>
</property>
<property name="leftMargin">
<number>9</number>
Expand Down Expand Up @@ -53,22 +53,6 @@
<item row="1" column="1">
<widget class="QLineEdit" name="cmakeArgumentsLineEdit"/>
</item>
<item row="2" column="0">
<widget class="QLabel" name="makeArgumentsLabel">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Make Arguments:</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QLineEdit" name="makeArgumentsLineEdit"/>
</item>
</layout>
</widget>
<resources/>
Expand Down

0 comments on commit 5985477

Please sign in to comment.