c++11: Allow auto, for-range, variadic templates and macros, static_assert.
[chromium-blink-merge.git] / chrome / chrome_utility.gypi
blob3c6e0f0c3cc7343e256fced4349ad50221101e6e
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/utility_message_handler.h',
23       'utility/web_resource_unpacker.cc',
24       'utility/web_resource_unpacker.h',
25     ],
26     'chrome_utility_extensions_sources': [
27       'utility/extensions/extensions_handler.cc',
28       'utility/extensions/extensions_handler.h',
29       'utility/extensions/unpacker.cc',
30       'utility/extensions/unpacker.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_shared_media_sources': [
71       'utility/media_galleries/image_metadata_extractor.cc',
72       'utility/media_galleries/image_metadata_extractor.h',
73       'utility/media_galleries/ipc_data_source.cc',
74       'utility/media_galleries/ipc_data_source.h',
75       'utility/media_galleries/itunes_pref_parser_win.cc',
76       'utility/media_galleries/itunes_pref_parser_win.h',
77       'utility/media_galleries/media_metadata_parser.cc',
78       'utility/media_galleries/media_metadata_parser.h',
79     ],
80     'chrome_utility_mac_media_gallery_sources': [
81       'utility/media_galleries/iphoto_library_parser.cc',
82       'utility/media_galleries/iphoto_library_parser.h',
83     ],
84     'chrome_utility_win_mac_media_gallery_sources': [
85       'utility/media_galleries/iapps_xml_utils.cc',
86       'utility/media_galleries/iapps_xml_utils.h',
87       'utility/media_galleries/itunes_library_parser.cc',
88       'utility/media_galleries/itunes_library_parser.h',
89       'utility/media_galleries/picasa_album_table_reader.cc',
90       'utility/media_galleries/picasa_album_table_reader.h',
91       'utility/media_galleries/picasa_albums_indexer.cc',
92       'utility/media_galleries/picasa_albums_indexer.h',
93       'utility/media_galleries/pmp_column_reader.cc',
94       'utility/media_galleries/pmp_column_reader.h',
95     ],
96   },
97   'targets': [
98     {
99       # GN version: //chrome/utility
100       'target_name': 'utility',
101       'type': 'static_library',
102       'variables': { 'enable_wexit_time_destructors': 1, },
103       'dependencies': [
104         '../base/base.gyp:base',
105         '../components/components_strings.gyp:components_strings',
106         '../components/components.gyp:url_fixer',
107         '../content/content.gyp:content_common',
108         '../content/content.gyp:content_utility',
109         '../media/media.gyp:media',
110         '../skia/skia.gyp:skia',
111         '../third_party/libxml/libxml.gyp:libxml',
112         '<(DEPTH)/chrome/chrome_resources.gyp:chrome_resources',
113         '<(DEPTH)/chrome/chrome_resources.gyp:chrome_strings',
114         'common',
115       ],
116       'include_dirs': [
117         '..',
118         '<(grit_out_dir)',
119       ],
120       'sources': [
121         '<@(chrome_utility_sources)',
122       ],
123       'conditions': [
124         ['OS!="win" and OS!="mac" and use_openssl==1', {
125           'sources!': [
126             'utility/importer/nss_decryptor.cc',
127           ]
128         }],
129         ['OS!="win" and OS!="mac" and use_openssl==0', {
130           'dependencies': [
131             '../crypto/crypto.gyp:crypto',
132           ],
133           'sources': [
134             'utility/importer/nss_decryptor_system_nss.cc',
135             'utility/importer/nss_decryptor_system_nss.h',
136           ],
137         }],
138         ['OS!="android"', {
139           'sources': [
140             '<@(chrome_utility_importer_sources)',
141           ],
142         }],
143         ['enable_extensions==1', {
144           'dependencies': [
145             '../third_party/libexif/libexif.gyp:libexif',
146             'common/extensions/api/api.gyp:chrome_api',
147           ],
148           'export_dependent_settings': [
149             'common/extensions/api/api.gyp:chrome_api',
150           ],
151           'sources': [
152             '<@(chrome_utility_extensions_sources)',
153             '<@(chrome_utility_shared_media_sources)',
154           ],
155           'conditions': [
156             ['OS=="win" or OS=="mac"', {
157               'dependencies': [
158                 '../components/components.gyp:wifi_component',
159               ],
160               'sources': [
161                 '<@(chrome_utility_win_mac_media_gallery_sources)',
162               ],
163             }, {  # OS!="win" and OS!="mac"
164               'sources': [
165                 'utility/image_writer/image_writer_stub.cc',
166               ]
167             }],
168             ['OS=="mac"', {
169               'sources': [
170                 '<@(chrome_utility_mac_media_gallery_sources)',
171               ],
172             }],
173           ],
174         }],
175         ['enable_printing!=1 and OS!="win"', {
176           'sources!': [
177             'utility/printing_handler.cc',
178             'utility/printing_handler.h',
179           ]
180         }],
181         ['enable_mdns==0', {
182           'sources!': [
183             'utility/local_discovery/service_discovery_message_handler.cc',
184             'utility/local_discovery/service_discovery_message_handler.h',
185           ]
186         }],
187         ['safe_browsing==1', {
188           'defines': [ 'FULL_SAFE_BROWSING' ],
189         }],
190       ],
191       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
192       'msvs_disabled_warnings': [ 4267, ],
193     },
194   ],