1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 pdf_engine = 0 # 0 PDFium
7 # TODO(GYP) need support for loadable modules
8 shared_library("pdf") {
26 "number_image_generator.cc",
27 "number_image_generator.h",
28 "out_of_process_instance.cc",
29 "out_of_process_instance.h",
32 "paint_aggregator.cc",
39 "progress_control.cc",
42 "preview_mode_client.cc",
43 "preview_mode_client.h",
46 "thumbnail_control.cc",
47 "thumbnail_control.h",
48 "../components/ui/zoom/page_zoom_constants.cc",
49 "../content/common/page_zoom.cc",
52 if (pdf_engine == 0) {
54 "pdfium/pdfium_api_string_buffer_adapter.cc",
55 "pdfium/pdfium_api_string_buffer_adapter.h",
56 "pdfium/pdfium_assert_matching_enums.cc",
57 "pdfium/pdfium_engine.cc",
58 "pdfium/pdfium_engine.h",
59 "pdfium/pdfium_mem_buffer_file_read.cc",
60 "pdfium/pdfium_mem_buffer_file_read.h",
61 "pdfium/pdfium_mem_buffer_file_write.cc",
62 "pdfium/pdfium_mem_buffer_file_write.h",
63 "pdfium/pdfium_page.cc",
64 "pdfium/pdfium_page.h",
65 "pdfium/pdfium_range.cc",
66 "pdfium/pdfium_range.h",
71 defines = [ "COMPILE_CONTENT_STATICALLY" ]
72 cflags = [ "/wd4267" ] # TODO(jschuh) size_t to int truncations.
78 #'product_name': 'PDF',
79 #'product_extension': 'plugin',
80 ## Strip the shipping binary of symbols so "Foxit" doesn't appear in
81 ## the binary. Symbols are stored in a separate .dSYM.
89 # 'INFOPLIST_FILE': 'Info.plist',
97 "//third_party/pdfium",
100 # TODO(GYP) pdf_linux_symbols target.