From bc0d5135ede92584157e57642d62b5a42ec9d396 Mon Sep 17 00:00:00 2001 From: c8ef Date: Fri, 8 Mar 2024 11:56:35 +0800 Subject: [PATCH] add stdexec (#3454) * add stdexec * add deps --- packages/s/stdexec/xmake.lua | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 packages/s/stdexec/xmake.lua diff --git a/packages/s/stdexec/xmake.lua b/packages/s/stdexec/xmake.lua new file mode 100644 index 000000000..a5d8a0796 --- /dev/null +++ b/packages/s/stdexec/xmake.lua @@ -0,0 +1,21 @@ +package("stdexec") + set_kind("library", {headeronly = true}) + set_homepage("https://github.com/NVIDIA/stdexec") + set_description("`std::execution`, the proposed C++ framework for asynchronous and parallel programming. ") + + add_urls("https://github.com/NVIDIA/stdexec.git") + + add_versions("2024.03.08", "b3ba13a7b8c206371207196e08844fb7bc745438") + + add_deps("cmake") + + on_install("linux", function (package) + local configs = {"-DSTDEXEC_BUILD_EXAMPLES=OFF", "-DSTDEXEC_BUILD_TESTS=OFF"} + table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release")) + table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF")) + import("package.tools.cmake").install(package, configs) + end) + + on_test(function (package) + assert(package:has_cxxincludes("exec/static_thread_pool.hpp", {configs = {languages = "c++20"}})) + end)