86 | 86 |
)
|
87 | 87 |
subs['Package'] = rosify_package_name(subs['Package'], self.rosdistro)
|
88 | 88 |
|
89 | |
# XXX Add workspace package to runtime and buildtime dependencies for ROS 2 only.
|
90 | |
if self.rosdistro in ['r2b2', 'r2b3', 'ardent', 'bouncy'] and \
|
91 | |
package.name not in ['ament_cmake_core', 'ament_package', 'ros_workspace']:
|
92 | |
workspace_pkg_name = rosify_package_name('ros-workspace', self.rosdistro)
|
93 | |
subs['BuildDepends'].append(workspace_pkg_name)
|
94 | |
subs['Depends'].append(workspace_pkg_name)
|
|
89 |
# ROS 2 specific bloom extensions.
|
|
90 |
# TODO(nuclearsandwich) explore other ways to enable these extensions, reduce their necessity,
|
|
91 |
# or make them configurable rather than relying on distro names.
|
|
92 |
if self.rosdistro in ['r2b2', 'r2b3', 'ardent', 'bouncy']:
|
|
93 |
# Add ros-workspace package as a dependency to any package other
|
|
94 |
# than ros_workspace and its dependencies.
|
|
95 |
if package.name not in ['ament_cmake_core', 'ament_package', 'ros_workspace']:
|
|
96 |
workspace_pkg_name = rosify_package_name('ros-workspace', self.rosdistro)
|
|
97 |
subs['BuildDepends'].append(workspace_pkg_name)
|
|
98 |
subs['Depends'].append(workspace_pkg_name)
|
|
99 |
|
|
100 |
# Add vendor typesupport packages to build dependencies for rosidl_interface_packages.
|
|
101 |
if self.rosdistro in ['bouncy'] and \
|
|
102 |
'rosidl_interface_packages' in [p.name for p in package.member_of_groups]:
|
|
103 |
ROS2_VENDOR_TYPESUPPORT_PACKAGES = [
|
|
104 |
'rosidl-typesupport-connext-c',
|
|
105 |
'rosidl-typesupport-connext-cpp',
|
|
106 |
'rosidl-typesupport-opensplice-c',
|
|
107 |
'rosidl-typesupport-opensplice-cpp',
|
|
108 |
]
|
|
109 |
|
|
110 |
subs['BuildDepends'] += [
|
|
111 |
rosify_package_name(name, self.rosdistro) for name in ROS2_VENDOR_TYPESUPPORT_PACKAGES]
|
95 | 112 |
return subs
|
96 | 113 |
|
97 | 114 |
def generate_branching_arguments(self, package, branch):
|