diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-06 22:36:07 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-06 23:38:31 -0300 |
| commit | 227111c84a2945087abb4395daf63c7b23ba5bab (patch) | |
| tree | fbd17789bdb0feb9cc7739b0bcc443315c5c7336 /build.zig.zon | |
| parent | 8facd769003b970e7a2c933f1887e09bffb4bd08 (diff) | |
| download | pardes-227111c84a2945087abb4395daf63c7b23ba5bab.tar.gz pardes-227111c84a2945087abb4395daf63c7b23ba5bab.zip | |
kinds #47, MuPDF and FreeType lazy: Zig 0.17's configure is handed the -D options and never the steps asked for (the configurer's argv, and the configure cache keyed on it), so no step can fetch for itself; the guard is `-Dpdf`, on by itself once MuPDF is fetched (std.Build.package_map's `available`) and off Linux, which asks `b.lazyDependency` for MuPDF, and FreeType (with the zlib and libpng it brings) is lazy too and asked by it or a window: a fresh checkout's `zig build -Dplatform=tui` fetches none of them, and without `-Dpdf` the pdf, addons, static, mupdf-check, pdf-harness and bench steps say to add it; building.typ, install.typ and shared-libs.md say so
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'build.zig.zon')
| -rw-r--r-- | build.zig.zon | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/build.zig.zon b/build.zig.zon index c79bd483..23efe9d0 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -171,16 +171,20 @@ .url = "git+https://github.com/mnemnion/mvzr#3efcfe339bd32e122c36b8f1db25b237f93a7ec2", .hash = "mvzr-0.3.9-ZSOky6t2AQCA7efmm5EYbPb5sOdbXa4EFsUgYbQ6hZv9", }, + // MuPDF for the pdf addon (mupdf.zig). Lazy: -Dpdf fetches it, once. .mupdf = .{ .url = "https://mupdf.com/downloads/archive/mupdf-1.27.0-source.tar.gz", .hash = "N-V-__8AAAa9gQo4C4cIEpZfRqQLBv-ZnRIB4NQqsMOy8bNx", .lazy = true, }, // FreeType's native/light hinter and grayscale rasterizer for the SDL - // glyph atlas. Added with `zig fetch --save=freetype` and pinned. + // glyph atlas, and the one MuPDF is built against. Added with `zig + // fetch --save=freetype` and pinned. Lazy: a window or the pdf addon + // fetches it (and the zlib and libpng it brings). .freetype = .{ .url = "git+https://github.com/allyourcodebase/freetype#884fd2235e6ae1ec4306eda30b3259f20930ed2e", .hash = "freetype-2.14.3-C3-WdXSKAAB-kHs4qgRoeoFnRkNQn6M_SSlUGZ6ywgBQ", + .lazy = true, }, // HarfBuzz shapes the SDL shell's text runs, which is what turns `->` // into a font's arrow ligature. The upstream source release (the same |
