diff options
author | Khem Raj <raj.khem@gmail.com> | 2023-04-05 23:23:13 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2023-04-06 13:45:01 -0700 |
commit | 8b0fe7a1d1e485befed2f4abedcaf6c6c8822b0e (patch) | |
tree | 59f4612aff92f65cf52ffb2fdd5bb0e244b82bf5 /meta-oe/recipes-support/libtinyxml2 | |
parent | 3e4121b6e7192b2d98fdd533d5ca8270914f5589 (diff) | |
download | meta-openembedded-8b0fe7a1d1e485befed2f4abedcaf6c6c8822b0e.tar.gz |
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>
Diffstat (limited to 'meta-oe/recipes-support/libtinyxml2')
-rw-r--r-- | meta-oe/recipes-support/libtinyxml2/files/run-ptest | 10 | ||||
-rw-r--r-- | meta-oe/recipes-support/libtinyxml2/libtinyxml2_9.0.0.bb | 18 |
2 files changed, 23 insertions, 5 deletions
diff --git a/meta-oe/recipes-support/libtinyxml2/files/run-ptest b/meta-oe/recipes-support/libtinyxml2/files/run-ptest new file mode 100644 index 000000000..870912672 --- /dev/null +++ b/meta-oe/recipes-support/libtinyxml2/files/run-ptest | |||
@@ -0,0 +1,10 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | for i in `ls xmltest`; do | ||
4 | ./$i | ||
5 | if [ $? -eq 0 ]; then | ||
6 | echo "PASS: $i" | ||
7 | else | ||
8 | echo "FAIL: $i" | ||
9 | fi | ||
10 | done | ||
diff --git a/meta-oe/recipes-support/libtinyxml2/libtinyxml2_9.0.0.bb b/meta-oe/recipes-support/libtinyxml2/libtinyxml2_9.0.0.bb index 7f205987f..7ef4d89ce 100644 --- a/meta-oe/recipes-support/libtinyxml2/libtinyxml2_9.0.0.bb +++ b/meta-oe/recipes-support/libtinyxml2/libtinyxml2_9.0.0.bb | |||
@@ -4,14 +4,22 @@ SECTION = "libs" | |||
4 | LICENSE = "Zlib" | 4 | LICENSE = "Zlib" |
5 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=135624eef03e1f1101b9ba9ac9b5fffd" | 5 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=135624eef03e1f1101b9ba9ac9b5fffd" |
6 | 6 | ||
7 | SRC_URI = "git://github.com/leethomason/tinyxml2.git;branch=master;protocol=https" | ||
8 | |||
9 | SRCREV = "1dee28e51f9175a31955b9791c74c430fe13dc82" | 7 | SRCREV = "1dee28e51f9175a31955b9791c74c430fe13dc82" |
8 | SRC_URI = "git://github.com/leethomason/tinyxml2.git;branch=master;protocol=https \ | ||
9 | file://run-ptest" | ||
10 | 10 | ||
11 | S = "${WORKDIR}/git" | 11 | S = "${WORKDIR}/git" |
12 | 12 | ||
13 | inherit cmake | 13 | inherit meson ptest |
14 | 14 | ||
15 | BBCLASSEXTEND = "native" | 15 | EXTRA_OEMESON += "${@bb.utils.contains('PTEST_ENABLED', '1', '-Dtests=true', '', d)}" |
16 | |||
17 | CXXFLAGS:append:libc-musl = " -D_LARGEFILE64_SOURCE" | ||
16 | 18 | ||
17 | EXTRA_OECMAKE += "-Dtinyxml2_SHARED_LIBS=YES" | 19 | do_install_ptest() { |
20 | install -Dm 0755 ${B}/xmltest ${D}${PTEST_PATH}/xmltest | ||
21 | install -d ${D}${PTEST_PATH}/resources/out | ||
22 | install -Dm 0644 ${B}/resources/*.xml ${D}${PTEST_PATH}/resources/ | ||
23 | } | ||
24 | |||
25 | BBCLASSEXTEND = "native" | ||