skia2/modules/skparagraph/BUILD.gn
Julia Lavrova 9af5cc4d98 Adding TestFontCollection
Change-Id: I43c20616dd842e9ffeaac614c853be4702a819a7
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/222104
Commit-Queue: Julia Lavrova <jlavrova@google.com>
Reviewed-by: Ben Wagner <bungeman@google.com>
2019-06-20 20:42:46 +00:00

102 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" ]
}
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 = [
"../..: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",
":utils",
"../skshaper",
"//third_party/icu",
]
}
}
}
}