Add Meson build system integration mirroring the existing CMake wrapper. The top-level meson.build delegates to zig build lib-vt using --prefix-lib-dir and --prefix-include-dir to place outputs directly in the Meson build directory, avoiding stamp files and source tree pollution. A sentinel .h output ensures Meson orders the zig build before any downstream compiles. Downstream projects can consume the library either as a Meson subproject via a .wrap file or through pkg-config after install. The dist/meson/README.md documents both approaches. Includes a c-vt-meson example, CI job in test.yml for auto-discovered Meson examples, meson and ninja in the nix devShell, and gitignore updates for Meson build artifacts. |
||
|---|---|---|
| .. | ||
| c-vt | ||
| c-vt-cmake | ||
| c-vt-encode-focus | ||
| c-vt-encode-key | ||
| c-vt-encode-mouse | ||
| c-vt-formatter | ||
| c-vt-grid-traverse | ||
| c-vt-meson | ||
| c-vt-modes | ||
| c-vt-paste | ||
| c-vt-render | ||
| c-vt-sgr | ||
| c-vt-size-report | ||
| wasm-key-encode | ||
| wasm-sgr | ||
| zig-formatter | ||
| zig-vt | ||
| zig-vt-stream | ||
| .gitignore | ||
| AGENTS.md | ||
| README.md | ||
README.md
Examples
Standalone projects demonstrating the Ghostty library APIs.
The directories starting with c- use the C API and the directories
starting with zig- use the Zig API.
Every example can be built and run using zig build and zig build run
from within the respective example directory.
Even the C API examples use the Zig build system (not the language) to
build the project.
Running an Example
cd example/<dir>
zig build run