Allow compilation without embedded font but with font manager

Change-Id: Ib21ec28d7d2051bc19c07294b37034f44af47004
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/232856
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Kevin Lubick <kjlubick@google.com>
This commit is contained in:
Shachar Langbeheim 2019-08-06 21:11:13 +03:00 committed by Skia Commit-Bot
parent 5fac8a15c8
commit 87cef069ca

View File

@ -101,9 +101,13 @@ fi
GN_FONT="skia_enable_fontmgr_empty=false"
BUILTIN_FONT="$BASE_DIR/fonts/NotoMono-Regular.ttf.cpp"
if [[ $@ == *no_font* ]]; then
echo "Omitting the built-in font(s)"
echo "Omitting the built-in font(s) and font manager"
BUILTIN_FONT=""
GN_FONT="skia_enable_fontmgr_empty=true"
elif [[ $@ == *no_embedded_font* ]]; then
echo "Omitting the built-in font(s)"
BUILTIN_FONT=""
GN_FONT="skia_enable_fontmgr_custom_empty=true skia_enable_fontmgr_empty=false"
else
# Generate the font's binary file (which is covered by .gitignore)
python tools/embed_resources.py \