Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add acl-server lib #2837

Closed
wants to merge 22 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions packages/a/acl-server/xmake.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package("acl-server")

set_homepage("https://github.com/acl-dev/acl")
set_description("A powerful multi-platform network communication library and service framework")
set_license("LGPL-3.0")

set_urls("https://github.com/acl-dev/acl/archive/refs/tags/v$(version).tar.gz")
add_versions("3.6.1-6", "7bafe00fe6b9601953b95b4d9a80f3421fac44365d452de31936c98517c5a23a")

on_install(function (package)
import("package.tools.xmake").install(package)
end)

on_test(function (package)
assert(package:check_cxxsnippets({test = [[
#include <iostream>
#include "acl_cpp/lib_acl.hpp"
void test() {
acl::string buf = "hello world!\r\n";
std::cout << buf.c_str() << std::endl;
}
]]}))
end)
23 changes: 23 additions & 0 deletions packages/a/asio2/xmake.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package("asio2")

set_kind("library", {headeronly = true})
set_homepage("https://github.com/zhllxt/asio2")
set_description("Header only c++ network library, based on asio, support tcp,udp,http,websocket,rpc,ssl,icmp,serial_port.")
set_license("BSL-1.0")

add_urls("https://github.com/zhllxt/asio2.git")
add_versions("2023.05.09", "ac8c79964d79020091e38fcbb4ae9dccccb3b03c")

on_install(function (package)
os.cp(path.join("3rd" , "*"), package:installdir("include"))
os.cp(path.join("include", "*"), package:installdir("include"))
end)

on_test(function (package)
assert(package:check_cxxsnippets({test = [[
#include <asio2/asio2.hpp>
void test() {
asio2::tcp_server server;
}
]]}, {configs = {languages = "c++17"}}))
end)
Loading