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