apps/system/microros: wire libmicroros.a into LDLIBS and CFLAGS.

When CONFIG_SYSTEM_MICROROS=y, add the prebuilt libmicroros.a to LDLIBS
and the colcon-installed include/ tree to CFLAGS/CXXFLAGS so that any
application in nuttx-apps can include micro-ROS headers and link against
the library without extra flags.

Signed-off-by: Arjav Patel <arjav1528@gmail.com>
This commit is contained in:
Arjav Patel 2026-05-23 07:44:01 +00:00 committed by Lup Yuen Lee
parent b1a4d3fcd5
commit cb316ec165

View file

@ -19,3 +19,12 @@
# under the License.
#
############################################################################
ifneq ($(CONFIG_SYSTEM_MICROROS),)
CONFIGURED_APPS += $(APPDIR)/system/microros
CFLAGS += ${INCDIR_PREFIX}$(APPDIR)/system/microros/include
CXXFLAGS += ${INCDIR_PREFIX}$(APPDIR)/system/microros/include
LDLIBS += $(APPDIR)/system/microros/libmicroros.a
endif