Raylib5.0 with zig >= 12.0 changes and removal of cmake related compilation options and project compilation

This commit is contained in:
alexander 2024-05-28 17:32:14 +01:00
commit db00a274c7

View file

@ -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;