2
0

xmake.lua 796 B

123456789101112131415161718192021
  1. package("plf_stack")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://plflib.org/stack.htm")
  4. set_description("A data container replicating std::stack functionality but with better performance than standard library containers in a stack context.")
  5. set_license("zlib")
  6. add_urls("https://github.com/mattreecebentley/plf_stack.git")
  7. add_versions("v2.03", "ec248e8eb98667ffc9cc1415f7750a774a2fc359")
  8. on_install(function (package)
  9. os.cp("plf_stack.h", package:installdir("include"))
  10. end)
  11. on_test(function (package)
  12. assert(package:check_cxxsnippets({test = [[
  13. #include <plf_stack.h>
  14. void test() {
  15. plf::stack<int> i_stack;
  16. }
  17. ]]}, {configs = {languages = "c++17"}}))
  18. end)