[Sync] Componentize UIModelWorker.
[chromium-blink-merge.git] / pdf / pdf.gyp
blobbb6a36f3aa0ae927a74984fbffa0dd338941631d
2   'variables': {
3     'chromium_code': 1,
4     'pdf_engine%': 0,  # 0 PDFium
5   },
6   'targets': [
7     {
8       'target_name': 'pdf',
9       'type': 'static_library',
10       'dependencies': [
11         '../base/base.gyp:base',
12         '../components/components.gyp:ui_zoom',
13         '../content/content.gyp:content_common',
14         '../gin/gin.gyp:gin',
15         '../net/net.gyp:net',
16         '../ppapi/ppapi.gyp:ppapi_cpp_objects',
17         '../ppapi/ppapi.gyp:ppapi_internal_module',
18         '../third_party/pdfium/pdfium.gyp:pdfium',
19       ],
20       'ldflags': [ '-L<(PRODUCT_DIR)',],
21       'sources': [
22         'chunk_stream.h',
23         'chunk_stream.cc',
24         'document_loader.h',
25         'document_loader.cc',
26         'draw_utils.cc',
27         'draw_utils.h',
28         'out_of_process_instance.cc',
29         'out_of_process_instance.h',
30         'paint_aggregator.cc',
31         'paint_aggregator.h',
32         'paint_manager.cc',
33         'paint_manager.h',
34         'pdf.cc',
35         'pdf.h',
36         'pdf_engine.h',
37         'preview_mode_client.cc',
38         'preview_mode_client.h',
39         'resource.h',
40         'resource_consts.h',
41       ],
42       'conditions': [
43         ['pdf_engine==0', {
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         ['OS=="win"', {
61           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
62           'msvs_disabled_warnings': [ 4267, ],
63         }],
64       ],
65     },
66   ],