From b00882774a8c37c8535be873b107bdd9b4c5d520 Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Mon, 18 Nov 2024 13:38:59 -0800 Subject: [PATCH] Update the Skia build scripts for a refactoring of the Fontconfig font manager (flutter/engine#56684) Skia is reorganizing some font managers, and the Flutter engine's build scripts need to match the changes made to Skia. See https://skia-review.googlesource.com/c/skia/+/915316 --- engine/src/flutter/skia/BUILD.gn | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/engine/src/flutter/skia/BUILD.gn b/engine/src/flutter/skia/BUILD.gn index 82941e6227..734c69e848 100644 --- a/engine/src/flutter/skia/BUILD.gn +++ b/engine/src/flutter/skia/BUILD.gn @@ -270,6 +270,11 @@ optional("fontmgr_custom_empty") { sources = skia_ports_fontmgr_empty_sources } +skia_source_set("typeface_proxy") { + configs = [ ":skia_public" ] + sources = skia_ports_typeface_proxy_sources +} + optional("fontmgr_fontconfig") { enabled = skia_enable_fontmgr_fontconfig public_defines = [ "SK_FONTMGR_FONTCONFIG_AVAILABLE" ] @@ -277,7 +282,10 @@ optional("fontmgr_fontconfig") { # The public header includes fontconfig.h and uses FcConfig* public_deps = [ "//third_party:fontconfig" ] public = skia_ports_fontmgr_fontconfig_public - deps = [ ":typeface_freetype" ] + deps = [ + ":typeface_freetype", + ":typeface_proxy", + ] sources = skia_ports_fontmgr_fontconfig_sources }