summaryrefslogtreecommitdiff
path: root/build/core.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-17 15:17:19 -0300
committerGabriel Schneider <[email protected]>2026-11-17 15:38:03 -0300
commitd0c4da0b37f45b805081eb3f3dd95ae0fa9a99da (patch)
tree3843d3a78e1442393d4d5f32d067d9f9523c948c /build/core.zig
parentb4faa9da0530be0391a7cc61eb4ea1e4cdbfa038 (diff)
downloadpardes-d0c4da0b37f45b805081eb3f3dd95ae0fa9a99da.tar.gz
pardes-d0c4da0b37f45b805081eb3f3dd95ae0fa9a99da.zip
build: sketchbook's devices by name: the window asks sketchbook (in build/gui.zig only) for its `c`, translated from gui.zig's header over pardes's own SDL (-Dc-header, -Dc-include), its `dev` (the executor, cells, presentation, glyph atlas and scene format: src/gui/gui.zig takes the five from it) and the named font.c, compiled against pardes's FreeType and HarfBuzz as before; every sb.path into sketchbook, the copied shader list, compileGlsl and -Dgpu-only are gone; -Dprebuilt-shaders is passed through; the GPU addons take gpu_scene from the same instance (addons.gpu gets the window's dependency, null off the window, after it); the Cells and Atlas tests are sketchbook's own now (5 fewer here). gui: frame corpus 77/77 byte-identical against mbase, unit-test 1582/1590 (the base's 1582; the 5 moved, the base's 8 failures), tui-has-no-sdl; tui: core-test 811/950 (139 skipped), configures with ../sketchbook moved aside
Diffstat (limited to 'build/core.zig')
-rw-r--r--build/core.zig3
1 files changed, 0 insertions, 3 deletions
diff --git a/build/core.zig b/build/core.zig
index 1e2801cf..6c255b2f 100644
--- a/build/core.zig
+++ b/build/core.zig
@@ -371,7 +371,6 @@ pub const Assembly = struct {
gui_opts: ?*std.Build.Step.Options,
/// What an addon in Zig imports (src/kinds/addon.zig).
addon_mod: *std.Build.Module,
- snake_shader_lib: ?*std.Build.Step.Compile,
pdf: addons.Pdf,
image_addon: *std.Build.Step.Compile,
/// The window's FreeType, which MuPDF is built against too.
@@ -464,7 +463,6 @@ pub fn assemble(b: *std.Build, c: struct {
const kind_mod = b.addTranslateC(.{ .root_source_file = b.path("src/kinds/pardes_addon.h"), .target = target, .optimize = optimize }).createModule();
// ...and what an addon in Zig imports over it (src/kinds/addon.zig).
const addon_mod = b.createModule(.{ .root_source_file = b.path("src/kinds/addon.zig"), .target = target, .optimize = optimize, .imports = &.{.{ .name = "pardes_addon", .module = kind_mod }} });
- const snake_shader_lib = addons.gpu(b, target, optimize, addon_mod, c.also_gui or c.platform == .gui);
const pdf_built = addons.pdf(b, .{
.addon_mod = addon_mod,
.c_optimize = c_optimize,
@@ -609,7 +607,6 @@ pub fn assemble(b: *std.Build, c: struct {
.opts = opts,
.gui_opts = gui_opts,
.addon_mod = addon_mod,
- .snake_shader_lib = snake_shader_lib,
.pdf = pdf_built,
.image_addon = image_addon,
.freetype = freetype,