Procházet zdrojové kódy

thrift: fix deps (#6868)

* thrift: fix deps

* add icu
star9029 před 5 měsíci
rodič
revize
51bc11586c
1 změnil soubory, kde provedl 2 přidání a 7 odebrání
  1. 2 7
      packages/t/thrift/xmake.lua

+ 2 - 7
packages/t/thrift/xmake.lua

@@ -19,12 +19,8 @@ package("thrift")
 
     add_configs("compiler", {description = "Build compiler", default = false, type = "boolean"})
 
-    add_deps("cmake", "boost")
-    if is_plat("windows") then
-        add_deps("winflexbison")
-    else
-        add_deps("flex", "bison")
-    end
+    add_deps("cmake", "flex", "bison", {kind = "binary"})
+    add_deps("boost", {configs = {locale = true, icu = true}})
 
     local configdeps = {"glib", "libevent", "openssl", "zlib", "qt5"}
     for _, dep in pairs(configdeps) do
@@ -72,7 +68,6 @@ package("thrift")
         table.insert(configs, "-DBUILD_COMPILER=" .. (package:config("compiler") and "ON" or "OFF"))
         if package:is_plat("windows") then
             table.insert(configs, "-DWITH_MT=" .. (package:has_runtime("MT") and "ON" or "OFF"))
-            table.insert(configs, "-DCMAKE_COMPILE_PDB_OUTPUT_DIRECTORY=''")
         end
         import("package.tools.cmake").install(package, configs)
     end)