xref: /openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/libtinyxml2/libtinyxml2_11.0.0.bb (revision eaae0b339f806200d8722cb09e5e3b83c15a5956)
1SUMMARY = "TinyXML-2 is a simple, small, efficient, C++ XML parser that can be easily integrating into other programs"
2HOMEPAGE = "https://leethomason.github.io/tinyxml2"
3SECTION = "libs"
4LICENSE = "Zlib"
5LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=135624eef03e1f1101b9ba9ac9b5fffd"
6CVE_PRODUCT = "tinyxml2"
7
8SRCREV = "9148bdf719e997d1f474be6bcc7943881046dba1"
9SRC_URI = "git://github.com/leethomason/tinyxml2.git;branch=master;protocol=https \
10           file://run-ptest"
11
12S = "${WORKDIR}/git"
13
14inherit meson ptest
15
16EXTRA_OEMESON += " \
17    ${@bb.utils.contains('PTEST_ENABLED', '1', '-Dtests=true', '', d)} \
18    -Ddefault_library=both \
19"
20
21CXXFLAGS:append:libc-musl = " -D_LARGEFILE64_SOURCE"
22
23do_install_ptest() {
24    install -Dm 0755 ${B}/xmltest ${D}${PTEST_PATH}/xmltest
25    install -d ${D}${PTEST_PATH}/resources/out
26    for f in ${S}/resources/*.xml; do
27        install -m 0644 $f ${D}${PTEST_PATH}/resources/
28    done
29}
30
31BBCLASSEXTEND = "native nativesdk"
32