mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-09 17:59:26 +00:00
libtinyxml2: Add ptest support
- Switch to usong meson build system - Fix build with musl by defining _LARGEFILE64_SOURCE Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
for i in `ls xmltest`; do
|
||||||
|
./$i
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
echo "PASS: $i"
|
||||||
|
else
|
||||||
|
echo "FAIL: $i"
|
||||||
|
fi
|
||||||
|
done
|
||||||
@@ -4,14 +4,22 @@ SECTION = "libs"
|
|||||||
LICENSE = "Zlib"
|
LICENSE = "Zlib"
|
||||||
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=135624eef03e1f1101b9ba9ac9b5fffd"
|
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=135624eef03e1f1101b9ba9ac9b5fffd"
|
||||||
|
|
||||||
SRC_URI = "git://github.com/leethomason/tinyxml2.git;branch=master;protocol=https"
|
|
||||||
|
|
||||||
SRCREV = "1dee28e51f9175a31955b9791c74c430fe13dc82"
|
SRCREV = "1dee28e51f9175a31955b9791c74c430fe13dc82"
|
||||||
|
SRC_URI = "git://github.com/leethomason/tinyxml2.git;branch=master;protocol=https \
|
||||||
|
file://run-ptest"
|
||||||
|
|
||||||
S = "${WORKDIR}/git"
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
inherit cmake
|
inherit meson ptest
|
||||||
|
|
||||||
|
EXTRA_OEMESON += "${@bb.utils.contains('PTEST_ENABLED', '1', '-Dtests=true', '', d)}"
|
||||||
|
|
||||||
|
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
|
||||||
|
install -Dm 0644 ${B}/resources/*.xml ${D}${PTEST_PATH}/resources/
|
||||||
|
}
|
||||||
|
|
||||||
BBCLASSEXTEND = "native"
|
BBCLASSEXTEND = "native"
|
||||||
|
|
||||||
EXTRA_OECMAKE += "-Dtinyxml2_SHARED_LIBS=YES"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user