Move Skia features bits to the end of the "skia" target.
Change-Id: I608902d02b37cb0acda5327604c5404422fcf8b0
Reviewed-on: https://pdfium-review.googlesource.com/c/44916
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Lei Zhang <thestig@chromium.org>
diff --git a/skia/BUILD.gn b/skia/BUILD.gn
index d198fad..e171d9f 100644
--- a/skia/BUILD.gn
+++ b/skia/BUILD.gn
@@ -335,13 +335,6 @@
]
}
- if (skia_support_pdf) {
- deps += [ "//third_party/sfntly" ]
- sources += skia_pdf_sources
- } else {
- sources += [ "//third_party/skia/src/pdf/SkDocument_PDF_None.cpp" ]
- }
-
if (is_android && !is_debug) {
configs -= [ "//build/config/compiler:default_optimization" ]
configs += [ "//build/config/compiler:optimize_max" ]
@@ -360,6 +353,13 @@
# To disable warning "CGContextSelectFont' is deprecated"
cflags = [ "-Wno-deprecated-declarations" ]
}
+
+ if (skia_support_pdf) {
+ deps += [ "//third_party/sfntly" ]
+ sources += skia_pdf_sources
+ } else {
+ sources += [ "//third_party/skia/src/pdf/SkDocument_PDF_None.cpp" ]
+ }
}
# Template for things that are logically part of :skia, but need to be split out