ebebf6e2b5
This makes it more obvious that these files really are part of SkParagraph and integrate with the Skia test framework and are not part of core Skia. This is more like how Skottie is setup and helps prevent misunderstandings about where additional files like this should go and how the build should be structured. Change-Id: Iaac060c97cffd2b0c29833c7b0403521d91bdb6a Reviewed-on: https://skia-review.googlesource.com/c/skia/+/292439 Reviewed-by: Julia Lavrova <jlavrova@google.com> Commit-Queue: Ben Wagner <bungeman@google.com>
98 lines
2.1 KiB
Plaintext
98 lines
2.1 KiB
Plaintext
# Copyright 2019 Google LLC.
|
|
|
|
import("../../gn/skia.gni")
|
|
|
|
declare_args() {
|
|
skia_enable_skparagraph = true
|
|
paragraph_tests_enabled = true
|
|
paragraph_bench_enabled = false
|
|
}
|
|
|
|
if (skia_enable_skparagraph) {
|
|
config("public_config") {
|
|
include_dirs = [
|
|
"include",
|
|
"utils",
|
|
]
|
|
}
|
|
|
|
component("skparagraph") {
|
|
import("skparagraph.gni")
|
|
public_configs = [ ":public_config" ]
|
|
public = skparagraph_public
|
|
if (skia_use_icu && skia_use_harfbuzz) {
|
|
sources = skparagraph_sources
|
|
} else {
|
|
sources = []
|
|
}
|
|
deps = [
|
|
"../..:skia",
|
|
"../skshaper",
|
|
"//third_party/icu",
|
|
]
|
|
}
|
|
|
|
config("utils_config") {
|
|
include_dirs = [ "utils" ]
|
|
}
|
|
|
|
if (defined(is_skia_standalone) && skia_enable_tools) {
|
|
source_set("utils") {
|
|
import("skparagraph.gni")
|
|
public_configs = [ ":utils_config" ]
|
|
configs += [ "../../:skia_private" ]
|
|
if (skia_use_icu && skia_use_harfbuzz) {
|
|
sources = skparagraph_utils
|
|
} else {
|
|
sources = []
|
|
}
|
|
deps = [
|
|
"../..:skia",
|
|
"../skshaper",
|
|
"//third_party/icu",
|
|
]
|
|
}
|
|
|
|
source_set("tests") {
|
|
if (skia_use_icu && skia_use_harfbuzz && paragraph_tests_enabled) {
|
|
testonly = true
|
|
sources = [ "tests/SkParagraphTest.cpp" ]
|
|
deps = [
|
|
":skparagraph",
|
|
"../..:gpu_tool_utils",
|
|
"../..:skia",
|
|
"../skshaper",
|
|
"//third_party/icu",
|
|
]
|
|
}
|
|
}
|
|
|
|
source_set("bench") {
|
|
if (skia_use_icu && skia_use_harfbuzz && paragraph_bench_enabled) {
|
|
testonly = true
|
|
sources = [ "bench/ParagraphBench.cpp" ]
|
|
deps = [
|
|
":skparagraph",
|
|
"../..:skia",
|
|
"../skshaper",
|
|
"//third_party/icu",
|
|
]
|
|
}
|
|
}
|
|
|
|
source_set("samples") {
|
|
if (skia_use_icu && skia_use_harfbuzz) {
|
|
testonly = true
|
|
sources = [ "samples/SampleParagraph.cpp" ]
|
|
deps = [
|
|
":skparagraph",
|
|
":utils",
|
|
"../..:skia",
|
|
"../skshaper",
|
|
"//third_party/icu",
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|