diff options
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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); + } } } |
