xmake.lua 884 B

123456789101112131415161718192021222324
  1. package("paul_thread_pool")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/DeveloperPaul123/thread-pool")
  4. set_description("A modern, fast, lightweight thread pool library based on C++20")
  5. set_license("MIT")
  6. add_urls("https://github.com/DeveloperPaul123/thread-pool/archive/refs/tags/$(version).zip")
  7. add_versions("0.6.2", "a2b722560449da53faf4753288a5fb2074d88b1fa9bba257c85425b3e48ecb2c")
  8. on_install("windows", "linux", "macosx", "mingw", function (package)
  9. os.cp("include", package:installdir())
  10. end)
  11. on_test(function (package)
  12. assert(package:check_cxxsnippets({test = [[
  13. #include <thread>
  14. #include <thread_pool/thread_pool.h>
  15. void test()
  16. {
  17. dp::thread_pool pool;
  18. }
  19. ]]}, {configs = {languages = "c++20"}}))
  20. end)