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.
 
 
 

30 lines
1010 B

package("rest_rpc")
set_kind("library", {headeronly = true})
set_homepage("https://github.com/qicosmos/rest_rpc")
set_description("c++11, high performance, cross platform, easy to use rpc framework.")
set_license("MIT")
add_urls("https://github.com/qicosmos/rest_rpc.git")
add_versions("2023.6.14", "8782f1d341e1dd18f9fe3a77b8335fd17a5ba585")
add_deps("asio", "msgpack-cxx")
if is_plat("mingw") then
add_syslinks("ws2_32")
end
on_install("windows", "macosx", "linux", "mingw", function (package)
os.cp("include", package:installdir())
end)
on_test(function (package)
assert(package:check_cxxsnippets({test = [[
#include "rest_rpc.hpp"
void test() {
rest_rpc::rpc_client client("127.0.0.1", 9000);
client.connect();
int result = client.call<int>("add", 1, 2);
client.run();
}
]]}, {configs = {languages = "c++11"}}))
end)