mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-01-12 03:24:08 +00:00
Currently tinyxml2 is built with meson, which doesn't generate files in /usr/lib/cmake Use cmake instead. This will generate files in both /usr/lib/cmake and /usr/lib/pkgconfig and allow cmake projects to find libtinyxml2. Avoids errors such as: | CMake Error at CMakeLists.txt:11 (find_package): | By not providing "FindTinyXML2.cmake" in CMAKE_MODULE_PATH this project has | asked CMake to find a package configuration file provided by "TinyXML2", | but CMake did not find one. | | Could not find a package configuration file provided by "TinyXML2" with any | of the following names: | | TinyXML2Config.cmake | tinyxml2-config.cmake | | Add the installation prefix of "TinyXML2" to CMAKE_PREFIX_PATH or set | "TinyXML2_DIR" to a directory containing one of the above files. If | "TinyXML2" provides a separate development package or SDK, be sure it has | been installed. | | | -- Configuring incomplete, errors occurred! Signed-off-by: Khem Raj <raj.khem@gmail.com>
30 lines
1.0 KiB
BlitzBasic
30 lines
1.0 KiB
BlitzBasic
SUMMARY = "TinyXML-2 is a simple, small, efficient, C++ XML parser that can be easily integrating into other programs"
|
|
HOMEPAGE = "https://leethomason.github.io/tinyxml2"
|
|
SECTION = "libs"
|
|
LICENSE = "Zlib"
|
|
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=135624eef03e1f1101b9ba9ac9b5fffd"
|
|
CVE_PRODUCT = "tinyxml2"
|
|
|
|
SRCREV = "9148bdf719e997d1f474be6bcc7943881046dba1"
|
|
SRC_URI = "git://github.com/leethomason/tinyxml2.git;branch=master;protocol=https \
|
|
file://run-ptest"
|
|
|
|
inherit cmake ptest
|
|
|
|
EXTRA_OECMAKE += "${@bb.utils.contains('PTEST_ENABLED', '1', '-Dtinyxml2_BUILD_TESTING=ON', '', d)}"
|
|
|
|
PACKAGECONFIG ?= "shared-libs"
|
|
PACKAGECONFIG[shared-libs] = "-DBUILD_SHARED_LIBS=ON,-DBUILD_SHARED_LIBS=OFF"
|
|
|
|
CXXFLAGS:append:libc-musl = " -D_LARGEFILE64_SOURCE"
|
|
|
|
do_install_ptest() {
|
|
install -Dm 0755 ${B}/xmltest ${D}${PTEST_PATH}/xmltest
|
|
install -d ${D}${PTEST_PATH}/resources/out
|
|
for f in ${S}/resources/*.xml; do
|
|
install -m 0644 $f ${D}${PTEST_PATH}/resources/
|
|
done
|
|
}
|
|
|
|
BBCLASSEXTEND = "native nativesdk"
|