update raylib and zig
This commit is contained in:
parent
6d4d9394f4
commit
69a78e6c12
2 changed files with 11 additions and 8 deletions
17
build.zig
17
build.zig
|
|
@ -8,7 +8,6 @@ pub fn build(b: *std.Build) void {
|
|||
const rl = b.dependency("raylib", .{
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
//.config = "-DSUPPORT_CUSTOM_FRAME_CONTROL",
|
||||
.config = @as([]const u8, "-DSUPPORT_CUSTOM_FRAME_CONTROL"),
|
||||
});
|
||||
break :raylib rl;
|
||||
|
|
@ -20,9 +19,11 @@ pub fn build(b: *std.Build) void {
|
|||
|
||||
const exe = b.addExecutable(.{
|
||||
.name = "voxel_test",
|
||||
.root_source_file = b.path("src/main.zig"),
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
.root_module = b.createModule(.{
|
||||
.root_source_file = b.path("src/main.zig"),
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
}),
|
||||
});
|
||||
|
||||
exe.linkLibrary(rl.artifact("raylib"));
|
||||
|
|
@ -42,9 +43,11 @@ pub fn build(b: *std.Build) void {
|
|||
run_step.dependOn(&run_cmd.step);
|
||||
|
||||
const exe_unit_tests = b.addTest(.{
|
||||
.root_source_file = b.path("src/main.zig"),
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
.root_module = b.createModule(.{
|
||||
.root_source_file = b.path("src/main.zig"),
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
}),
|
||||
});
|
||||
|
||||
exe_unit_tests.linkLibrary(rl.artifact("raylib"));
|
||||
|
|
|
|||
2
raylib
2
raylib
|
|
@ -1 +1 @@
|
|||
Subproject commit f740d0941f1bf73077bb369c161bc673e27b735a
|
||||
Subproject commit 1c38ed883645afcde64d6b0b69fcaac00f4a6b10
|
||||
Loading…
Add table
Add a link
Reference in a new issue