iterating on the new for loop syntax

This commit is contained in:
Mitchell Hashimoto
2023-02-27 21:53:09 -08:00
parent 8db30107ae
commit 2b73fbaa0d
3 changed files with 17 additions and 9 deletions

View File

@@ -454,9 +454,16 @@ fn addDeps(
system_sdk.include(b, step, .{});
// We always need the Zig packages
// TODO: This can't be the right way to use the new Zig modules system,
// so take a closer look at this again later.
if (enable_fontconfig) step.addModule("fontconfig", fontconfig.module(b));
step.addModule("freetype", freetype.module(b));
step.addModule("harfbuzz", harfbuzz.module(b));
const mod_freetype = freetype.module(b);
const mod_macos = macos.module(b);
step.addModule("freetype", mod_freetype);
step.addModule("harfbuzz", harfbuzz.module(b, .{
.freetype = mod_freetype,
.macos = mod_macos,
}));
step.addModule("imgui", imgui.module(b));
step.addModule("xev", libxev.module(b));
step.addModule("pixman", pixman.module(b));
@@ -466,7 +473,7 @@ fn addDeps(
// Mac Stuff
if (step.target.isDarwin()) {
step.addModule("objc", objc.module(b));
step.addModule("macos", macos.module(b));
step.addModule("macos", mod_macos);
_ = try macos.link(b, step, .{});
}