4 'pdf_engine%': 0, # 0 PDFium
14 'type': 'loadable_module',
15 'msvs_guid': '647863C0-C7A3-469A-B1ED-AD7283C34BED',
17 '../base/base.gyp:base',
19 '../ppapi/ppapi.gyp:ppapi_cpp',
20 '../third_party/pdfium/pdfium.gyp:pdfium',
23 'INFOPLIST_FILE': 'Info.plist',
25 'mac_framework_dirs': [
26 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework/Frameworks',
28 'ldflags': [ '-L<(PRODUCT_DIR)',],
46 'number_image_generator.cc',
47 'number_image_generator.h',
48 'out_of_process_instance.cc',
49 'out_of_process_instance.h',
52 'paint_aggregator.cc',
59 'progress_control.cc',
62 'preview_mode_client.cc',
63 'preview_mode_client.h',
66 'thumbnail_control.cc',
67 'thumbnail_control.h',
68 '../components/ui/zoom/page_zoom_constants.cc',
69 '../content/common/page_zoom.cc',
74 'pdfium/pdfium_api_string_buffer_adapter.cc',
75 'pdfium/pdfium_api_string_buffer_adapter.h',
76 'pdfium/pdfium_assert_matching_enums.cc',
77 'pdfium/pdfium_engine.cc',
78 'pdfium/pdfium_engine.h',
79 'pdfium/pdfium_mem_buffer_file_read.cc',
80 'pdfium/pdfium_mem_buffer_file_read.h',
81 'pdfium/pdfium_mem_buffer_file_write.cc',
82 'pdfium/pdfium_mem_buffer_file_write.h',
83 'pdfium/pdfium_page.cc',
84 'pdfium/pdfium_page.h',
85 'pdfium/pdfium_range.cc',
86 'pdfium/pdfium_range.h',
96 'product_name': 'PDF',
97 'product_extension': 'plugin',
98 # Strip the shipping binary of symbols so "Foxit" doesn't appear in
99 # the binary. Symbols are stored in a separate .dSYM.
109 'COMPILE_CONTENT_STATICALLY',
111 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
112 'msvs_disabled_warnings': [ 4267, ],
117 #'cflags': [ '-fno-weak',], # get rid of symbols that strip doesn't remove.
118 # Don't do this for now since official builder will take care of it. That
119 # way symbols can still be uploaded to the crash server.
120 #'ldflags': [ '-s',], # strip local symbols from binary.
128 # CrOS has a separate step to do this.
129 ['OS=="linux" and chromeos==0',
132 'target_name': 'pdf_linux_symbols',
135 ['linux_dump_symbols==1', {
138 'action_name': 'dump_symbols',
140 '<(DEPTH)/build/linux/dump_app_syms',
141 '<(PRODUCT_DIR)/dump_syms',
142 '<(PRODUCT_DIR)/libpdf.so',
145 '<(PRODUCT_DIR)/libpdf.so.breakpad.<(target_arch)',
147 'action': ['<(DEPTH)/build/linux/dump_app_syms',
148 '<(PRODUCT_DIR)/dump_syms',
149 '<(linux_strip_binary)',
150 '<(PRODUCT_DIR)/libpdf.so',
152 'message': 'Dumping breakpad symbols to <(_outputs)',
153 'process_outputs_as_sources': 1,
158 '../breakpad/breakpad.gyp:dump_syms',
164 },], # OS=="linux" and chromeos==0
165 ['OS=="win" and fastbuild==0 and target_arch=="ia32" and syzyasan==1', {
167 'dest_dir': '<(PRODUCT_DIR)/syzygy',
171 'target_name': 'pdf_syzyasan',
177 # Instrument PDFium with SyzyAsan.
180 'action_name': 'Instrument PDFium with SyzyAsan',
182 '<(PRODUCT_DIR)/pdf.dll',
185 '<(dest_dir)/pdf.dll',
186 '<(dest_dir)/pdf.dll.pdb',
190 '<(DEPTH)/chrome/tools/build/win/syzygy/instrument.py',
192 '--input_executable', '<(PRODUCT_DIR)/pdf.dll',
193 '--input_symbol', '<(PRODUCT_DIR)/pdf.dll.pdb',
194 '--destination_dir', '<(dest_dir)',
200 }], # OS=="win" and fastbuild==0 and target_arch=="ia32" and syzyasan==1