Add python coverage module to third_party
[chromium-blink-merge.git] / chrome / chrome_utility.gypi
bloba9ee14c3dfb8e24fd381572684b894d1f190e15b
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/local_discovery/service_discovery_message_handler.cc',
17       'utility/local_discovery/service_discovery_message_handler.h',
18       'utility/printing_handler.cc',
19       'utility/printing_handler.h',
20       'utility/shell_handler_win.cc',
21       'utility/shell_handler_win.h',
22       'utility/font_cache_handler_win.cc',
23       'utility/font_cache_handler_win.h',
24       'utility/utility_message_handler.h',
25       'utility/web_resource_unpacker.cc',
26       'utility/web_resource_unpacker.h',
27     ],
28     'chrome_utility_extensions_sources': [
29       'utility/extensions/extensions_handler.cc',
30       'utility/extensions/extensions_handler.h',
31       'utility/extensions/unpacker.cc',
32       'utility/extensions/unpacker.h',
33       'utility/image_writer/disk_unmounter_mac.cc',
34       'utility/image_writer/disk_unmounter_mac.h',
35       'utility/image_writer/error_messages.cc',
36       'utility/image_writer/error_messages.h',
37       'utility/image_writer/image_writer.cc',
38       'utility/image_writer/image_writer.h',
39       'utility/image_writer/image_writer_handler.cc',
40       'utility/image_writer/image_writer_handler.h',
41       'utility/image_writer/image_writer_mac.cc',
42       'utility/image_writer/image_writer_win.cc',
43     ],
44     'chrome_utility_importer_sources': [
45       'utility/importer/bookmark_html_reader.cc',
46       'utility/importer/bookmark_html_reader.h',
47       'utility/importer/bookmarks_file_importer.cc',
48       'utility/importer/bookmarks_file_importer.h',
49       'utility/importer/external_process_importer_bridge.cc',
50       'utility/importer/external_process_importer_bridge.h',
51       'utility/importer/favicon_reencode.cc',
52       'utility/importer/favicon_reencode.h',
53       'utility/importer/firefox_importer.cc',
54       'utility/importer/firefox_importer.h',
55       'utility/importer/ie_importer_win.cc',
56       'utility/importer/ie_importer_win.h',
57       'utility/importer/importer.cc',
58       'utility/importer/importer.h',
59       'utility/importer/importer_creator.cc',
60       'utility/importer/importer_creator.h',
61       'utility/importer/nss_decryptor.cc',
62       'utility/importer/nss_decryptor.h',
63       'utility/importer/nss_decryptor_mac.h',
64       'utility/importer/nss_decryptor_mac.mm',
65       'utility/importer/nss_decryptor_win.cc',
66       'utility/importer/nss_decryptor_win.h',
67       'utility/importer/safari_importer.h',
68       'utility/importer/safari_importer.mm',
69       'utility/profile_import_handler.cc',
70       'utility/profile_import_handler.h',
71     ],
72     'chrome_utility_shared_media_sources': [
73       'utility/media_galleries/image_metadata_extractor.cc',
74       'utility/media_galleries/image_metadata_extractor.h',
75       'utility/media_galleries/ipc_data_source.cc',
76       'utility/media_galleries/ipc_data_source.h',
77       'utility/media_galleries/itunes_pref_parser_win.cc',
78       'utility/media_galleries/itunes_pref_parser_win.h',
79       'utility/media_galleries/media_metadata_parser.cc',
80       'utility/media_galleries/media_metadata_parser.h',
81     ],
82     'chrome_utility_mac_media_gallery_sources': [
83       'utility/media_galleries/iphoto_library_parser.cc',
84       'utility/media_galleries/iphoto_library_parser.h',
85     ],
86     'chrome_utility_win_mac_media_gallery_sources': [
87       'utility/media_galleries/iapps_xml_utils.cc',
88       'utility/media_galleries/iapps_xml_utils.h',
89       'utility/media_galleries/itunes_library_parser.cc',
90       'utility/media_galleries/itunes_library_parser.h',
91       'utility/media_galleries/picasa_album_table_reader.cc',
92       'utility/media_galleries/picasa_album_table_reader.h',
93       'utility/media_galleries/picasa_albums_indexer.cc',
94       'utility/media_galleries/picasa_albums_indexer.h',
95       'utility/media_galleries/pmp_column_reader.cc',
96       'utility/media_galleries/pmp_column_reader.h',
97     ],
98   },
99   'targets': [
100     {
101       # GN version: //chrome/utility
102       'target_name': 'utility',
103       'type': 'static_library',
104       'variables': { 'enable_wexit_time_destructors': 1, },
105       'dependencies': [
106         '../base/base.gyp:base',
107         '../components/components_strings.gyp:components_strings',
108         '../components/components.gyp:url_fixer',
109         '../content/content.gyp:content_common',
110         '../content/content.gyp:content_utility',
111         '../media/media.gyp:media',
112         '../skia/skia.gyp:skia',
113         '../third_party/libxml/libxml.gyp:libxml',
114         '<(DEPTH)/chrome/chrome_resources.gyp:chrome_resources',
115         '<(DEPTH)/chrome/chrome_resources.gyp:chrome_strings',
116         'common',
117       ],
118       'include_dirs': [
119         '..',
120         '<(grit_out_dir)',
121       ],
122       'sources': [
123         '<@(chrome_utility_sources)',
124       ],
125       'conditions': [
126         ['OS!="win" and OS!="mac" and use_openssl==1', {
127           'sources!': [
128             'utility/importer/nss_decryptor.cc',
129           ]
130         }],
131         ['OS!="win" and OS!="mac" and use_openssl==0', {
132           'dependencies': [
133             '../crypto/crypto.gyp:crypto',
134           ],
135           'sources': [
136             'utility/importer/nss_decryptor_system_nss.cc',
137             'utility/importer/nss_decryptor_system_nss.h',
138           ],
139         }],
140         ['OS!="android"', {
141           'sources': [
142             '<@(chrome_utility_importer_sources)',
143           ],
144         }],
145         ['enable_extensions==1', {
146           'dependencies': [
147             '../extensions/extensions.gyp:extensions_utility',
148             '../third_party/libexif/libexif.gyp:libexif',
149             'common/extensions/api/api.gyp:chrome_api',
150           ],
151           'export_dependent_settings': [
152             'common/extensions/api/api.gyp:chrome_api',
153           ],
154           'sources': [
155             '<@(chrome_utility_extensions_sources)',
156             '<@(chrome_utility_shared_media_sources)',
157           ],
158           'conditions': [
159             ['OS=="win" or OS=="mac"', {
160               'dependencies': [
161                 '../components/components.gyp:wifi_component',
162               ],
163               'sources': [
164                 '<@(chrome_utility_win_mac_media_gallery_sources)',
165               ],
166             }, {  # OS!="win" and OS!="mac"
167               'sources': [
168                 'utility/image_writer/image_writer_stub.cc',
169               ]
170             }],
171             ['OS=="mac"', {
172               'sources': [
173                 '<@(chrome_utility_mac_media_gallery_sources)',
174               ],
175             }],
176           ],
177         }],
178         ['enable_print_preview==0 and OS!="win"', {
179           'sources!': [
180             'utility/printing_handler.cc',
181             'utility/printing_handler.h',
182           ]
183         }],
184         ['enable_mdns==0', {
185           'sources!': [
186             'utility/local_discovery/service_discovery_message_handler.cc',
187             'utility/local_discovery/service_discovery_message_handler.h',
188           ]
189         }],
190         ['safe_browsing==1', {
191           'defines': [ 'FULL_SAFE_BROWSING' ],
192         }],
193       ],
194       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
195       'msvs_disabled_warnings': [ 4267, ],
196     },
197   ],