skia2/experimental/sktext/BUILD.gn
Julia Lavrova 159fd844c3 The first draft of improved & simplified Text API
Change-Id: If48f8ace53bcf3d2ac6c3c3ad87658f3901872eb
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/375134
Reviewed-by: Julia Lavrova <jlavrova@google.com>
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Julia Lavrova <jlavrova@google.com>
2021-04-30 17:26:08 +00:00

97 lines
1.8 KiB
Plaintext

# Copyright 2021 Google LLC.
import("../../gn/skia.gni")
import("../../modules/skshaper/skshaper.gni")
declare_args() {
skia_enable_sktext = true
text_gms_enabled = true
text_tests_enabled = true
text_bench_enabled = false
}
if (skia_enable_sktext && skia_enable_skshaper && skia_use_icu &&
skia_use_harfbuzz) {
config("public_config") {
include_dirs = [ "include" ]
}
component("sktext") {
import("sktext.gni")
public_configs = [ ":public_config" ]
public = sktext_public
sources = sktext_sources
deps = [
"../..:skia",
"../../modules/skshaper",
]
}
if (defined(is_skia_standalone) && skia_enable_tools) {
source_set("gm") {
if (text_gms_enabled) {
testonly = true
sources = []
deps = [
":sktext",
"../..:gpu_tool_utils",
"../..:skia",
"../../modules/skshaper",
]
} else {
sources = []
}
}
source_set("tests") {
if (text_tests_enabled) {
testonly = true
sources = []
deps = [
":sktext",
"../..:gpu_tool_utils",
"../..:skia",
"../../modules/skshaper",
]
} else {
sources = []
}
}
source_set("bench") {
if (text_bench_enabled) {
testonly = true
sources = []
deps = [
":sktext",
"../..:skia",
"../../modules/skshaper",
]
} else {
sources = []
}
}
source_set("samples") {
testonly = true
sources = [ "samples/Text.cpp" ]
deps = [
":sktext",
"../..:skia",
"../../modules/skshaper",
]
}
}
} else {
group("sktext") {
}
group("gm") {
}
group("tests") {
}
group("bench") {
}
group("samples") {
}
}