[examples] automatically rebuild raylib
Hooked up raylib as a library in the examples build so that if a change is made in raylib then running `zig build` in the examples directory will automatically rebuild raylib. The main pieces to this are the build.zig.zon file which allows the examples build to see the parent raylib directory. Then we can add raylib as a typical dependency and grab the "raylib" artifact to link to. We also no longer need to add include paths since raylib's build.zig installs them for us.
This commit is contained in:
parent
f5c96302d5
commit
d8d9d7e1c1
1 changed files with 33 additions and 21 deletions
10
examples/build.zig.zon
Normal file
10
examples/build.zig.zon
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
.{
|
||||
.name = .raylib_examples,
|
||||
.version = "0.0.0",
|
||||
.fingerprint = 0x3570d11b06c2907a, // Changing this has security and trust implications.
|
||||
.minimum_zig_version = "0.14.0",
|
||||
.dependencies = .{
|
||||
.raylib = .{ .path = ".." },
|
||||
},
|
||||
.paths = .{"."},
|
||||
}
|
||||
Loading…
Reference in a new issue