Fix !defined(SK_XML) builds
Add guards for dependent code.
TBR=
Change-Id: I49c0c90a2defc6f39589721f95562e9e0f17db13
Reviewed-on: https://skia-review.googlesource.com/144610
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Florin Malita <fmalita@chromium.org>
diff --git a/BUILD.gn b/BUILD.gn
index 14173a0..ede8fc4 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -1674,15 +1674,17 @@
]
}
- test_app("create_test_font_color") {
- sources = [
- "tools/fonts/create_test_font_color.cpp",
- ]
- deps = [
- ":flags",
- ":skia",
- ":tool_utils",
- ]
+ if (skia_use_expat) {
+ test_app("create_test_font_color") {
+ sources = [
+ "tools/fonts/create_test_font_color.cpp",
+ ]
+ deps = [
+ ":flags",
+ ":skia",
+ ":tool_utils",
+ ]
+ }
}
test_app("get_images_from_skps") {