summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig4
1 files changed, 3 insertions, 1 deletions
diff --git a/build.zig b/build.zig
index c2a0c8ac..6d2ddeaf 100644
--- a/build.zig
+++ b/build.zig
@@ -930,7 +930,9 @@ pub fn build(b: *std.Build) void {
gm.addImport("sketch_gpu", gpu);
// pardes's renderer, moved to sketchbook (src/gpu/), compiled
// against pardes's SDL; its tests run with unit-test.
- gm.addImport("gpu_cells", b.createModule(.{ .root_source_file = sb.path("src/gpu/Cells.zig"), .imports = &.{.{ .name = "c", .module = gui_c_mod }} }));
+ const cells_mod = b.createModule(.{ .root_source_file = sb.path("src/gpu/Cells.zig"), .imports = &.{.{ .name = "c", .module = gui_c_mod }} });
+ gm.addImport("gpu_cells", cells_mod);
+ gm.addImport("gpu_present", b.createModule(.{ .root_source_file = sb.path("src/gpu/Present.zig"), .imports = &.{ .{ .name = "c", .module = gui_c_mod }, .{ .name = "gpu_cells", .module = cells_mod } } }));
if (cells_test == null) cells_test = b.addTest(.{ .root_module = b.createModule(.{ .root_source_file = sb.path("src/gpu/Cells.zig"), .target = target, .optimize = optimize, .imports = &.{.{ .name = "c", .module = gui_c_mod }} }), .filters = test_filters });
// The glyph atlas (src/font/Atlas.zig) over the font shim
// (vendor/font.{c,h}), compiled below against pardes's