diff options
author | tsepez <tsepez@chromium.org> | 2015-12-10 12:44:07 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-12-10 20:44:59 +0000 |
commit | 443df85bd8ec78c1787b50d3b4bee8f7187376d6 (patch) | |
tree | e9de5e628e0e36c56268883d2f3322230328d663 /pdf/BUILD.gn | |
parent | be7410fa028a9f086c8f5cedd623a6d57567799d (diff) | |
download | chromium_src-443df85bd8ec78c1787b50d3b4bee8f7187376d6.zip chromium_src-443df85bd8ec78c1787b50d3b4bee8f7187376d6.tar.gz chromium_src-443df85bd8ec78c1787b50d3b4bee8f7187376d6.tar.bz2 |
Keep pdf_engine in sync with PDF_ENABLE_XFA.
When the pdf_enable_xfa GYP_DEFINES flag is present, pass
-DPDF_ENABLE_XFA during the build of pdf engine. If the
XFA branch is present, the public XFA header will notice this
flag, and define PDF_USE_XFA in response, which the engine
tests to control its usage of XFA features. When chrome is
built against master, PDF_USE_XFA is never defined, so this
still works regardless of the setting of the GYP define.
Review URL: https://codereview.chromium.org/1511443004
Cr-Commit-Position: refs/heads/master@{#364466}
Diffstat (limited to 'pdf/BUILD.gn')
-rw-r--r-- | pdf/BUILD.gn | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pdf/BUILD.gn b/pdf/BUILD.gn index 593e6ba..194803a 100644 --- a/pdf/BUILD.gn +++ b/pdf/BUILD.gn @@ -2,6 +2,8 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. +import("//third_party/pdfium/pdfium.gni") + pdf_engine = 0 # 0 PDFium static_library("pdf") { @@ -46,6 +48,10 @@ static_library("pdf") { ] } + if (pdf_enable_xfa) { + defines = [ "PDF_ENABLE_XFA" ] + } + deps = [ "//base", "//components/ui/zoom", |