summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorPurple4pur <[email protected]>2023-10-09 19:05:19 +0800
committerGitHub <[email protected]>2023-10-09 13:05:19 +0200
commit540ad9944205235cd9ccbd716c5a667daf929616 (patch)
tree4a0897c819739c6dbc6751fd963c9b9ecc982f70 /src
parentcfffa74f96c06231f6fa327e9cc52863b18d52b2 (diff)
downloadraylib-540ad9944205235cd9ccbd716c5a667daf929616.tar.gz
raylib-540ad9944205235cd9ccbd716c5a667daf929616.zip
Update zig build system to zig version 0.11.0 (#3393)
* update build.zig for zig 0.11.0 * fix build.zig in examples to install executable correctly * discard build.zig, only use src/build.zig, to avoid annoying zig-out path problem * update zig version note
Diffstat (limited to 'src')
-rw-r--r--src/build.zig10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/build.zig b/src/build.zig
index 27250f5f..3bb4f421 100644
--- a/src/build.zig
+++ b/src/build.zig
@@ -1,6 +1,6 @@
const std = @import("std");
-// This has been tested to work with zig master branch as of commit 87de821 or May 14 2023
+// This has been tested to work with zig 0.11.0 (67709b6, Aug 4 2023)
pub fn addRaylib(b: *std.Build, target: std.zig.CrossTarget, optimize: std.builtin.OptimizeMode, options: Options) *std.Build.CompileStep {
const raylib_flags = &[_][]const u8{
"-std=gnu99",
@@ -192,12 +192,12 @@ pub fn build(b: *std.Build) void {
const lib = addRaylib(b, target, optimize, options);
- lib.installHeader("src/raylib.h", "raylib.h");
- lib.installHeader("src/raymath.h", "raymath.h");
- lib.installHeader("src/rlgl.h", "rlgl.h");
+ lib.installHeader("raylib.h", "raylib.h");
+ lib.installHeader("raymath.h", "raymath.h");
+ lib.installHeader("rlgl.h", "rlgl.h");
if (options.raygui) {
- lib.installHeader("../raygui/src/raygui.h", "raygui.h");
+ lib.installHeader("../../raygui/src/raygui.h", "raygui.h");
}
b.installArtifact(lib);