소스 검색

thrift: fix deps (#6868)

* thrift: fix deps

* add icu
star9029 5 달 전
부모
커밋
51bc11586c
1개의 변경된 파일2개의 추가작업 그리고 7개의 파일을 삭제
  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_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"}
     local configdeps = {"glib", "libevent", "openssl", "zlib", "qt5"}
     for _, dep in pairs(configdeps) do
     for _, dep in pairs(configdeps) do
@@ -72,7 +68,6 @@ package("thrift")
         table.insert(configs, "-DBUILD_COMPILER=" .. (package:config("compiler") and "ON" or "OFF"))
         table.insert(configs, "-DBUILD_COMPILER=" .. (package:config("compiler") and "ON" or "OFF"))
         if package:is_plat("windows") then
         if package:is_plat("windows") then
             table.insert(configs, "-DWITH_MT=" .. (package:has_runtime("MT") and "ON" or "OFF"))
             table.insert(configs, "-DWITH_MT=" .. (package:has_runtime("MT") and "ON" or "OFF"))
-            table.insert(configs, "-DCMAKE_COMPILE_PDB_OUTPUT_DIRECTORY=''")
         end
         end
         import("package.tools.cmake").install(package, configs)
         import("package.tools.cmake").install(package, configs)
     end)
     end)