bredis: add package (#4438)

* bredis: add package

* fix syslinks

* fix test
pull/4444/head
star9029 5 months ago committed by GitHub
parent 02784f8e84
commit 81753e24d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 28
      packages/b/bredis/xmake.lua

@ -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…
Cancel
Save