浏览代码

Create xmake.lua (#4301)

c8ef 1 年之前
父节点
当前提交
1238e29dd2
共有 1 个文件被更改,包括 15 次插入0 次删除
  1. 15 0
      packages/r/rapidhash/xmake.lua

+ 15 - 0
packages/r/rapidhash/xmake.lua

@@ -0,0 +1,15 @@
+package("rapidhash")
+    set_kind("library", {headeronly = true})
+    set_description("Very fast, high quality, platform independant hashing algorithm.")
+    set_homepage("https://github.com/Nicoshev/rapidhash")
+
+    add_urls("https://github.com/Nicoshev/rapidhash.git")
+    add_versions("2024.06.06", "e795829fedad966b627b316183901d2670a40af8")
+
+    on_install(function(package)
+        os.cp("rapidhash.h", package:installdir("include"))
+    end)
+
+    on_test(function(package)
+        assert(package:has_cxxfuncs("rapid_mum", {includes = "rapidhash.h"}))      
+    end)