From c3efa0f1abcf07558ad4374a275ed782e1535834 Mon Sep 17 00:00:00 2001 From: star9029 Date: Thu, 20 Jun 2024 22:40:42 +0800 Subject: [PATCH] crstl: add package (#4414) --- packages/c/crstl/xmake.lua | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 packages/c/crstl/xmake.lua diff --git a/packages/c/crstl/xmake.lua b/packages/c/crstl/xmake.lua new file mode 100644 index 000000000..f78cc4ea1 --- /dev/null +++ b/packages/c/crstl/xmake.lua @@ -0,0 +1,19 @@ +package("crstl") + set_kind("library", {headeronly = true}) + set_homepage("https://github.com/redorav/crstl") + set_description("STL whose aim is to compile fast, run fast, and be clear to read") + + add_urls("https://github.com/redorav/crstl.git") + add_versions("2024.06.04", "0c31b6c76ff74521b2f50b1643f8f3d207184c6c") + + on_install(function (package) + os.cp("include", package:installdir()) + end) + + on_test(function (package) + assert(package:check_cxxsnippets({test = [[ + void test() { + crstl::fixed_vector v; + } + ]]}, {configs = {languages = "c++11"}, includes = {"crstl/fixed_vector.h"}})) + end)