parent
02784f8e84
commit
81753e24d5
1 changed files with 28 additions and 0 deletions
@ -0,0 +1,28 @@ |
||||
package("bredis") |
||||
set_kind("library", {headeronly = true}) |
||||
set_homepage("https://github.com/basiliscos/cpp-bredis") |
||||
set_description("Boost::ASIO low-level redis client (connector)") |
||||
set_license("MIT") |
||||
|
||||
add_urls("https://github.com/basiliscos/cpp-bredis/archive/refs/tags/$(version).tar.gz", |
||||
"https://github.com/basiliscos/cpp-bredis.git") |
||||
|
||||
add_versions("v0.12", "c5a6aa58835d5ef8cd97c4ae7e677f6237ef4ee01ae4a609293e2351c01db6cc") |
||||
|
||||
add_deps("boost") |
||||
|
||||
if is_plat("windows", "mingw") then |
||||
add_syslinks("ws2_32") |
||||
end |
||||
|
||||
on_install("macosx", "linux", "windows", "bsd", "mingw", "cross", function (package) |
||||
os.cp("include", package:installdir()) |
||||
end) |
||||
|
||||
on_test(function (package) |
||||
assert(package:check_cxxsnippets({test = [[ |
||||
void test() { |
||||
bredis::bredis_category x; |
||||
} |
||||
]]}, {configs = {languages = "c++11"}, includes = "bredis/Connection.hpp"})) |
||||
end) |
Loading…
Reference in new issue