e172236e7b
In addition to checking .fp files, this ought to make this bot now also check that our .gn files are formatted and our #includes are consistent with rewrite_includes.py. Some .gn files needed formatting; you can see the failure caught on PS 4. Cq-Include-Trybots: skia.primary:Housekeeper-PerCommit-CheckGeneratedFiles Change-Id: Ia6669581406212c986da81f2521e4e9d8d3eadb4 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/229802 Commit-Queue: Mike Klein <mtklein@google.com> Reviewed-by: Eric Boren <borenet@google.com>
104 lines
2.2 KiB
Plaintext
104 lines
2.2 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",
|
|
"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 = [
|
|
"//samplecode/SampleParagraph.cpp",
|
|
]
|
|
deps = [
|
|
":skparagraph",
|
|
":utils",
|
|
"../..:skia",
|
|
"../skshaper",
|
|
"//third_party/icu",
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|