xmake.lua 1.3 KB

1234567891011121314151617181920212223242526272829
  1. package("robin-hood-hashing")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/martinus/robin-hood-hashing")
  4. set_description("Fast & memory efficient hashtable based on robin hood hashing for C++11/14/17/20")
  5. set_license("MIT")
  6. add_urls("https://github.com/martinus/robin-hood-hashing/archive/refs/tags/$(version).tar.gz",
  7. "https://github.com/martinus/robin-hood-hashing.git")
  8. add_versions("3.11.3", "dcf2b7fa9ef9dd0c67102d94c28e8df3effbe1845e0ed1f31f4772ca5e857fc4")
  9. add_versions("3.11.5", "3693e44dda569e9a8b87ce8263f7477b23af448a3c3600c8ab9004fe79c20ad0")
  10. on_load(function (package)
  11. wprint("Package deprecated, author reason:\nUnfortunately I do not have time to continue development for this hashmap. I have a worthy successor though, please head over to: ankerl::unordered_dense::{map, set}${clear}")
  12. end)
  13. add_deps("cmake")
  14. on_install(function (package)
  15. import("package.tools.cmake").install(package, {"-DRH_STANDALONE_PROJECT=OFF"})
  16. end)
  17. on_test(function (package)
  18. assert(package:check_cxxsnippets({test = [[
  19. void test() {
  20. robin_hood::unordered_flat_map<int, int> map;
  21. map[123] = 333;
  22. }
  23. ]]}, {configs = {languages = "c++14"}, includes = "robin_hood.h"}))
  24. end)