From 619f703a2dffca53de2a15c7193c236af6727791 Mon Sep 17 00:00:00 2001 From: c8ef Date: Mon, 24 Jun 2024 10:55:20 +0800 Subject: [PATCH] try enable more feature of boost (#4443) * try enable more feature of boost * Update xmake.lua * Update xmake.lua * ident adjust --- packages/b/boost/xmake.lua | 54 +++++++++++++++++++++++--------------- 1 file changed, 33 insertions(+), 21 deletions(-) diff --git a/packages/b/boost/xmake.lua b/packages/b/boost/xmake.lua index daa1b7e79..8a4ddd773 100644 --- a/packages/b/boost/xmake.lua +++ b/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 + static void test() { + boost::unordered_map map; + map["2"] = 2; + } + ]]}, {configs = {languages = "c++14"}})) + if package:config("date_time") then assert(package:check_cxxsnippets({test = [[ #include @@ -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)