diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/shared-libs.md | 4 | ||||
| -rw-r--r-- | docs/typ/building.typ | 14 |
2 files changed, 9 insertions, 9 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. diff --git a/docs/typ/building.typ b/docs/typ/building.typ index 738b4ff0..6b0e812a 100644 --- a/docs/typ/building.typ +++ b/docs/typ/building.typ @@ -41,10 +41,11 @@ system takes the SDK SDL needs with `-Dmacos-sdk=<path>`. A bare `zig build` installs into the prefix (`zig-out`, or `--prefix <dir>`) and copies the binaries into `~/.local/bin`; `-Dhome-install=false` leaves that copy out. Zig 0.17 keeps the prefix from the build script, so -`--prefix` alone no longer stops it. With `-Dplatform` binaries are not copied. The `image`, `pdf` and -`addons` steps also install into `$XDG_DATA_HOME/pardes/addons` (else -`~/.local/share/pardes/addons`); `-Dhome-install=false` skips that copy. -Pass `-Dplatform` and `-Dhome-install=false` while developing. Test, benchmark and run steps build what they need +`--prefix` alone no longer stops it. The `image`, `pdf` and `addons` steps +of a bare `zig build` also install into `$XDG_DATA_HOME/pardes/addons` +(else `~/.local/share/pardes/addons`); `-Dhome-install=false` skips that +copy too. With `-Dplatform` neither is copied, but `-Dhome-install=true` +copies the addons. Test, benchmark and run steps build what they need without installing. `pardes --version` prints `pardes <version>` (from `build.zig.zon`), plus the commit for release builds and the `~/.local` install, and on a second line the build's semantics hash, which a replica @@ -60,9 +61,8 @@ must share with its session; `pardes --help` lists every flag. [`-Djpx`], [bool, `true`: JPEG 2000, and with it scanned PDFs], [`-Dtree-sitter`], [`disabled`, `zig`, `minimal`, `full`; `full`], [`-Dembed-sources`], [bool, `false`: serve the sources under #file("/src")], - [`-Dhome-install`], [bool: a bare `zig build` also copies the binaries into `~/.local/bin`; default true], + [`-Dhome-install`], [bool: a bare `zig build` also copies the binaries into `~/.local/bin` and the addon steps theirs into `$XDG_DATA_HOME/pardes/addons`, default true; with `-Dplatform` only `true` copies, and the addons alone], [`-Dstamp-commit`], [bool: the git commit in `--version` and crash records; on for release builds and the `~/.local` install], - [`-Dtheme-animation`], [bool, `true`], [`-Dworkspace-tag`], [bool: draw the workspace tag row; on except for macOS, whose menu bar carries it], [`-Dmacos-sdk`], [path: the macOS SDK SDL's headers and frameworks come from, for a gui built for macOS elsewhere], [`-Dprebuilt-shaders`], [bool: embed the committed SPIR-V; on for a bare `zig build`, off with `-Dplatform`; the shaders are sketchbook's (`dev/draw/shaders/`), and its `zig build shaders` refreshes the SPIR-V with glslc], @@ -170,8 +170,8 @@ zig build kitty-harness kitty graphics through a pane end to end (a fake kitt zig build syntax-test tree-sitter tests without building the editor zig build syntax deterministic per-byte highlighting snapshots zig build lib-test the library, from a package that depends on pardes (test/lib); -zig build hxlib helix's cases on the library's editor (-- --parity: against the file pane); unit-test runs it too +zig build hxlib helix's cases on the library's editor (-- --parity: against the file pane) zig build behaviour-test behaviour through the 9P tree, in process (test/behaviour/), and the T1 runner's short run of random 9P requests zig build process-test real sessions over their sockets: mounts, flags, shells (test/process/), |
