Skip to content

Commit

Permalink
Update xmake.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
star-hengxing authored Mar 4, 2025
1 parent 1b05253 commit fa1543d
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions packages/i/icu4c/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,9 @@ package("icu4c")

on_load(function (package)
if package:is_cross() then
package:add("deps", "icu4c~host", {kind = "binary", private = true, configs = {tools = true}})
package:add("deps", "icu4c~host", {kind = "binary", private = true})
else
if package:config("tools") then
package:addenv("PATH", "bin")
end
package:addenv("PATH", "bin")
end

if not is_plat("windows") and (is_subhost("windows") and os.arch() == "x64") then
Expand Down Expand Up @@ -164,12 +162,8 @@ package("icu4c")
if package:is_plat("mingw") then
table.insert(configs, "--with-data-packaging=dll")
end
if package:config("tools") then
table.insert(configs, "--enable-tools")
else
table.insert(configs, "--disable-tools")
end
if package:is_cross() then
table.insert(configs, "--disable-tools")
table.insert(configs, "--with-cross-build=" .. path.unix(package:dep("icu4c"):installdir()))
end

Expand Down

0 comments on commit fa1543d

Please sign in to comment.