parent
05e99e1289
commit
df4fdc67f4
1 changed files with 24 additions and 0 deletions
@ -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…
Reference in new issue