package An official xmake package repository
https://xrepo.xmake.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
1.2 KiB
25 lines
1.2 KiB
9 months ago
|
package("wangle")
|
||
|
set_homepage("https://github.com/facebook/wangle")
|
||
|
set_description("Wangle is a framework providing a set of common client/server abstractions for building services in a consistent, modular, and composable way.")
|
||
|
set_license("Apache-2.0")
|
||
|
|
||
|
add_urls("https://github.com/facebook/wangle/releases/download/v$(version).00/wangle-v$(version).00.zip",
|
||
|
"https://github.com/facebook/wangle.git")
|
||
|
add_versions("2024.02.26", "762d24613d17899b3a943285f54c20e680d382ab3d6889aeb0cf92092238d733")
|
||
|
|
||
|
add_deps("cmake", "folly", "fizz")
|
||
|
|
||
|
on_install("linux", "macosx", function (package)
|
||
|
os.cd("wangle")
|
||
|
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("wangle/channel/AsyncSocketHandler.h", {configs = {languages = "c++17"}}))
|
||
|
end)
|