Skip to content

Commit 26c1453

Browse files
committed
fix MacOS SDL3 build
1 parent d6cc2ee commit 26c1453

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

build.zig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,14 @@ pub fn build(b: *std.Build) void {
6666
.files = srcs,
6767
});
6868

69+
if (target.result.os.tag == .macos) {
70+
lib.addCSourceFile(.{
71+
.file = upstream.path("src/IMG_ImageIO.m"),
72+
});
73+
lib.linkFramework("Foundation");
74+
lib.linkFramework("ApplicationServices");
75+
}
76+
6977
lib.installHeadersDirectory(upstream.path("include"), "", .{});
7078

7179
b.installArtifact(lib);

0 commit comments

Comments
 (0)