1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-23 15:04:36 +03:00
wezterm/deps/freetype/regenerate.sh
Wez Furlong 27cb18f8ae Build our own freetype, harfbuzz
This is primarily for macos where the default freetype
installation is unable to render color emoji, but should also
help make things more consistent across the various platforms.

It's a little bit awkward on linux because the font-loader crate
pulls in the now-conflicting servo-font* crates.  I've disabled
font-loader on linux systems; it's just calling fontconfig under
the covers anyway.
2019-03-23 09:28:40 -07:00

21 lines
720 B
Bash
Executable File

#!/bin/bash
bindgen bindings.h -o src/lib.rs \
--no-doc-comments \
--blacklist-type "FT_(Int16|UInt16|Int32|UInt32|Int16|Int64|UInt64)" \
--raw-line "#![allow(non_snake_case)]" \
--raw-line "#![allow(non_camel_case_types)]" \
--raw-line "#![allow(non_upper_case_globals)]" \
--raw-line "pub type FT_Int16 = i16;" \
--raw-line "pub type FT_UInt16 = u16;" \
--raw-line "pub type FT_Int32 = i32;" \
--raw-line "pub type FT_UInt32 = u32;" \
--raw-line "pub type FT_Int64= i64;" \
--raw-line "pub type FT_UInt64= u64;" \
--default-enum-style rust \
--generate=functions,types,vars \
--whitelist-function="FT_.*" \
--whitelist-type="FT_.*" \
--whitelist-var="FT_.*" \
-- -Ifreetype2/include