package An official xmake package repository
https://xrepo.xmake.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
1005 B
23 lines
1005 B
package("thread-pool") |
|
set_kind("library", {headeronly = true}) |
|
set_homepage("https://github.com/bshoshany/thread-pool") |
|
set_description("BS::thread_pool: a fast, lightweight, and easy-to-use C++17 thread pool library") |
|
set_license("MIT") |
|
|
|
add_urls("https://github.com/bshoshany/thread-pool/archive/refs/tags/$(version).tar.gz", |
|
"https://github.com/bshoshany/thread-pool.git") |
|
|
|
add_versions("v4.1.0", "be7abecbc420bb87919eeef729b13ff7c29d5ce547bdae284923296c695415bd") |
|
add_versions("v3.3.0", "b76c0103c7ed07c137bd5b1988b9c09da280bbbad37588a096d2954c8d996e0f") |
|
|
|
on_install(function (package) |
|
if 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"})) |
|
end)
|
|
|