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 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
6 import("//third_party/pdfium/pdfium.gni") | 6 import("//third_party/pdfium/pdfium.gni") |
7 | 7 |
8 assert(enable_pdf) | 8 assert(enable_pdf) |
9 | 9 |
10 pdf_engine = 0 # 0 PDFium | 10 pdf_engine = 0 # 0 PDFium |
11 | 11 |
12 static_library("pdf") { | 12 static_library("pdf") { |
13 deps = [ | |
14 "//base", | |
15 "//gin", | |
16 "//net", | |
17 "//ppapi/cpp:objects", | |
18 "//ppapi/cpp/private:internal_module", | |
19 ] | |
20 | |
13 sources = [ | 21 sources = [ |
14 "chunk_stream.cc", | 22 "chunk_stream.cc", |
15 "chunk_stream.h", | 23 "chunk_stream.h", |
16 "document_loader.cc", | 24 "document_loader.cc", |
17 "document_loader.h", | 25 "document_loader.h", |
18 "draw_utils.cc", | 26 "draw_utils.cc", |
19 "draw_utils.h", | 27 "draw_utils.h", |
20 "out_of_process_instance.cc", | 28 "out_of_process_instance.cc", |
21 "out_of_process_instance.h", | 29 "out_of_process_instance.h", |
22 "paint_aggregator.cc", | 30 "paint_aggregator.cc", |
23 "paint_aggregator.h", | 31 "paint_aggregator.h", |
24 "paint_manager.cc", | 32 "paint_manager.cc", |
25 "paint_manager.h", | 33 "paint_manager.h", |
26 "pdf.cc", | 34 "pdf.cc", |
27 "pdf.h", | 35 "pdf.h", |
28 "pdf_engine.h", | 36 "pdf_engine.h", |
29 "preview_mode_client.cc", | 37 "preview_mode_client.cc", |
30 "preview_mode_client.h", | 38 "preview_mode_client.h", |
31 ] | 39 ] |
32 | 40 |
33 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 41 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
34 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 42 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
35 | 43 |
36 if (pdf_engine == 0) { | 44 if (pdf_engine == 0) { |
raymes
2016/01/04 23:00:48
Hmm - what is this variable used for? I only ever
Lei Zhang
2016/01/04 23:03:03
In case someone decides one day add an alternative
| |
45 deps += [ "//third_party/pdfium" ] | |
46 | |
37 sources += [ | 47 sources += [ |
38 "pdfium/pdfium_api_string_buffer_adapter.cc", | 48 "pdfium/pdfium_api_string_buffer_adapter.cc", |
39 "pdfium/pdfium_api_string_buffer_adapter.h", | 49 "pdfium/pdfium_api_string_buffer_adapter.h", |
40 "pdfium/pdfium_assert_matching_enums.cc", | 50 "pdfium/pdfium_assert_matching_enums.cc", |
41 "pdfium/pdfium_engine.cc", | 51 "pdfium/pdfium_engine.cc", |
42 "pdfium/pdfium_engine.h", | 52 "pdfium/pdfium_engine.h", |
43 "pdfium/pdfium_mem_buffer_file_read.cc", | 53 "pdfium/pdfium_mem_buffer_file_read.cc", |
44 "pdfium/pdfium_mem_buffer_file_read.h", | 54 "pdfium/pdfium_mem_buffer_file_read.h", |
45 "pdfium/pdfium_mem_buffer_file_write.cc", | 55 "pdfium/pdfium_mem_buffer_file_write.cc", |
46 "pdfium/pdfium_mem_buffer_file_write.h", | 56 "pdfium/pdfium_mem_buffer_file_write.h", |
47 "pdfium/pdfium_page.cc", | 57 "pdfium/pdfium_page.cc", |
48 "pdfium/pdfium_page.h", | 58 "pdfium/pdfium_page.h", |
49 "pdfium/pdfium_range.cc", | 59 "pdfium/pdfium_range.cc", |
50 "pdfium/pdfium_range.h", | 60 "pdfium/pdfium_range.h", |
51 ] | 61 ] |
52 } | 62 } |
53 | 63 |
54 if (pdf_enable_xfa) { | 64 if (pdf_enable_xfa) { |
55 defines = [ "PDF_ENABLE_XFA" ] | 65 defines = [ "PDF_ENABLE_XFA" ] |
56 } | 66 } |
57 | |
58 deps = [ | |
59 "//base", | |
60 "//components/ui/zoom", | |
61 "//content/public/common", | |
62 "//gin", | |
63 "//net", | |
64 "//ppapi/cpp:objects", | |
65 "//ppapi/cpp/private:internal_module", | |
66 "//third_party/pdfium", | |
67 ] | |
68 } | 67 } |
OLD | NEW |