Index: BUILD.gn |
diff --git a/BUILD.gn b/BUILD.gn |
index cf07c33d8d611bb088bc3e2ba5478884850bc890..21cf9ee94e2f748a47b3989d524ef0df9ae43876 100644 |
--- a/BUILD.gn |
+++ b/BUILD.gn |
@@ -3,14 +3,7 @@ |
# found in the LICENSE file. |
import("//testing/test.gni") |
- |
-pdf_use_skia = false |
- |
-declare_args() { |
- # On Android there's no system FreeType. On Windows and Mac, only a few |
- # methods are used from it. |
- bundle_freetype = !is_linux |
-} |
+import("pdfium.gni") |
config("pdfium_config") { |
cflags = [] |
@@ -28,6 +21,10 @@ config("pdfium_config") { |
defines += [ "_SKIA_SUPPORT_" ] |
} |
+ if (pdf_enable_xfa) { |
+ defines += [ "PDF_ENABLE_XFA" ] |
+ } |
+ |
if (is_linux) { |
if (current_cpu == "x64") { |
defines += [ "_FX_CPU_=_FX_X64_" ] |
@@ -114,9 +111,12 @@ static_library("pdfium") { |
":javascript", |
":jsapi", |
":pdfwindow", |
- ":xfa", |
] |
+ if (pdf_enable_xfa) { |
+ deps += [ ":xfa" ] |
+ } |
+ |
if (is_win) { |
libs += [ "advapi32.lib", "gdi32.lib", "user32.lib" ] |
} |