Define FLUTTER_ENABLE_SKSHAPER consistently when building txt_unittests and txt_benchmarks (flutter/engine#24253)
This commit is contained in:
20
engine/src/flutter/third_party/txt/BUILD.gn
vendored
20
engine/src/flutter/third_party/txt/BUILD.gn
vendored
@@ -36,14 +36,17 @@ config("allow_posix_names") {
|
||||
}
|
||||
}
|
||||
|
||||
config("define_skshaper") {
|
||||
if (flutter_enable_skshaper) {
|
||||
defines = [ "FLUTTER_ENABLE_SKSHAPER" ]
|
||||
}
|
||||
}
|
||||
|
||||
source_set("txt") {
|
||||
defines = []
|
||||
if (flutter_use_fontconfig) {
|
||||
defines += [ "FLUTTER_USE_FONTCONFIG" ]
|
||||
}
|
||||
if (flutter_enable_skshaper) {
|
||||
defines += [ "FLUTTER_ENABLE_SKSHAPER" ]
|
||||
}
|
||||
|
||||
sources = [
|
||||
"src/log/log.cc",
|
||||
@@ -136,6 +139,8 @@ source_set("txt") {
|
||||
|
||||
public_configs = [ ":txt_config" ]
|
||||
|
||||
configs += [ ":define_skshaper" ]
|
||||
|
||||
public_deps = [
|
||||
"//flutter/fml",
|
||||
"//third_party/harfbuzz",
|
||||
@@ -255,6 +260,8 @@ if (enable_unittests) {
|
||||
"tests/txt_test_utils.h",
|
||||
]
|
||||
|
||||
configs += [ ":define_skshaper" ]
|
||||
|
||||
deps = [
|
||||
":txt",
|
||||
"//flutter/fml",
|
||||
@@ -272,6 +279,8 @@ if (enable_unittests) {
|
||||
"benchmarks/txt_run_all_benchmarks.cc",
|
||||
]
|
||||
|
||||
configs += [ ":define_skshaper" ]
|
||||
|
||||
deps = [
|
||||
":txt",
|
||||
":txt_fixtures",
|
||||
@@ -328,7 +337,10 @@ if (enable_unittests) {
|
||||
]
|
||||
}
|
||||
|
||||
configs += [ ":allow_posix_names" ]
|
||||
configs += [
|
||||
":allow_posix_names",
|
||||
":define_skshaper",
|
||||
]
|
||||
|
||||
deps = [
|
||||
":txt",
|
||||
|
||||
Reference in New Issue
Block a user