From 73c9f3bb3d82563d6d4496c4b0204d5c0825e8a2 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Mon, 27 Feb 2017 10:12:59 -0800 Subject: Allow building XFA without additional codecs. This is something we'd like to try for initial XFA launches adding in codecs as justified by results in the wild. Adding statistics for the unsupported cases is a follow-up exercise once this builds correctly. We always build all the additional libraries, to allow fuzzers to link against them even if we are not shipping them. The linker will sort it out for the actual code. Rename some files to match the classes contained within. That the existing tests seem to pass with the codecs disabled warrants further investigation. Change-Id: Iad269db91289f12dc9f5dda8f48121d27a0c4367 Reviewed-on: https://pdfium-review.googlesource.com/2836 Commit-Queue: Tom Sepez Reviewed-by: Lei Zhang --- pdfium.gni | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'pdfium.gni') diff --git a/pdfium.gni b/pdfium.gni index 5737224f70..614ab916ec 100644 --- a/pdfium.gni +++ b/pdfium.gni @@ -17,6 +17,18 @@ declare_args() { # Build PDFium either with or without XFA Forms support. pdf_enable_xfa = pdf_enable_xfa_override + # If XFA, also support bmp codec. Ignored if not XFA. + pdf_enable_xfa_bmp = false + + # If XFA, also support gif codec. Ignored if not XFA. + pdf_enable_xfa_gif = false + + # If XFA, also support png codec. Ignored if not XFA. + pdf_enable_xfa_png = false + + # If XFA, also support png codec. Ignored if not XFA. + pdf_enable_xfa_tiff = false + # Build PDFium against skia (experimental) rather than agg. Use Skia to draw everything. pdf_use_skia = pdf_use_skia_override -- cgit v1.2.3