mirror of
https://git.yoctoproject.org/poky
synced 2026-02-09 02:03:04 +01:00
json-glib: use PACKAGECONFIG for tests
json-glib 1.6 has an option to enable or disable the tests, so use that instead of a do_install_append. (From OE-Core rev: cbfa29cda670222928ca692406114839c5e41e0c) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
7183f0712c
commit
e32e279b32
@@ -23,13 +23,9 @@ SRC_URI += "file://run-ptest \
|
||||
file://0001-json-glib-json-enum-types.c.in-fix-build-reproducibi.patch"
|
||||
SRC_URI[archive.sha256sum] = "0d7c67602c4161ea7070fab6c5823afd9bd7f7bc955f652a50d3753b08494e73"
|
||||
|
||||
PACKAGECONFIG ??= "${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}"
|
||||
PACKAGECONFIG[manpages] = "-Dman=true,-Dman=false,libxslt-native xmlto-native"
|
||||
|
||||
do_install_append() {
|
||||
if ! ${@bb.utils.contains('PTEST_ENABLED', '1', 'true', 'false', d)}; then
|
||||
rm -rf ${D}${datadir}/installed-tests ${D}${libexecdir}
|
||||
fi
|
||||
}
|
||||
PACKAGECONFIG[tests] = "-Dtests=true,-Dtests=false"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user