diff options
Diffstat (limited to 'meta-oe/recipes-devtools/libtoml11/libtoml11_4.2.0.bb')
| -rw-r--r-- | meta-oe/recipes-devtools/libtoml11/libtoml11_4.2.0.bb | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/libtoml11/libtoml11_4.2.0.bb b/meta-oe/recipes-devtools/libtoml11/libtoml11_4.2.0.bb new file mode 100644 index 0000000000..758e258a57 --- /dev/null +++ b/meta-oe/recipes-devtools/libtoml11/libtoml11_4.2.0.bb | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | SUMMARY = "TOML for Modern C++" | ||
| 2 | DESCRIPTION = "toml11 is a feature-rich TOML language library for \ | ||
| 3 | C++11/14/17/20." | ||
| 4 | |||
| 5 | HOMEPAGE = "https://github.com/ToruNiina/toml11" | ||
| 6 | |||
| 7 | SECTION = "libs" | ||
| 8 | |||
| 9 | LICENSE = "MIT" | ||
| 10 | LIC_FILES_CHKSUM = "file://LICENSE;md5=44d1fcf70c7aa6991533c38daf7befa3" | ||
| 11 | |||
| 12 | PE = "1" | ||
| 13 | |||
| 14 | SRCREV = "cc0bee4fd46ea1f5db147d63ea545208cc9e8405" | ||
| 15 | SRCREV_json = "9cca280a4d0ccf0c08f47a99aa71d1b0e52f8d03" | ||
| 16 | SRCREV_doctest = "ae7a13539fb71f270b87eb2e874fbac80bc8dda2" | ||
| 17 | |||
| 18 | SRC_URI = "git://github.com/ToruNiina/toml11;branch=main;protocol=https \ | ||
| 19 | git://github.com/nlohmann/json;destsuffix=git/tests/extlib/json;name=json;branch=develop;protocol=https \ | ||
| 20 | git://github.com/doctest/doctest;destsuffix=git/tests/extlib/doctest;name=doctest;branch=master;protocol=https \ | ||
| 21 | file://0001-fix-add-missing-zero-initialization-to-region.patch \ | ||
| 22 | file://run-ptest \ | ||
| 23 | " | ||
| 24 | SRCREV_FORMAT = "json_doctest" | ||
| 25 | |||
| 26 | S = "${WORKDIR}/git" | ||
| 27 | |||
| 28 | inherit cmake ptest | ||
| 29 | |||
| 30 | EXTRA_OECMAKE += "-DTOML11_PRECOMPILE=ON \ | ||
| 31 | -DTOML11_BUILD_TESTS=${@bb.utils.contains("DISTRO_FEATURES", "ptest", "ON", "OFF", d)} \ | ||
| 32 | " | ||
| 33 | |||
| 34 | ALLOW_EMPTY:${PN} = "1" | ||
| 35 | |||
| 36 | do_install_ptest () { | ||
| 37 | install -d ${D}${PTEST_PATH}/tests | ||
| 38 | cp -r ${B}/tests/test_* ${D}${PTEST_PATH}/tests | ||
| 39 | } | ||
