9d0d426028
This reverts commitefb7ae16dd
. Reason for revert: Excluding all non-linux tests Original change's description: > Revert "The very first version of a new SkText API." > > This reverts commit8a20cea604
. > > Reason for revert: Breaking some tests > > Original change's description: > > The very first version of a new SkText API. > > > > SkText public API added. > > Interface.h updated. > > > > Change-Id: I82a87f33e6cf1394fa2520387f6895d33601376e > > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/442003 > > Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> > > Commit-Queue: Julia Lavrova <jlavrova@google.com> > > Change-Id: I879b198bc6fb44c46d11d967118f8d69eb74fee0 > No-Presubmit: true > No-Tree-Checks: true > No-Try: true > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/449296 > Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> > Reviewed-by: John Stiles <johnstiles@google.com> > Commit-Queue: Julia Lavrova <jlavrova@google.com> Change-Id: Ieb65b45532d8c7455f091cf7a9e21fa7dea47606 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/449297 Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Reviewed-by: John Stiles <johnstiles@google.com> Commit-Queue: Julia Lavrova <jlavrova@google.com>
124 lines
2.5 KiB
Plaintext
124 lines
2.5 KiB
Plaintext
# Copyright 2021 Google LLC.
|
|
|
|
import("../../gn/skia.gni")
|
|
import("../../modules/skshaper/skshaper.gni")
|
|
|
|
declare_args() {
|
|
skia_enable_sktext = true
|
|
text_gms_enabled = true
|
|
text_tests_enabled = true
|
|
text_bench_enabled = false
|
|
}
|
|
|
|
if (skia_enable_sktext && skia_enable_skshaper && skia_use_icu &&
|
|
skia_use_harfbuzz) {
|
|
config("public_config") {
|
|
include_dirs = [ "include" ]
|
|
}
|
|
|
|
component("sktext") {
|
|
import("sktext.gni")
|
|
public_configs = [ ":public_config" ]
|
|
public = sktext_public
|
|
sources = sktext_sources
|
|
deps = [
|
|
"../..:skia",
|
|
"../../modules/skshaper",
|
|
"../../modules/skunicode",
|
|
]
|
|
}
|
|
|
|
if (defined(is_skia_standalone) && skia_enable_tools) {
|
|
source_set("gm") {
|
|
if (text_gms_enabled) {
|
|
testonly = true
|
|
sources = []
|
|
deps = [
|
|
":sktext",
|
|
"../..:gpu_tool_utils",
|
|
"../..:skia",
|
|
"../../modules/skshaper",
|
|
]
|
|
} else {
|
|
sources = []
|
|
}
|
|
}
|
|
|
|
source_set("tests") {
|
|
if (text_tests_enabled) {
|
|
testonly = true
|
|
sources = [
|
|
"tests/SelectableText.cpp",
|
|
"tests/ShapedText.cpp",
|
|
"tests/UnicodeText.cpp",
|
|
"tests/WrappedText.cpp",
|
|
]
|
|
deps = [
|
|
":sktext",
|
|
"../..:gpu_tool_utils",
|
|
"../..:skia",
|
|
"../../modules/skshaper",
|
|
]
|
|
} else {
|
|
sources = []
|
|
}
|
|
}
|
|
|
|
source_set("bench") {
|
|
if (text_bench_enabled) {
|
|
testonly = true
|
|
sources = []
|
|
deps = [
|
|
":sktext",
|
|
"../..:skia",
|
|
"../../modules/skshaper",
|
|
]
|
|
} else {
|
|
sources = []
|
|
}
|
|
}
|
|
|
|
source_set("samples") {
|
|
testonly = true
|
|
sources = [
|
|
"editor/Cursor.cpp",
|
|
"editor/Editor.cpp",
|
|
"editor/Mouse.cpp",
|
|
"editor/Selection.cpp",
|
|
"editor/Texts.cpp",
|
|
"samples/Text.cpp",
|
|
]
|
|
deps = [
|
|
":sktext",
|
|
"../..:skia",
|
|
"../../modules/skshaper",
|
|
]
|
|
}
|
|
|
|
skia_source_set("text_editor") {
|
|
testonly = true
|
|
sources = [
|
|
"editor/App.cpp",
|
|
"editor/Cursor.cpp",
|
|
"editor/Editor.cpp",
|
|
"editor/Mouse.cpp",
|
|
"editor/Selection.cpp",
|
|
"editor/Texts.cpp",
|
|
]
|
|
public_deps = [ "../..:sk_app" ]
|
|
deps = [ ":sktext" ]
|
|
}
|
|
}
|
|
} else {
|
|
group("sktext") {
|
|
}
|
|
group("gm") {
|
|
}
|
|
group("tests") {
|
|
}
|
|
group("bench") {
|
|
}
|
|
group("samples") {
|
|
}
|
|
}
|