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