summaryrefslogtreecommitdiffhomepage
path: root/build.zig
diff options
context:
space:
mode:
authorfreakmangd <[email protected]>2024-04-22 03:13:01 -0400
committerGitHub <[email protected]>2024-04-22 09:13:01 +0200
commite0f6faa151589a185a04c2c723c01daff1b0a78f (patch)
treedcddef7214f1c3002147a86eb019f87535ddc5a0 /build.zig
parent3caa424ad4656b8c8ef8885a234a1a60ade80159 (diff)
downloadraylib-e0f6faa151589a185a04c2c723c01daff1b0a78f.tar.gz
raylib-e0f6faa151589a185a04c2c723c01daff1b0a78f.zip
[build.zig] Drop support for 0.11.0 and use more idiomatic build script code (#3927)
* Remove support for 0.11.0, and make build script more idiomatic + remove all 0.11.0 compatibility functions + remove most LazyPath .path variants + I didn't touch emscripten, I don't know if its relative or absolute + change all absolute paths to use .cwd_relative + only use the builder allocator + have local dependencies use the package manager + make adding raygui more flexible + use zig-cache for generated wayland files * Remove support for 0.11.0 in examples/build.zig * update examples further and add clarifying comment on addRaygui
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig6
1 files changed, 5 insertions, 1 deletions
diff --git a/build.zig b/build.zig
index 4c8ede79..01e7b49f 100644
--- a/build.zig
+++ b/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 and zig 0.12.0-dev.3632+7fb5a0b18
+// 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;