diff options
Diffstat (limited to 'meta-oe/recipes-devtools/tomlplusplus')
-rwxr-xr-x | meta-oe/recipes-devtools/tomlplusplus/files/run-ptest | 12 | ||||
-rw-r--r-- | meta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb | 24 |
2 files changed, 36 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/tomlplusplus/files/run-ptest b/meta-oe/recipes-devtools/tomlplusplus/files/run-ptest new file mode 100755 index 0000000000..4f682c5eb2 --- /dev/null +++ b/meta-oe/recipes-devtools/tomlplusplus/files/run-ptest | |||
@@ -0,0 +1,12 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | cd tests | ||
4 | for atest in tomlplusplus_* ; do | ||
5 | rm -rf tests.log | ||
6 | ./${atest} > tests.log 2>&1 | ||
7 | if [ $? = 0 ] ; then | ||
8 | echo "PASS: ${atest}" | ||
9 | else | ||
10 | echo "FAIL: ${atest}" | ||
11 | fi | ||
12 | done | ||
diff --git a/meta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb b/meta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb new file mode 100644 index 0000000000..da8b1602be --- /dev/null +++ b/meta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb | |||
@@ -0,0 +1,24 @@ | |||
1 | SUMMARY = "toml config parser and serializer for c++." | ||
2 | HOMEPAGE = "https://github.com/marzer/tomlplusplus" | ||
3 | LICENSE = "MIT" | ||
4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=90960f22c10049c117d56ed2ee5ee167" | ||
5 | |||
6 | SRC_URI = "git://github.com/marzer/tomlplusplus.git;protocol=https;branch=master \ | ||
7 | file://run-ptest \ | ||
8 | " | ||
9 | |||
10 | PV = "3.4.0" | ||
11 | SRCREV = "30172438cee64926dc41fdd9c11fb3ba5b2ba9de" | ||
12 | |||
13 | DEPENDS = "cmake-native" | ||
14 | |||
15 | inherit meson ptest pkgconfig | ||
16 | |||
17 | EXTRA_OEMESON += "-Dbuild_tests=${@bb.utils.contains("DISTRO_FEATURES", "ptest", "true", "false", d)} \ | ||
18 | " | ||
19 | |||
20 | do_install_ptest () { | ||
21 | install -d ${D}${PTEST_PATH}/tests | ||
22 | cp ${B}/tests/tomlplusplus_odr_test ${D}${PTEST_PATH}/tests | ||
23 | cp ${B}/tests/tomlplusplus_tests ${D}${PTEST_PATH}/tests | ||
24 | } | ||