summaryrefslogtreecommitdiff
path: root/build_overrides
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-05-03 06:14:34 -0700
committerCommit bot <commit-bot@chromium.org>2016-05-03 06:14:34 -0700
commitfd670fdef8984fd7f8824b17d8fcf52fdec9aacc (patch)
tree70dfa01e04ad718dc23c11a31d6f8a48ee52671d /build_overrides
parent6020e45b406e7a130024de87101b4493543f9deb (diff)
downloadpdfium-fd670fdef8984fd7f8824b17d8fcf52fdec9aacc.tar.xz
Reland of Allow overriding GN build flagschromium/2724
This reverts commit 038bf0b129e56212a6de0989dca1ae023bb17c5d. In order to enable XFA from GN builds we need to be able to override pdf_enable_xfa. To do this a build_overrides/pdfium.gni file needs to be created in Chrome. To use that, //pdfium.gni reads the override values and sets them into the defined arguments. We have to create a build_overrides/pdfium.gni file in PDFium that sets the default overrides for PDFium builds. BUG=chromium:62400 Review-Url: https://codereview.chromium.org/1936313002
Diffstat (limited to 'build_overrides')
-rw-r--r--build_overrides/pdfium.gni14
1 files changed, 14 insertions, 0 deletions
diff --git a/build_overrides/pdfium.gni b/build_overrides/pdfium.gni
new file mode 100644
index 0000000000..246671bb62
--- /dev/null
+++ b/build_overrides/pdfium.gni
@@ -0,0 +1,14 @@
+# Copyright 2016 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# This file contains PDFium-related build overrides.
+
+# Build PDFium either with or without v8 support.
+pdf_enable_v8_override = true
+
+# Build PDFium either with or without XFA Forms support.
+pdf_enable_xfa_override = false
+
+# Build PDFium against skia (experimental) rather than agg.
+pdf_use_skia_override = false