try enable more feature of boost (#4443)

* try enable more feature of boost

* Update xmake.lua

* Update xmake.lua

* ident adjust
cppp-reiconv-patch
c8ef 5 months ago committed by GitHub
parent 939a4b6bef
commit 619f703a2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 54
      packages/b/boost/xmake.lua

@ -41,37 +41,41 @@ package("boost")
end end
add_configs("pyver", {description = "python version x.y, etc. 3.10", default = "3.10"}) add_configs("pyver", {description = "python version x.y, etc. 3.10", default = "3.10"})
local libnames = {"fiber", local libnames = {"atomic",
"coroutine", "charconv",
"context", "chrono",
"regex", "cobalt",
"system",
"container", "container",
"context",
"contract",
"coroutine",
"date_time",
"exception", "exception",
"timer", "fiber",
"atomic", "filesystem",
"graph", "graph",
"serialization",
"random",
"wave",
"date_time",
"locale",
"iostreams",
"program_options",
"test",
"chrono",
"contract",
"graph_parallel", "graph_parallel",
"headers",
"iostreams",
"json", "json",
"locale",
"log", "log",
"thread",
"filesystem",
"math", "math",
"mpi", "mpi",
"nowide", "nowide",
"program_options",
"python", "python",
"random",
"regex",
"serialization",
"stacktrace", "stacktrace",
"type_erasure"} "system",
"test",
"thread",
"timer",
"type_erasure",
"url",
"wave"}
add_configs("all", { description = "Enable all library modules support.", default = false, type = "boolean"}) add_configs("all", { description = "Enable all library modules support.", default = false, type = "boolean"})
add_configs("multi", { description = "Enable multi-thread support.", default = true, type = "boolean"}) add_configs("multi", { description = "Enable multi-thread support.", default = true, type = "boolean"})
@ -412,6 +416,14 @@ package("boost")
} }
]]}, {configs = {languages = "c++14"}})) ]]}, {configs = {languages = "c++14"}}))
assert(package:check_cxxsnippets({test = [[
#include <boost/unordered_map.hpp>
static void test() {
boost::unordered_map<std::string, int> map;
map["2"] = 2;
}
]]}, {configs = {languages = "c++14"}}))
if package:config("date_time") then if package:config("date_time") then
assert(package:check_cxxsnippets({test = [[ assert(package:check_cxxsnippets({test = [[
#include <boost/date_time/gregorian/gregorian.hpp> #include <boost/date_time/gregorian/gregorian.hpp>
@ -455,7 +467,7 @@ package("boost")
boost::iostreams::filtering_ostream out; boost::iostreams::filtering_ostream out;
out.push(boost::iostreams::lzma_compressor()); out.push(boost::iostreams::lzma_compressor());
} }
]]}, {configs = {languages = "c++14"}})) ]]}, {configs = {languages = "c++14"}}))
end end
end end
end) end)

Loading…
Cancel
Save