skia2/modules/skparagraph/BUILD.gn
Julia Lavrova 05ce2817f2 Revert "Removing ICU dependencies from skparagraph BUILD.gn file"
This reverts commit f1711adb1a.

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>
2020-09-01 20:51:33 +00:00

118 lines
2.8 KiB
Plaintext

# Copyright 2019 Google LLC.
import("../../gn/skia.gni")
declare_args() {
skia_enable_skparagraph = true
paragraph_gms_enabled = 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
configs += [ "../../third_party/icu/config:no_cxx" ]
} 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
configs += [ "../../third_party/icu/config:no_cxx" ]
} else {
sources = []
}
deps = [
"../..:skia",
"../skshaper",
"//third_party/icu",
]
}
source_set("gm") {
if (skia_use_icu && skia_use_harfbuzz && paragraph_gms_enabled) {
testonly = true
sources = [ "gm/simple_gm.cpp" ]
deps = [
":skparagraph",
"../..:gpu_tool_utils",
"../..:skia",
"../skshaper",
"//third_party/icu",
]
}
}
source_set("tests") {
if (skia_use_icu && skia_use_harfbuzz && paragraph_tests_enabled) {
testonly = true
sources = [ "tests/SkParagraphTest.cpp" ]
configs += [ "../../third_party/icu/config:no_cxx" ]
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" ]
configs += [ "../../third_party/icu/config:no_cxx" ]
deps = [
":skparagraph",
"../..:skia",
"../skshaper",
"//third_party/icu",
]
}
}
source_set("samples") {
if (skia_use_icu && skia_use_harfbuzz) {
testonly = true
sources = [ "samples/SampleParagraph.cpp" ]
configs += [ "../../third_party/icu/config:no_cxx" ]
deps = [
":skparagraph",
":utils",
"../..:skia",
"../skshaper",
"//third_party/icu",
]
}
}
}
}