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.
This commit is contained in:
Herb Kuta 2019-04-30 11:36:28 -07:00
parent fcc570716b
commit 242ccace5d
1 changed files with 12 additions and 0 deletions

View File

@ -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
}