add mvfst lib (#3420)

* add mvfst lib

* add deps

* add deps

* add deps

* addd

* addd
pull/3423/head
c8ef 1 year ago committed by GitHub
parent 964bd9c0af
commit fb41abe4f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      packages/f/folly/xmake.lua
  2. 23
      packages/m/mvfst/xmake.lua

@ -26,7 +26,7 @@ package("folly")
end
add_deps("cmake")
add_deps("boost", {configs = {context = true, filesystem = true, program_options = true, regex = true, system = true, thread = true}})
add_deps("boost", {configs = {date_time = true, iostreams = true, context = true, filesystem = true, program_options = true, regex = true, system = true, thread = true}})
add_deps("libevent", {configs = {openssl = true}})
add_deps("double-conversion", "gflags", "glog", "zlib", "fmt")
add_deps("bzip2", "lz4", "zstd", {optional = true})

@ -0,0 +1,23 @@
package("mvfst")
set_homepage("https://github.com/facebook/mvfst")
set_description("An implementation of the QUIC transport protocol.")
set_license("MIT")
add_urls("https://github.com/facebook/mvfst/archive/refs/tags/v$(version).00.tar.gz",
"https://github.com/facebook/mvfst.git")
add_versions("2024.03.04", "06922633d6ee2f01e77f66812c87517ebbf06bbb56552a61ba1f7a3b757dc15a")
add_deps("cmake", "folly", "fizz")
on_install("linux", function (package)
local configs = {"-DBUILD_TESTS=OFF",
"-DBUILD_EXAMPLES=OFF",
"-DCMAKE_CXX_STANDARD=17"}
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
import("package.tools.cmake").install(package, configs)
end)
on_test(function (package)
assert(package:has_cxxincludes("quic/QuicConstants.h", {configs = {languages = "c++17"}}))
end)
Loading…
Cancel
Save