xmake.lua 658 B

1234567891011121314151617
  1. package("wyhash")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/wangyi-fudan/wyhash")
  4. set_description("The FASTEST QUALITY hash function, random number generators (PRNG) and hash map.")
  5. set_license("Unlicense")
  6. add_urls("https://github.com/wangyi-fudan/wyhash.git")
  7. add_versions("2023.04.10", "77e50f267fbc7b8e2d09f2d455219adb70ad4749")
  8. on_install(function (package)
  9. os.cp("old_versions", package:installdir("include"))
  10. os.cp("*.h", package:installdir("include"))
  11. end)
  12. on_test(function (package)
  13. assert(package:has_cfuncs("wyhash", {includes = "wyhash.h"}))
  14. end)