Commit ecc7eb31 authored by Lei Zhang's avatar Lei Zhang Committed by Commit Bot

Remove PDFium defines from pdf/ build config.

PDFium started exporting them in its public config, so these are now
redundant.

Change-Id: I2f7a476059a0aefd1e46b59463dbe9e90a64af32
Reviewed-on: https://chromium-review.googlesource.com/c/1357210Reviewed-by: default avatarTom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612801}
parent 25ca2dca
...@@ -21,11 +21,6 @@ if (enable_pdf) { ...@@ -21,11 +21,6 @@ if (enable_pdf) {
config("pdf_common_config") { config("pdf_common_config") {
if (pdf_engine == 0) { if (pdf_engine == 0) {
defines = [ "PDFIUM_PRINT_TEXT_WITH_GDI" ]
if (pdf_enable_xfa) {
defines += [ "PDF_ENABLE_XFA" ]
}
include_dirs = [ "//third_party/pdfium" ] include_dirs = [ "//third_party/pdfium" ]
} }
} }
...@@ -173,6 +168,11 @@ if (enable_pdf) { ...@@ -173,6 +168,11 @@ if (enable_pdf) {
if (pdf_engine == 0) { if (pdf_engine == 0) {
configs += [ "//v8:external_startup_data" ] configs += [ "//v8:external_startup_data" ]
deps += [
# Explicitly depend on PDFium to pick up its public configs, which are
# not transitive, possibly because the "pdf" target is a static_library.
"//third_party/pdfium",
]
sources += [ sources += [
"pdfium/findtext_unittest.cc", "pdfium/findtext_unittest.cc",
"pdfium/pdfium_engine_exports_unittest.cc", "pdfium/pdfium_engine_exports_unittest.cc",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment