| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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/features.gni") | 5 import("//build/config/features.gni") |
| 6 import("//ios/web/js_compile.gni") | 6 import("//ios/web/js_compile.gni") |
| 7 import("//third_party/protobuf/proto_library.gni") | 7 import("//third_party/protobuf/proto_library.gni") |
| 8 | 8 |
| 9 declare_args() { | 9 declare_args() { |
| 10 google_test_gaia_client_id = "" | 10 google_test_gaia_client_id = "" |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 "find_in_page/js_findinpage_manager.mm", | 156 "find_in_page/js_findinpage_manager.mm", |
| 157 "first_run/first_run.h", | 157 "first_run/first_run.h", |
| 158 "first_run/first_run.mm", | 158 "first_run/first_run.mm", |
| 159 "first_run/first_run_configuration.h", | 159 "first_run/first_run_configuration.h", |
| 160 "first_run/first_run_configuration.mm", | 160 "first_run/first_run_configuration.mm", |
| 161 "first_run/first_run_metrics.h", | 161 "first_run/first_run_metrics.h", |
| 162 "geolocation/CLLocation+OmniboxGeolocation.h", | 162 "geolocation/CLLocation+OmniboxGeolocation.h", |
| 163 "geolocation/CLLocation+OmniboxGeolocation.mm", | 163 "geolocation/CLLocation+OmniboxGeolocation.mm", |
| 164 "geolocation/CLLocation+XGeoHeader.h", | 164 "geolocation/CLLocation+XGeoHeader.h", |
| 165 "geolocation/CLLocation+XGeoHeader.mm", | 165 "geolocation/CLLocation+XGeoHeader.mm", |
| 166 "geolocation/location_manager+Testing.h", |
| 166 "geolocation/location_manager.h", | 167 "geolocation/location_manager.h", |
| 167 "geolocation/location_manager.mm", | 168 "geolocation/location_manager.mm", |
| 168 "geolocation/omnibox_geolocation_authorization_alert.h", | 169 "geolocation/omnibox_geolocation_authorization_alert.h", |
| 169 "geolocation/omnibox_geolocation_authorization_alert.mm", | 170 "geolocation/omnibox_geolocation_authorization_alert.mm", |
| 170 "geolocation/omnibox_geolocation_config.h", | 171 "geolocation/omnibox_geolocation_config.h", |
| 171 "geolocation/omnibox_geolocation_config.mm", | 172 "geolocation/omnibox_geolocation_config.mm", |
| 172 "geolocation/omnibox_geolocation_local_state.h", | 173 "geolocation/omnibox_geolocation_local_state.h", |
| 173 "geolocation/omnibox_geolocation_local_state.mm", | 174 "geolocation/omnibox_geolocation_local_state.mm", |
| 174 "google/google_brand.h", | 175 "google/google_brand.h", |
| 175 "google/google_brand.mm", | 176 "google/google_brand.mm", |
| (...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 534 "web_resource/web_resource_util.cc", | 535 "web_resource/web_resource_util.cc", |
| 535 "web_resource/web_resource_util.h", | 536 "web_resource/web_resource_util.h", |
| 536 "xcallback_parameters.h", | 537 "xcallback_parameters.h", |
| 537 "xcallback_parameters.mm", | 538 "xcallback_parameters.mm", |
| 538 ] | 539 ] |
| 539 | 540 |
| 540 deps = [ | 541 deps = [ |
| 541 ":about_flags", | 542 ":about_flags", |
| 542 ":injected_js", | 543 ":injected_js", |
| 543 "//base", | 544 "//base", |
| 545 "//base:i18n", |
| 544 "//breakpad:client", | 546 "//breakpad:client", |
| 545 "//components/about_handler", | 547 "//components/about_handler", |
| 546 "//components/autofill/core/browser", | 548 "//components/autofill/core/browser", |
| 547 "//components/autofill/core/common", | 549 "//components/autofill/core/common", |
| 548 "//components/autofill/ios/browser", | 550 "//components/autofill/ios/browser", |
| 549 "//components/bookmarks/browser", | 551 "//components/bookmarks/browser", |
| 550 "//components/browser_sync/browser", | 552 "//components/browser_sync/browser", |
| 551 "//components/browser_sync/common", | 553 "//components/browser_sync/common", |
| 552 "//components/browsing_data_ui", | 554 "//components/browsing_data_ui", |
| 553 "//components/certificate_reporting", | 555 "//components/certificate_reporting", |
| 554 "//components/component_updater", | 556 "//components/component_updater", |
| 555 "//components/content_settings/core/browser", | 557 "//components/content_settings/core/browser", |
| 558 "//components/content_settings/core/common", |
| 556 "//components/cookie_config", | 559 "//components/cookie_config", |
| 557 "//components/crash/core/browser", | 560 "//components/crash/core/browser", |
| 558 "//components/crash/core/common", | 561 "//components/crash/core/common", |
| 562 "//components/data_reduction_proxy/core/common", |
| 559 "//components/dom_distiller/core", | 563 "//components/dom_distiller/core", |
| 560 "//components/dom_distiller/ios", | 564 "//components/dom_distiller/ios", |
| 561 "//components/favicon/core", | 565 "//components/favicon/core", |
| 562 "//components/favicon_base", | 566 "//components/favicon_base", |
| 567 "//components/flags_ui", |
| 563 "//components/gcm_driver", | 568 "//components/gcm_driver", |
| 564 "//components/google/core/browser", | 569 "//components/google/core/browser", |
| 565 "//components/history/core/browser", | 570 "//components/history/core/browser", |
| 566 "//components/history/ios/browser", | 571 "//components/history/ios/browser", |
| 567 "//components/image_fetcher", | 572 "//components/image_fetcher", |
| 568 "//components/infobars/core", | 573 "//components/infobars/core", |
| 569 "//components/invalidation/impl", | 574 "//components/invalidation/impl", |
| 570 "//components/invalidation/public", | 575 "//components/invalidation/public", |
| 571 "//components/keyed_service/core", | 576 "//components/keyed_service/core", |
| 572 "//components/keyed_service/ios", | 577 "//components/keyed_service/ios", |
| 573 "//components/language_usage_metrics", | 578 "//components/language_usage_metrics", |
| 574 "//components/leveldb_proto", | 579 "//components/leveldb_proto", |
| 575 "//components/metrics", | 580 "//components/metrics", |
| 576 "//components/metrics:net", | 581 "//components/metrics:net", |
| 577 "//components/metrics:profiler", | 582 "//components/metrics:profiler", |
| 578 "//components/metrics:profiler_ios", | 583 "//components/metrics:profiler_ios", |
| 579 "//components/metrics:ui", | 584 "//components/metrics:ui", |
| 580 "//components/metrics_services_manager", | 585 "//components/metrics_services_manager", |
| 581 "//components/navigation_metrics", | 586 "//components/navigation_metrics", |
| 582 "//components/net_log", | 587 "//components/net_log", |
| 583 "//components/network_time", | 588 "//components/network_time", |
| 584 "//components/ntp_snippets", | 589 "//components/ntp_snippets", |
| 585 "//components/omnibox/browser", | 590 "//components/omnibox/browser", |
| 586 "//components/open_from_clipboard", | 591 "//components/open_from_clipboard", |
| 587 "//components/password_manager/core/browser", | 592 "//components/password_manager/core/browser", |
| 593 "//components/password_manager/core/common", |
| 588 "//components/password_manager/sync/browser", | 594 "//components/password_manager/sync/browser", |
| 589 "//components/policy:policy_component_common", | 595 "//components/policy:policy_component_common", |
| 590 "//components/pref_registry", | 596 "//components/pref_registry", |
| 591 "//components/prefs", | 597 "//components/prefs", |
| 592 "//components/profile_metrics", | 598 "//components/profile_metrics", |
| 593 "//components/proxy_config", | 599 "//components/proxy_config", |
| 594 "//components/rappor", | 600 "//components/rappor", |
| 595 "//components/resources", | 601 "//components/resources", |
| 596 "//components/search", | 602 "//components/search", |
| 597 "//components/search_engines", | 603 "//components/search_engines", |
| 598 "//components/security_interstitials/core", | 604 "//components/security_interstitials/core", |
| 599 "//components/security_state", | 605 "//components/security_state", |
| 600 "//components/sessions", | 606 "//components/sessions", |
| 601 "//components/signin/core/browser", | 607 "//components/signin/core/browser", |
| 602 "//components/signin/core/common", | 608 "//components/signin/core/common", |
| 603 "//components/signin/ios/browser", | 609 "//components/signin/ios/browser", |
| 604 "//components/ssl_config", | 610 "//components/ssl_config", |
| 605 "//components/strings", | 611 "//components/strings", |
| 606 "//components/suggestions", | 612 "//components/suggestions", |
| 607 "//components/sync_driver", | 613 "//components/sync_driver", |
| 608 "//components/sync_sessions", | 614 "//components/sync_sessions", |
| 609 "//components/syncable_prefs", | 615 "//components/syncable_prefs", |
| 610 "//components/translate/core/browser", | 616 "//components/translate/core/browser", |
| 617 "//components/translate/core/common", |
| 611 "//components/translate/ios/browser", | 618 "//components/translate/ios/browser", |
| 612 "//components/undo", | 619 "//components/undo", |
| 613 "//components/update_client", | 620 "//components/update_client", |
| 614 "//components/upload_list", | 621 "//components/upload_list", |
| 615 "//components/url_formatter", | 622 "//components/url_formatter", |
| 616 "//components/user_prefs", | 623 "//components/user_prefs", |
| 617 "//components/variations", | 624 "//components/variations", |
| 618 "//components/variations/service", | 625 "//components/variations/service", |
| 619 "//components/version_info", | 626 "//components/version_info", |
| 620 "//components/version_ui", | 627 "//components/version_ui", |
| 621 "//components/web_resource", | 628 "//components/web_resource", |
| 622 "//components/webdata_services", | 629 "//components/webdata_services", |
| 623 "//components/webp_transcode", | 630 "//components/webp_transcode", |
| 624 "//google_apis", | 631 "//google_apis", |
| 625 "//ios/chrome/browser/variations:ios_chrome_ui_string_overrider_factory", | 632 "//ios/chrome/browser/variations:ios_chrome_ui_string_overrider_factory", |
| 626 "//ios/chrome/common", | 633 "//ios/chrome/common", |
| 634 "//ios/chrome/common/app_group", |
| 635 "//ios/net", |
| 627 "//ios/public/provider/chrome/browser", | 636 "//ios/public/provider/chrome/browser", |
| 637 "//ios/public/provider/web", |
| 628 "//ios/web", | 638 "//ios/web", |
| 639 "//ios/web:user_agent", |
| 640 "//ios/web/public/app", |
| 629 "//net", | 641 "//net", |
| 630 "//net:extras", | 642 "//net:extras", |
| 631 "//skia", | 643 "//skia", |
| 632 "//sync", | 644 "//sync", |
| 633 "//third_party/google_toolbox_for_mac", | 645 "//third_party/google_toolbox_for_mac", |
| 634 "//ui/base", | 646 "//ui/base", |
| 635 "//ui/gfx", | 647 "//ui/gfx", |
| 648 "//ui/resources", |
| 649 "//ui/strings", |
| 636 "//url", | 650 "//url", |
| 637 | 651 |
| 638 # TODO(crbug.com/459705): add support for resource packing and change the | 652 # TODO(crbug.com/459705): add support for resource packing and change the |
| 639 # dependency to be on the packed resources instead of the unpacked ones. | 653 # dependency to be on the packed resources instead of the unpacked ones. |
| 640 "//ios/chrome/app/resources", | 654 "//ios/chrome/app/resources", |
| 641 "//ios/chrome/app/strings", | 655 "//ios/chrome/app/strings", |
| 642 "//ios/chrome/app/theme", | 656 "//ios/chrome/app/theme", |
| 643 ] | 657 ] |
| 644 | 658 |
| 659 allow_circular_includes_from = [ ":about_flags" ] |
| 660 |
| 645 libs = [ | 661 libs = [ |
| 646 "Accelerate.framework", | 662 "Accelerate.framework", |
| 647 "CoreGraphics.framework", | 663 "CoreGraphics.framework", |
| 648 "CoreLocation.framework", | 664 "CoreLocation.framework", |
| 649 "Foundation.framework", | 665 "Foundation.framework", |
| 650 "QuartzCore.framework", | 666 "QuartzCore.framework", |
| 651 "UIKit.framework", | 667 "UIKit.framework", |
| 652 ] | 668 ] |
| 653 | 669 |
| 654 if (enable_rlz) { | 670 if (enable_rlz) { |
| 671 sources += [ |
| 672 "rlz/rlz_tracker_delegate_impl.cc", |
| 673 "rlz/rlz_tracker_delegate_impl.h", |
| 674 ] |
| 675 |
| 655 deps += [ | 676 deps += [ |
| 656 ":rlz", | |
| 657 "//components/rlz", | 677 "//components/rlz", |
| 678 "//rlz:rlz_lib", |
| 658 ] | 679 ] |
| 659 } | 680 } |
| 660 } | 681 } |
| 661 | 682 |
| 662 # This is a separate target so that the 'defines' does not leak to the | 683 # This is a separate target so that the 'defines' does not leak to the |
| 663 # other files (which would increase the compilation time when changing | 684 # other files (which would increase the compilation time when changing |
| 664 # the value). | 685 # the value). |
| 665 source_set("about_flags") { | 686 source_set("about_flags") { |
| 666 visibility = [ ":browser" ] | 687 visibility = [ ":browser" ] |
| 667 | 688 |
| 668 sources = [ | 689 sources = [ |
| 669 "about_flags.h", | 690 "about_flags.h", |
| 670 "about_flags.mm", | 691 "about_flags.mm", |
| 671 ] | 692 ] |
| 672 | 693 |
| 673 deps = [ | 694 deps = [ |
| 674 "//base", | 695 "//base", |
| 675 "//components/autofill/core/common", | 696 "//components/autofill/core/common", |
| 676 "//components/dom_distiller/core", | 697 "//components/dom_distiller/core", |
| 677 "//components/flags_ui", | 698 "//components/flags_ui", |
| 699 "//components/flags_ui:switches", |
| 678 "//components/strings", | 700 "//components/strings", |
| 701 "//components/sync_driver", |
| 702 "//components/variations", |
| 679 "//google_apis", | 703 "//google_apis", |
| 680 "//ios/chrome/app/strings", | 704 "//ios/chrome/app/strings", |
| 681 "//ios/web", | 705 "//ios/web", |
| 706 "//ios/web:user_agent", |
| 682 ] | 707 ] |
| 683 | 708 |
| 684 defines = [ | 709 defines = [ |
| 685 "GOOGLE_STAGING_API_URL=\"$google_staging_api_url\"", | 710 "GOOGLE_STAGING_API_URL=\"$google_staging_api_url\"", |
| 686 "GOOGLE_STAGING_LSO_URL=\"$google_staging_lso_url\"", | 711 "GOOGLE_STAGING_LSO_URL=\"$google_staging_lso_url\"", |
| 687 "GOOGLE_TEST_API_URL=\"$google_test_api_url\"", | 712 "GOOGLE_TEST_API_URL=\"$google_test_api_url\"", |
| 688 "GOOGLE_TEST_LSO_URL=\"$google_test_lso_url\"", | 713 "GOOGLE_TEST_LSO_URL=\"$google_test_lso_url\"", |
| 689 "GOOGLE_TEST_OAUTH_CLIENT_ID=\"$google_test_oauth_client_id\"", | 714 "GOOGLE_TEST_OAUTH_CLIENT_ID=\"$google_test_oauth_client_id\"", |
| 690 "GOOGLE_TEST_OAUTH_CLIENT_SECRET=\"$google_test_oauth_client_secret\"", | 715 "GOOGLE_TEST_OAUTH_CLIENT_SECRET=\"$google_test_oauth_client_secret\"", |
| 691 "GOOGLE_TEST_OAUTH_URL=\"$google_test_oauth_url\"", | 716 "GOOGLE_TEST_OAUTH_URL=\"$google_test_oauth_url\"", |
| 692 "GOOGLE_TEST_SYNC_URL=\"$google_test_sync_url\"", | 717 "GOOGLE_TEST_SYNC_URL=\"$google_test_sync_url\"", |
| 693 ] | 718 ] |
| 694 } | 719 } |
| 695 | 720 |
| 696 # TODO(crbug.com/487804): use js_compile_checked instead once the errors have | 721 # TODO(crbug.com/487804): use js_compile_checked instead once the errors have |
| 697 # been fixed. | 722 # been fixed. |
| 698 js_compile_unchecked("injected_js") { | 723 js_compile_unchecked("injected_js") { |
| 699 visibility = [ ":browser" ] | 724 visibility = [ ":browser" ] |
| 700 sources = [ | 725 sources = [ |
| 701 "find_in_page/resources/find_in_page.js", | 726 "find_in_page/resources/find_in_page.js", |
| 702 ] | 727 ] |
| 703 } | 728 } |
| 704 | 729 |
| 705 if (enable_rlz_support) { | |
| 706 source_set("rlz") { | |
| 707 sources = [ | |
| 708 "rlz/rlz_tracker_delegate_impl.cc", | |
| 709 "rlz/rlz_tracker_delegate_impl.h", | |
| 710 ] | |
| 711 | |
| 712 deps = [ | |
| 713 "//components/google/core/browser", | |
| 714 "//components/omnibox/browser", | |
| 715 "//components/rlz", | |
| 716 "//components/search_engines", | |
| 717 "//rlz:rlz_lib", | |
| 718 ] | |
| 719 } | |
| 720 } | |
| 721 | |
| 722 source_set("test_support") { | 730 source_set("test_support") { |
| 723 testonly = true | 731 testonly = true |
| 724 sources = [ | 732 sources = [ |
| 725 "browser_state/test_chrome_browser_state.h", | 733 "browser_state/test_chrome_browser_state.h", |
| 726 "browser_state/test_chrome_browser_state.mm", | 734 "browser_state/test_chrome_browser_state.mm", |
| 727 "browser_state/test_chrome_browser_state_isolated_context.h", | 735 "browser_state/test_chrome_browser_state_isolated_context.h", |
| 728 "browser_state/test_chrome_browser_state_isolated_context.mm", | 736 "browser_state/test_chrome_browser_state_isolated_context.mm", |
| 729 "geolocation/location_manager+Testing.h", | |
| 730 "geolocation/test_location_manager.h", | 737 "geolocation/test_location_manager.h", |
| 731 "geolocation/test_location_manager.mm", | 738 "geolocation/test_location_manager.mm", |
| 732 "net/mock_image_fetcher.h", | 739 "net/mock_image_fetcher.h", |
| 733 "net/mock_image_fetcher.mm", | 740 "net/mock_image_fetcher.mm", |
| 734 "signin/fake_oauth2_token_service_builder.h", | 741 "signin/fake_oauth2_token_service_builder.h", |
| 735 "signin/fake_oauth2_token_service_builder.mm", | 742 "signin/fake_oauth2_token_service_builder.mm", |
| 736 "signin/fake_signin_manager_builder.cc", | 743 "signin/fake_signin_manager_builder.cc", |
| 737 "signin/fake_signin_manager_builder.h", | 744 "signin/fake_signin_manager_builder.h", |
| 738 "sync/fake_sync_service_factory.cc", | 745 "sync/fake_sync_service_factory.cc", |
| 739 "sync/fake_sync_service_factory.h", | 746 "sync/fake_sync_service_factory.h", |
| 740 "sync/ios_chrome_profile_sync_test_util.cc", | 747 "sync/ios_chrome_profile_sync_test_util.cc", |
| 741 "sync/ios_chrome_profile_sync_test_util.h", | 748 "sync/ios_chrome_profile_sync_test_util.h", |
| 742 "sync/sync_setup_service_mock.cc", | 749 "sync/sync_setup_service_mock.cc", |
| 743 "sync/sync_setup_service_mock.h", | 750 "sync/sync_setup_service_mock.h", |
| 744 ] | 751 ] |
| 745 | 752 |
| 746 deps = [ | 753 deps = [ |
| 747 ":browser", | 754 ":browser", |
| 748 "//base", | 755 "//base", |
| 756 "//components/bookmarks/browser", |
| 757 "//components/browser_sync/browser", |
| 749 "//components/browser_sync/browser:test_support", | 758 "//components/browser_sync/browser:test_support", |
| 759 "//components/history/core/browser", |
| 760 "//components/history/ios/browser", |
| 750 "//components/keyed_service/core", | 761 "//components/keyed_service/core", |
| 751 "//components/keyed_service/ios", | 762 "//components/keyed_service/ios", |
| 752 "//components/pref_registry:test_support", | 763 "//components/pref_registry:test_support", |
| 753 "//components/signin/core/browser", | 764 "//components/signin/core/browser", |
| 765 "//components/signin/core/browser", |
| 766 "//components/signin/core/browser:test_support", |
| 754 "//components/signin/ios/browser", | 767 "//components/signin/ios/browser", |
| 768 "//components/signin/ios/browser:test_support", |
| 755 "//components/sync_driver", | 769 "//components/sync_driver", |
| 756 "//components/sync_driver:test_support", | 770 "//components/sync_driver:test_support", |
| 771 "//components/syncable_prefs", |
| 772 "//components/syncable_prefs:test_support", |
| 773 "//components/user_prefs", |
| 774 "//components/webdata_services", |
| 757 "//ios/chrome/browser", | 775 "//ios/chrome/browser", |
| 758 "//ios/chrome/common", | 776 "//ios/chrome/common", |
| 759 "//ios/chrome/test", | 777 "//ios/chrome/test", |
| 760 "//ios/public/provider/chrome/browser", | 778 "//ios/public/provider/chrome/browser", |
| 761 "//ios/public/provider/chrome/browser:test_support", | 779 "//ios/public/provider/chrome/browser:test_support", |
| 762 "//ios/web", | 780 "//ios/web", |
| 781 "//net:test_support", |
| 763 "//sync", | 782 "//sync", |
| 764 "//testing/gmock", | 783 "//testing/gmock", |
| 765 "//testing/gtest", | 784 "//testing/gtest", |
| 766 "//ui/base", | 785 "//ui/base", |
| 767 "//url", | 786 "//url", |
| 768 ] | 787 ] |
| 769 } | 788 } |
| OLD | NEW |