summaryrefslogtreecommitdiff
path: root/meta-openembedded/meta-oe/recipes-devtools
diff options
context:
space:
mode:
authorPatrick Williams <patrick@stwcx.xyz>2021-12-09 06:25:20 +0300
committerPatrick Williams <patrick@stwcx.xyz>2021-12-13 15:41:00 +0300
commite73d2169891264a3c0b2c8e61912e0f747b9e3c6 (patch)
treed2839ade674065e39e68bf84a9b55dcd71971a0d /meta-openembedded/meta-oe/recipes-devtools
parent11ea7f74ce55a0dd3cf67bd9e0f758146e30ac63 (diff)
downloadopenbmc-e73d2169891264a3c0b2c8e61912e0f747b9e3c6.tar.xz
unifex: add recipe
libunifex is a library for enabling C++ "Unified Executors" in C++20, based on current standards work being proposed for C++23 (P2300)[1]. This library provides C++20 support for async and co-routines. 1. https://isocpp.org/files/papers/P2300R3.html Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit edc54a229fc3c50d2cd41e400b18feb3ae41cfb4) Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I8332f2919a707e76e6aa839cb55140e8ceec637a
Diffstat (limited to 'meta-openembedded/meta-oe/recipes-devtools')
-rw-r--r--meta-openembedded/meta-oe/recipes-devtools/unifex/unifex_git.bb24
1 files changed, 24 insertions, 0 deletions
diff --git a/meta-openembedded/meta-oe/recipes-devtools/unifex/unifex_git.bb b/meta-openembedded/meta-oe/recipes-devtools/unifex/unifex_git.bb
new file mode 100644
index 000000000..85fe39b6d
--- /dev/null
+++ b/meta-openembedded/meta-oe/recipes-devtools/unifex/unifex_git.bb
@@ -0,0 +1,24 @@
+DESCRIPTION = "C++ Unified Executors library"
+HOMEPAGE = "https://github.com/facebookexperimental/libunifex"
+SECTION = "libs"
+LICENSE = "Apache-2.0-with-LLVM-exception"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=5b86506074cb3cdc493b4f96b73b2909"
+
+SRC_URI = "git://github.com/facebookexperimental/libunifex.git;branch=main;protocol=https"
+SRCREV = "9df21c58d34ce8a1cd3b15c3a7347495e29417a0"
+
+S = "${WORKDIR}/git"
+
+inherit cmake pkgconfig
+
+PACKAGECONFIG ??= "liburing"
+PACKAGECONFIG[liburing] = ",,liburing"
+
+EXTRA_OECMAKE += " \
+ -DBUILD_SHARED_LIBS=ON \
+ -DBUILD_TESTING=OFF \
+ -DCMAKE_CXX_STANDARD=20 \
+ -DUNIFEX_BUILD_EXAMPLES=OFF \
+ "
+
+BBCLASSEXTEND = "native nativesdk"