Update CrOS OOBE throbber to MD throbber; delete old asset
[chromium-blink-merge.git] / chrome / chrome_utility.gypi
blob4652c855c7373d6161b53e8ee4a5fb08a5055da7
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.
6   'variables': {
7     'chrome_utility_sources': [
8       'utility/chrome_content_utility_client.cc',
9       'utility/chrome_content_utility_client.h',
10       'utility/chrome_content_utility_ipc_whitelist.cc',
11       'utility/chrome_content_utility_ipc_whitelist.h',
12       'utility/cloud_print/bitmap_image.cc',
13       'utility/cloud_print/bitmap_image.h',
14       'utility/cloud_print/pwg_encoder.cc',
15       'utility/cloud_print/pwg_encoder.h',
16       'utility/font_cache_handler_win.cc',
17       'utility/font_cache_handler_win.h',
18       'utility/local_discovery/service_discovery_message_handler.cc',
19       'utility/local_discovery/service_discovery_message_handler.h',
20       'utility/printing_handler.cc',
21       'utility/printing_handler.h',
22       'utility/safe_json_parser_handler.cc',
23       'utility/safe_json_parser_handler.h',
24       'utility/shell_handler_win.cc',
25       'utility/shell_handler_win.h',
26       'utility/utility_message_handler.h',
27     ],
28     'chrome_utility_extensions_sources': [
29       'utility/extensions/extensions_handler.cc',
30       'utility/extensions/extensions_handler.h',
31       'utility/image_writer/disk_unmounter_mac.cc',
32       'utility/image_writer/disk_unmounter_mac.h',
33       'utility/image_writer/error_messages.cc',
34       'utility/image_writer/error_messages.h',
35       'utility/image_writer/image_writer.cc',
36       'utility/image_writer/image_writer.h',
37       'utility/image_writer/image_writer_handler.cc',
38       'utility/image_writer/image_writer_handler.h',
39       'utility/image_writer/image_writer_mac.cc',
40       'utility/image_writer/image_writer_win.cc',
41     ],
42     'chrome_utility_importer_sources': [
43       'utility/importer/bookmark_html_reader.cc',
44       'utility/importer/bookmark_html_reader.h',
45       'utility/importer/bookmarks_file_importer.cc',
46       'utility/importer/bookmarks_file_importer.h',
47       'utility/importer/external_process_importer_bridge.cc',
48       'utility/importer/external_process_importer_bridge.h',
49       'utility/importer/favicon_reencode.cc',
50       'utility/importer/favicon_reencode.h',
51       'utility/importer/firefox_importer.cc',
52       'utility/importer/firefox_importer.h',
53       'utility/importer/ie_importer_win.cc',
54       'utility/importer/ie_importer_win.h',
55       'utility/importer/importer.cc',
56       'utility/importer/importer.h',
57       'utility/importer/importer_creator.cc',
58       'utility/importer/importer_creator.h',
59       'utility/importer/nss_decryptor.cc',
60       'utility/importer/nss_decryptor.h',
61       'utility/importer/nss_decryptor_mac.h',
62       'utility/importer/nss_decryptor_mac.mm',
63       'utility/importer/nss_decryptor_win.cc',
64       'utility/importer/nss_decryptor_win.h',
65       'utility/importer/safari_importer.h',
66       'utility/importer/safari_importer.mm',
67       'utility/profile_import_handler.cc',
68       'utility/profile_import_handler.h',
69     ],
70     'chrome_utility_safe_browsing_sources': [
71       'utility/safe_browsing/mac/convert_big_endian.h',
72       'utility/safe_browsing/mac/dmg_iterator.cc',
73       'utility/safe_browsing/mac/dmg_iterator.h',
74       'utility/safe_browsing/mac/hfs.cc',
75       'utility/safe_browsing/mac/hfs.h',
76       'utility/safe_browsing/mac/read_stream.cc',
77       'utility/safe_browsing/mac/read_stream.h',
78       'utility/safe_browsing/mac/udif.cc',
79       'utility/safe_browsing/mac/udif.h',
80     ],
81     'chrome_utility_shared_media_sources': [
82       'utility/media_galleries/image_metadata_extractor.cc',
83       'utility/media_galleries/image_metadata_extractor.h',
84       'utility/media_galleries/ipc_data_source.cc',
85       'utility/media_galleries/ipc_data_source.h',
86       'utility/media_galleries/itunes_pref_parser_win.cc',
87       'utility/media_galleries/itunes_pref_parser_win.h',
88       'utility/media_galleries/media_metadata_parser.cc',
89       'utility/media_galleries/media_metadata_parser.h',
90     ],
91     'chrome_utility_mac_media_gallery_sources': [
92       'utility/media_galleries/iphoto_library_parser.cc',
93       'utility/media_galleries/iphoto_library_parser.h',
94     ],
95     'chrome_utility_win_mac_media_gallery_sources': [
96       'utility/media_galleries/iapps_xml_utils.cc',
97       'utility/media_galleries/iapps_xml_utils.h',
98       'utility/media_galleries/itunes_library_parser.cc',
99       'utility/media_galleries/itunes_library_parser.h',
100       'utility/media_galleries/picasa_album_table_reader.cc',
101       'utility/media_galleries/picasa_album_table_reader.h',
102       'utility/media_galleries/picasa_albums_indexer.cc',
103       'utility/media_galleries/picasa_albums_indexer.h',
104       'utility/media_galleries/pmp_column_reader.cc',
105       'utility/media_galleries/pmp_column_reader.h',
106     ],
107   },
108   'targets': [
109     {
110       # GN version: //chrome/utility
111       'target_name': 'utility',
112       'type': 'static_library',
113       'variables': { 'enable_wexit_time_destructors': 1, },
114       'dependencies': [
115         '../base/base.gyp:base',
116         '../components/components_strings.gyp:components_strings',
117         '../components/components.gyp:safe_json_parser_message_filter',
118         '../components/components.gyp:search_engines',
119         '../components/url_formatter/url_formatter.gyp:url_formatter',
120         '../content/content.gyp:content_common',
121         '../content/content.gyp:content_utility',
122         '../media/media.gyp:media',
123         '../skia/skia.gyp:skia',
124         '../third_party/libxml/libxml.gyp:libxml',
125         '<(DEPTH)/chrome/chrome_resources.gyp:chrome_resources',
126         '<(DEPTH)/chrome/chrome_resources.gyp:chrome_strings',
127         'common',
128       ],
129       'include_dirs': [
130         '..',
131         '<(grit_out_dir)',
132       ],
133       'sources': [
134         '<@(chrome_utility_sources)',
135       ],
136       'conditions': [
137         ['OS=="win"', {
138           'link_settings': {
139             'msvs_settings': {
140               'VCLinkerTool': {
141                 'DelayLoadDLLs': [
142                   # Prevent wininet from loading in the renderer.
143                   # http://crbug.com/460679
144                   'wininet.dll',
145                 ],
146               },
147             },
148           },
149         }],
150         ['OS!="android"', {
151           'dependencies': [
152             'common_mojo_bindings',
153             '../net/net.gyp:net_utility_services',
154           ],
155           'sources': [
156             '<@(chrome_utility_importer_sources)',
157           ],
158         }],
159         ['use_nss_certs==1', {
160           'dependencies': [
161             '../crypto/crypto.gyp:crypto',
162           ],
163           'sources': [
164             'utility/importer/nss_decryptor_system_nss.cc',
165             'utility/importer/nss_decryptor_system_nss.h',
166           ],
167         }],
168         ['enable_extensions==1', {
169           'dependencies': [
170             '../extensions/extensions.gyp:extensions_utility',
171             '../third_party/libexif/libexif.gyp:libexif',
172             'common/extensions/api/api.gyp:chrome_api',
173           ],
174           'export_dependent_settings': [
175             'common/extensions/api/api.gyp:chrome_api',
176           ],
177           'sources': [
178             '<@(chrome_utility_extensions_sources)',
179             '<@(chrome_utility_shared_media_sources)',
180           ],
181           'conditions': [
182             ['OS=="win" or OS=="mac"', {
183               'dependencies': [
184                 '../components/components.gyp:wifi_component',
185               ],
186               'sources': [
187                 '<@(chrome_utility_win_mac_media_gallery_sources)',
188               ],
189             }, {  # OS!="win" and OS!="mac"
190               'sources': [
191                 'utility/image_writer/image_writer_stub.cc',
192               ]
193             }],
194             ['OS=="mac"', {
195               'sources': [
196                 '<@(chrome_utility_mac_media_gallery_sources)',
197               ],
198             }],
199           ],
200         }],
201         ['enable_print_preview==0 and OS!="win"', {
202           'sources!': [
203             'utility/printing_handler.cc',
204             'utility/printing_handler.h',
205           ]
206         }],
207         ['enable_mdns==0', {
208           'sources!': [
209             'utility/local_discovery/service_discovery_message_handler.cc',
210             'utility/local_discovery/service_discovery_message_handler.h',
211           ]
212         }],
213         ['safe_browsing==1', {
214           'sources': [ '<@(chrome_utility_safe_browsing_sources)' ],
215           'conditions': [
216             ['OS=="mac"', {
217               'link_settings': {
218                 'libraries': [
219                   '$(SDKROOT)/usr/lib/libbz2.dylib',
220                 ],
221               },
222             }],
223           ],
224         }],
225       ],
226       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
227       'msvs_disabled_warnings': [ 4267, ],
228     },
229   ],