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.
 
 
 

24 lines
907 B

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)