* Add brynet

* Remove Apple support from brynet
pull/243/head
PucklaMotzer09 4 years ago committed by GitHub
parent 05e99e1289
commit df4fdc67f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 24
      packages/b/brynet/xmake.lua

@ -0,0 +1,24 @@
package("brynet")
set_homepage("https://github.com/IronsDu/brynet")
set_description("Header Only Cross platform high performance TCP network library using C++ 11")
set_urls("https://github.com/IronsDu/brynet/archive/v$(version).zip")
add_urls("https://github.com/IronsDu/brynet.git")
add_versions("1.0.9", "a264a6aaf3ec9fd5aa4029a8857be813be203ee7b93997b0c1c5c5e2c5f89a2a")
if is_plat("windows") then
add_syslinks("Ws2_32")
end
on_install("windows", "linux", "android", "cross", function (package)
os.cp("include", package:installdir())
end)
on_test(function (package)
assert(package:check_cxxsnippets({test = [[
void test(int argc, char** argv) {
auto service = brynet::net::TcpService::Create();
}
]]}, {configss = {languages = "c++17"}, includes = "brynet/net/TcpService.hpp"}))
end)
Loading…
Cancel
Save