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", | |
154 "//components/policy:policy_component", | 153 "//components/policy:policy_component", |
155 "//components/policy/proto", | |
156 "//components/proxy_config", | 154 "//components/proxy_config", |
157 "//components/query_parser", | 155 "//components/query_parser", |
158 "//components/rappor", | 156 "//components/rappor", |
159 "//components/renderer_context_menu", | 157 "//components/renderer_context_menu", |
160 "//components/search", | 158 "//components/search", |
161 "//components/search_engines", | 159 "//components/search_engines", |
162 "//components/search_provider_logos", | 160 "//components/search_provider_logos", |
163 "//components/security_interstitials/core", | 161 "//components/security_interstitials/core", |
164 "//components/security_state", | 162 "//components/security_state", |
165 "//components/signin/core/browser", | 163 "//components/signin/core/browser", |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 ] | 413 ] |
416 } | 414 } |
417 | 415 |
418 if (is_win || is_mac) { | 416 if (is_win || is_mac) { |
419 sources += | 417 sources += |
420 rebase_path(gypi_values.chrome_browser_win_mac_sources, ".", "//chrome") | 418 rebase_path(gypi_values.chrome_browser_win_mac_sources, ".", "//chrome") |
421 } | 419 } |
422 if (!is_win && !is_mac && !is_ios) { | 420 if (!is_win && !is_mac && !is_ios) { |
423 sources += [ "net/net_error_diagnostics_dialog_generic.cc" ] | 421 sources += [ "net/net_error_diagnostics_dialog_generic.cc" ] |
424 } | 422 } |
425 if (!is_android && !is_ios && !is_chromeos) { | 423 if (!is_android && !is_ios && !is_chromeos && enable_configuration_policy) { |
426 sources += [ | 424 sources += [ |
427 "net/disk_cache_dir_policy_handler.cc", | 425 "net/disk_cache_dir_policy_handler.cc", |
428 "net/disk_cache_dir_policy_handler.h", | 426 "net/disk_cache_dir_policy_handler.h", |
429 ] | 427 ] |
430 } | 428 } |
431 if (!is_android && !is_ios) { | 429 if (!is_android && !is_ios && enable_configuration_policy) { |
432 sources += [ | 430 sources += [ |
433 "download/download_dir_policy_handler.cc", | 431 "download/download_dir_policy_handler.cc", |
434 "download/download_dir_policy_handler.h", | 432 "download/download_dir_policy_handler.h", |
435 ] | 433 ] |
436 deps += [ | |
437 "//chrome/browser/policy:path_parser", | |
438 "//net:net_browser_services", | |
439 ] | |
440 } | 434 } |
441 if (is_mac) { | 435 if (is_mac) { |
442 sources += | 436 sources += |
443 rebase_path(gypi_values.chrome_browser_mac_sources, ".", "//chrome") | 437 rebase_path(gypi_values.chrome_browser_mac_sources, ".", "//chrome") |
444 deps += [ | 438 deps += [ |
445 "//chrome/app_shim", | 439 "//chrome/app_shim", |
446 "//chrome/browser/apps/app_shim", | 440 "//chrome/browser/apps/app_shim", |
447 ] | 441 ] |
448 } | 442 } |
449 if (is_win) { | 443 if (is_win) { |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
497 if (!is_android) { | 491 if (!is_android) { |
498 deps += [ "//third_party/hunspell" ] | 492 deps += [ "//third_party/hunspell" ] |
499 } | 493 } |
500 } | 494 } |
501 if (enable_nacl) { | 495 if (enable_nacl) { |
502 sources += | 496 sources += |
503 rebase_path(gypi_values.chrome_browser_nacl_sources, ".", "//chrome") | 497 rebase_path(gypi_values.chrome_browser_nacl_sources, ".", "//chrome") |
504 deps += [ "//components/nacl/browser" ] | 498 deps += [ "//components/nacl/browser" ] |
505 } | 499 } |
506 | 500 |
| 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 |
507 if (enable_plugins) { | 543 if (enable_plugins) { |
508 sources += | 544 sources += |
509 rebase_path(gypi_values.chrome_browser_plugins_sources, ".", "//chrome") | 545 rebase_path(gypi_values.chrome_browser_plugins_sources, ".", "//chrome") |
510 deps += [ | 546 deps += [ |
511 "//components/pdf/browser", | 547 "//components/pdf/browser", |
512 "//ppapi/proxy:ipc", | 548 "//ppapi/proxy:ipc", |
513 "//third_party/adobe/flash:flapper_version_h", | 549 "//third_party/adobe/flash:flapper_version_h", |
514 ] | 550 ] |
515 } | 551 } |
516 if (safe_browsing_mode != 0) { | 552 if (safe_browsing_mode != 0) { |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
555 | 591 |
556 if (is_linux && !is_chromeos) { | 592 if (is_linux && !is_chromeos) { |
557 deps += [ "//third_party/speech-dispatcher" ] | 593 deps += [ "//third_party/speech-dispatcher" ] |
558 } | 594 } |
559 | 595 |
560 if (is_chromeos) { | 596 if (is_chromeos) { |
561 sources += rebase_path(gypi_values.chrome_browser_chromeos_sources, | 597 sources += rebase_path(gypi_values.chrome_browser_chromeos_sources, |
562 ".", | 598 ".", |
563 "//chrome") | 599 "//chrome") |
564 deps += [ "//chrome/browser/chromeos" ] | 600 deps += [ "//chrome/browser/chromeos" ] |
565 } else { # Non-ChromeOS. | |
566 sources += rebase_path(gypi_values.chrome_browser_non_chromeos_sources, | |
567 ".", | |
568 "//chrome") | |
569 } | 601 } |
570 | 602 |
571 if (is_chromeos || is_ios) { | 603 if (is_chromeos || is_ios) { |
572 sources -= [ | 604 sources -= [ |
573 "signin/chrome_signin_status_metrics_provider_delegate.cc", | 605 "signin/chrome_signin_status_metrics_provider_delegate.cc", |
574 "signin/chrome_signin_status_metrics_provider_delegate.h", | 606 "signin/chrome_signin_status_metrics_provider_delegate.h", |
575 ] | 607 ] |
576 } | 608 } |
577 | 609 |
578 if (is_chromeos) { | 610 if (is_chromeos) { |
(...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1325 rebase_path(gypi_values.chrome_browser_rlz_sources, ".", "//chrome") | 1357 rebase_path(gypi_values.chrome_browser_rlz_sources, ".", "//chrome") |
1326 deps = [ | 1358 deps = [ |
1327 "//components/google/core/browser", | 1359 "//components/google/core/browser", |
1328 "//components/omnibox/browser", | 1360 "//components/omnibox/browser", |
1329 "//components/rlz", | 1361 "//components/rlz", |
1330 "//components/search_engines", | 1362 "//components/search_engines", |
1331 "//rlz:rlz_lib", | 1363 "//rlz:rlz_lib", |
1332 ] | 1364 ] |
1333 } | 1365 } |
1334 } | 1366 } |
OLD | NEW |