Home | History | Annotate | Download | only in pdfium
      1 # Copyright 2015 PDFium Authors. All rights reserved.
      2 # Use of this source code is governed by a BSD-style license that can be
      3 # found in the LICENSE file.
      4 
      5 import("//build_overrides/pdfium.gni")
      6 
      7 # This file contains PDFium-related build flags.
      8 
      9 declare_args() {
     10   # Build PDFium either:
     11   # 1) When set to true, with a bundled FreeType, built from FreeType source
     12   #    code in //third_party/freetype and PDFium's FreeType configs in
     13   #    third_party/freetype/include.
     14   # 2) When set to false, use whatever FreeType target is defined in
     15   #    //build/config/freetype.
     16   pdf_bundle_freetype = pdf_bundle_freetype_override
     17 
     18   # Build PDFium either with or without v8 support.
     19   pdf_enable_v8 = pdf_enable_v8_override
     20 
     21   # Build PDFium either with or without XFA Forms support.
     22   pdf_enable_xfa = pdf_enable_xfa_override
     23 
     24   # If XFA, also support bmp codec. Ignored if not XFA.
     25   pdf_enable_xfa_bmp = true
     26 
     27   # If XFA, also support gif codec. Ignored if not XFA.
     28   pdf_enable_xfa_gif = true
     29 
     30   # If XFA, also support png codec. Ignored if not XFA.
     31   pdf_enable_xfa_png = true
     32 
     33   # If XFA, also support png codec. Ignored if not XFA.
     34   pdf_enable_xfa_tiff = true
     35 
     36   # Build PDFium against Skia (experimental) rather than AGG. Use Skia to draw
     37   # everything.
     38   pdf_use_skia = pdf_use_skia_override
     39 
     40   # Build PDFium against Skia (experimental) rather than AGG. Use Skia to draw
     41   # paths.
     42   pdf_use_skia_paths = pdf_use_skia_paths_override
     43 
     44   # Build PDFium with or without experimental win32 GDI APIs.
     45   pdf_use_win32_gdi = pdf_use_win32_gdi_override
     46 
     47   # Build PDFium standalone
     48   pdf_is_standalone = false
     49 
     50   # Build a complete static library
     51   pdf_is_complete_lib = false
     52 
     53   # Enable callgrind for performance profiling
     54   enable_callgrind = false
     55 
     56   # Enable coverage information
     57   use_coverage = false
     58 
     59   # Don't build against bundled zlib.
     60   use_system_zlib = false
     61 
     62   # Don't build against bundled lcms2.
     63   use_system_lcms2 = false
     64 
     65   # Don't build against bundled libpng.
     66   use_system_libpng = false
     67 }
     68 
     69 if (pdf_use_skia && pdf_use_skia_paths) {
     70   assert(false, "Enable at most ONE of pdf_use_skia and pdf_use_skia_paths")
     71 }
     72