b6b7fffc35
This reverts commit05ce2817f2
. Reason for revert: Fixing the build Original change's description: > Revert "Removing ICU dependencies from skparagraph BUILD.gn file" > > This reverts commitf1711adb1a
. > > Reason for revert: Build break > > Original change's description: > > Removing ICU dependencies from skparagraph BUILD.gn file > > > > (and from the sources, too) > > > > Change-Id: I9d8ff51c91aad4b770b1f183c04734d31252b851 > > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/313148 > > Commit-Queue: Julia Lavrova <jlavrova@google.com> > > Reviewed-by: Ben Wagner <bungeman@google.com> > > TBR=bungeman@google.com,jlavrova@google.com > > Change-Id: I1fce2436855e3e2a4cb7d1d7204b3ae49fd530e8 > No-Presubmit: true > No-Tree-Checks: true > No-Try: true > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/314540 > Reviewed-by: Julia Lavrova <jlavrova@google.com> > Commit-Queue: Julia Lavrova <jlavrova@google.com> TBR=bungeman@google.com,jlavrova@google.com Change-Id: I13d78d75698df47930adc2514d1328abc556a209 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/316444 Reviewed-by: Kevin Lubick <kjlubick@google.com> Commit-Queue: Julia Lavrova <jlavrova@google.com>
118 lines
2.3 KiB
Plaintext
118 lines
2.3 KiB
Plaintext
# Copyright 2019 Google LLC.
|
|
|
|
import("../../gn/skia.gni")
|
|
import("../skshaper/skshaper.gni")
|
|
|
|
declare_args() {
|
|
skia_enable_skparagraph = true
|
|
paragraph_gms_enabled = true
|
|
paragraph_tests_enabled = true
|
|
paragraph_bench_enabled = false
|
|
}
|
|
|
|
if (skia_enable_skparagraph && skia_enable_skshaper && skia_use_icu &&
|
|
skia_use_harfbuzz) {
|
|
config("public_config") {
|
|
include_dirs = [
|
|
"include",
|
|
"utils",
|
|
]
|
|
}
|
|
|
|
component("skparagraph") {
|
|
import("skparagraph.gni")
|
|
public_configs = [ ":public_config" ]
|
|
public = skparagraph_public
|
|
sources = skparagraph_sources
|
|
deps = [
|
|
"../..:skia",
|
|
"../skshaper",
|
|
]
|
|
}
|
|
|
|
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" ]
|
|
sources = skparagraph_utils
|
|
deps = [
|
|
"../..:skia",
|
|
"../skshaper",
|
|
]
|
|
}
|
|
|
|
source_set("gm") {
|
|
if (paragraph_gms_enabled) {
|
|
testonly = true
|
|
sources = [ "gm/simple_gm.cpp" ]
|
|
deps = [
|
|
":skparagraph",
|
|
"../..:gpu_tool_utils",
|
|
"../..:skia",
|
|
"../skshaper",
|
|
]
|
|
} else {
|
|
sources = []
|
|
}
|
|
}
|
|
|
|
source_set("tests") {
|
|
if (paragraph_tests_enabled) {
|
|
testonly = true
|
|
sources = [ "tests/SkParagraphTest.cpp" ]
|
|
deps = [
|
|
":skparagraph",
|
|
"../..:gpu_tool_utils",
|
|
"../..:skia",
|
|
"../skshaper",
|
|
]
|
|
} else {
|
|
sources = []
|
|
}
|
|
}
|
|
|
|
source_set("bench") {
|
|
if (paragraph_bench_enabled) {
|
|
testonly = true
|
|
sources = [ "bench/ParagraphBench.cpp" ]
|
|
deps = [
|
|
":skparagraph",
|
|
"../..:skia",
|
|
"../skshaper",
|
|
]
|
|
} else {
|
|
sources = []
|
|
}
|
|
}
|
|
|
|
source_set("samples") {
|
|
testonly = true
|
|
sources = [ "samples/SampleParagraph.cpp" ]
|
|
deps = [
|
|
":skparagraph",
|
|
":utils",
|
|
"../..:skia",
|
|
"../skshaper",
|
|
]
|
|
}
|
|
}
|
|
} else {
|
|
group("skparagraph") {
|
|
}
|
|
group("utils") {
|
|
}
|
|
group("gm") {
|
|
}
|
|
group("tests") {
|
|
}
|
|
group("bench") {
|
|
}
|
|
group("samples") {
|
|
}
|
|
}
|