summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig9
1 files changed, 9 insertions, 0 deletions
diff --git a/build.zig b/build.zig
index 59eb6e87..781cc848 100644
--- a/build.zig
+++ b/build.zig
@@ -724,6 +724,15 @@ pub fn build(b: *std.Build) void {
// is a second thing to keep in step.
const core_test = b.addTest(.{ .root_module = hx_core_mod });
unit_step.dependOn(&b.addRunArtifact(core_test).step);
+ // gui.zig's own inline tests (the smooth-scroll ease). Only reachable
+ // with -Dplatform=gui, and it links the SAME module the gui exe does
+ // for the same reason core_test does: SDL, the shaders and the font
+ // are already wired onto it, and a second wiring is a second thing to
+ // keep in step.
+ if (platform == .gui) {
+ const gui_test = b.addTest(.{ .root_module = root_mod });
+ unit_step.dependOn(&b.addRunArtifact(gui_test).step);
+ }
}
}