Debian Codegraph @

etc/bindgen.sh

raw symbols SCIP
1 #!/usr/bin/env bash
2
3 cd "$(dirname $0)"
4
5 # We replace the FT_ integer types of known widths, since we can do better.
6 #
7 # We blacklist FT_Error and import our own in order to have convenience methods
8 # on it instead of being a plain integer.
9 "${BINDGEN}" bindings.h -o ../src/freetype.rs \
10 --blacklist-type "FT_(Int16|UInt16|Int32|UInt32|Int16|Int64|UInt64)" \
11 --raw-line "pub type FT_Int16 = i16;" \
12 --raw-line "pub type FT_UInt16 = u16;" \
13 --raw-line "pub type FT_Int32 = i32;" \
14 --raw-line "pub type FT_UInt32 = u32;" \
15 --raw-line "pub type FT_Int64= i64;" \
16 --raw-line "pub type FT_UInt64= u64;" \
17 --blacklist-type "FT_Error" \
18 --raw-line "pub use FT_Error;" \
19 --generate=functions,types,vars \
20 --whitelist-function="FT_.*" \
21 --whitelist-type="FT_.*" \
22 --whitelist-var="FT_.*" \
23 -- -I/usr/include/freetype2