Dynamically link against system fontconfig (flutter/engine#40725)

This is the engine counterpart for https://github.com/flutter/buildroot/pull/701. That pull-request contains more context and the main motivation for this change.

This should fix some startup performance issues related to font loading on desktop linux: https://github.com/flutter/flutter/issues/118911.

[C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
This commit is contained in:
Valentin Hăloiu
2023-05-25 19:43:06 +01:00
committed by GitHub
parent 634c40bf03
commit 7fa6d7123c
2 changed files with 3 additions and 7 deletions

2
DEPS
View File

@@ -256,7 +256,7 @@ allowed_hosts = [
]
deps = {
'src': 'https://github.com/flutter/buildroot.git' + '@' + 'aee1094b10465e32972932e23b6799c3f8de244f',
'src': 'https://github.com/flutter/buildroot.git' + '@' + 'e522d38d629d7522f0589e754886ed2b82232d9e',
# Fuchsia compatibility
#

View File

@@ -38,11 +38,6 @@ config("allow_posix_names") {
}
source_set("txt") {
defines = []
if (flutter_use_fontconfig) {
defines += [ "FLUTTER_USE_FONTCONFIG" ]
}
sources = [
"src/skia/paragraph_builder_skia.cc",
"src/skia/paragraph_builder_skia.h",
@@ -96,8 +91,9 @@ source_set("txt") {
"//third_party/skia/modules/skparagraph",
]
libs = []
if (flutter_use_fontconfig) {
deps += [ "//third_party/fontconfig" ]
libs += [ "fontconfig" ]
}
if (is_mac || is_ios) {