Add localized default audio device names.
[chromium-blink-merge.git] / chrome / chrome_common.gypi
blob931154db36ec27c0ad753ffebc1cd5c6c166c7bd
1 # Copyright (c) 2013 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     # File lists shared with GN build.
8     'chrome_common_sources': [
9       'common/all_messages.h',
10       'common/attrition_experiments.h',
11       'common/auto_start_linux.cc',
12       'common/auto_start_linux.h',
13       'common/badge_util.cc',
14       'common/badge_util.h',
15       'common/channel_info.cc',
16       'common/channel_info.h',
17       'common/channel_info_android.cc',
18       'common/channel_info_chromeos.cc',
19       'common/channel_info_mac.mm',
20       'common/channel_info_posix.cc',
21       'common/channel_info_win.cc',
22       'common/child_process_logging.h',
23       'common/child_process_logging_win.cc',
24       'common/chrome_content_client.cc',
25       'common/chrome_content_client.h',
26       'common/chrome_content_client_constants.cc',
27       'common/chrome_content_client_ios.mm',
28       'common/chrome_result_codes.h',
29       'common/chrome_utility_messages.h',
30       'common/chrome_utility_printing_messages.h',
31       'common/cloud_print/cloud_print_cdd_conversion.cc',
32       'common/cloud_print/cloud_print_cdd_conversion.h',
33       'common/cloud_print/cloud_print_class_mac.h',
34       'common/cloud_print/cloud_print_class_mac.mm',
35       'common/cloud_print/cloud_print_constants.cc',
36       'common/cloud_print/cloud_print_constants.h',
37       'common/cloud_print/cloud_print_helpers.cc',
38       'common/cloud_print/cloud_print_helpers.h',
39       'common/cloud_print/cloud_print_proxy_info.cc',
40       'common/cloud_print/cloud_print_proxy_info.h',
41       'common/common_message_generator.cc',
42       'common/common_message_generator.h',
43       'common/common_param_traits.cc',
44       'common/common_param_traits.h',
45       'common/common_param_traits_macros.h',
46       'common/component_flash_hint_file_linux.h',
47       'common/component_flash_hint_file_linux.cc',
48       'common/content_restriction.h',
49       'common/content_settings_pattern_serializer.cc',
50       'common/content_settings_pattern_serializer.h',
51       'common/crash_keys.cc',
52       'common/crash_keys.h',
53       'common/custom_handlers/protocol_handler.cc',
54       'common/custom_handlers/protocol_handler.h',
55       'common/descriptors_android.h',
56       'common/icon_with_badge_image_source.cc',
57       'common/icon_with_badge_image_source.h',
58       'common/ini_parser.cc',
59       'common/ini_parser.h',
60       'common/instant_types.cc',
61       'common/instant_types.h',
62       'common/localized_error.cc',
63       'common/localized_error.h',
64       'common/logging_chrome.cc',
65       'common/logging_chrome.h',
66       'common/mac/app_shim_launch.h',
67       'common/mac/app_shim_messages.h',
68       'common/mac/cfbundle_blocker.h',
69       'common/mac/cfbundle_blocker.mm',
70       'common/mac/launchd.h',
71       'common/mac/launchd.mm',
72       'common/mac/objc_zombie.h',
73       'common/mac/objc_zombie.mm',
74       'common/media/media_resource_provider.cc',
75       'common/media/media_resource_provider.h',
76       'common/media/webrtc_logging_message_data.cc',
77       'common/media/webrtc_logging_message_data.h',
78       'common/media/webrtc_logging_messages.h',
79       'common/media_galleries/metadata_types.h',
80       'common/metrics/version_utils.cc',
81       'common/metrics/version_utils.h',
82       'common/multi_process_lock.h',
83       'common/multi_process_lock_linux.cc',
84       'common/multi_process_lock_mac.cc',
85       'common/multi_process_lock_win.cc',
86       'common/partial_circular_buffer.cc',
87       'common/partial_circular_buffer.h',
88       'common/pref_names_util.cc',
89       'common/pref_names_util.h',
90       'common/prerender_types.h',
91       'common/profiling.cc',
92       'common/profiling.h',
93       'common/ref_counted_util.h',
94       'common/render_messages.cc',
95       'common/render_messages.h',
96       'common/resource_usage_reporter_type_converters.cc',
97       'common/resource_usage_reporter_type_converters.h',
98       'common/safe_browsing/safebrowsing_messages.h',
99       'common/search_provider.h',
100       'common/search_types.h',
101       'common/search_urls.cc',
102       'common/search_urls.h',
103       'common/secure_origin_whitelist.cc',
104       'common/secure_origin_whitelist.h',
105       'common/spellcheck_bdict_language.h',
106       'common/spellcheck_common.cc',
107       'common/spellcheck_common.h',
108       'common/spellcheck_marker.h',
109       'common/spellcheck_messages.h',
110       'common/spellcheck_result.h',
111       'common/switch_utils.cc',
112       'common/switch_utils.h',
113       'common/trace_event_args_whitelist.cc',
114       'common/trace_event_args_whitelist.h',
115       'common/tts_messages.h',
116       'common/tts_utterance_request.cc',
117       'common/tts_utterance_request.h',
118       'common/url_constants.cc',
119       'common/url_constants.h',
120       'common/v8_breakpad_support_win.cc',
121       'common/v8_breakpad_support_win.h',
122       'common/variations/variations_util.cc',
123       'common/variations/variations_util.h',
124       'common/web_application_info.cc',
125       'common/web_application_info.h',
126       'common/worker_thread_ticker.cc',
127       'common/worker_thread_ticker.h',
128     ],
129     'chrome_common_extensions_sources': [
130       'common/extensions/api/commands/commands_handler.cc',
131       'common/extensions/api/commands/commands_handler.h',
132       'common/extensions/api/extension_action/action_info.cc',
133       'common/extensions/api/extension_action/action_info.h',
134       'common/extensions/api/notifications/notification_style.cc',
135       'common/extensions/api/notifications/notification_style.h',
136       'common/extensions/api/omnibox/omnibox_handler.cc',
137       'common/extensions/api/omnibox/omnibox_handler.h',
138       'common/extensions/api/plugins/plugins_handler.cc',
139       'common/extensions/api/plugins/plugins_handler.h',
140       'common/extensions/api/speech/tts_engine_manifest_handler.cc',
141       'common/extensions/api/speech/tts_engine_manifest_handler.h',
142       'common/extensions/api/spellcheck/spellcheck_handler.cc',
143       'common/extensions/api/spellcheck/spellcheck_handler.h',
144       'common/extensions/api/storage/storage_schema_manifest_handler.cc',
145       'common/extensions/api/storage/storage_schema_manifest_handler.h',
146       'common/extensions/api/system_indicator/system_indicator_handler.cc',
147       'common/extensions/api/system_indicator/system_indicator_handler.h',
148       'common/extensions/api/url_handlers/url_handlers_parser.cc',
149       'common/extensions/api/url_handlers/url_handlers_parser.h',
150       'common/extensions/api/webstore/webstore_api_constants.cc',
151       'common/extensions/api/webstore/webstore_api_constants.h',
152       'common/extensions/chrome_extension_messages.h',
153       'common/extensions/chrome_extensions_client.cc',
154       'common/extensions/chrome_extensions_client.h',
155       'common/extensions/chrome_manifest_handlers.cc',
156       'common/extensions/chrome_manifest_handlers.h',
157       'common/extensions/chrome_manifest_url_handlers.cc',
158       'common/extensions/chrome_manifest_url_handlers.h',
159       'common/extensions/chrome_utility_extensions_messages.h',
160       'common/extensions/command.cc',
161       'common/extensions/command.h',
162       'common/extensions/extension_constants.cc',
163       'common/extensions/extension_constants.h',
164       'common/extensions/extension_metrics.cc',
165       'common/extensions/extension_metrics.h',
166       'common/extensions/extension_process_policy.cc',
167       'common/extensions/extension_process_policy.h',
168       'common/extensions/features/chrome_channel_feature_filter.cc',
169       'common/extensions/features/chrome_channel_feature_filter.h',
170       'common/extensions/features/feature_channel.cc',
171       'common/extensions/features/feature_channel.h',
172       'common/extensions/image_writer/image_writer_util_mac.cc',
173       'common/extensions/image_writer/image_writer_util_mac.h',
174       'common/extensions/manifest_handlers/app_icon_color_info.cc',
175       'common/extensions/manifest_handlers/app_icon_color_info.h',
176       'common/extensions/manifest_handlers/app_launch_info.cc',
177       'common/extensions/manifest_handlers/app_launch_info.h',
178       'common/extensions/manifest_handlers/automation.cc',
179       'common/extensions/manifest_handlers/automation.h',
180       'common/extensions/manifest_handlers/content_scripts_handler.cc',
181       'common/extensions/manifest_handlers/content_scripts_handler.h',
182       'common/extensions/manifest_handlers/copresence_manifest.cc',
183       'common/extensions/manifest_handlers/copresence_manifest.h',
184       'common/extensions/manifest_handlers/extension_action_handler.cc',
185       'common/extensions/manifest_handlers/extension_action_handler.h',
186       'common/extensions/manifest_handlers/linked_app_icons.cc',
187       'common/extensions/manifest_handlers/linked_app_icons.h',
188       'common/extensions/manifest_handlers/minimum_chrome_version_checker.cc',
189       'common/extensions/manifest_handlers/minimum_chrome_version_checker.h',
190       'common/extensions/manifest_handlers/settings_overrides_handler.cc',
191       'common/extensions/manifest_handlers/settings_overrides_handler.h',
192       'common/extensions/manifest_handlers/theme_handler.cc',
193       'common/extensions/manifest_handlers/theme_handler.h',
194       'common/extensions/manifest_handlers/ui_overrides_handler.cc',
195       'common/extensions/manifest_handlers/ui_overrides_handler.h',
196       'common/extensions/permissions/chrome_api_permissions.cc',
197       'common/extensions/permissions/chrome_api_permissions.h',
198       'common/extensions/permissions/chrome_permission_message_provider.cc',
199       'common/extensions/permissions/chrome_permission_message_provider.h',
200       'common/extensions/permissions/chrome_permission_message_rules.cc',
201       'common/extensions/permissions/chrome_permission_message_rules.h',
202       'common/extensions/sync_helper.cc',
203       'common/extensions/sync_helper.h',
204     ],
205     'chrome_common_extensions_chromeos_sources': [
206       'common/extensions/api/file_browser_handlers/file_browser_handler.cc',
207       'common/extensions/api/file_browser_handlers/file_browser_handler.h',
208       'common/extensions/api/file_system_provider_capabilities/file_system_provider_capabilities_handler.cc',
209       'common/extensions/api/file_system_provider_capabilities/file_system_provider_capabilities_handler.h',
210       'common/extensions/api/input_ime/input_components_handler.cc',
211       'common/extensions/api/input_ime/input_components_handler.h',
212     ],
213     'chrome_common_full_safe_browsing_sources': [
214       'common/safe_browsing/binary_feature_extractor.cc',
215       'common/safe_browsing/binary_feature_extractor.h',
216       'common/safe_browsing/binary_feature_extractor_mac.cc',
217       'common/safe_browsing/binary_feature_extractor_posix.cc',
218       'common/safe_browsing/binary_feature_extractor_win.cc',
219       'common/safe_browsing/download_protection_util.cc',
220       'common/safe_browsing/download_protection_util.h',
221       'common/safe_browsing/ipc_protobuf_message_macros.h',
222       'common/safe_browsing/ipc_protobuf_message_null_macros.h',
223       'common/safe_browsing/mach_o_image_reader_mac.cc',
224       'common/safe_browsing/mach_o_image_reader_mac.h',
225       'common/safe_browsing/pe_image_reader_win.cc',
226       'common/safe_browsing/pe_image_reader_win.h',
227       'common/safe_browsing/protobuf_message_log_macros.h',
228       'common/safe_browsing/protobuf_message_param_traits.h',
229       'common/safe_browsing/protobuf_message_read_macros.h',
230       'common/safe_browsing/protobuf_message_write_macros.h',
231       'common/safe_browsing/zip_analyzer.cc',
232       'common/safe_browsing/zip_analyzer.h',
233       'common/safe_browsing/zip_analyzer_results.cc',
234       'common/safe_browsing/zip_analyzer_results.h',
235     ],
236     'chrome_common_importer_sources': [
237       'common/importer/firefox_importer_utils.cc',
238       'common/importer/firefox_importer_utils.h',
239       'common/importer/firefox_importer_utils_linux.cc',
240       'common/importer/firefox_importer_utils_mac.mm',
241       'common/importer/firefox_importer_utils_win.cc',
242       'common/importer/ie_importer_test_registry_overrider_win.cc',
243       'common/importer/ie_importer_test_registry_overrider_win.h',
244       'common/importer/ie_importer_utils_win.cc',
245       'common/importer/ie_importer_utils_win.h',
246       'common/importer/imported_bookmark_entry.cc',
247       'common/importer/imported_bookmark_entry.h',
248       'common/importer/importer_autofill_form_data_entry.cc',
249       'common/importer/importer_autofill_form_data_entry.h',
250       'common/importer/importer_bridge.cc',
251       'common/importer/importer_bridge.h',
252       'common/importer/importer_data_types.cc',
253       'common/importer/importer_data_types.h',
254       'common/importer/importer_type.h',
255       'common/importer/importer_url_row.cc',
256       'common/importer/importer_url_row.h',
257       'common/importer/profile_import_process_messages.cc',
258       'common/importer/profile_import_process_messages.h',
259       'common/importer/profile_import_process_param_traits_macros.h',
260       'common/importer/safari_importer_utils.h',
261       'common/importer/safari_importer_utils.mm',
262     ],
263     'chrome_common_ipc_fuzzer_sources': [
264       'common/external_ipc_dumper.cc',
265       'common/external_ipc_dumper.h',
266     ],
267     'chrome_common_service_process_sources': [
268       'common/service_messages.h',
269       'common/service_process_util.cc',
270       'common/service_process_util.h',
271       'common/service_process_util_linux.cc',
272       'common/service_process_util_mac.mm',
273       'common/service_process_util_posix.cc',
274       'common/service_process_util_posix.h',
275       'common/service_process_util_win.cc',
276     ],
277     'chrome_common_win_mac_sources': [
278       'common/media_galleries/itunes_library.cc',
279       'common/media_galleries/itunes_library.h',
280       'common/media_galleries/picasa_types.cc',
281       'common/media_galleries/picasa_types.h',
282       'common/media_galleries/pmp_constants.h',
283     ],
284     'chrome_common_networking_private_sources_openssl' : [
285       'common/extensions/api/networking_private/networking_private_crypto.cc',
286       'common/extensions/api/networking_private/networking_private_crypto.h',
287       'common/extensions/api/networking_private/networking_private_crypto_openssl.cc',
288     ],
289     'chrome_common_networking_private_sources_nss' : [
290       'common/extensions/api/networking_private/networking_private_crypto.cc',
291       'common/extensions/api/networking_private/networking_private_crypto.h',
292       'common/extensions/api/networking_private/networking_private_crypto_nss.cc',
293     ],
295     'chrome_common_mac_sources': [
296       'common/media_galleries/iphoto_library.cc',
297       'common/media_galleries/iphoto_library.h',
298     ]
299   },
300   'targets': [
301     {
302       # GN: //chrome/common:common
303       'target_name': 'common',
304       'type': 'static_library',
305       'variables': {
306         'chrome_common_target': 1,
307         'enable_wexit_time_destructors': 1,
308       },
309       'include_dirs': [
310           '..',
311           '<(SHARED_INTERMEDIATE_DIR)',  # Needed by chrome_content_client.cc.
312         ],
313       'direct_dependent_settings': {
314         'include_dirs': [
315           '..',
316         ],
317       },
318       'dependencies': [
319         # TODO(gregoryd): chrome_resources and chrome_strings could be
320         #  shared with the 64-bit target, but it does not work due to a gyp
321         # issue.
322         'installer_util',
323         'safe_browsing_proto',
324         '<(DEPTH)/base/base.gyp:base',
325         '<(DEPTH)/base/base.gyp:base_i18n',
326         '<(DEPTH)/base/base.gyp:base_prefs',
327         '<(DEPTH)/base/base.gyp:base_static',
328         '<(DEPTH)/chrome/chrome_resources.gyp:chrome_resources',
329         '<(DEPTH)/chrome/chrome_resources.gyp:chrome_strings',
330         '<(DEPTH)/chrome/chrome_resources.gyp:theme_resources',
331         '<(DEPTH)/chrome/common_constants.gyp:common_constants',
332         '<(DEPTH)/chrome/common/variations/fieldtrial_testing_config.gyp:fieldtrial_testing_config',
333         '<(DEPTH)/components/components.gyp:cloud_devices_common',
334         '<(DEPTH)/components/components.gyp:component_updater',
335         '<(DEPTH)/components/components.gyp:content_settings_core_common',
336         '<(DEPTH)/components/components.gyp:crash_keys',
337         '<(DEPTH)/components/components.gyp:favicon_base',
338         '<(DEPTH)/components/components.gyp:gcm_driver_common',
339         '<(DEPTH)/components/components.gyp:json_schema',
340         '<(DEPTH)/components/components.gyp:metrics',
341         '<(DEPTH)/components/components.gyp:omnibox_common',
342         '<(DEPTH)/components/components.gyp:policy_component_common',
343         '<(DEPTH)/components/components.gyp:translate_core_common',
344         '<(DEPTH)/components/components.gyp:variations',
345         '<(DEPTH)/components/components.gyp:version_info',
346         '<(DEPTH)/components/components_strings.gyp:components_strings',
347         '<(DEPTH)/components/url_formatter/url_formatter.gyp:url_formatter',
348         '<(DEPTH)/content/content.gyp:content_common',
349         '<(DEPTH)/crypto/crypto.gyp:crypto',
350         '<(DEPTH)/media/media.gyp:media',
351         '<(DEPTH)/net/net.gyp:net',
352         '<(DEPTH)/skia/skia.gyp:skia',
353         '<(DEPTH)/skia/skia.gyp:skia_library',
354         '<(DEPTH)/third_party/icu/icu.gyp:icui18n',
355         '<(DEPTH)/third_party/icu/icu.gyp:icuuc',
356         '<(DEPTH)/third_party/zlib/google/zip.gyp:zip',
357         '<(DEPTH)/ui/gfx/ipc/gfx_ipc.gyp:gfx_ipc',
358         '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
359         '<(DEPTH)/url/url.gyp:url_lib',
360       ],
361       'sources': [
362         '<@(chrome_common_sources)'
363       ],
364       'conditions': [
365         ['enable_extensions==1', {
366           'sources': [ '<@(chrome_common_extensions_sources)' ],
367           'dependencies': [
368             '<(DEPTH)/device/usb/usb.gyp:device_usb',
369             '<(DEPTH)/chrome/common/extensions/api/api.gyp:chrome_api',
370             '<(DEPTH)/extensions/common/api/api.gyp:extensions_api',
371             '<(DEPTH)/extensions/extensions.gyp:extensions_common',
372             '<(DEPTH)/extensions/extensions_resources.gyp:extensions_resources',
373             '<(DEPTH)/extensions/extensions_strings.gyp:extensions_strings',
374             '<(DEPTH)/media/cast/cast.gyp:cast_net',
375           ],
376           'export_dependent_settings': [
377             '<(DEPTH)/chrome/common/extensions/api/api.gyp:chrome_api',
378           ],
379           'conditions': [
380             ['chromeos==1', {
381               'sources': [ '<@(chrome_common_extensions_chromeos_sources)' ],
382             }],
383           ],
384         }],
385         ['enable_extensions==1 and chromeos==1', {
386           'sources': [ '<@(chrome_common_extensions_chromeos_sources)' ],
387         }],
388         ['OS=="win" or OS=="mac"', {
389           'sources': [ '<@(chrome_common_win_mac_sources)' ],
390         }],
391         ['(OS=="win" or OS=="mac" or chromeos==1) and use_openssl==1', {
392           'sources': [ '<@(chrome_common_networking_private_sources_openssl)' ],
393           'dependencies': [
394             '../third_party/boringssl/boringssl.gyp:boringssl',
395           ],
396         }],
397         ['(OS=="win" or OS=="mac" or chromeos==1) and use_openssl!=1', {
398           'sources': [ '<@(chrome_common_networking_private_sources_nss)' ],
399         }],
400         ['OS=="mac"', {
401           'sources': [ '<@(chrome_common_mac_sources)' ],
402           'dependencies': [ 'app_mode_app_support' ],
403         }],
404         ['OS != "ios"', {
405           'dependencies': [
406             'common_mojo_bindings',
407             '<(DEPTH)/components/components.gyp:autofill_core_common',
408             '<(DEPTH)/components/components.gyp:autofill_content_common',
409             '<(DEPTH)/components/components.gyp:password_manager_core_common',
410             '<(DEPTH)/components/components.gyp:password_manager_content_common',
411             '<(DEPTH)/components/components.gyp:signin_core_common',
412             '<(DEPTH)/components/components.gyp:translate_content_common',
413             '<(DEPTH)/components/components.gyp:visitedlink_common',
414             '<(DEPTH)/extensions/extensions.gyp:extensions_common_constants',
415             '<(DEPTH)/ipc/ipc.gyp:ipc',
416             '<(DEPTH)/third_party/re2/re2.gyp:re2',
417             '<(DEPTH)/third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
418           ],
419         }, {  # OS == ios
420           'sources/': [
421             ['exclude', '^common/child_process_'],
422             ['exclude', '^common/chrome_content_client\\.cc$'],
423             ['exclude', '^common/chrome_version_info_posix\\.cc$'],
424             ['exclude', '^common/common_message_generator\\.cc$'],
425             ['exclude', '^common/common_param_traits'],
426             ['exclude', '^common/custom_handlers/'],
427             ['exclude', '^common/extensions/'],
428             ['exclude', '^common/logging_chrome\\.'],
429             ['exclude', '^common/media_galleries/'],
430             ['exclude', '^common/multi_process_'],
431             ['exclude', '^common/profiling\\.'],
432             ['exclude', '^common/resource_usage_reporter_type_converters'],
433             ['exclude', '^common/spellcheck_'],
434             ['exclude', '^common/validation_message_'],
435             ['exclude', '^common/web_apps\\.'],
436             # TODO(ios): Include files here as they are made to work; once
437             # everything is online, remove everything below here and just
438             # use the exclusions above.
439             ['exclude', '\\.(cc|mm)$'],
440             ['include', '_ios\\.(cc|mm)$'],
441             ['include', '(^|/)ios/'],
442             ['include', '^common/chrome_version_info\\.cc$'],
443             ['include', '^common/translate'],
444             ['include', '^common/zip'],
445           ],
446           'include_dirs': [
447             '<(DEPTH)/breakpad/src',
448           ],
449         }],
450         ['disable_nacl==0', {
451           'dependencies': [
452             '<(DEPTH)/components/nacl.gyp:nacl_common',
453           ],
454         }],
455         ['enable_ipc_fuzzer==1', {
456           'sources': [ '<@(chrome_common_ipc_fuzzer_sources)' ],
457         }],
458         ['enable_plugins==1', {
459           'dependencies': [
460             '<(DEPTH)/third_party/adobe/flash/flash_player.gyp:flapper_version_h',
461           ],
462           'sources': [
463             'common/pepper_flash.cc',
464             'common/pepper_flash.h',
465             'common/ppapi_utils.cc',
466             'common/ppapi_utils.h',
467           ],
468         }],
469         ['enable_plugins==1 and enable_extensions==1', {
470           'sources': [
471             'common/pepper_permission_util.cc',
472             'common/pepper_permission_util.h',
473           ],
474         }],
475         ['enable_basic_printing==1 or enable_print_preview==1', {
476           'dependencies': [
477             '<(DEPTH)/components/components.gyp:printing_common',
478             '<(DEPTH)/printing/printing.gyp:printing',
479           ],
480         }],
481         ['enable_print_preview==1', {
482           'sources': [ '<@(chrome_common_service_process_sources)' ],
483         }],
484         ['enable_service_discovery==1', {
485           'sources' : [
486             'common/local_discovery/service_discovery_client.cc',
487             'common/local_discovery/service_discovery_client.h',
488            ]
489         }],
490         ['enable_mdns==1', {
491           'sources' : [
492             'common/local_discovery/service_discovery_client_impl.cc',
493             'common/local_discovery/service_discovery_client_impl.h',
494           ]
495         }],
496         ['OS=="android"', {
497           'sources!': [
498             'common/badge_util.cc',
499             'common/channel_info_posix.cc',
500             'common/extensions/api/spellcheck/spellcheck_handler.cc',
501             'common/extensions/manifest_handlers/extension_action_handler.cc',
502             'common/extensions/manifest_handlers/minimum_chrome_version_checker.cc',
503             'common/icon_with_badge_image_source.cc',
504             'common/media_galleries/metadata_types.h',
505           ],
506         }, {
507           # Non-Android.
508           'sources': [ '<@(chrome_common_importer_sources)' ]
509         }],
510         ['OS=="win"', {
511           'include_dirs': [
512             '<(DEPTH)/breakpad/src',
513             '<(DEPTH)/third_party/wtl/include',
514           ],
515           'dependencies': [
516             '<(DEPTH)/components/components.gyp:dom_distiller_core',  # Needed by chrome_content_client.cc.
517           ],
518         }],
519         ['enable_mdns == 1', {
520             'sources': [
521               'common/local_discovery/local_discovery_messages.h',
522             ]
523         }],
524         ['OS=="mac"', {
525           'dependencies': [
526             '../third_party/google_toolbox_for_mac/google_toolbox_for_mac.gyp:google_toolbox_for_mac',
527             '../third_party/mach_override/mach_override.gyp:mach_override',
528           ],
529           'include_dirs': [
530             '<(DEPTH)/breakpad/src',
531           ],
532           'sources!': [
533             'common/channel_info_posix.cc',
534           ],
535         }],
536         ['enable_webrtc==0', {
537           'sources!': [
538             'common/media/webrtc_logging_messages.h',
539           ]
540         }],
541         ['configuration_policy==1', {
542           'dependencies': [
543             '<(DEPTH)/components/components.gyp:policy',
544           ],
545         }],
546         ['safe_browsing==1', {
547           'sources': [ '<@(chrome_common_full_safe_browsing_sources)', ],
548         }],
549       ],
550       'target_conditions': [
551         ['OS == "ios"', {
552           'sources/': [
553             # Pull in specific Mac files for iOS (which have been filtered out
554             # by file name rules).
555             ['include', '^common/chrome_version_info_mac\\.mm$'],
556           ],
557         }],
558       ],
559       'export_dependent_settings': [
560         '../base/base.gyp:base',
561       ],
562     },
563     {
564       # GN version: //chrome/common/net
565       'target_name': 'common_net',
566       'type': 'static_library',
567       'sources': [
568         'common/net/net_resource_provider.cc',
569         'common/net/net_resource_provider.h',
570         'common/net/x509_certificate_model.cc',
571         'common/net/x509_certificate_model.h',
572         'common/net/x509_certificate_model_nss.cc',
573         'common/net/x509_certificate_model_openssl.cc',
574       ],
575       'dependencies': [
576         '<(DEPTH)/base/base.gyp:base',
577         '<(DEPTH)/chrome/chrome_resources.gyp:chrome_resources',
578         '<(DEPTH)/chrome/chrome_resources.gyp:chrome_strings',
579         '<(DEPTH)/components/url_formatter/url_formatter.gyp:url_formatter',
580         '<(DEPTH)/crypto/crypto.gyp:crypto',
581         '<(DEPTH)/net/net.gyp:net',
582         '<(DEPTH)/net/net.gyp:net_resources',
583         '<(DEPTH)/third_party/icu/icu.gyp:icui18n',
584         '<(DEPTH)/third_party/icu/icu.gyp:icuuc',
585         '<(DEPTH)/ui/base/ui_base.gyp:ui_base',
586       ],
587       'conditions': [
588         ['OS == "ios"', {
589           'sources!': [
590             'common/net/net_resource_provider.cc',
591           ],
592         }],
593         ['OS == "android" or OS == "ios"', {
594           'sources!': [
595             'common/net/x509_certificate_model.cc',
596           ],
597         }],
598         ['use_openssl_certs == 1 and OS != "android"', {
599           'dependencies': [
600             '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl',
601           ],
602         }, {
603           'sources!': [
604             'common/net/x509_certificate_model_openssl.cc',
605           ],
606         }],
607         ['use_nss_certs == 1', {
608           'dependencies': [
609             '../build/linux/system.gyp:ssl',
610           ],
611         }, {
612           'sources!': [
613             'common/net/x509_certificate_model_nss.cc',
614           ],
615         }],
616         ['OS=="win"', {
617           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
618           'msvs_disabled_warnings': [4267, ],
619         }],
620       ],
621     },
622     {
623       # Protobuf compiler / generator for the safebrowsing client
624       # model proto and the client-side detection (csd) request
625       # protocol buffer.
627       # GN version: //chrome/common/safe_browsing:proto
628       'target_name': 'safe_browsing_proto',
629       'type': 'static_library',
630       'sources': [
631         'common/safe_browsing/client_model.proto',
632         'common/safe_browsing/crx_info.proto',
633         'common/safe_browsing/csd.proto'
634       ],
635       'variables': {
636         'proto_in_dir': 'common/safe_browsing',
637         'proto_out_dir': 'chrome/common/safe_browsing',
638       },
639       'includes': [ '../build/protoc.gypi' ],
640     },
641     {
642       # GN version: //chrome/common:mojo_bindings
643       'target_name': 'common_mojo_bindings',
644       'type': 'static_library',
645       'includes': [
646         '../third_party/mojo/mojom_bindings_generator.gypi'
647       ],
648       'sources': [
649         'common/resource_usage_reporter.mojom',
650       ],
651       'dependencies': [
652         '../mojo/mojo_base.gyp:mojo_environment_chromium',
653         '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
654       ],
655     },
656   ],