parent
8eb2df957d
commit
5df43bb867
1 changed files with 21 additions and 0 deletions
@ -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…
Reference in new issue