Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(294)

Side by Side Diff: ios/chrome/browser/BUILD.gn

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

Powered by Google App Engine
This is Rietveld 408576698