| Index: BUILD.gn
|
| diff --git a/BUILD.gn b/BUILD.gn
|
| index 1b900485b74a5624ed279e6f7f07667c3d8102de..5ea18dd3475b84889dd4e2528d230be5583d0611 100644
|
| --- a/BUILD.gn
|
| +++ b/BUILD.gn
|
| @@ -224,6 +224,18 @@ optional("fontmgr_android") {
|
| ]
|
| }
|
|
|
| +optional("fontmgr_custom") {
|
| + enabled = is_linux && skia_use_freetype && !skia_use_fontconfig
|
| +
|
| + deps = [
|
| + "//third_party/freetype2",
|
| + ]
|
| + sources = [
|
| + "src/ports/SkFontMgr_custom.cpp",
|
| + "src/ports/SkFontMgr_custom_directory_factory.cpp",
|
| + ]
|
| +}
|
| +
|
| optional("fontmgr_fontconfig") {
|
| enabled = skia_use_freetype && skia_use_fontconfig
|
|
|
| @@ -347,6 +359,7 @@ component("skia") {
|
| ":crc32",
|
| ":dsp",
|
| ":fontmgr_android",
|
| + ":fontmgr_custom",
|
| ":fontmgr_fontconfig",
|
| ":gif",
|
| ":jpeg",
|
|
|