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