Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-update thread-pool to v5.0.0 #6024

Merged
merged 3 commits into from
Feb 6, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions packages/t/thread-pool/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,30 @@ package("thread-pool")
add_urls("https://github.com/bshoshany/thread-pool/archive/refs/tags/$(version).tar.gz",
"https://github.com/bshoshany/thread-pool.git")

add_versions("v5.0.0", "617a8fbc2c360577f498998f336777c73d581810831d4ce9c920f11ec680b07b")
add_versions("v4.1.0", "be7abecbc420bb87919eeef729b13ff7c29d5ce547bdae284923296c695415bd")
add_versions("v3.3.0", "b76c0103c7ed07c137bd5b1988b9c09da280bbbad37588a096d2954c8d996e0f")

if on_check then
on_check("bsd", function (package)
if package:version() and package:version():ge("5.0.0") then
raise("package(thread-pool) unsupported platform")
end
end)
end

on_install(function (package)
if package:version():ge("3.5.0") then
if package:version() and package:version():ge("3.5.0") then
os.vcp("include", package:installdir())
else
os.vcp("BS_thread_pool.hpp", package:installdir("include"))
end
end)

on_test(function (package)
assert(package:has_cxxtypes("BS::thread_pool", {configs = {languages = "c++17"}, includes = "BS_thread_pool.hpp"}))
assert(package:check_cxxsnippets({test = [[
void test() {
BS::thread_pool pool;
}
]]}, {configs = {languages = "c++17"}, includes = "BS_thread_pool.hpp"}))
end)
Loading