xmake.lua 751 B

123456789101112131415161718
  1. package("rapidhash")
  2. set_kind("library", {headeronly = true})
  3. set_description("Very fast, high quality, platform independant hashing algorithm.")
  4. set_homepage("https://github.com/Nicoshev/rapidhash")
  5. set_license("BSD-2-Clause")
  6. add_urls("https://github.com/Nicoshev/rapidhash/archive/refs/tags/rapidhash_$(version).tar.gz",
  7. "https://github.com/Nicoshev/rapidhash.git")
  8. add_versions("v1.0", "d295e66eec6745cc0e0c8c65fb8b5edf08ab3af83b0a503c54c6705144b53848")
  9. on_install(function(package)
  10. os.cp("rapidhash.h", package:installdir("include"))
  11. end)
  12. on_test(function(package)
  13. assert(package:has_cxxfuncs("rapidhash", {configs = {languages = "c++11"}, includes = "rapidhash.h"}))
  14. end)