mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-12-31 18:52:12 +00:00
By linking using the pkg-config name we gain the compiler flags in pkgconf for linking, specifically the -I <headers> to include system-installed headers. This allows the gtk4-layer-shell pkg to not require the source files specified in the `pkg/gtk4-layer-shell/build.zig.zon`. pkg(gtk4-layer-shell): Refactor to allow dynamic linking Refactored `pkg/gtk4-layer-shell/build.zig` to have similar structure to `pkg/oniguruma/build.zig`. Now dynamic link using pkgconfig, this adds pkgconfig compiler flags. So we are now using system-installed headers to resolve @cInclude().