-
Notifications
You must be signed in to change notification settings - Fork 244
/
ament.bbclass
56 lines (50 loc) · 1.92 KB
/
ament.bbclass
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# 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}"
EXTRA_OECMAKE_append = " -DBUILD_TESTING=OFF -DPYTHON_SOABI=cpython-35m-${TUNE_ARCH}-${TARGET_OS}${ARMPKGSFX_EABI}"
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/* \
${datadir}/${ROS_BPN}/msg/* \
${datadir}/${ROS_BPN}/srv/* \
${datadir}/ament_index/* \
${libdir}/${PYTHON_DIR}/* \
${libdir}/${ROS_BPN}/* \
${libdir}/lib*.so \
"
FILES_${PN}-dev = " \
${datadir}/${ROS_BPN}/cmake/* \
${includedir} \
"