OLD | NEW |
| (Empty) |
1 { | |
2 'variables': { | |
3 'chromium_code': 1, | |
4 'pdf_enable_xfa%': 0, | |
5 'pdf_engine%': 0, # 0 PDFium | |
6 }, | |
7 'targets': [ | |
8 { | |
9 'target_name': 'pdf', | |
10 'type': 'static_library', | |
11 'dependencies': [ | |
12 '../base/base.gyp:base', | |
13 '../gin/gin.gyp:gin', | |
14 '../net/net.gyp:net', | |
15 '../ppapi/ppapi.gyp:ppapi_cpp_objects', | |
16 '../ppapi/ppapi.gyp:ppapi_internal_module', | |
17 '../ui/base/ui_base.gyp:ui_base', | |
18 ], | |
19 'ldflags': [ '-L<(PRODUCT_DIR)',], | |
20 'sources': [ | |
21 'chunk_stream.h', | |
22 'chunk_stream.cc', | |
23 'document_loader.h', | |
24 'document_loader.cc', | |
25 'draw_utils.cc', | |
26 'draw_utils.h', | |
27 'out_of_process_instance.cc', | |
28 'out_of_process_instance.h', | |
29 'paint_aggregator.cc', | |
30 'paint_aggregator.h', | |
31 'paint_manager.cc', | |
32 'paint_manager.h', | |
33 'pdf.cc', | |
34 'pdf.h', | |
35 'pdf_engine.h', | |
36 'preview_mode_client.cc', | |
37 'preview_mode_client.h', | |
38 ], | |
39 'conditions': [ | |
40 ['pdf_engine==0', { | |
41 'dependencies': [ | |
42 '../third_party/pdfium/pdfium.gyp:pdfium', | |
43 ], | |
44 'sources': [ | |
45 'pdfium/pdfium_api_string_buffer_adapter.cc', | |
46 'pdfium/pdfium_api_string_buffer_adapter.h', | |
47 'pdfium/pdfium_assert_matching_enums.cc', | |
48 'pdfium/pdfium_engine.cc', | |
49 'pdfium/pdfium_engine.h', | |
50 'pdfium/pdfium_mem_buffer_file_read.cc', | |
51 'pdfium/pdfium_mem_buffer_file_read.h', | |
52 'pdfium/pdfium_mem_buffer_file_write.cc', | |
53 'pdfium/pdfium_mem_buffer_file_write.h', | |
54 'pdfium/pdfium_page.cc', | |
55 'pdfium/pdfium_page.h', | |
56 'pdfium/pdfium_range.cc', | |
57 'pdfium/pdfium_range.h', | |
58 ], | |
59 }], | |
60 ['pdf_enable_xfa==1', { | |
61 'defines': [ | |
62 'PDF_ENABLE_XFA', | |
63 ] | |
64 }], | |
65 ['OS=="win"', { | |
66 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | |
67 'msvs_disabled_warnings': [ 4267, ], | |
68 }], | |
69 ], | |
70 }, | |
71 ], | |
72 } | |
OLD | NEW |