add cpp-channel (#4478)
* add cpp-channel * Update xmake.lua * Update xmake.lua --------- Co-authored-by: heheda123123 <you@example.com> Co-authored-by: star9029 <hengxings783@gmail.com>pull/4482/head
parent
d583d25e52
commit
c472fa4687
1 changed files with 22 additions and 0 deletions
@ -0,0 +1,22 @@ |
|||||||
|
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) |
Loading…
Reference in new issue