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