summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-17 13:26:02 -0300
committerGabriel Schneider <[email protected]>2026-11-17 13:26:17 -0300
commite5c57a863004914136c4e6b0fa13ed805b3b383d (patch)
tree4c3895acfcf310a82432546f9ed02c666a7daefa /docs
parent9aa2ac1a21bd96260538f2657ff37b63562380ff (diff)
downloadpardes-e5c57a863004914136c4e6b0fa13ed805b3b383d.tar.gz
pardes-e5c57a863004914136c4e6b0fa13ed805b3b383d.zip
build: build() cut into build/*.zig, as pure moves
build.zig 2,406 -> 658 lines; the pieces moved verbatim into a file per thing, each a function called where its code stood, so every step, module and option is made in the same order as before: build/docs.zig (the typst renders, builtins-json, command-line.txt), build/addons.zig (the GPU addons, the pdf addon and its benches, the image addon), build/patches.zig (vaxis, zstbi, ghostty's kitty loader, mvzr), build/gui.zig (the window's shells and its renderer and atlas tests), build/macos.zig (the app, dmg, e2e, its unit-test), build/tools.zig (harnesses, hx*, benches, perf, the syntax snapshots, lib-test, history), build/tests.zig (unit-test and its roots), build/library.zig (what a dependent package gets), build/core.zig (the options module, themes, grammars, uucode, the editor module, wireCore); mupdf.zig is build/mupdf.zig. A fragment takes what it uses as explicit parameters, or as one struct of exactly those (cloud9's and build/process.zig's pattern). Platform, PerfBuild and TreeSitterGrammars stay in build.zig: Options names an enum or struct by @typeName, so where they are declared is in every options file. Gate: zig build --print-configuration, -l and -h byte-identical to the base over bare (-Dhome-install=false), tui, gui, macos, tui and gui ReleaseFast, -Dpdf=false (tui, gui), -Dtree-sitter=minimal, musl, -Dtracy, and test/lib's -l and --print-configuration. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'docs')
-rw-r--r--docs/shared-libs.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/shared-libs.md b/docs/shared-libs.md
index 73d6a73a..79d393e7 100644
--- a/docs/shared-libs.md
+++ b/docs/shared-libs.md
@@ -94,7 +94,7 @@ and gui columns are the two binaries.
| GIF, BMP, TGA, PSD, HDR, PIC, PNM | stb_image | image panes | 1 → 1 | 22.3 KiB | Zig allocator (`zstbi.init`) |
| Image resize | stb_image_resize | image panes (downscale) | 1 → 1 | 28.4 KiB | Zig allocator |
| Image write (and its deflate) | stb_image_write | nothing | 1 → **0** (patched out of zstbi.c) | 30.6 KiB → 0 | removed |
-| Inflate | zlib (allyourcodebase) | FreeType gzip, MuPDF `FlateDecode` | 1 → 1 (MuPDF links FreeType's, mupdf.zig) | 15.5 + 9.7 + 4.6 KiB | per stream: MuPDF's `fz_zlib_alloc`, FreeType's `FT_Memory` |
+| Inflate | zlib (allyourcodebase) | FreeType gzip, MuPDF `FlateDecode` | 1 → 1 (MuPDF links FreeType's, build/mupdf.zig) | 15.5 + 9.7 + 4.6 KiB | per stream: MuPDF's `fz_zlib_alloc`, FreeType's `FT_Memory` |
| Inflate | wuffs zlib/deflate | ghostty-vt: kitty `o=z` | 1 → 1 | 17.2 KiB | Zig allocator |
| Inflate | stb_image's own | stb PNG | 1 / 2 → **0** | 1.1 / 2.3 KiB → 0 (most of it was inlined into the PNG decoder) | removed |
| Fonts | FreeType (allyourcodebase) | gui glyph atlas, MuPDF (built against it, not its slim bundle) | 1 → 1 | 331 KiB | gui: `ui_malloc` (c_heap); MuPDF's library: `FT_MemoryRec` on fz |
@@ -142,7 +142,7 @@ Text section: tty 61,369,343 → 61,294,855 bytes (**−74,488**); gui
JPEG decoder.
- **MuPDF's fitz image loaders** (`fz_load_png`, `_jpeg`, `_gif`, `_bmp`,
`_tiff`, `_pnm`, `_psd`; 16.7 KiB together). They are compiled because
- mupdf.zig builds all of `source/fitz`. They are reachable only through
+ build/mupdf.zig builds all of `source/fitz`. They are reachable only through
`fz_new_image_from_buffer`, which PDF rendering does not call. Dropping
them means stubbing fitz's image-type dispatch (`image.c`) at build time.
Left in.