1# Copyright 2014 The Chromium Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5{ 6 'targets': [ 7 { 8 'target_name': 'utility', 9 'type': 'static_library', 10 'variables': { 'enable_wexit_time_destructors': 1, }, 11 'dependencies': [ 12 '../base/base.gyp:base', 13 '../components/components_strings.gyp:components_strings', 14 '../components/components.gyp:url_fixer', 15 '../content/content.gyp:content_common', 16 '../content/content.gyp:content_utility', 17 '../media/media.gyp:media', 18 '../skia/skia.gyp:skia', 19 '../third_party/libexif/libexif.gyp:libexif', 20 '../third_party/libxml/libxml.gyp:libxml', 21 '<(DEPTH)/chrome/chrome_resources.gyp:chrome_resources', 22 '<(DEPTH)/chrome/chrome_resources.gyp:chrome_strings', 23 'common', 24 'common/extensions/api/api.gyp:chrome_api', 25 ], 26 'include_dirs': [ 27 '..', 28 '<(grit_out_dir)', 29 ], 30 'export_dependent_settings': [ 31 'common/extensions/api/api.gyp:chrome_api', 32 ], 33 'sources': [ 34 'utility/chrome_content_utility_client.cc', 35 'utility/chrome_content_utility_client.h', 36 'utility/chrome_content_utility_ipc_whitelist.cc', 37 'utility/chrome_content_utility_ipc_whitelist.h', 38 'utility/cloud_print/bitmap_image.cc', 39 'utility/cloud_print/bitmap_image.h', 40 'utility/cloud_print/pwg_encoder.cc', 41 'utility/cloud_print/pwg_encoder.h', 42 'utility/extensions/unpacker.cc', 43 'utility/extensions/unpacker.h', 44 'utility/image_writer/disk_unmounter_mac.cc', 45 'utility/image_writer/disk_unmounter_mac.h', 46 'utility/image_writer/error_messages.cc', 47 'utility/image_writer/error_messages.h', 48 'utility/image_writer/image_writer.cc', 49 'utility/image_writer/image_writer.h', 50 'utility/image_writer/image_writer_handler.cc', 51 'utility/image_writer/image_writer_handler.h', 52 'utility/image_writer/image_writer_mac.cc', 53 'utility/image_writer/image_writer_win.cc', 54 'utility/importer/bookmark_html_reader.cc', 55 'utility/importer/bookmark_html_reader.h', 56 'utility/importer/bookmarks_file_importer.cc', 57 'utility/importer/bookmarks_file_importer.h', 58 'utility/importer/external_process_importer_bridge.cc', 59 'utility/importer/external_process_importer_bridge.h', 60 'utility/importer/favicon_reencode.cc', 61 'utility/importer/favicon_reencode.h', 62 'utility/importer/firefox_importer.cc', 63 'utility/importer/firefox_importer.h', 64 'utility/importer/ie_importer_win.cc', 65 'utility/importer/ie_importer_win.h', 66 'utility/importer/importer.cc', 67 'utility/importer/importer.h', 68 'utility/importer/importer_creator.cc', 69 'utility/importer/importer_creator.h', 70 'utility/importer/nss_decryptor.cc', 71 'utility/importer/nss_decryptor.h', 72 'utility/importer/nss_decryptor_mac.h', 73 'utility/importer/nss_decryptor_mac.mm', 74 'utility/importer/nss_decryptor_win.cc', 75 'utility/importer/nss_decryptor_win.h', 76 'utility/importer/safari_importer.h', 77 'utility/importer/safari_importer.mm', 78 'utility/local_discovery/service_discovery_message_handler.cc', 79 'utility/local_discovery/service_discovery_message_handler.h', 80 'utility/media_galleries/image_metadata_extractor.cc', 81 'utility/media_galleries/image_metadata_extractor.h', 82 'utility/media_galleries/ipc_data_source.cc', 83 'utility/media_galleries/ipc_data_source.h', 84 'utility/media_galleries/itunes_pref_parser_win.cc', 85 'utility/media_galleries/itunes_pref_parser_win.h', 86 'utility/media_galleries/media_metadata_parser.cc', 87 'utility/media_galleries/media_metadata_parser.h', 88 'utility/printing_handler.cc', 89 'utility/printing_handler.h', 90 'utility/profile_import_handler.cc', 91 'utility/profile_import_handler.h', 92 'utility/utility_message_handler.h', 93 'utility/web_resource_unpacker.cc', 94 'utility/web_resource_unpacker.h', 95 ], 96 'conditions': [ 97 ['OS=="win" or OS=="mac"', { 98 'dependencies': [ 99 '../components/components.gyp:wifi_component', 100 ], 101 'sources': [ 102 'utility/media_galleries/iapps_xml_utils.cc', 103 'utility/media_galleries/iapps_xml_utils.h', 104 'utility/media_galleries/itunes_library_parser.cc', 105 'utility/media_galleries/itunes_library_parser.h', 106 'utility/media_galleries/picasa_album_table_reader.cc', 107 'utility/media_galleries/picasa_album_table_reader.h', 108 'utility/media_galleries/picasa_albums_indexer.cc', 109 'utility/media_galleries/picasa_albums_indexer.h', 110 'utility/media_galleries/pmp_column_reader.cc', 111 'utility/media_galleries/pmp_column_reader.h', 112 ], 113 }], 114 ['OS=="mac"', { 115 'sources': [ 116 'utility/media_galleries/iphoto_library_parser.cc', 117 'utility/media_galleries/iphoto_library_parser.h', 118 ], 119 }], 120 ['use_openssl==1', { 121 'sources!': [ 122 'utility/importer/nss_decryptor.cc', 123 ] 124 }], 125 ['OS!="win" and OS!="mac" and use_openssl==0', { 126 'dependencies': [ 127 '../crypto/crypto.gyp:crypto', 128 ], 129 'sources': [ 130 'utility/importer/nss_decryptor_system_nss.cc', 131 'utility/importer/nss_decryptor_system_nss.h', 132 ], 133 }], 134 ['OS=="android"', { 135 'dependencies!': [ 136 '../third_party/libexif/libexif.gyp:libexif', 137 ], 138 'sources/': [ 139 ['exclude', '^utility/importer/'], 140 ['exclude', '^utility/media_galleries/'], 141 ['exclude', '^utility/profile_import_handler\.cc'], 142 ], 143 }], 144 ['OS!="win" and OS!="mac"', { 145 'sources': [ 146 'utility/image_writer/image_writer_stub.cc', 147 ] 148 }], 149 ['enable_printing!=1', { 150 'sources!': [ 151 'utility/printing_handler.cc', 152 'utility/printing_handler.h', 153 ] 154 }], 155 ['enable_mdns==0', { 156 'sources!': [ 157 'utility/local_discovery/service_discovery_message_handler.cc', 158 'utility/local_discovery/service_discovery_message_handler.h', 159 ] 160 }], 161 ], 162 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 163 'msvs_disabled_warnings': [ 4267, ], 164 }, 165 ], 166} 167