Add RemoteDeviceLifeCycle to manage the life cycle of a remote Smart Lock phone.
[chromium-blink-merge.git] / chrome / chrome_utility.gypi
blobd70f335a6c532dd6c3dff44a501c59c5749e133d
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_analyzer.cc',
73       'utility/safe_browsing/mac/dmg_analyzer.h',
74       'utility/safe_browsing/mac/dmg_iterator.cc',
75       'utility/safe_browsing/mac/dmg_iterator.h',
76       'utility/safe_browsing/mac/hfs.cc',
77       'utility/safe_browsing/mac/hfs.h',
78       'utility/safe_browsing/mac/read_stream.cc',
79       'utility/safe_browsing/mac/read_stream.h',
80       'utility/safe_browsing/mac/udif.cc',
81       'utility/safe_browsing/mac/udif.h',
82     ],
83     'chrome_utility_shared_media_sources': [
84       'utility/media_galleries/image_metadata_extractor.cc',
85       'utility/media_galleries/image_metadata_extractor.h',
86       'utility/media_galleries/ipc_data_source.cc',
87       'utility/media_galleries/ipc_data_source.h',
88       'utility/media_galleries/itunes_pref_parser_win.cc',
89       'utility/media_galleries/itunes_pref_parser_win.h',
90       'utility/media_galleries/media_metadata_parser.cc',
91       'utility/media_galleries/media_metadata_parser.h',
92     ],
93     'chrome_utility_mac_media_gallery_sources': [
94       'utility/media_galleries/iphoto_library_parser.cc',
95       'utility/media_galleries/iphoto_library_parser.h',
96     ],
97     'chrome_utility_win_mac_media_gallery_sources': [
98       'utility/media_galleries/iapps_xml_utils.cc',
99       'utility/media_galleries/iapps_xml_utils.h',
100       'utility/media_galleries/itunes_library_parser.cc',
101       'utility/media_galleries/itunes_library_parser.h',
102       'utility/media_galleries/picasa_album_table_reader.cc',
103       'utility/media_galleries/picasa_album_table_reader.h',
104       'utility/media_galleries/picasa_albums_indexer.cc',
105       'utility/media_galleries/picasa_albums_indexer.h',
106       'utility/media_galleries/pmp_column_reader.cc',
107       'utility/media_galleries/pmp_column_reader.h',
108     ],
109   },
110   'targets': [
111     {
112       # GN version: //chrome/utility
113       'target_name': 'utility',
114       'type': 'static_library',
115       'variables': { 'enable_wexit_time_destructors': 1, },
116       'dependencies': [
117         '../base/base.gyp:base',
118         '../components/components_strings.gyp:components_strings',
119         '../components/components.gyp:safe_json_parser_message_filter',
120         '../components/components.gyp:search_engines',
121         '../components/url_formatter/url_formatter.gyp:url_formatter',
122         '../content/content.gyp:content_common',
123         '../content/content.gyp:content_utility',
124         '../media/media.gyp:media',
125         '../skia/skia.gyp:skia',
126         '../third_party/libxml/libxml.gyp:libxml',
127         '<(DEPTH)/chrome/chrome_resources.gyp:chrome_resources',
128         '<(DEPTH)/chrome/chrome_resources.gyp:chrome_strings',
129         'common',
130       ],
131       'include_dirs': [
132         '..',
133         '<(grit_out_dir)',
134       ],
135       'sources': [
136         '<@(chrome_utility_sources)',
137       ],
138       'conditions': [
139         ['OS=="win"', {
140           'link_settings': {
141             'msvs_settings': {
142               'VCLinkerTool': {
143                 'DelayLoadDLLs': [
144                   # Prevent wininet from loading in the renderer.
145                   # http://crbug.com/460679
146                   'wininet.dll',
147                 ],
148               },
149             },
150           },
151         }],
152         ['OS!="android"', {
153           'dependencies': [
154             'common_mojo_bindings',
155             '../net/net.gyp:net_utility_services',
156           ],
157           'sources': [
158             '<@(chrome_utility_importer_sources)',
159           ],
160         }],
161         ['use_nss_certs==1', {
162           'dependencies': [
163             '../crypto/crypto.gyp:crypto',
164           ],
165           'sources': [
166             'utility/importer/nss_decryptor_system_nss.cc',
167             'utility/importer/nss_decryptor_system_nss.h',
168           ],
169         }],
170         ['enable_extensions==1', {
171           'dependencies': [
172             '../extensions/extensions.gyp:extensions_utility',
173             '../third_party/libexif/libexif.gyp:libexif',
174             'common/extensions/api/api.gyp:chrome_api',
175           ],
176           'export_dependent_settings': [
177             'common/extensions/api/api.gyp:chrome_api',
178           ],
179           'sources': [
180             '<@(chrome_utility_extensions_sources)',
181             '<@(chrome_utility_shared_media_sources)',
182           ],
183           'conditions': [
184             ['OS=="win" or OS=="mac"', {
185               'dependencies': [
186                 '../components/components.gyp:wifi_component',
187               ],
188               'sources': [
189                 '<@(chrome_utility_win_mac_media_gallery_sources)',
190               ],
191             }, {  # OS!="win" and OS!="mac"
192               'sources': [
193                 'utility/image_writer/image_writer_stub.cc',
194               ]
195             }],
196             ['OS=="mac"', {
197               'sources': [
198                 '<@(chrome_utility_mac_media_gallery_sources)',
199               ],
200             }],
201           ],
202         }],
203         ['enable_print_preview==0 and OS!="win"', {
204           'sources!': [
205             'utility/printing_handler.cc',
206             'utility/printing_handler.h',
207           ]
208         }],
209         ['enable_mdns==0', {
210           'sources!': [
211             'utility/local_discovery/service_discovery_message_handler.cc',
212             'utility/local_discovery/service_discovery_message_handler.h',
213           ]
214         }],
215         ['safe_browsing==1', {
216           'sources': [ '<@(chrome_utility_safe_browsing_sources)' ],
217           'conditions': [
218             ['OS=="mac"', {
219               'link_settings': {
220                 'libraries': [
221                   '$(SDKROOT)/usr/lib/libbz2.dylib',
222                 ],
223               },
224             }],
225           ],
226         }],
227       ],
228       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
229       'msvs_disabled_warnings': [ 4267, ],
230     },
231   ],