diff options
Diffstat (limited to 'chromium/pdf/BUILD.gn')
-rw-r--r-- | chromium/pdf/BUILD.gn | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/chromium/pdf/BUILD.gn b/chromium/pdf/BUILD.gn index 34c33a4c378..6d46f53b399 100644 --- a/chromium/pdf/BUILD.gn +++ b/chromium/pdf/BUILD.gn @@ -4,6 +4,7 @@ import("//build/buildflag_header.gni") import("//build/config/features.gni") +import("//build/config/jumbo.gni") import("//pdf/features.gni") import("//testing/test.gni") import("//third_party/pdfium/pdfium.gni") @@ -17,7 +18,7 @@ buildflag_header("features") { if (enable_pdf) { pdf_engine = 0 # 0 PDFium - static_library("pdf") { + jumbo_static_library("pdf") { deps = [ "//base", "//gin", @@ -28,6 +29,11 @@ if (enable_pdf) { "//ui/gfx/range", ] + public = [ + "pdf.h", + "pdf_ppapi.h", + ] + sources = [ "chunk_stream.h", "document_loader.cc", @@ -44,6 +50,8 @@ if (enable_pdf) { "pdf.h", "pdf_engine.cc", "pdf_engine.h", + "pdf_ppapi.cc", + "pdf_ppapi.h", "preview_mode_client.cc", "preview_mode_client.h", "range_set.cc", @@ -55,6 +63,9 @@ if (enable_pdf) { "url_loader_wrapper_impl.h", ] + include_dirs = [] + defines = [] + if (pdf_engine == 0) { deps += [ "//pdf/pdfium/fuzzers", @@ -77,11 +88,13 @@ if (enable_pdf) { "pdfium/pdfium_range.cc", "pdfium/pdfium_range.h", ] - } - defines = [ "PDFIUM_PRINT_TEXT_WITH_GDI" ] - if (pdf_enable_xfa) { - defines += [ "PDF_ENABLE_XFA" ] + include_dirs += [ "//third_party/pdfium" ] + + defines += [ "PDFIUM_PRINT_TEXT_WITH_GDI" ] + if (pdf_enable_xfa) { + defines += [ "PDF_ENABLE_XFA" ] + } } } |