2013-02-15 22:49:59 +08:00
|
|
|
#
|
|
|
|
# Copyright (c) 2013 Stefan Herbrechtsmeier, Bielefeld University
|
|
|
|
#
|
|
|
|
|
|
|
|
inherit cmake distutils-base
|
|
|
|
|
|
|
|
DEPENDS_prepend = "${@['catkin-native ', ''][d.getVar('BPN', True) == 'catkin']}"
|
|
|
|
|
|
|
|
EXTRA_OECMAKE_CATKIN = "\
|
|
|
|
-DCMAKE_PREFIX_PATH='${STAGING_DIR_HOST}/usr;${STAGING_DIR_NATIVE}/usr' \
|
|
|
|
"
|
|
|
|
|
|
|
|
EXTRA_OECMAKE_CATKIN_class-native = "\
|
|
|
|
-DCMAKE_PREFIX_PATH=${STAGING_DIR_NATIVE}/usr \
|
|
|
|
-DRT_LIBRARY=${libdir_native} \
|
|
|
|
"
|
|
|
|
|
|
|
|
EXTRA_OECMAKE_prepend = "\
|
|
|
|
${EXTRA_OECMAKE_CATKIN} \
|
|
|
|
-DCATKIN_BUILD_BINARY_PACKAGE=ON \
|
|
|
|
-DSETUPTOOLS_DEB_LAYOUT=OFF \
|
|
|
|
"
|
|
|
|
|
2013-02-28 17:23:19 +08:00
|
|
|
OECMAKE_SOURCEPATH = "${S}"
|
|
|
|
OECMAKE_BUILDPATH = "${S}/build"
|
|
|
|
|
2013-02-15 22:49:59 +08:00
|
|
|
export BUILD_SYS
|
|
|
|
export HOST_SYS
|
|
|
|
|
|
|
|
FILES_SOLIBSDEV = ""
|
|
|
|
FILES_${PN} += "${libdir}/lib*${SOLIBSDEV}"
|
|
|
|
|
|
|
|
ROS_BPN = "${@d.getVar('BPN', True).replace('-', '_')}"
|
2013-05-24 15:35:40 +08:00
|
|
|
ROS_BP = "${ROS_BPN}-${PV}"
|
2013-02-15 22:49:59 +08:00
|
|
|
|
|
|
|
FILES_${PN} += "\
|
|
|
|
${prefix}/etc \
|
2013-02-27 20:54:50 +08:00
|
|
|
${datadir}/ros/config/${ROS_BPN}.config \
|
2013-03-14 20:23:34 +08:00
|
|
|
${datadir}/${ROS_BPN} \
|
2013-02-15 22:49:59 +08:00
|
|
|
"
|
|
|
|
|
|
|
|
FILES_${PN}-dev += "\
|
|
|
|
${datadir}/${ROS_BPN}/cmake \
|
|
|
|
${datadir}/${ROS_BPN}/*.template \
|
|
|
|
"
|
2013-03-14 00:20:23 +08:00
|
|
|
|
2013-04-02 20:56:29 +08:00
|
|
|
FILES_${PN}-dbg += "\
|
|
|
|
${libdir}/${ROS_BPN}/.debug/* \
|
|
|
|
"
|
|
|
|
|
2013-04-04 16:45:46 +08:00
|
|
|
SYSROOT_PREPROCESS_FUNCS += "catkin_sysroot_preprocess"
|
|
|
|
|
|
|
|
catkin_sysroot_preprocess () {
|
|
|
|
sysroot_stage_dir ${D}${prefix}/etc ${SYSROOT_DESTDIR}${prefix}/etc
|
|
|
|
}
|
|
|
|
|
2013-03-14 00:20:23 +08:00
|
|
|
BBCLASSEXTEND += "native"
|