Add ICU message format support
[chromium-blink-merge.git] / pdf / pdf.gyp
blobca37d890dba300cb394375fa38444eb6e896ce23
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         '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         'resource.h',
39         'resource_consts.h',
40       ],
41       'conditions': [
42         ['pdf_engine==0', {
43           'sources': [
44             'pdfium/pdfium_api_string_buffer_adapter.cc',
45             'pdfium/pdfium_api_string_buffer_adapter.h',
46             'pdfium/pdfium_assert_matching_enums.cc',
47             'pdfium/pdfium_engine.cc',
48             'pdfium/pdfium_engine.h',
49             'pdfium/pdfium_mem_buffer_file_read.cc',
50             'pdfium/pdfium_mem_buffer_file_read.h',
51             'pdfium/pdfium_mem_buffer_file_write.cc',
52             'pdfium/pdfium_mem_buffer_file_write.h',
53             'pdfium/pdfium_page.cc',
54             'pdfium/pdfium_page.h',
55             'pdfium/pdfium_range.cc',
56             'pdfium/pdfium_range.h',
57           ],
58         }],
59         ['OS=="win"', {
60           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
61           'msvs_disabled_warnings': [ 4267, ],
62         }],
63       ],
64     },
65   ],