improve folly (#4381)

* Create xmake.lua

* Update xmake.lua

* Update xmake.lua

* Update xmake.lua

* Update xmake.lua

* Update xmake.lua

* Update xmake.lua

* Update xmake.lua

* Update xmake.lua

* add namespace

* try different clang version

* test problematic source

* Update xmake.lua

* rollback ubuntu_clang.yml

* Delete packages/c/cachelib/xmake.lua

* Update xmake.lua

* Update xmake.lua

* Update xmake.lua

* test

* rollback test

* Update xmake.lua
pull/4403/head
c8ef 8 months ago committed by GitHub
parent 157c5563b3
commit 6ede0ce215
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 9
      packages/f/folly/xmake.lua

@ -33,6 +33,7 @@ package("folly")
add_configs("lzma", {description = "Support LZMA for compression", default = true, type = "boolean"})
add_configs("libaio", {description = "Support compile with libaio", default = true, type = "boolean"})
add_configs("liburing", {description = "Support compile with liburing", default = true, type = "boolean"})
add_configs("libdwarf", {description = "Support compile with libdwarf", default = true, type = "boolean"})
add_deps("cmake")
add_deps("boost", {configs = {date_time = true, iostreams = true, context = true, filesystem = true, program_options = true, regex = true, system = true, thread = true}})
@ -56,11 +57,13 @@ package("folly")
if package:is_plat("linux") and package:config("liburing") then
package:add("deps", "liburing")
end
if package:config("libdwarf") then
package:add("deps", "libdwarf")
end
end)
on_install("linux", "macosx", function (package)
local configs = {"-DBUILD_TESTS=OFF",
"-DCMAKE_DISABLE_FIND_PACKAGE_LibDwarf=ON",
"-DCMAKE_DISABLE_FIND_PACKAGE_Libiberty=ON",
"-DCMAKE_DISABLE_FIND_PACKAGE_LibURCU=ON",
"-DLIBURCU_FOUND=OFF",
@ -71,10 +74,6 @@ package("folly")
if package:is_plat("windows") then
table.insert(configs, "-DBoost_USE_STATIC_RUNTIME=" .. (package:config("vs_runtime"):startswith("MT") and "ON" or "OFF"))
end
if not package:is_plat("linux") then
table.insert(configs, "-DCMAKE_DISABLE_FIND_PACKAGE_LibAIO=ON")
table.insert(configs, "-DLIBAIO_FOUND=OFF")
end
import("package.tools.cmake").install(package, configs)
end)

Loading…
Cancel
Save