Files
herdr/scripts/generate_libghostty_bindings.sh
T
Can Celik fff6c820aa refactor: extract libghostty-vt binding into ghostty-vt workspace crate (#4661)
* refactor: extract libghostty-vt binding into ghostty-vt workspace crate

* fix: build libghostty-vt into each build's out dir
2026-09-27 00:06:29 +03:00

13 lines
426 B
Bash

#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")/.."
# Additional clang arguments can supply a resource directory on minimal hosts.
"${BINDGEN:-bindgen}" vendor/libghostty-vt/include/ghostty/vt.h \
--allowlist-type 'Ghostty.*' \
--allowlist-function 'ghostty_.*' \
--allowlist-var 'GHOSTTY_.*' \
--with-derive-default \
--output crates/ghostty-vt/src/bindings.rs \
-- -Ivendor/libghostty-vt/include "$@"