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() { |
Lei Zhang | 984f1d8 | 2017-03-31 16:11:55 -0700 | [diff] [blame] | 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. |
Lei Zhang | 7b70189 | 2017-03-28 13:56:29 -0700 | [diff] [blame] | 16 | pdf_bundle_freetype = pdf_bundle_freetype_override |
Tom Sepez | a8a39e2 | 2015-10-12 15:47:07 -0700 | [diff] [blame] | 17 | |
Tom Sepez | 452b4f3 | 2015-10-13 09:27:27 -0700 | [diff] [blame] | 18 | # Build PDFium either with or without v8 support. |
dsinclair | fd670fd | 2016-05-03 06:14:34 -0700 | [diff] [blame] | 19 | pdf_enable_v8 = pdf_enable_v8_override |
Tom Sepez | 452b4f3 | 2015-10-13 09:27:27 -0700 | [diff] [blame] | 20 | |
Tom Sepez | a8a39e2 | 2015-10-12 15:47:07 -0700 | [diff] [blame] | 21 | # Build PDFium either with or without XFA Forms support. |
dsinclair | fd670fd | 2016-05-03 06:14:34 -0700 | [diff] [blame] | 22 | pdf_enable_xfa = pdf_enable_xfa_override |
Tom Sepez | a8a39e2 | 2015-10-12 15:47:07 -0700 | [diff] [blame] | 23 | |
Tom Sepez | 73c9f3b | 2017-02-27 10:12:59 -0800 | [diff] [blame] | 24 | # If XFA, also support bmp codec. Ignored if not XFA. |
Dan Sinclair | b3b6e92 | 2017-02-28 11:33:33 -0500 | [diff] [blame] | 25 | pdf_enable_xfa_bmp = true |
Tom Sepez | 73c9f3b | 2017-02-27 10:12:59 -0800 | [diff] [blame] | 26 | |
| 27 | # If XFA, also support gif codec. Ignored if not XFA. |
Dan Sinclair | b3b6e92 | 2017-02-28 11:33:33 -0500 | [diff] [blame] | 28 | pdf_enable_xfa_gif = true |
Tom Sepez | 73c9f3b | 2017-02-27 10:12:59 -0800 | [diff] [blame] | 29 | |
| 30 | # If XFA, also support png codec. Ignored if not XFA. |
Dan Sinclair | b3b6e92 | 2017-02-28 11:33:33 -0500 | [diff] [blame] | 31 | pdf_enable_xfa_png = true |
Tom Sepez | 73c9f3b | 2017-02-27 10:12:59 -0800 | [diff] [blame] | 32 | |
| 33 | # If XFA, also support png codec. Ignored if not XFA. |
Dan Sinclair | b3b6e92 | 2017-02-28 11:33:33 -0500 | [diff] [blame] | 34 | pdf_enable_xfa_tiff = true |
Tom Sepez | 73c9f3b | 2017-02-27 10:12:59 -0800 | [diff] [blame] | 35 | |
Lei Zhang | 7b70189 | 2017-03-28 13:56:29 -0700 | [diff] [blame] | 36 | # Build PDFium against skia (experimental) rather than agg. Use Skia to draw |
| 37 | # everything. |
dsinclair | fd670fd | 2016-05-03 06:14:34 -0700 | [diff] [blame] | 38 | pdf_use_skia = pdf_use_skia_override |
dsinclair | 685bb88 | 2016-04-20 07:32:39 -0700 | [diff] [blame] | 39 | |
Lei Zhang | 7b70189 | 2017-03-28 13:56:29 -0700 | [diff] [blame] | 40 | # Build PDFium against skia (experimental) rather than agg. Use Skia to draw |
| 41 | # paths. |
caryclark | af177fe | 2016-11-16 10:10:03 -0800 | [diff] [blame] | 42 | pdf_use_skia_paths = pdf_use_skia_paths_override |
| 43 | |
thestig | 3e454bf | 2016-07-29 16:29:04 -0700 | [diff] [blame] | 44 | # Build PDFium with or without experimental win32 GDI APIs. |
| 45 | pdf_use_win32_gdi = pdf_use_win32_gdi_override |
| 46 | |
dsinclair | 685bb88 | 2016-04-20 07:32:39 -0700 | [diff] [blame] | 47 | # Build PDFium standalone |
| 48 | pdf_is_standalone = false |
Dan Sinclair | da48997 | 2017-01-17 10:12:55 -0500 | [diff] [blame] | 49 | |
dan sinclair | fa171d2 | 2017-03-26 22:38:17 -0400 | [diff] [blame] | 50 | # Build a complete static library |
| 51 | pdf_is_complete_lib = false |
| 52 | |
Dan Sinclair | da48997 | 2017-01-17 10:12:55 -0500 | [diff] [blame] | 53 | # Enable coverage information |
| 54 | use_coverage = false |
Miklos Vajna | 2df760f | 2017-05-06 01:54:54 +0200 | [diff] [blame] | 55 | |
| 56 | # Don't build against bundled zlib. |
| 57 | use_system_zlib = false |
Tom Sepez | 452b4f3 | 2015-10-13 09:27:27 -0700 | [diff] [blame] | 58 | } |