2017-08-04 16:39:39 +08:00
|
|
|
# FIXME: My intuition says that it should be enough to depend on ament-cmake-native only
|
|
|
|
# since ament-cmake has runtime dependencies on all other needed ament-cmake-* packages.
|
|
|
|
# Yet in practice all ament-based packages have to depend explicitly on the native
|
|
|
|
# ament-cmake-* packages.
|
|
|
|
DEPENDS_append = " \
|
|
|
|
ament-tools-native \
|
|
|
|
ament-cmake-native \
|
|
|
|
ament-cmake-export-definitions-native \
|
|
|
|
ament-cmake-export-dependencies-native \
|
|
|
|
ament-cmake-export-include-directories-native \
|
|
|
|
ament-cmake-export-interfaces-native \
|
|
|
|
ament-cmake-export-libraries-native \
|
|
|
|
ament-cmake-export-link-flags-native \
|
|
|
|
ament-cmake-libraries-native \
|
|
|
|
ament-cmake-python-native \
|
|
|
|
ament-cmake-target-dependencies-native \
|
|
|
|
ament-cmake-include-directories-native \
|
|
|
|
ament-cmake-test-native \
|
|
|
|
"
|
|
|
|
|
|
|
|
S = "${WORKDIR}/git/${ROS_BPN}"
|
|
|
|
|
2018-05-26 01:46:31 +08:00
|
|
|
EXTRA_OECMAKE_append = " -DBUILD_TESTING=OFF -DPYTHON_SOABI=cpython-35m-${TUNE_ARCH}-${TARGET_OS}${ARMPKGSFX_EABI}"
|
2017-08-04 16:39:39 +08:00
|
|
|
export AMENT_PREFIX_PATH="${STAGING_DIR_HOST}${prefix};${STAGING_DIR_NATIVE}${prefix}"
|
|
|
|
|
|
|
|
inherit cmake python3native
|
|
|
|
|
|
|
|
do_install_append() {
|
|
|
|
rm -rf ${D}${datadir}/${ROS_BPN}/environment
|
|
|
|
rm -f ${D}${datadir}/${ROS_BPN}/local_setup.bash
|
|
|
|
rm -f ${D}${datadir}/${ROS_BPN}/local_setup.sh
|
|
|
|
rm -f ${D}${datadir}/${ROS_BPN}/local_setup.zsh
|
|
|
|
rm -f ${D}${prefix}/local_setup.bash
|
|
|
|
rm -f ${D}${prefix}/local_setup.sh
|
|
|
|
rm -f ${D}${prefix}/local_setup.zsh
|
|
|
|
rm -f ${D}${prefix}/setup.bash
|
|
|
|
rm -f ${D}${prefix}/setup.sh
|
|
|
|
rm -f ${D}${prefix}/setup.zsh
|
|
|
|
rm -f ${D}${prefix}/_order_packages.py
|
|
|
|
}
|
|
|
|
|
|
|
|
FILES_${PN} = " \
|
|
|
|
${datadir}/${ROS_BPN}/package.xml \
|
|
|
|
${datadir}/${ROS_BPN}/resource/* \
|
2018-06-02 09:39:49 +08:00
|
|
|
${datadir}/${ROS_BPN}/msg/* \
|
|
|
|
${datadir}/${ROS_BPN}/srv/* \
|
2017-08-04 16:39:39 +08:00
|
|
|
${datadir}/ament_index/* \
|
|
|
|
${libdir}/${PYTHON_DIR}/* \
|
|
|
|
${libdir}/${ROS_BPN}/* \
|
|
|
|
${libdir}/lib*.so \
|
|
|
|
"
|
|
|
|
|
|
|
|
FILES_${PN}-dev = " \
|
|
|
|
${datadir}/${ROS_BPN}/cmake/* \
|
|
|
|
${includedir} \
|
|
|
|
"
|