fix failing test, freetype needs libpng

This commit is contained in:
Mitchell Hashimoto
2023-10-01 18:33:37 -07:00
parent bb6f17e6ee
commit 4e1b3b3224
2 changed files with 6 additions and 1 deletions

View File

@ -655,6 +655,7 @@ fn addDeps(
const freetype_dep = b.dependency("freetype", .{ const freetype_dep = b.dependency("freetype", .{
.target = step.target, .target = step.target,
.optimize = step.optimize, .optimize = step.optimize,
.@"enable-libpng" = true,
}); });
const mach_glfw_dep = b.dependency("mach_glfw", .{ const mach_glfw_dep = b.dependency("mach_glfw", .{
.target = step.target, .target = step.target,

View File

@ -8,7 +8,11 @@ pub fn build(b: *std.Build) !void {
const coretext_enabled = b.option(bool, "enable-coretext", "Build coretext") orelse false; const coretext_enabled = b.option(bool, "enable-coretext", "Build coretext") orelse false;
const freetype_enabled = b.option(bool, "enable-freetype", "Build freetype") orelse false; const freetype_enabled = b.option(bool, "enable-freetype", "Build freetype") orelse false;
const freetype = b.dependency("freetype", .{ .target = target, .optimize = optimize }); const freetype = b.dependency("freetype", .{
.target = target,
.optimize = optimize,
.@"enable-libpng" = true,
});
const macos = b.dependency("macos", .{ .target = target, .optimize = optimize }); const macos = b.dependency("macos", .{ .target = target, .optimize = optimize });
_ = b.addModule("harfbuzz", .{ _ = b.addModule("harfbuzz", .{