a3552c5e6d
This is a reland of 10ad0b9b01
Original change's description:
> SkParagraph
>
> Change-Id: I0a4be75fd0c18021c201bcc1edfdfad8556edeff
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/192100
> Reviewed-by: Ben Wagner <bungeman@google.com>
> Reviewed-by: Mike Reed <reed@google.com>
> Commit-Queue: Julia Lavrova <jlavrova@google.com>
Change-Id: I46cf43eae693edf68e45345acd0eb39e04e02bfc
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/219863
Reviewed-by: Herb Derby <herb@google.com>
Commit-Queue: Julia Lavrova <jlavrova@google.com>
80 lines
1.7 KiB
Plaintext
80 lines
1.7 KiB
Plaintext
# Copyright 2019 Google LLC.
|
|
|
|
import("../../gn/skia.gni")
|
|
|
|
declare_args() {
|
|
skia_enable_skparagraph = !(is_win && is_component_build)
|
|
paragraph_tests_enabled = true
|
|
paragraph_bench_enabled = false
|
|
}
|
|
|
|
if (skia_enable_skparagraph) {
|
|
|
|
config("public_config") {
|
|
include_dirs = [ "include" ]
|
|
}
|
|
|
|
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",
|
|
]
|
|
}
|
|
|
|
if (defined(is_skia_standalone) && skia_enable_tools) {
|
|
source_set("tests") {
|
|
if (skia_use_icu && skia_use_harfbuzz && paragraph_tests_enabled) {
|
|
testonly = true
|
|
sources = [
|
|
"//tests/SkParagraphTest.cpp"
|
|
]
|
|
deps = [
|
|
"../..:skia",
|
|
"../..:gpu_tool_utils",
|
|
":skparagraph",
|
|
"../skshaper",
|
|
"//third_party/icu",
|
|
]
|
|
}
|
|
}
|
|
|
|
source_set("bench") {
|
|
if (skia_use_icu && skia_use_harfbuzz && paragraph_bench_enabled) {
|
|
testonly = true
|
|
sources = [
|
|
"//bench/ParagraphBench.cpp"
|
|
]
|
|
deps = [
|
|
"../..:skia",
|
|
":skparagraph",
|
|
"../skshaper",
|
|
"//third_party/icu",
|
|
]
|
|
}
|
|
}
|
|
|
|
source_set("samples") {
|
|
if (skia_use_icu && skia_use_harfbuzz) {
|
|
testonly = true
|
|
sources = [
|
|
"//samplecode/SampleParagraph.cpp",
|
|
]
|
|
deps = [
|
|
"../..:skia",
|
|
":skparagraph",
|
|
"../skshaper",
|
|
"//third_party/icu",
|
|
]
|
|
}
|
|
}
|
|
}
|
|
} |