Files
meta-openembedded/meta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb
T
Mingli Yu 8917528948 tomlplusplus: Add ptest support
# ./run-ptest
PASS: tomlplusplus_odr_test
PASS: tomlplusplus_tests

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-17 14:07:45 -07:00

26 lines
741 B
BlitzBasic

SUMMARY = "toml config parser and seriaizer for c++."
HOMEPAGE = "https://github.com/marzer/tomlplusplus"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=90960f22c10049c117d56ed2ee5ee167"
SRC_URI = "git://github.com/marzer/tomlplusplus.git;protocol=https;branch=master \
file://run-ptest \
"
PV = "3.4.0"
SRCREV = "30172438cee64926dc41fdd9c11fb3ba5b2ba9de"
S = "${WORKDIR}/git"
DEPENDS = "cmake-native"
inherit meson ptest
EXTRA_OEMESON += "-Dbuild_tests=${@bb.utils.contains("DISTRO_FEATURES", "ptest", "true", "false", d)} \
"
do_install_ptest () {
install -d ${D}${PTEST_PATH}/tests
cp ${B}/tests/tomlplusplus_odr_test ${D}${PTEST_PATH}/tests
cp ${B}/tests/tomlplusplus_tests ${D}${PTEST_PATH}/tests
}