DRAFT Add ros_superflore_generated.bbclass

This commit is contained in:
Herb Kuta 2019-03-27 18:08:48 -07:00
parent c58d1eb154
commit abb5bb4338
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
# Inherited by every recipe that superflore generates.
#
# Copyright (c) 2019 LG Electronics, Inc.
ROS_SUPERFLORE_GENERATED = "1"
# If superflore found this BPN listed as a build tool, extend the recipe to build BPN-native.
BBCLASSEXTEND_append = "${@bb.utils.contains('ROS_SUPERFLORE_GENERATED_BUILDTOOLS', '${BPN}-native', ' native', '', d)}"
# Returns under which of the includes-{ros1,ros2} trees the .inc files for packages of <component> should be placed.
# ROS1_COMPONENTS is set in conf/ros-distro/ros-distro.conf .
def ros_superflore_generated__get_includes_tree(component, d):
return bb.utils.contains('ROS1_COMPONENTS', component, 'includes-ros1', 'includes-ros2', d)