xmake.lua 747 B

12345678910111213141516171819202122
  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. set_license("zlib")
  6. add_urls("https://github.com/cmuratori/meow_hash.git")
  7. add_versions("1.0.0", "b080caa7e51576fe3151c8976110df7966fa6a38")
  8. if is_plat("linux", "macosx", "bsd") then
  9. add_cxflags("-maes", "-mpclmul", "-mssse3")
  10. end
  11. on_install("macosx", "windows", "linux", "bsd", function (package)
  12. os.cp("meow_hash_x64_aesni.h", package:installdir("include"))
  13. end)
  14. on_test(function (package)
  15. assert(package:has_cfuncs("MeowHash", {includes = "meow_hash_x64_aesni.h"}))
  16. end)