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 static_library("pdf") { | 7 static_library("pdf") { |
8 sources = [ | 8 sources = [ |
9 "button.h", | 9 "button.h", |
10 "button.cc", | 10 "button.cc", |
(...skipping 27 matching lines...) Expand all Loading... |
38 "progress_control.h", | 38 "progress_control.h", |
39 "pdf_engine.h", | 39 "pdf_engine.h", |
40 "preview_mode_client.cc", | 40 "preview_mode_client.cc", |
41 "preview_mode_client.h", | 41 "preview_mode_client.h", |
42 "resource.h", | 42 "resource.h", |
43 "resource_consts.h", | 43 "resource_consts.h", |
44 "thumbnail_control.cc", | 44 "thumbnail_control.cc", |
45 "thumbnail_control.h", | 45 "thumbnail_control.h", |
46 ] | 46 ] |
47 | 47 |
| 48 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 49 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 50 |
48 if (pdf_engine == 0) { | 51 if (pdf_engine == 0) { |
49 sources += [ | 52 sources += [ |
50 "pdfium/pdfium_api_string_buffer_adapter.cc", | 53 "pdfium/pdfium_api_string_buffer_adapter.cc", |
51 "pdfium/pdfium_api_string_buffer_adapter.h", | 54 "pdfium/pdfium_api_string_buffer_adapter.h", |
52 "pdfium/pdfium_assert_matching_enums.cc", | 55 "pdfium/pdfium_assert_matching_enums.cc", |
53 "pdfium/pdfium_engine.cc", | 56 "pdfium/pdfium_engine.cc", |
54 "pdfium/pdfium_engine.h", | 57 "pdfium/pdfium_engine.h", |
55 "pdfium/pdfium_mem_buffer_file_read.cc", | 58 "pdfium/pdfium_mem_buffer_file_read.cc", |
56 "pdfium/pdfium_mem_buffer_file_read.h", | 59 "pdfium/pdfium_mem_buffer_file_read.h", |
57 "pdfium/pdfium_mem_buffer_file_write.cc", | 60 "pdfium/pdfium_mem_buffer_file_write.cc", |
58 "pdfium/pdfium_mem_buffer_file_write.h", | 61 "pdfium/pdfium_mem_buffer_file_write.h", |
59 "pdfium/pdfium_page.cc", | 62 "pdfium/pdfium_page.cc", |
60 "pdfium/pdfium_page.h", | 63 "pdfium/pdfium_page.h", |
61 "pdfium/pdfium_range.cc", | 64 "pdfium/pdfium_range.cc", |
62 "pdfium/pdfium_range.h", | 65 "pdfium/pdfium_range.h", |
63 ] | 66 ] |
64 } | 67 } |
65 | 68 |
66 if (is_win) { | |
67 cflags = [ "/wd4267" ] # TODO(jschuh) size_t to int truncations. | |
68 } | |
69 | |
70 deps = [ | 69 deps = [ |
71 "//base", | 70 "//base", |
72 "//components/ui/zoom:ui_zoom", | 71 "//components/ui/zoom:ui_zoom", |
73 "//content/public/common", | 72 "//content/public/common", |
74 "//net", | 73 "//net", |
75 "//ppapi/cpp/private:internal_module", | 74 "//ppapi/cpp/private:internal_module", |
76 "//third_party/pdfium", | 75 "//third_party/pdfium", |
77 ] | 76 ] |
78 } | 77 } |
OLD | NEW |