summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb
blob: 074c9b6f75d30184828c2d3088a0041bf887e26f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
SUMMARY = "toml config parser and serializer 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"

DEPENDS = "cmake-native"

inherit meson ptest pkgconfig

EXTRA_OEMESON += "-Dbuild_tests=${@bb.utils.contains("DISTRO_FEATURES", "ptest", "true", "false", d)} \
"

# See - https://github.com/marzer/tomlplusplus/issues/279
CXXFLAGS:append:toolchain-clang = " -stdlib=libstdc++"
LDFLAGS:append:toolchain-clang = " -stdlib=libstdc++"

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
}