This is an automated email from the ASF dual-hosted git repository. lupyuen pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
commit cb316ec1659542e6ae8024cfe1d3aed76bb224c6 Author: Arjav Patel <[email protected]> AuthorDate: Sat May 23 07:44:01 2026 +0000 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 <[email protected]> --- system/microros/Make.defs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/system/microros/Make.defs b/system/microros/Make.defs index 5ec456770..ae95e997d 100644 --- a/system/microros/Make.defs +++ b/system/microros/Make.defs @@ -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
