diff --git a/packages/h/harfbuzz/xmake.lua b/packages/h/harfbuzz/xmake.lua index 395421dad3a..c090ce9c5d8 100644 --- a/packages/h/harfbuzz/xmake.lua +++ b/packages/h/harfbuzz/xmake.lua @@ -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") + elseif package:is_plat("windows") and package:config("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"))