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.
22 lines
836 B
22 lines
836 B
package("cpp-channel") |
|
set_kind("library", {headeronly = true}) |
|
set_homepage("https://github.com/andreiavrammsd/cpp-channel") |
|
set_description("Thread-safe container for sharing data between threads") |
|
set_license("MIT") |
|
|
|
add_urls("https://github.com/andreiavrammsd/cpp-channel/archive/refs/tags/$(version).zip", |
|
"https://github.com/andreiavrammsd/cpp-channel.git") |
|
|
|
add_versions("v0.8.2", "36f234c40d59b90356d37b558a8918a86b128030ad5d42d8c6a627cfe81c8624") |
|
|
|
on_install(function (package) |
|
os.cp("include", package:installdir()) |
|
end) |
|
|
|
on_test(function (package) |
|
assert(package:check_cxxsnippets({test = [[ |
|
void test() { |
|
msd::channel<int> chan; |
|
} |
|
]]}, {configs = {languages = "c++11"}, includes = "msd/channel.hpp"})) |
|
end)
|
|
|