dsinclair | 038bf0b | 2016-04-30 06:00:05 -0700 | [diff] [blame] | 1 | # Copyright 2015 PDFium Authors. All rights reserved. |
Tom Sepez | a8a39e2 | 2015-10-12 15:47:07 -0700 | [diff] [blame] | 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
dsinclair | fd670fd | 2016-05-03 06:14:34 -0700 | [diff] [blame] | 5 | import("//build_overrides/pdfium.gni") |
| 6 | |
Tom Sepez | a8a39e2 | 2015-10-12 15:47:07 -0700 | [diff] [blame] | 7 | # This file contains PDFium-related build flags. |
| 8 | |
| 9 | declare_args() { |
| 10 | # On Android there's no system FreeType. On Windows and Mac, only a few |
| 11 | # methods are used from it. |
| 12 | pdfium_bundle_freetype = !is_linux |
| 13 | |
Tom Sepez | 452b4f3 | 2015-10-13 09:27:27 -0700 | [diff] [blame] | 14 | # Build PDFium either with or without v8 support. |
dsinclair | fd670fd | 2016-05-03 06:14:34 -0700 | [diff] [blame] | 15 | pdf_enable_v8 = pdf_enable_v8_override |
Tom Sepez | 452b4f3 | 2015-10-13 09:27:27 -0700 | [diff] [blame] | 16 | |
Tom Sepez | a8a39e2 | 2015-10-12 15:47:07 -0700 | [diff] [blame] | 17 | # Build PDFium either with or without XFA Forms support. |
dsinclair | fd670fd | 2016-05-03 06:14:34 -0700 | [diff] [blame] | 18 | pdf_enable_xfa = pdf_enable_xfa_override |
Tom Sepez | a8a39e2 | 2015-10-12 15:47:07 -0700 | [diff] [blame] | 19 | |
caryclark | af177fe | 2016-11-16 10:10:03 -0800 | [diff] [blame] | 20 | # Build PDFium against skia (experimental) rather than agg. Use Skia to draw everything. |
dsinclair | fd670fd | 2016-05-03 06:14:34 -0700 | [diff] [blame] | 21 | pdf_use_skia = pdf_use_skia_override |
dsinclair | 685bb88 | 2016-04-20 07:32:39 -0700 | [diff] [blame] | 22 | |
caryclark | af177fe | 2016-11-16 10:10:03 -0800 | [diff] [blame] | 23 | # Build PDFium against skia (experimental) rather than agg. Use Skia to draw paths. |
| 24 | pdf_use_skia_paths = pdf_use_skia_paths_override |
| 25 | |
thestig | 3e454bf | 2016-07-29 16:29:04 -0700 | [diff] [blame] | 26 | # Build PDFium with or without experimental win32 GDI APIs. |
| 27 | pdf_use_win32_gdi = pdf_use_win32_gdi_override |
| 28 | |
dsinclair | 685bb88 | 2016-04-20 07:32:39 -0700 | [diff] [blame] | 29 | # Build PDFium standalone |
| 30 | pdf_is_standalone = false |
Dan Sinclair | da48997 | 2017-01-17 10:12:55 -0500 | [diff] [blame] | 31 | |
| 32 | # Enable coverage information |
| 33 | use_coverage = false |
Tom Sepez | 452b4f3 | 2015-10-13 09:27:27 -0700 | [diff] [blame] | 34 | } |