Skip to content

Commit

Permalink
more attempts to fix macos
Browse files Browse the repository at this point in the history
  • Loading branch information
Beyley committed Nov 5, 2023
1 parent 430a60b commit 7c941ce
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const wgpu = @import("wgpu.zig");
const cimgui = @import("libs/cimgui/build.zig");
const iconv = @import("libs/iconv-zig/build.zig");
const ImageProcessor = @import("image_processor.zig");
const builtin = @import("builtin");

pub fn build(b: *std.Build) !void {
const target = b.standardTargetOptions(.{});
Expand All @@ -27,7 +28,10 @@ pub fn build(b: *std.Build) !void {
exe.addIncludePath(.{ .path = root_path ++ "libs/system-sdk/macos12/usr/include" });
exe.addFrameworkPath(.{ .path = root_path ++ "libs/system-sdk/macos12/System/Library/Frameworks" });
exe.addLibraryPath(.{ .path = root_path ++ "libs/system-sdk/macos12/usr/lib" });
b.sysroot = root_path ++ "libs/system-sdk/macos12";

if (!builtin.target.isDarwin()) {
b.sysroot = root_path ++ "libs/system-sdk/macos12";
}

exe.addIncludePath(.{ .path = root_path ++ "game/osx" });
exe.addCSourceFile(.{ .file = .{ .path = root_path ++ "game/osx/osx_helper.mm" }, .flags = &.{"-fobjc-arc"} });
Expand Down

0 comments on commit 7c941ce

Please sign in to comment.