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
add_configs("pyver", {description = "python version x.y, etc. 3.10", default = "3.10"})
local libnames = {"fiber",
"coroutine",
"context",
"regex",
"system",
local libnames = {"atomic",
"charconv",
"chrono",
"cobalt",
"container",
"context",
"contract",
"coroutine",
"date_time",
"exception",
"timer",
"atomic",
"fiber",
"filesystem",
"graph",
"serialization",
"random",
"wave",
"date_time",
"locale",
"iostreams",
"program_options",
"test",
"chrono",
"contract",
"graph_parallel",
"headers",
"iostreams",
"json",
"locale",
"log",
"thread",
"filesystem",
"math",
"mpi",
"nowide",
"program_options",
"python",
"random",
"regex",
"serialization",
"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("multi", { description = "Enable multi-thread support.", default = true, type = "boolean"})
@ -412,6 +416,14 @@ package("boost")
}
]]}, {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
assert(package:check_cxxsnippets({test = [[
#include <boost/date_time/gregorian/gregorian.hpp>
@ -455,7 +467,7 @@ package("boost")
boost::iostreams::filtering_ostream out;
out.push(boost::iostreams::lzma_compressor());
}
]]}, {configs = {languages = "c++14"}}))
]]}, {configs = {languages = "c++14"}}))
end
end
end)

Loading…
Cancel
Save