xmake.lua 723 B

123456789101112131415161718192021
  1. package("meowhash")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://mollyrocket.com/meowhash")
  4. set_description("Official version of the Meow hash, an extremely fast level 1 hash")
  5. add_urls("https://github.com/cmuratori/meow_hash.git")
  6. add_versions("1.0.0", "b080caa7e51576fe3151c8976110df7966fa6a38")
  7. if is_plat("linux", "macosx", "bsd") then
  8. add_cxflags("-maes", "-mpclmul", "-mssse3")
  9. end
  10. on_install("macosx", "windows", "linux", "bsd", function (package)
  11. os.cp("meow_hash_x64_aesni.h", package:installdir("include"))
  12. end)
  13. on_test(function (package)
  14. assert(package:has_cfuncs("MeowHash", {includes = "meow_hash_x64_aesni.h"}))
  15. end)