From 242ccace5d2f998b2fdc4e8469cb0d0f831d91cc Mon Sep 17 00:00:00 2001 From: Herb Kuta Date: Tue, 30 Apr 2019 11:36:28 -0700 Subject: [PATCH] DRAFT {crystal} micro-xrce-dds-agent-1.0.3-1.inc: Fix up build.ninja if it exists Version-specific because might be fixed in a new version. --- .../micro-xrce-dds-agent-1.0.3-1.inc | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 includes-ros2/micro-xrce-dds-agent/micro-xrce-dds-agent-1.0.3-1.inc diff --git a/includes-ros2/micro-xrce-dds-agent/micro-xrce-dds-agent-1.0.3-1.inc b/includes-ros2/micro-xrce-dds-agent/micro-xrce-dds-agent-1.0.3-1.inc new file mode 100644 index 0000000..2b2ed2f --- /dev/null +++ b/includes-ros2/micro-xrce-dds-agent/micro-xrce-dds-agent-1.0.3-1.inc @@ -0,0 +1,12 @@ +# Copyright (c) 2019 LG Electronics, Inc. + +# This is sooo much easier than figuring out why CMake isn't using TINYXML2_LIBRARY when generating build.ninja +do_configure_append() { + if [ -e ${B}/build.ninja ]; then + sed -i -e 's@ /libtinyxml2.so@ ${STAGING_LIBDIR}/libtinyxml2.so@g' \ + -e 's@ -ltinyxml2@ ${STAGING_LIBDIR}/libtinyxml2.so@g' \ + ${B}/build.ninja + else + true + fi +}