aboutsummaryrefslogtreecommitdiffhomepage
path: root/BUILD.gn
diff options
context:
space:
mode:
authorGravatar Hal Canary <halcanary@google.com>2018-01-30 11:35:47 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-01-30 18:57:45 +0000
commitff2742eba814c906686b72abd2d1b3e6b720d784 (patch)
tree003deaada9147da9ede9959cbf2b3a00972ec21a /BUILD.gn
parent495e0f079ced1d2d23368de263f50232eca1ab4a (diff)
SkQP: slim deps. Also skia_enable_fontmgr_empty
Change-Id: I24ee2fb3a4a4ca03a60ee2f1a90e022825eee409 Reviewed-on: https://skia-review.googlesource.com/101820 Reviewed-by: Hal Canary <halcanary@google.com> Commit-Queue: Hal Canary <halcanary@google.com>
Diffstat (limited to 'BUILD.gn')
-rw-r--r--BUILD.gn13
1 files changed, 12 insertions, 1 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 5514093973..110cb0ede9 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -37,6 +37,7 @@ declare_args() {
skia_enable_discrete_gpu = true
skia_enable_effects = true
skia_enable_flutter_defines = false
+ skia_enable_fontmgr_empty = false
skia_enable_gpu = true
skia_enable_pdf = true
skia_enable_spirv_validation = is_skia_dev_build && is_debug
@@ -391,6 +392,13 @@ optional("fontmgr_custom") {
]
}
+optional("fontmgr_empty") {
+ enabled = skia_enable_fontmgr_empty
+ sources = [
+ "src/ports/SkFontMgr_empty_factory.cpp",
+ ]
+}
+
optional("fontmgr_fontconfig") {
enabled = skia_use_freetype && skia_use_fontconfig
@@ -755,6 +763,7 @@ component("skia") {
":effects",
":fontmgr_android",
":fontmgr_custom",
+ ":fontmgr_empty",
":fontmgr_fontconfig",
":fontmgr_fuchsia",
":gpu",
@@ -1309,13 +1318,15 @@ if (skia_enable_tools) {
}
deps = [
":experimental_sksg",
- ":experimental_svg_model",
":flags",
":skia",
":tool_utils",
"//third_party/libpng",
"//third_party/zlib",
]
+ if (skia_use_expat) {
+ deps += [ ":experimental_svg_model" ]
+ }
public_deps = [
":gpu_tool_utils", # Test.h #includes headers from this target.
]