summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-07-31 19:01:28 -0300
committerGabriel Schneider <[email protected]>2026-08-01 15:02:08 -0300
commit41847fce244fdd0d01971c302b89d1252f6497ed (patch)
tree95de3957c7c4f92866f36af6d05af442842892a5 /build.zig
parent911215846f1d5a9b2e37a00e74fb9266d4a0884a (diff)
downloadpardes-41847fce244fdd0d01971c302b89d1252f6497ed.tar.gz
pardes-41847fce244fdd0d01971c302b89d1252f6497ed.zip
a wheel tick slides the pane instead of jumping it
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);
+ }
}
}