Skip to content

Commit

Permalink
Attempt to fix macos host builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Beyley committed Nov 5, 2023
1 parent cd3f35a commit 8b3f030
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,13 @@ pub fn build(b: *std.Build) !void {
.name = "asset_processor",
.root_source_file = .{ .path = root_path ++ "image_processor.zig" },
});

if (target.isDarwin()) {
process_assets_exe.addIncludePath(.{ .path = root_path ++ "libs/system-sdk/macos12/usr/include" });
process_assets_exe.addFrameworkPath(.{ .path = root_path ++ "libs/system-sdk/macos12/System/Library/Frameworks" });
process_assets_exe.addLibraryPath(.{ .path = root_path ++ "libs/system-sdk/macos12/usr/lib" });
}

process_assets_exe.linkLibC();
process_assets_exe.addModule("zigimg", zigimg_module);
var run_process_assets = b.addRunArtifact(process_assets_exe);
Expand Down

0 comments on commit 8b3f030

Please sign in to comment.