Update build.zig
This commit is contained in:
parent
65291b957a
commit
f4964056e3
|
|
@ -227,10 +227,9 @@ fn compileRaylib(b: *std.Build, target: std.Build.ResolvedTarget, optimize: std.
|
||||||
raylib.addIncludePath(b.path("src/platforms"));
|
raylib.addIncludePath(b.path("src/platforms"));
|
||||||
switch (target.result.os.tag) {
|
switch (target.result.os.tag) {
|
||||||
.windows => {
|
.windows => {
|
||||||
try raylib_flags_arr.append("-DUNICODE");
|
|
||||||
switch (options.platform) {
|
switch (options.platform) {
|
||||||
.glfw => try c_source_files.append(b.allocator, "src/rglfw.c"),
|
.glfw => try c_source_files.append(b.allocator, "src/rglfw.c"),
|
||||||
.rgfw, .sdl, .drm, .android, .win32 => {},
|
.rgfw, .sdl, .drm, .android => {},
|
||||||
}
|
}
|
||||||
raylib.root_module.linkSystemLibrary("winmm", .{});
|
raylib.root_module.linkSystemLibrary("winmm", .{});
|
||||||
raylib.root_module.linkSystemLibrary("gdi32", .{});
|
raylib.root_module.linkSystemLibrary("gdi32", .{});
|
||||||
|
|
@ -486,7 +485,6 @@ pub const PlatformBackend = enum {
|
||||||
sdl,
|
sdl,
|
||||||
drm,
|
drm,
|
||||||
android,
|
android,
|
||||||
win32,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
pub fn build(b: *std.Build) !void {
|
pub fn build(b: *std.Build) !void {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user