From 1238e29dd223b98f38f863e308eb9855a3ee4fbc Mon Sep 17 00:00:00 2001 From: c8ef Date: Sun, 9 Jun 2024 15:14:11 +0800 Subject: [PATCH] Create xmake.lua (#4301) --- packages/r/rapidhash/xmake.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 packages/r/rapidhash/xmake.lua diff --git a/packages/r/rapidhash/xmake.lua b/packages/r/rapidhash/xmake.lua new file mode 100644 index 000000000..9458dcb01 --- /dev/null +++ b/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)