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