Skip to content

Commit

Permalink
update build.zig (#2720)
Browse files Browse the repository at this point in the history
zig `master` now enforces to use addIncludePath instead of addIncludeDir
  • Loading branch information
ryupold authored Sep 26, 2022
1 parent e9ca38f commit 8f88c61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub fn addRaylib(b: *std.build.Builder, target: std.zig.CrossTarget) *std.build.
raylib.setBuildMode(mode);
raylib.linkLibC();

raylib.addIncludeDir(srcdir ++ "/external/glfw/include");
raylib.addIncludePath(srcdir ++ "/external/glfw/include");

raylib.addCSourceFiles(&.{
srcdir ++ "/raudio.c",
Expand All @@ -35,7 +35,7 @@ pub fn addRaylib(b: *std.build.Builder, target: std.zig.CrossTarget) *std.build.
raylib.linkSystemLibrary("winmm");
raylib.linkSystemLibrary("gdi32");
raylib.linkSystemLibrary("opengl32");
raylib.addIncludeDir("external/glfw/deps/mingw");
raylib.addIncludePath("external/glfw/deps/mingw");
},
.linux => {
raylib.addCSourceFiles(&.{srcdir ++ "/rglfw.c"}, raylib_flags);
Expand Down

0 comments on commit 8f88c61

Please sign in to comment.