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.
8 'target_name': 'utility',
9 'type': 'static_library',
10 'variables': { 'enable_wexit_time_destructors': 1, },
12 '../base/base.gyp:base',
13 '../components/components_strings.gyp:components_strings',
14 '../content/content.gyp:content_common',
15 '../content/content.gyp:content_utility',
16 '../media/media.gyp:media',
17 '../skia/skia.gyp:skia',
18 '../third_party/libexif/libexif.gyp:libexif',
19 '../third_party/libxml/libxml.gyp:libxml',
20 '<(DEPTH)/chrome/chrome_resources.gyp:chrome_resources',
21 '<(DEPTH)/chrome/chrome_resources.gyp:chrome_strings',
23 'common/extensions/api/api.gyp:chrome_api',
29 'export_dependent_settings': [
30 'common/extensions/api/api.gyp:chrome_api',
33 'utility/chrome_content_utility_client.cc',
34 'utility/chrome_content_utility_client.h',
35 'utility/chrome_content_utility_ipc_whitelist.cc',
36 'utility/chrome_content_utility_ipc_whitelist.h',
37 'utility/cloud_print/bitmap_image.cc',
38 'utility/cloud_print/bitmap_image.h',
39 'utility/cloud_print/pwg_encoder.cc',
40 'utility/cloud_print/pwg_encoder.h',
41 'utility/extensions/unpacker.cc',
42 'utility/extensions/unpacker.h',
43 'utility/image_writer/error_messages.cc',
44 'utility/image_writer/error_messages.h',
45 'utility/image_writer/image_writer.cc',
46 'utility/image_writer/image_writer.h',
47 'utility/image_writer/image_writer_handler.cc',
48 'utility/image_writer/image_writer_handler.h',
49 'utility/image_writer/image_writer_win.cc',
50 'utility/importer/bookmark_html_reader.cc',
51 'utility/importer/bookmark_html_reader.h',
52 'utility/importer/bookmarks_file_importer.cc',
53 'utility/importer/bookmarks_file_importer.h',
54 'utility/importer/external_process_importer_bridge.cc',
55 'utility/importer/external_process_importer_bridge.h',
56 'utility/importer/favicon_reencode.cc',
57 'utility/importer/favicon_reencode.h',
58 'utility/importer/firefox_importer.cc',
59 'utility/importer/firefox_importer.h',
60 'utility/importer/ie_importer_win.cc',
61 'utility/importer/ie_importer_win.h',
62 'utility/importer/importer.cc',
63 'utility/importer/importer.h',
64 'utility/importer/importer_creator.cc',
65 'utility/importer/importer_creator.h',
66 'utility/importer/nss_decryptor.cc',
67 'utility/importer/nss_decryptor.h',
68 'utility/importer/nss_decryptor_mac.h',
69 'utility/importer/nss_decryptor_mac.mm',
70 'utility/importer/nss_decryptor_win.cc',
71 'utility/importer/nss_decryptor_win.h',
72 'utility/importer/safari_importer.h',
73 'utility/importer/safari_importer.mm',
74 'utility/media_galleries/image_metadata_extractor.cc',
75 'utility/media_galleries/image_metadata_extractor.h',
76 'utility/media_galleries/ipc_data_source.cc',
77 'utility/media_galleries/ipc_data_source.h',
78 'utility/media_galleries/itunes_pref_parser_win.cc',
79 'utility/media_galleries/itunes_pref_parser_win.h',
80 'utility/media_galleries/media_metadata_parser.cc',
81 'utility/media_galleries/media_metadata_parser.h',
82 'utility/profile_import_handler.cc',
83 'utility/profile_import_handler.h',
84 'utility/utility_message_handler.h',
85 'utility/web_resource_unpacker.cc',
86 'utility/web_resource_unpacker.h',
89 ['OS=="win" or OS=="mac"', {
91 '../components/components.gyp:wifi_component',
94 'utility/media_galleries/iapps_xml_utils.cc',
95 'utility/media_galleries/iapps_xml_utils.h',
96 'utility/media_galleries/itunes_library_parser.cc',
97 'utility/media_galleries/itunes_library_parser.h',
98 'utility/media_galleries/picasa_album_table_reader.cc',
99 'utility/media_galleries/picasa_album_table_reader.h',
100 'utility/media_galleries/picasa_albums_indexer.cc',
101 'utility/media_galleries/picasa_albums_indexer.h',
102 'utility/media_galleries/pmp_column_reader.cc',
103 'utility/media_galleries/pmp_column_reader.h',
108 'utility/media_galleries/iphoto_library_parser.cc',
109 'utility/media_galleries/iphoto_library_parser.h',
114 'utility/importer/nss_decryptor.cc',
117 ['OS!="win" and OS!="mac" and use_openssl==0', {
119 '../crypto/crypto.gyp:crypto',
122 'utility/importer/nss_decryptor_system_nss.cc',
123 'utility/importer/nss_decryptor_system_nss.h',
128 '../third_party/libexif/libexif.gyp:libexif',
131 ['exclude', '^utility/importer/'],
132 ['exclude', '^utility/media_galleries/'],
133 ['exclude', '^utility/profile_import_handler\.cc'],
136 ['enable_mdns == 1', {
138 'utility/local_discovery/service_discovery_message_handler.cc',
139 'utility/local_discovery/service_discovery_message_handler.h',
144 'utility/image_writer/image_writer_stub.cc',
148 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
149 'msvs_disabled_warnings': [ 4267, ],