소스 검색

try enable more feature of boost (#4443)

* try enable more feature of boost

* Update xmake.lua

* Update xmake.lua

* ident adjust
c8ef 1 년 전
부모
커밋
619f703a2d
1개의 변경된 파일33개의 추가작업 그리고 21개의 파일을 삭제
  1. 33 21
      packages/b/boost/xmake.lua

+ 33 - 21
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)