diff --git a/engine/src/flutter/third_party/txt/BUILD.gn b/engine/src/flutter/third_party/txt/BUILD.gn index 1de7f24013..c236e8c10f 100644 --- a/engine/src/flutter/third_party/txt/BUILD.gn +++ b/engine/src/flutter/third_party/txt/BUILD.gn @@ -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",