summaryrefslogtreecommitdiff
path: root/build/addons.zig
diff options
context:
space:
mode:
Diffstat (limited to 'build/addons.zig')
-rw-r--r--build/addons.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/addons.zig b/build/addons.zig
index b092b82a..195255fd 100644
--- a/build/addons.zig
+++ b/build/addons.zig
@@ -13,7 +13,7 @@ pub fn gpu(b: *std.Build, target: std.Build.ResolvedTarget, optimize: std.lang.O
const fail = b.addFail("the GPU addons are the window's: -Dplatform=gui (sketchbook beside this checkout)");
snake_shader_step.dependOn(&fail.step);
veil_step.dependOn(&fail.step);
- } else if (b.lazyDependency("sketchbook", .{ .@"gpu-only" = true })) |sb| {
+ } else if (b.dependencyLazy("sketchbook", .{ .@"gpu-only" = true })) |sb| {
const files = b.addWriteFiles();
for ([_][]const u8{ "vert", "frag", "post.frag" }) |stage| {
const compile = b.addSystemCommand(&.{ "glslc", "-O" });
@@ -30,7 +30,7 @@ pub fn gpu(b: *std.Build, target: std.Build.ResolvedTarget, optimize: std.lang.O
// The frame corpus's translucent addon (test/veil.zig), into lib/ beside the snake.
const veil = b.addLibrary(.{ .name = "veil", .linkage = .dynamic, .root_module = b.createModule(.{ .root_source_file = b.path("test/veil.zig"), .target = target, .optimize = optimize, .imports = &.{ .{ .name = "addon", .module = addon_mod }, .{ .name = "gpu_scene", .module = sb.module("gpu_scene") } } }) });
veil_step.dependOn(&b.addInstallArtifact(veil, .{}).step);
- }
+ } else |_| {}
return snake_shader_lib;
}