Skip to content

Commit

Permalink
fix(harfbuzz): fix windows shared lib build
Browse files Browse the repository at this point in the history
  • Loading branch information
DreamOfIce committed Aug 13, 2023
1 parent 1f0a2e8 commit ef4bd94
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/h/harfbuzz/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ package("harfbuzz")
local configs = {"-Dtests=disabled", "-Ddocs=disabled", "-Dbenchmark=disabled", "-Dcairo=disabled", "-Dglib=disabled", "-Dgobject=disabled"}
if package:is_plat("macosx") then
table.insert(configs, "-Dcoretext=enabled")
else if package:is_plat("windows") and package:kind() == "shared" then
io.replace("meson.build", "msvc_args = [", "msvc_args = [\n'/lz',", {plain = true})
end
table.insert(configs, "-Ddefault_library=" .. (package:config("shared") and "shared" or "static"))
table.insert(configs, "-Dicu=" .. (package:config("icu") and "enabled" or "disabled"))
Expand Down

0 comments on commit ef4bd94

Please sign in to comment.