[Metrics] Make MetricsStateManager take a callback param to check if UMA is enabled.
[chromium-blink-merge.git] / chrome / chrome_utility.gypi
bloba5e1e44d7cb6fb7d8cbcd050ed9a56e9579d774b
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   '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         '../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',
22         'common',
23         'common/extensions/api/api.gyp:chrome_api',
24       ],
25       'include_dirs': [
26         '..',
27         '<(grit_out_dir)',
28       ],
29       'export_dependent_settings': [
30         'common/extensions/api/api.gyp:chrome_api',
31       ],
32       'sources': [
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',
87       ],
88       'conditions': [
89         ['OS=="win" or OS=="mac"', {
90           'dependencies': [
91             '../components/components.gyp:wifi_component',
92           ],
93           'sources': [
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',
104           ],
105         }],
106         ['OS=="mac"', {
107           'sources': [
108             'utility/media_galleries/iphoto_library_parser.cc',
109             'utility/media_galleries/iphoto_library_parser.h',
110           ],
111         }],
112         ['use_openssl==1', {
113           'sources!': [
114             'utility/importer/nss_decryptor.cc',
115           ]
116         }],
117         ['OS!="win" and OS!="mac" and use_openssl==0', {
118           'dependencies': [
119             '../crypto/crypto.gyp:crypto',
120           ],
121           'sources': [
122             'utility/importer/nss_decryptor_system_nss.cc',
123             'utility/importer/nss_decryptor_system_nss.h',
124           ],
125         }],
126         ['OS=="android"', {
127           'dependencies!': [
128             '../third_party/libexif/libexif.gyp:libexif',
129           ],
130           'sources/': [
131             ['exclude', '^utility/importer/'],
132             ['exclude', '^utility/media_galleries/'],
133             ['exclude', '^utility/profile_import_handler\.cc'],
134           ],
135         }],
136         ['enable_mdns == 1', {
137           'sources': [
138             'utility/local_discovery/service_discovery_message_handler.cc',
139             'utility/local_discovery/service_discovery_message_handler.h',
140           ]
141         }],
142         ['OS!="win"', {
143           'sources': [
144             'utility/image_writer/image_writer_stub.cc',
145           ]
146         }],
147       ],
148       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
149       'msvs_disabled_warnings': [ 4267, ],
150     },
151   ],