diff options
Diffstat (limited to 'scripts/generate_libghostty_bindings.sh')
| -rw-r--r-- | scripts/generate_libghostty_bindings.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/generate_libghostty_bindings.sh b/scripts/generate_libghostty_bindings.sh new file mode 100644 index 00000000..c87efca7 --- /dev/null +++ b/scripts/generate_libghostty_bindings.sh @@ -0,0 +1,12 @@ +#!/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 src/ghostty/bindings.rs \ + -- -Ivendor/libghostty-vt/include "$@" |
