From 1dd8e0d01596f3d803e6f9d459d4b7be268ffc8a Mon Sep 17 00:00:00 2001 From: Herb Kuta Date: Thu, 9 May 2019 08:57:59 -0700 Subject: [PATCH] DRAFT Add ros_component.bbclass --- classes/ros_component.bbclass | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 classes/ros_component.bbclass diff --git a/classes/ros_component.bbclass b/classes/ros_component.bbclass new file mode 100644 index 0000000..396393d --- /dev/null +++ b/classes/ros_component.bbclass @@ -0,0 +1,23 @@ +# Metadata common to all ROS component types. +# +# Copyright (c) 2019 LG Electronics, Inc. + +export ROS_DISTRO +export ROS_VERSION +export ROS_PYTHON_VERSION + +# Ensure that PYTHON_PN is always set. (ROS_PYTHON_VERSION is set in generated-ros-distro.inc, ie, it will never be unset when +# we get here.) +inherit ${@'python3-dir' if d.getVar('ROS_PYTHON_VERSION', True) == '3' else 'python-dir'} + +inherit faulty-solibs +FILES_${PN}_prepend = " \ + ${datadir}/${ROS_BPN} \ + ${datadir}/ament_index \ + ${libdir}/${PYTHON_DIR} \ + ${libdir}/${ROS_BPN} \ +" + +FILES_${PN}-dev_prepend = " \ + ${datadir}/${ROS_BPN}/cmake \ +"