Add support for setting properties to requests uploading contents.
[chromium-blink-merge.git] / pdf / pdf.gyp
blobf47e33ae72a8e05abe5685d58ae356094f35ad62
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         '../net/net.gyp:net',
15         '../ppapi/ppapi.gyp:ppapi_cpp_objects',
16         '../ppapi/ppapi.gyp:ppapi_internal_module',
17         '../third_party/pdfium/pdfium.gyp:pdfium',
18       ],
19       'ldflags': [ '-L<(PRODUCT_DIR)',],
20       'sources': [
21         'button.h',
22         'button.cc',
23         'chunk_stream.h',
24         'chunk_stream.cc',
25         'control.h',
26         'control.cc',
27         'document_loader.h',
28         'document_loader.cc',
29         'draw_utils.cc',
30         'draw_utils.h',
31         'fading_control.cc',
32         'fading_control.h',
33         'fading_controls.cc',
34         'fading_controls.h',
35         'instance.cc',
36         'instance.h',
37         'number_image_generator.cc',
38         'number_image_generator.h',
39         'out_of_process_instance.cc',
40         'out_of_process_instance.h',
41         'page_indicator.cc',
42         'page_indicator.h',
43         'paint_aggregator.cc',
44         'paint_aggregator.h',
45         'paint_manager.cc',
46         'paint_manager.h',
47         'pdf.cc',
48         'pdf.h',
49         'progress_control.cc',
50         'progress_control.h',
51         'pdf_engine.h',
52         'preview_mode_client.cc',
53         'preview_mode_client.h',
54         'resource.h',
55         'resource_consts.h',
56         'thumbnail_control.cc',
57         'thumbnail_control.h',
58       ],
59       'conditions': [
60         ['pdf_engine==0', {
61           'sources': [
62             'pdfium/pdfium_api_string_buffer_adapter.cc',
63             'pdfium/pdfium_api_string_buffer_adapter.h',
64             'pdfium/pdfium_assert_matching_enums.cc',
65             'pdfium/pdfium_engine.cc',
66             'pdfium/pdfium_engine.h',
67             'pdfium/pdfium_mem_buffer_file_read.cc',
68             'pdfium/pdfium_mem_buffer_file_read.h',
69             'pdfium/pdfium_mem_buffer_file_write.cc',
70             'pdfium/pdfium_mem_buffer_file_write.h',
71             'pdfium/pdfium_page.cc',
72             'pdfium/pdfium_page.h',
73             'pdfium/pdfium_range.cc',
74             'pdfium/pdfium_range.h',
75           ],
76         }],
77         ['OS=="win"', {
78           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
79           'msvs_disabled_warnings': [ 4267, ],
80         }],
81       ],
82     },
83   ],