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