Преглед на файлове

add paul_thread-pool (#2917)

* add paul_thread-pool

* Update xmake.lua

* Update xmake.lua

* rename

---------

Co-authored-by: Your Name <[email protected]>
xpxz преди 1 година
родител
ревизия
ff1c401fb8
променени са 1 файла, в които са добавени 24 реда и са изтрити 0 реда
  1. 24 0
      packages/p/paul_thread_pool/xmake.lua

+ 24 - 0
packages/p/paul_thread_pool/xmake.lua

@@ -0,0 +1,24 @@
+package("paul_thread_pool")
+    set_kind("library", {headeronly = true})
+    set_homepage("https://github.com/DeveloperPaul123/thread-pool")
+    set_description("A modern, fast, lightweight thread pool library based on C++20")
+    set_license("MIT")
+
+    add_urls("https://github.com/DeveloperPaul123/thread-pool/archive/refs/tags/$(version).zip")
+    add_versions("0.6.2", "a2b722560449da53faf4753288a5fb2074d88b1fa9bba257c85425b3e48ecb2c")
+
+    on_install("windows", "linux", "macosx", "mingw", function (package)
+        os.cp("include", package:installdir())
+    end)
+
+    on_test(function (package)
+        assert(package:check_cxxsnippets({test = [[
+            #include <thread>
+            #include <thread_pool/thread_pool.h>
+
+            void test()
+            {
+                dp::thread_pool pool;
+            }
+        ]]}, {configs = {languages = "c++20"}}))
+    end)