Skip to content

Commit

Permalink
Add paul_thread_pool git repo (#6047)
Browse files Browse the repository at this point in the history
* Add paul_thread_pool git repo

* add check

---------

Co-authored-by: star9029 <[email protected]>
  • Loading branch information
KawaiiNahida and star-hengxing authored Dec 25, 2024
1 parent a852a80 commit 68bcc29
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions packages/p/paul_thread_pool/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,21 @@ package("paul_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_urls("https://github.com/DeveloperPaul123/thread-pool/archive/refs/tags/$(version).zip",
"https://github.com/DeveloperPaul123/thread-pool.git")

add_versions("0.6.2", "a2b722560449da53faf4753288a5fb2074d88b1fa9bba257c85425b3e48ecb2c")

on_install("windows", "linux", "macosx", "mingw", function (package)
on_check(function (package)
assert(package:check_cxxsnippets({test = [[
#include <thread>
void test() {
std::jthread t;
}
]]}, {configs = {languages = "c++20"}}), "package(paul_thread_pool) require c++20 jthread")
end)

on_install(function (package)
os.cp("include", package:installdir())
end)

Expand Down

0 comments on commit 68bcc29

Please sign in to comment.