Raylib5.0 with zig >= 12.0 changes and removal of cmake related compilation options and project compilation
This commit is contained in:
parent
ae50bfa2cc
commit
db00a274c7
1 changed files with 213 additions and 66534 deletions
10
build.zig
10
build.zig
|
|
@ -1,7 +1,11 @@
|
|||
const std = @import("std");
|
||||
const raylib = @import("src/build.zig");
|
||||
|
||||
// This has been tested to work with zig 0.11.0
|
||||
pub fn build(b: *std.Build) void {
|
||||
raylib.build(b);
|
||||
// This has been tested to work with zig 0.12.0
|
||||
pub fn build(b: *std.Build) !void {
|
||||
try raylib.build(b);
|
||||
}
|
||||
|
||||
// expose helper functions to user's build.zig
|
||||
pub const addRaylib = raylib.addRaylib;
|
||||
pub const addRaygui = raylib.addRaygui;
|
||||
|
|
|
|||
Loading…
Reference in a new issue