xmake.lua 797 B

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