xpxz 6 月之前
父节点
当前提交
a92f7db212
共有 1 个文件被更改,包括 22 次插入0 次删除
  1. 22 0
      packages/c/choc/xmake.lua

+ 22 - 0
packages/c/choc/xmake.lua

@@ -0,0 +1,22 @@
+package("choc")
+    set_kind("library", {headeronly = true})
+    set_homepage("https://github.com/Tracktion/choc")
+    set_description("A collection of header only classes, permissively licensed, to provide basic useful tasks with the bare-minimum of dependencies.")
+    set_license("ISC")
+
+    add_urls("https://github.com/Tracktion/choc.git")
+    add_versions("2025.01.27", "6dfac9fec70eae9159e64dc55538d40a2171175e")
+
+    on_install(function (package)
+        os.cp("*", package:installdir("include"))
+    end)
+
+    on_test(function (package)
+        assert(package:check_cxxsnippets({test = [[
+            #include <text/choc_StringUtilities.h>
+
+            void test() {
+               choc::text::isDigit('1');
+            }
+        ]]}, {configs = {languages = "cxx17"}}))
+    end)