1 # Copyright 2021 Google LLC.
3 import("../../gn/skia.gni")
4 import("../../modules/skshaper/skshaper.gni")
7 skia_enable_sktext = true
8 text_gms_enabled = true
9 text_tests_enabled = true
10 text_bench_enabled = false
13 if (skia_enable_sktext && skia_enable_skshaper && skia_use_icu &&
15 config("public_config") {
16 include_dirs = [ "include" ]
21 public_configs = [ ":public_config" ]
22 public = sktext_public
23 sources = sktext_sources
26 "../../modules/skshaper",
27 "../../modules/skunicode",
31 if (defined(is_skia_standalone) && skia_enable_tools) {
33 if (text_gms_enabled) {
38 "../..:gpu_tool_utils",
40 "../../modules/skshaper",
48 if (text_tests_enabled) {
51 "tests/FontResolvedText.cpp",
52 "tests/SelectableText.cpp",
53 "tests/ShapedText.cpp",
54 "tests/UnicodeText.cpp",
55 "tests/WrappedText.cpp",
59 "../..:gpu_tool_utils",
61 "../../modules/skshaper",
69 if (text_bench_enabled) {
75 "../../modules/skshaper",
82 source_set("samples") {
88 "editor/Selection.cpp",
95 "../../modules/skshaper",
99 skia_source_set("text_editor") {
106 "editor/Selection.cpp",
109 public_deps = [ "../..:sk_app" ]