OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 pdf_engine = 0 # 0 PDFium | 5 pdf_engine = 0 # 0 PDFium |
6 | 6 |
7 # TODO(GYP) need support for loadable modules | 7 static_library("pdf") { |
8 shared_library("pdf") { | |
9 sources = [ | 8 sources = [ |
10 "button.h", | 9 "button.h", |
11 "button.cc", | 10 "button.cc", |
12 "chunk_stream.h", | 11 "chunk_stream.h", |
13 "chunk_stream.cc", | 12 "chunk_stream.cc", |
14 "control.h", | 13 "control.h", |
15 "control.cc", | 14 "control.cc", |
16 "document_loader.h", | 15 "document_loader.h", |
17 "document_loader.cc", | 16 "document_loader.cc", |
18 "draw_utils.cc", | 17 "draw_utils.cc", |
19 "draw_utils.h", | 18 "draw_utils.h", |
20 "fading_control.cc", | 19 "fading_control.cc", |
21 "fading_control.h", | 20 "fading_control.h", |
22 "fading_controls.cc", | 21 "fading_controls.cc", |
23 "fading_controls.h", | 22 "fading_controls.h", |
24 "instance.cc", | 23 "instance.cc", |
25 "instance.h", | 24 "instance.h", |
26 "number_image_generator.cc", | 25 "number_image_generator.cc", |
27 "number_image_generator.h", | 26 "number_image_generator.h", |
28 "out_of_process_instance.cc", | 27 "out_of_process_instance.cc", |
29 "out_of_process_instance.h", | 28 "out_of_process_instance.h", |
30 "page_indicator.cc", | 29 "page_indicator.cc", |
31 "page_indicator.h", | 30 "page_indicator.h", |
32 "paint_aggregator.cc", | 31 "paint_aggregator.cc", |
33 "paint_aggregator.h", | 32 "paint_aggregator.h", |
34 "paint_manager.cc", | 33 "paint_manager.cc", |
35 "paint_manager.h", | 34 "paint_manager.h", |
36 "pdf.cc", | 35 "pdf.cc", |
37 "pdf.h", | 36 "pdf.h", |
38 "pdf.rc", | |
39 "progress_control.cc", | 37 "progress_control.cc", |
40 "progress_control.h", | 38 "progress_control.h", |
41 "pdf_engine.h", | 39 "pdf_engine.h", |
42 "preview_mode_client.cc", | 40 "preview_mode_client.cc", |
43 "preview_mode_client.h", | 41 "preview_mode_client.h", |
44 "resource.h", | 42 "resource.h", |
45 "resource_consts.h", | 43 "resource_consts.h", |
46 "thumbnail_control.cc", | 44 "thumbnail_control.cc", |
47 "thumbnail_control.h", | 45 "thumbnail_control.h", |
48 "../components/ui/zoom/page_zoom_constants.cc", | |
49 "../content/common/page_zoom.cc", | |
50 ] | 46 ] |
51 | 47 |
52 if (pdf_engine == 0) { | 48 if (pdf_engine == 0) { |
53 sources += [ | 49 sources += [ |
54 "pdfium/pdfium_api_string_buffer_adapter.cc", | 50 "pdfium/pdfium_api_string_buffer_adapter.cc", |
55 "pdfium/pdfium_api_string_buffer_adapter.h", | 51 "pdfium/pdfium_api_string_buffer_adapter.h", |
56 "pdfium/pdfium_assert_matching_enums.cc", | 52 "pdfium/pdfium_assert_matching_enums.cc", |
57 "pdfium/pdfium_engine.cc", | 53 "pdfium/pdfium_engine.cc", |
58 "pdfium/pdfium_engine.h", | 54 "pdfium/pdfium_engine.h", |
59 "pdfium/pdfium_mem_buffer_file_read.cc", | 55 "pdfium/pdfium_mem_buffer_file_read.cc", |
60 "pdfium/pdfium_mem_buffer_file_read.h", | 56 "pdfium/pdfium_mem_buffer_file_read.h", |
61 "pdfium/pdfium_mem_buffer_file_write.cc", | 57 "pdfium/pdfium_mem_buffer_file_write.cc", |
62 "pdfium/pdfium_mem_buffer_file_write.h", | 58 "pdfium/pdfium_mem_buffer_file_write.h", |
63 "pdfium/pdfium_page.cc", | 59 "pdfium/pdfium_page.cc", |
64 "pdfium/pdfium_page.h", | 60 "pdfium/pdfium_page.h", |
65 "pdfium/pdfium_range.cc", | 61 "pdfium/pdfium_range.cc", |
66 "pdfium/pdfium_range.h", | 62 "pdfium/pdfium_range.h", |
67 ] | 63 ] |
68 } | 64 } |
69 | 65 |
70 if (is_win) { | 66 if (is_win) { |
71 defines = [ "COMPILE_CONTENT_STATICALLY" ] | 67 defines = [ "COMPILE_CONTENT_STATICALLY" ] |
72 cflags = [ "/wd4267" ] # TODO(jschuh) size_t to int truncations. | 68 cflags = [ "/wd4267" ] # TODO(jschuh) size_t to int truncations. |
73 } | 69 } |
74 | 70 |
75 if (is_mac) { | |
76 # TODO(GYP) | |
77 #'mac_bundle': 1, | |
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. | |
82 #'variables': { | |
83 # 'mac_real_dsym': 1, | |
84 #}, | |
85 #'sources+': [ | |
86 # 'Info.plist' | |
87 #] | |
88 #'xcode_settings': { | |
89 # 'INFOPLIST_FILE': 'Info.plist', | |
90 #}, | |
91 } | |
92 | |
93 deps = [ | 71 deps = [ |
94 "//base", | 72 "//base", |
| 73 "//components/ui/zoom:ui_zoom", |
| 74 "//content/public/common", |
95 "//net", | 75 "//net", |
96 "//ppapi:ppapi_cpp", | 76 "//ppapi:ppapi_internal_module", |
97 "//third_party/pdfium", | 77 "//third_party/pdfium", |
98 ] | 78 ] |
99 } | 79 } |
100 # TODO(GYP) pdf_linux_symbols target. | |
OLD | NEW |