| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/chrome_build.gni") | 5 import("//build/config/chrome_build.gni") |
| 6 import("//build/config/crypto.gni") | 6 import("//build/config/crypto.gni") |
| 7 import("//build/config/features.gni") | 7 import("//build/config/features.gni") |
| 8 import("//build/config/ui.gni") | 8 import("//build/config/ui.gni") |
| 9 import("//chrome/common/features.gni") | 9 import("//chrome/common/features.gni") |
| 10 import("//media/media_options.gni") | 10 import("//media/media_options.gni") |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 "//components/mime_util", | 143 "//components/mime_util", |
| 144 "//components/navigation_metrics", | 144 "//components/navigation_metrics", |
| 145 "//components/network_time", | 145 "//components/network_time", |
| 146 "//components/ntp_snippets", | 146 "//components/ntp_snippets", |
| 147 "//components/offline_pages", | 147 "//components/offline_pages", |
| 148 "//components/omnibox/browser", | 148 "//components/omnibox/browser", |
| 149 "//components/os_crypt", | 149 "//components/os_crypt", |
| 150 "//components/packed_ct_ev_whitelist", | 150 "//components/packed_ct_ev_whitelist", |
| 151 "//components/password_manager/core/browser", | 151 "//components/password_manager/core/browser", |
| 152 "//components/password_manager/core/common", | 152 "//components/password_manager/core/common", |
| 153 "//components/policy", |
| 153 "//components/policy:policy_component", | 154 "//components/policy:policy_component", |
| 155 "//components/policy/proto", |
| 154 "//components/proxy_config", | 156 "//components/proxy_config", |
| 155 "//components/query_parser", | 157 "//components/query_parser", |
| 156 "//components/rappor", | 158 "//components/rappor", |
| 157 "//components/renderer_context_menu", | 159 "//components/renderer_context_menu", |
| 158 "//components/search", | 160 "//components/search", |
| 159 "//components/search_engines", | 161 "//components/search_engines", |
| 160 "//components/search_provider_logos", | 162 "//components/search_provider_logos", |
| 161 "//components/security_interstitials/core", | 163 "//components/security_interstitials/core", |
| 162 "//components/security_state", | 164 "//components/security_state", |
| 163 "//components/signin/core/browser", | 165 "//components/signin/core/browser", |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 ] | 415 ] |
| 414 } | 416 } |
| 415 | 417 |
| 416 if (is_win || is_mac) { | 418 if (is_win || is_mac) { |
| 417 sources += | 419 sources += |
| 418 rebase_path(gypi_values.chrome_browser_win_mac_sources, ".", "//chrome") | 420 rebase_path(gypi_values.chrome_browser_win_mac_sources, ".", "//chrome") |
| 419 } | 421 } |
| 420 if (!is_win && !is_mac && !is_ios) { | 422 if (!is_win && !is_mac && !is_ios) { |
| 421 sources += [ "net/net_error_diagnostics_dialog_generic.cc" ] | 423 sources += [ "net/net_error_diagnostics_dialog_generic.cc" ] |
| 422 } | 424 } |
| 423 if (!is_android && !is_ios && !is_chromeos && enable_configuration_policy) { | 425 if (!is_android && !is_ios && !is_chromeos) { |
| 424 sources += [ | 426 sources += [ |
| 425 "net/disk_cache_dir_policy_handler.cc", | 427 "net/disk_cache_dir_policy_handler.cc", |
| 426 "net/disk_cache_dir_policy_handler.h", | 428 "net/disk_cache_dir_policy_handler.h", |
| 427 ] | 429 ] |
| 428 } | 430 } |
| 429 if (!is_android && !is_ios && enable_configuration_policy) { | 431 if (!is_android && !is_ios) { |
| 430 sources += [ | 432 sources += [ |
| 431 "download/download_dir_policy_handler.cc", | 433 "download/download_dir_policy_handler.cc", |
| 432 "download/download_dir_policy_handler.h", | 434 "download/download_dir_policy_handler.h", |
| 433 ] | 435 ] |
| 436 deps += [ |
| 437 "//chrome/browser/policy:path_parser", |
| 438 "//net:net_browser_services", |
| 439 ] |
| 434 } | 440 } |
| 435 if (is_mac) { | 441 if (is_mac) { |
| 436 sources += | 442 sources += |
| 437 rebase_path(gypi_values.chrome_browser_mac_sources, ".", "//chrome") | 443 rebase_path(gypi_values.chrome_browser_mac_sources, ".", "//chrome") |
| 438 deps += [ | 444 deps += [ |
| 439 "//chrome/app_shim", | 445 "//chrome/app_shim", |
| 440 "//chrome/browser/apps/app_shim", | 446 "//chrome/browser/apps/app_shim", |
| 441 ] | 447 ] |
| 442 } | 448 } |
| 443 if (is_win) { | 449 if (is_win) { |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 if (!is_android) { | 497 if (!is_android) { |
| 492 deps += [ "//third_party/hunspell" ] | 498 deps += [ "//third_party/hunspell" ] |
| 493 } | 499 } |
| 494 } | 500 } |
| 495 if (enable_nacl) { | 501 if (enable_nacl) { |
| 496 sources += | 502 sources += |
| 497 rebase_path(gypi_values.chrome_browser_nacl_sources, ".", "//chrome") | 503 rebase_path(gypi_values.chrome_browser_nacl_sources, ".", "//chrome") |
| 498 deps += [ "//components/nacl/browser" ] | 504 deps += [ "//components/nacl/browser" ] |
| 499 } | 505 } |
| 500 | 506 |
| 501 if (enable_configuration_policy) { | |
| 502 sources += | |
| 503 rebase_path(gypi_values.chrome_browser_policy_shared_with_ios_sources, | |
| 504 ".", | |
| 505 "//chrome") | |
| 506 deps += [ | |
| 507 "//components/policy", | |
| 508 "//components/policy/proto", | |
| 509 ] | |
| 510 if (!is_ios) { | |
| 511 sources += rebase_path(gypi_values.chrome_browser_policy_non_ios_sources, | |
| 512 ".", | |
| 513 "//chrome") | |
| 514 } | |
| 515 if (!is_chromeos) { | |
| 516 sources += rebase_path( | |
| 517 gypi_values.chrome_browser_policy_shared_with_ios_not_chromeos_sou
rces, | |
| 518 ".", | |
| 519 "//chrome") | |
| 520 } | |
| 521 if (is_win || is_mac || is_desktop_linux) { | |
| 522 sources += rebase_path(gypi_values.chrome_browser_policy_desktop_sources, | |
| 523 ".", | |
| 524 "//chrome") | |
| 525 } | |
| 526 if (is_android || is_ios) { | |
| 527 sources += rebase_path(gypi_values.chrome_browser_policy_mobile_sources, | |
| 528 ".", | |
| 529 "//chrome") | |
| 530 } else { | |
| 531 deps += [ | |
| 532 "//chrome/browser/policy:path_parser", | |
| 533 "//net:net_browser_services", | |
| 534 ] | |
| 535 } | |
| 536 } else { | |
| 537 # Configuration policy disabled. | |
| 538 sources += rebase_path(gypi_values.chrome_browser_policy_disabled_sources, | |
| 539 ".", | |
| 540 "//chrome") | |
| 541 } | |
| 542 | |
| 543 if (enable_plugins) { | 507 if (enable_plugins) { |
| 544 sources += | 508 sources += |
| 545 rebase_path(gypi_values.chrome_browser_plugins_sources, ".", "//chrome") | 509 rebase_path(gypi_values.chrome_browser_plugins_sources, ".", "//chrome") |
| 546 deps += [ | 510 deps += [ |
| 547 "//components/pdf/browser", | 511 "//components/pdf/browser", |
| 548 "//ppapi/proxy:ipc", | 512 "//ppapi/proxy:ipc", |
| 549 "//third_party/adobe/flash:flapper_version_h", | 513 "//third_party/adobe/flash:flapper_version_h", |
| 550 ] | 514 ] |
| 551 } | 515 } |
| 552 if (safe_browsing_mode != 0) { | 516 if (safe_browsing_mode != 0) { |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 591 | 555 |
| 592 if (is_linux && !is_chromeos) { | 556 if (is_linux && !is_chromeos) { |
| 593 deps += [ "//third_party/speech-dispatcher" ] | 557 deps += [ "//third_party/speech-dispatcher" ] |
| 594 } | 558 } |
| 595 | 559 |
| 596 if (is_chromeos) { | 560 if (is_chromeos) { |
| 597 sources += rebase_path(gypi_values.chrome_browser_chromeos_sources, | 561 sources += rebase_path(gypi_values.chrome_browser_chromeos_sources, |
| 598 ".", | 562 ".", |
| 599 "//chrome") | 563 "//chrome") |
| 600 deps += [ "//chrome/browser/chromeos" ] | 564 deps += [ "//chrome/browser/chromeos" ] |
| 565 } else { # Non-ChromeOS. |
| 566 sources += rebase_path(gypi_values.chrome_browser_non_chromeos_sources, |
| 567 ".", |
| 568 "//chrome") |
| 601 } | 569 } |
| 602 | 570 |
| 603 if (is_chromeos || is_ios) { | 571 if (is_chromeos || is_ios) { |
| 604 sources -= [ | 572 sources -= [ |
| 605 "signin/chrome_signin_status_metrics_provider_delegate.cc", | 573 "signin/chrome_signin_status_metrics_provider_delegate.cc", |
| 606 "signin/chrome_signin_status_metrics_provider_delegate.h", | 574 "signin/chrome_signin_status_metrics_provider_delegate.h", |
| 607 ] | 575 ] |
| 608 } | 576 } |
| 609 | 577 |
| 610 if (is_chromeos) { | 578 if (is_chromeos) { |
| (...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1357 rebase_path(gypi_values.chrome_browser_rlz_sources, ".", "//chrome") | 1325 rebase_path(gypi_values.chrome_browser_rlz_sources, ".", "//chrome") |
| 1358 deps = [ | 1326 deps = [ |
| 1359 "//components/google/core/browser", | 1327 "//components/google/core/browser", |
| 1360 "//components/omnibox/browser", | 1328 "//components/omnibox/browser", |
| 1361 "//components/rlz", | 1329 "//components/rlz", |
| 1362 "//components/search_engines", | 1330 "//components/search_engines", |
| 1363 "//rlz:rlz_lib", | 1331 "//rlz:rlz_lib", |
| 1364 ] | 1332 ] |
| 1365 } | 1333 } |
| 1366 } | 1334 } |
| OLD | NEW |