summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig5
1 files changed, 5 insertions, 0 deletions
diff --git a/build.zig b/build.zig
index 34acc007..48987edf 100644
--- a/build.zig
+++ b/build.zig
@@ -842,6 +842,11 @@ pub fn build(b: *std.Build) void {
});
}
+ // A detached session compiles its attached GUIs' Shadertoy files
+ // (shader_build.zig), whichever shell it was built for.
+ if (gui_shell_mod != root_mod)
+ root_mod.addAnonymousImport("post-prefix.glsl", .{ .root_source_file = b.path("shaders/post/prefix.glsl") });
+
if (is_web) {
const dp = dump_path.?;
root_mod.addAnonymousImport("embedded.dump.zon", .{