add meowhash (#661)

* add meowhash

* Update xmake.lua
pull/665/head
ruki 3 years ago committed by GitHub
parent 8eb2df957d
commit 5df43bb867
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 21
      packages/m/meowhash/xmake.lua

@ -0,0 +1,21 @@
package("meowhash")
set_kind("library", {headeronly = true})
set_homepage("https://mollyrocket.com/meowhash")
set_description("Official version of the Meow hash, an extremely fast level 1 hash")
add_urls("https://github.com/cmuratori/meow_hash.git")
add_versions("1.0.0", "b080caa7e51576fe3151c8976110df7966fa6a38")
if is_plat("linux", "macosx", "bsd") then
add_cxflags("-maes", "-mpclmul", "-mssse3")
end
on_install("macosx", "windows", "linux", "bsd", function (package)
os.cp("meow_hash_x64_aesni.h", package:installdir("include"))
end)
on_test(function (package)
assert(package:has_cfuncs("MeowHash", {includes = "meow_hash_x64_aesni.h"}))
end)
Loading…
Cancel
Save