linuxOS_AP05/buildroot/package/rockchip/ros/ros-comm/roscpp/roscpp.mk
2025-06-02 13:59:07 +08:00

29 lines
699 B
Makefile

#default to KINETIC
ROSCPP_VERSION = 1.12.14
ifeq ($(BR2_PACKAGE_ROS_INDIGO),y)
ROSCPP_VERSION = 1.11.21
endif
ROSCPP_SITE = $(call github,ros,ros_comm,$(ROSCPP_VERSION))
ROSCPP_SUBDIR = clients/roscpp
ROSCPP_DEPENDENCIES = cpp_common message-generation \
rosconsole roscpp_serialization roscpp_traits \
rosgraph_msgs rostime std-msgs xmlrpcpp boost
ifeq ($(BR2_PACKAGE_ROS_INDIGO),y)
define ROSCPP_INDIGO_PATCH
$(APPLY_PATCHES) $(@D) $(PKGDIR)/file/indigo
endef
ROSCPP_POST_PATCH_HOOKS += ROSCPP_INDIGO_PATCH
else
define ROSCPP_KINETIC_PATCH
$(APPLY_PATCHES) $(@D) $(PKGDIR)/file/kinetic
endef
ROSCPP_POST_PATCH_HOOKS += ROSCPP_KINETIC_PATCH
endif
$(eval $(catkin-package))