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:
8
engine/src/flutter/third_party/txt/BUILD.gn
vendored
8
engine/src/flutter/third_party/txt/BUILD.gn
vendored
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user