mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-05 19:08:13 +00:00
Fix raygui.c leftover from zig build (#3417)
This commit is contained in:
@@ -53,12 +53,12 @@ pub fn addRaylib(b: *std.Build, target: std.zig.CrossTarget, optimize: std.built
|
||||
}, raylib_flags);
|
||||
}
|
||||
|
||||
var gen_step = std.build.Step.WriteFile.create(b);
|
||||
var gen_step = b.addWriteFiles();
|
||||
raylib.step.dependOn(&gen_step.step);
|
||||
|
||||
if (options.raygui) {
|
||||
_ = gen_step.add(srcdir ++ "/raygui.c", "#define RAYGUI_IMPLEMENTATION\n#include \"raygui.h\"\n");
|
||||
raylib.addCSourceFile(.{ .file = .{ .path = srcdir ++ "/raygui.c" }, .flags = raylib_flags });
|
||||
const raygui_c_path = gen_step.add("raygui.c", "#define RAYGUI_IMPLEMENTATION\n#include \"raygui.h\"\n");
|
||||
raylib.addCSourceFile(.{ .file = raygui_c_path, .flags = raylib_flags });
|
||||
raylib.addIncludePath(.{ .path = srcdir });
|
||||
raylib.addIncludePath(.{ .path = srcdir ++ "/../../raygui/src" });
|
||||
}
|
||||
|
Reference in New Issue
Block a user