Skip to content

Commit

Permalink
add meet lib repo (#5591)
Browse files Browse the repository at this point in the history
* add meet lib repo

* Update xmake.lua

* Only windows is supported for the time being

* remove mingw msys

---------

Co-authored-by: star9029 <[email protected]>
  • Loading branch information
cngege and star-hengxing authored Oct 28, 2024
1 parent 51dc33b commit d71b396
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions packages/m/meet/xmake.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package("meet")
set_kind("library", {headeronly = true})
set_homepage("https://github.com/cngege/Meet")
set_description("A header_only network lib.")
set_license("MIT")

add_urls("https://github.com/cngege/Meet/archive/refs/tags/$(version).tar.gz",
"https://github.com/cngege/Meet.git")

add_versions("v0.1.2", "29f214601a25cf25fb3130e24a7b3f616aa58e662509a8b48d6a8383c12e6ca1")

on_install("windows", function (package)
os.cp("include", package:installdir())
end)

on_test(function (package)
assert(package:check_cxxsnippets({test = [[
void test() {
meet::TCPClient c;
}
]]}, {configs = {languages = "c++20"}, includes = {"meet/Meet.hpp"}}))
end)

0 comments on commit d71b396

Please sign in to comment.