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
xpxz 7 months ago committed by GitHub
parent d583d25e52
commit c472fa4687
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 22
      packages/c/cpp-channel/xmake.lua

@ -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…
Cancel
Save