summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/build.zig b/build.zig
index bad4e466..a2877a63 100644
--- a/build.zig
+++ b/build.zig
@@ -865,10 +865,10 @@ pub fn build(b: *std.Build) void {
if (b.lazyDependency("sketchbook", .{ .@"gpu-only" = true })) |sb| {
const gpu = b.createModule(.{ .root_source_file = sb.path("dev/draw/Executor.zig"), .imports = &.{ .{ .name = "abi", .module = sb.module("abi") }, .{ .name = "c", .module = gui_c_mod } } });
gm.addImport("sketch_gpu", gpu);
- // The glyph atlas (src/font/Atlas.zig) over the font shim
+ // The glyph atlas (dev/text/Atlas.zig) over the font shim
// (vendor/font.{c,h}), compiled below against pardes's
// FreeType and HarfBuzz.
- const atlas_mod = b.createModule(.{ .root_source_file = sb.path("src/font/Atlas.zig"), .imports = &.{.{ .name = "c", .module = gui_c_mod }} });
+ const atlas_mod = b.createModule(.{ .root_source_file = sb.path("dev/text/Atlas.zig"), .imports = &.{.{ .name = "c", .module = gui_c_mod }} });
gm.addImport("font_atlas", atlas_mod);
// pardes's renderer, moved to sketchbook (dev/draw/), compiled
// against pardes's SDL; its tests run with unit-test. Its
@@ -944,7 +944,7 @@ pub fn build(b: *std.Build) void {
// The Atlas's own tests, over the same FreeType, HarfBuzz and
// shim, the embedded face theirs to draw.
if (atlas_test == null) if (font_c) |fc| if (b.lazyDependency("sketchbook", .{ .@"gpu-only" = true })) |sb| {
- const atlas_mod = b.createModule(.{ .root_source_file = sb.path("src/font/Atlas.zig"), .target = target, .optimize = optimize, .link_libc = true, .imports = &.{.{ .name = "c", .module = fc }} });
+ const atlas_mod = b.createModule(.{ .root_source_file = sb.path("dev/text/Atlas.zig"), .target = target, .optimize = optimize, .link_libc = true, .imports = &.{.{ .name = "c", .module = fc }} });
atlas_mod.linkLibrary(ft);
atlas_mod.linkLibrary(harfbuzz);
atlas_mod.addIncludePath(upstream.path("src"));