xmake.lua 956 B

123456789101112131415161718192021
  1. package("plf_colony")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://plflib.org/colony.htm")
  4. set_description("An unordered C++ data container providing fast iteration/insertion/erasure while maintaining pointer/iterator validity to non-erased elements regardless of insertions/erasures. Provides higher-performance than std:: library containers for high-modification scenarios with unordered data.")
  5. set_license("zlib")
  6. add_urls("https://github.com/mattreecebentley/plf_colony.git")
  7. add_versions("v7.41", "abb0aa6525a3dae56aacf50899517f47e7036016")
  8. on_install(function (package)
  9. os.cp("plf_colony.h", package:installdir("include"))
  10. end)
  11. on_test(function (package)
  12. assert(package:check_cxxsnippets({test = [[
  13. #include <plf_colony.h>
  14. void test() {
  15. plf::colony<int> i_colony;
  16. }
  17. ]]}, {configs = {languages = "c++17"}}))
  18. end)