|
|
@ -26,8 +26,8 @@ package("folly") |
|
|
|
|
|
|
|
|
|
|
|
add_patches("<=2022.08.29", path.join(os.scriptdir(), "patches", "2021.06.28", "reorder.patch"), "9a6bf283881580474040cfc7a8e89d461d68b89bae5583d89fff0a3198739980") |
|
|
|
add_patches("<=2022.08.29", path.join(os.scriptdir(), "patches", "2021.06.28", "reorder.patch"), "9a6bf283881580474040cfc7a8e89d461d68b89bae5583d89fff0a3198739980") |
|
|
|
add_patches("<=2022.08.29", path.join(os.scriptdir(), "patches", "2021.06.28", "regex.patch"), "6a77ade9f48dd9966d3f7154e66ca8a5c030ae2b6d335cbe3315784aefd8f495") |
|
|
|
add_patches("<=2022.08.29", path.join(os.scriptdir(), "patches", "2021.06.28", "regex.patch"), "6a77ade9f48dd9966d3f7154e66ca8a5c030ae2b6d335cbe3315784aefd8f495") |
|
|
|
add_patches("<=2024.04.01", path.join(os.scriptdir(), "patches", "2023.11.20", "pkgconfig.patch"), "6838623d453418569853f62ad97c729e802a120c13d804aabba6d6455997e674") |
|
|
|
add_patches("<=2024.07.01", path.join(os.scriptdir(), "patches", "2023.11.20", "pkgconfig.patch"), "6838623d453418569853f62ad97c729e802a120c13d804aabba6d6455997e674") |
|
|
|
add_patches("<=2024.04.01", path.join(os.scriptdir(), "patches", "2023.11.20", "msvc.patch"), "1ee01c75528bd42736541022af461e44af3031c01d62c9342006f0abc0f44f2d") |
|
|
|
add_patches("<=2024.07.01", path.join(os.scriptdir(), "patches", "2023.11.20", "msvc.patch"), "1ee01c75528bd42736541022af461e44af3031c01d62c9342006f0abc0f44f2d") |
|
|
|
|
|
|
|
|
|
|
|
if is_plat("windows") then |
|
|
|
if is_plat("windows") then |
|
|
|
add_configs("shared", {description = "Build shared library.", default = false, type = "boolean", readonly = true}) |
|
|
|
add_configs("shared", {description = "Build shared library.", default = false, type = "boolean", readonly = true}) |
|
|
@ -65,7 +65,7 @@ package("folly") |
|
|
|
end |
|
|
|
end |
|
|
|
end) |
|
|
|
end) |
|
|
|
|
|
|
|
|
|
|
|
on_install("linux", "macosx", function (package) |
|
|
|
on_install("windows|x64", "macosx", "linux", function (package) |
|
|
|
local configs = {"-DBUILD_TESTS=OFF", |
|
|
|
local configs = {"-DBUILD_TESTS=OFF", |
|
|
|
"-DCMAKE_DISABLE_FIND_PACKAGE_Libiberty=ON", |
|
|
|
"-DCMAKE_DISABLE_FIND_PACKAGE_Libiberty=ON", |
|
|
|
"-DCMAKE_DISABLE_FIND_PACKAGE_LibURCU=ON", |
|
|
|
"-DCMAKE_DISABLE_FIND_PACKAGE_LibURCU=ON", |
|
|
@ -80,7 +80,7 @@ package("folly") |
|
|
|
import("package.tools.cmake").install(package, configs) |
|
|
|
import("package.tools.cmake").install(package, configs) |
|
|
|
end) |
|
|
|
end) |
|
|
|
|
|
|
|
|
|
|
|
on_test("macosx", function (package) |
|
|
|
on_test("windows|x64", "macosx", function (package) |
|
|
|
assert(package:check_cxxsnippets({test = [[ |
|
|
|
assert(package:check_cxxsnippets({test = [[ |
|
|
|
#include <cassert> |
|
|
|
#include <cassert> |
|
|
|
void test() { |
|
|
|
void test() { |
|
|
|