From 83d9607ba5d96419db9d1d2f81d0c1c0afb72fb5 Mon Sep 17 00:00:00 2001 From: Ricardo Simoes Date: Wed, 28 Aug 2024 09:21:38 +0200 Subject: magic-enum: Upgrade v0.9.5 -> v0.9.6 In version 0.9.6 issue #362 was fixed. Thus, the tweak in the compile flags is no longer needed. The checksum of the LICENSE file changed because the copyright range was updated. Changelog: https://github.com/Neargye/magic_enum/releases/tag/v0.9.6 Signed-off-by: Ricardo Simoes Signed-off-by: Mark Jonas Signed-off-by: Khem Raj --- .../magic-enum/magic-enum_0.9.6.bb | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 meta-oe/recipes-extended/magic-enum/magic-enum_0.9.6.bb (limited to 'meta-oe/recipes-extended/magic-enum/magic-enum_0.9.6.bb') diff --git a/meta-oe/recipes-extended/magic-enum/magic-enum_0.9.6.bb b/meta-oe/recipes-extended/magic-enum/magic-enum_0.9.6.bb new file mode 100644 index 0000000000..01a134a5bc --- /dev/null +++ b/meta-oe/recipes-extended/magic-enum/magic-enum_0.9.6.bb @@ -0,0 +1,44 @@ +# SPDX-FileCopyrightText: 2024 Bosch Sicherheitssysteme GmbH +# +# SPDX-License-Identifier: MIT + +SUMMARY = "Static reflection for enums" +DESCRIPTION = "Header-only C++17 library provides static reflection for enums, works \ +with any enum type without any macro or boilerplate code." +BUGTRACKER = "https://github.com/Neargye/magic_enum/issues" +HOMEPAGE = "https://github.com/Neargye/magic_enum" + +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=7e7717cf723eb72f57e80fdb651cb318" + +SRC_URI = " \ + git://github.com/Neargye/magic_enum.git;protocol=https;branch=master \ + file://run-ptest \ +" + +SRCREV = "dd6a39d0ba1852cf06907e0f0573a2a10d23c2ad" +S = "${WORKDIR}/git" + +inherit cmake ptest + +EXTRA_OECMAKE = "\ + -DMAGIC_ENUM_OPT_BUILD_EXAMPLES=OFF \ +" + +do_install_ptest () { + install -d ${D}${PTEST_PATH}/tests + install -m 0755 ${B}/test/test_* ${D}${PTEST_PATH}/tests +} + +# Add catkin and colcon (ROS build system) support +FILES:${PN}-dev += "\ + ${datadir}/magic_enum/package.xml \ +" + +# Header-only library +# ${PN} is empty so we need to tweak -dev and -dbg package dependencies +RDEPENDS:${PN}-dev = "" +RDEPENDS:${PN}-ptest = "" +RRECOMMENDS:${PN}-dbg = "${PN}-dev (= ${EXTENDPKGV})" + +BBCLASSEXTEND = "native nativesdk" -- cgit v1.2.3-54-g00ecf