adaptivegrain/vapoursynth-sys/source-files/generate-bindings.sh

25 lines
924 B
Bash
Raw Normal View History

2019-05-30 13:06:53 +02:00
#!/bin/sh
bindgen --whitelist-function 'getVapourSynthAPI' \
--whitelist-function 'vsscript.*' \
--whitelist-type 'VSColorFamily' \
--whitelist-type 'VSSampleType' \
--whitelist-type 'VSPresetFormat' \
--whitelist-type 'VSFilterMode' \
--whitelist-type 'VSNodeFlags' \
--whitelist-type 'VSPropTypes' \
--whitelist-type 'VSGetPropErrors' \
--whitelist-type 'VSPropAppendMode' \
--whitelist-type 'VSActivationReason' \
--whitelist-type 'VSMessageType' \
--whitelist-type 'VSEvalFlags' \
--whitelist-type 'VSInitPlugin' \
--blacklist-type '__int64_t' \
--blacklist-type '__uint8_t' \
--bitfield-enum 'VSNodeFlags' \
--rustified-enum 'VS[^N].*' \
--no-layout-tests \
-o bindings.rs \
vapoursynth/include/VSScript.h \
-- -target x86_64-unknown-windows-unknown