| 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/buildflag_header.gni") | 5 import("//build/buildflag_header.gni") |
| 6 import("//ios/public/provider/chrome/browser/build_config.gni") | 6 import("//ios/public/provider/chrome/browser/build_config.gni") |
| 7 | 7 |
| 8 source_set("browser") { | 8 source_set("browser") { |
| 9 sources = [ | 9 sources = [ |
| 10 "chrome_browser_provider.h", | 10 "chrome_browser_provider.h", |
| 11 "chrome_browser_provider.mm", | 11 "chrome_browser_provider.mm", |
| 12 "distribution/app_distribution_provider.h", | |
| 13 "distribution/app_distribution_provider.mm", | |
| 14 "geolocation_updater_provider.h", | 12 "geolocation_updater_provider.h", |
| 15 "geolocation_updater_provider.mm", | 13 "geolocation_updater_provider.mm", |
| 16 "images/branded_image_provider.h", | |
| 17 "images/branded_image_provider.mm", | |
| 18 "images/whats_new_icon.h", | |
| 19 "native_app_launcher/native_app_metadata.h", | |
| 20 "native_app_launcher/native_app_types.h", | |
| 21 "native_app_launcher/native_app_whitelist_manager.h", | |
| 22 "omaha/omaha_service_provider.h", | |
| 23 "omaha/omaha_service_provider.mm", | |
| 24 "sessions/live_tab_context_provider.h", | |
| 25 "signin/chrome_identity.h", | |
| 26 "signin/chrome_identity.mm", | |
| 27 "signin/chrome_identity_browser_opener.h", | |
| 28 "signin/chrome_identity_interaction_manager.h", | |
| 29 "signin/chrome_identity_interaction_manager.mm", | |
| 30 "signin/chrome_identity_service.h", | |
| 31 "signin/chrome_identity_service.mm", | |
| 32 "signin/signin_error_provider.h", | |
| 33 "signin/signin_error_provider.mm", | |
| 34 "signin/signin_resources_provider.h", | |
| 35 "signin/signin_resources_provider.mm", | |
| 36 "ui/app_rating_prompt.h", | |
| 37 "ui/default_ios_web_view_factory.h", | |
| 38 "ui/default_ios_web_view_factory.mm", | |
| 39 "ui/infobar_view_delegate.h", | |
| 40 "ui/infobar_view_protocol.h", | |
| 41 "ui/logo_vendor.h", | |
| 42 "ui/text_field_styling.h", | |
| 43 "user_feedback/user_feedback_provider.h", | |
| 44 "user_feedback/user_feedback_provider.mm", | |
| 45 "voice/audio_session_controller.h", | |
| 46 "voice/logo_animation_controller.h", | |
| 47 "voice/voice_search_bar.h", | |
| 48 "voice/voice_search_bar_owner.h", | |
| 49 "voice/voice_search_controller.h", | |
| 50 "voice/voice_search_controller.mm", | |
| 51 "voice/voice_search_controller_delegate.h", | |
| 52 "voice/voice_search_language.h", | |
| 53 "voice/voice_search_language.mm", | |
| 54 "voice/voice_search_prefs.cc", | |
| 55 "voice/voice_search_prefs.h", | |
| 56 "voice/voice_search_presenter.h", | |
| 57 "voice/voice_search_provider.h", | |
| 58 "voice/voice_search_provider.mm", | |
| 59 ] | 14 ] |
| 60 | |
| 61 public_deps = [ | |
| 62 ":provider_flags", | |
| 63 ] | |
| 64 | |
| 65 deps = [ | 15 deps = [ |
| 66 "//base", | 16 "//base", |
| 67 "//components/autofill/core/browser", | |
| 68 "//components/favicon_base", | 17 "//components/favicon_base", |
| 69 "//components/metrics", | 18 "//components/metrics", |
| 70 "//components/sync_sessions", | 19 "//components/sync_sessions", |
| 71 "//ios/web", | |
| 72 "//url", | |
| 73 ] | 20 ] |
| 21 libs = [ "CoreLocation.framework" ] |
| 74 | 22 |
| 75 libs = [ | 23 # TODO(sdefresne): remove once downstream has been converted to depends |
| 76 "CoreGraphics.framework", | 24 # directly on the sub-targets. |
| 77 "CoreLocation.framework", | 25 public_deps = [ |
| 78 "Foundation.framework", | 26 "//ios/public/provider/chrome/browser/distribution", |
| 27 "//ios/public/provider/chrome/browser/images", |
| 28 "//ios/public/provider/chrome/browser/native_app_launcher", |
| 29 "//ios/public/provider/chrome/browser/omaha", |
| 30 "//ios/public/provider/chrome/browser/sessions", |
| 31 "//ios/public/provider/chrome/browser/signin", |
| 32 "//ios/public/provider/chrome/browser/ui", |
| 33 "//ios/public/provider/chrome/browser/user_feedback", |
| 34 "//ios/public/provider/chrome/browser/voice", |
| 79 ] | 35 ] |
| 80 } | 36 } |
| 81 | 37 |
| 82 buildflag_header("provider_flags") { | 38 buildflag_header("provider_flags") { |
| 83 header = "provider_flags.h" | 39 header = "provider_flags.h" |
| 84 flags = [ "USE_DEFAULT_IOS_PROVIDER=$use_default_ios_provider" ] | 40 flags = [ "USE_DEFAULT_IOS_PROVIDER=$use_default_ios_provider" ] |
| 85 } | 41 } |
| 86 | 42 |
| 87 source_set("test_support") { | 43 source_set("test_support") { |
| 88 testonly = true | 44 testonly = true |
| 89 | |
| 90 sources = [ | 45 sources = [ |
| 91 "distribution/test_app_distribution_provider.h", | |
| 92 "distribution/test_app_distribution_provider.mm", | |
| 93 "images/test_branded_image_provider.h", | |
| 94 "images/test_branded_image_provider.mm", | |
| 95 "omaha/test_omaha_service_provider.h", | |
| 96 "omaha/test_omaha_service_provider.mm", | |
| 97 "sessions/test_live_tab_context_provider.cc", | |
| 98 "sessions/test_live_tab_context_provider.h", | |
| 99 "sessions/test_synced_window_delegates_getter.cc", | |
| 100 "sessions/test_synced_window_delegates_getter.h", | |
| 101 "signin/fake_chrome_identity.h", | |
| 102 "signin/fake_chrome_identity.mm", | |
| 103 "signin/fake_chrome_identity_interaction_manager.h", | |
| 104 "signin/fake_chrome_identity_interaction_manager.mm", | |
| 105 "signin/fake_chrome_identity_service.h", | |
| 106 "signin/fake_chrome_identity_service.mm", | |
| 107 "signin/test_signin_resources_provider.h", | |
| 108 "signin/test_signin_resources_provider.mm", | |
| 109 "test_chrome_browser_provider.h", | 46 "test_chrome_browser_provider.h", |
| 110 "test_chrome_browser_provider.mm", | 47 "test_chrome_browser_provider.mm", |
| 111 "test_chrome_provider_initializer.h", | 48 "test_chrome_provider_initializer.h", |
| 112 "test_chrome_provider_initializer.mm", | 49 "test_chrome_provider_initializer.mm", |
| 113 "ui/test_infobar_view.h", | 50 ] |
| 114 "ui/test_infobar_view.mm", | 51 deps = [ |
| 115 "ui/test_styled_text_field.h", | 52 "//base", |
| 116 "ui/test_styled_text_field.mm", | 53 "//ios/public/provider/chrome/browser", |
| 117 "user_feedback/test_user_feedback_provider.h", | 54 "//ios/public/provider/chrome/browser/distribution:test_support", |
| 118 "user_feedback/test_user_feedback_provider.mm", | 55 "//ios/public/provider/chrome/browser/images:test_support", |
| 119 "voice/test_voice_search_provider.h", | 56 "//ios/public/provider/chrome/browser/omaha:test_support", |
| 120 "voice/test_voice_search_provider.mm", | 57 "//ios/public/provider/chrome/browser/sessions:test_support", |
| 58 "//ios/public/provider/chrome/browser/signin:test_support", |
| 59 "//ios/public/provider/chrome/browser/ui", |
| 60 "//ios/public/provider/chrome/browser/ui:test_support", |
| 61 "//ios/public/provider/chrome/browser/user_feedback:test_support", |
| 62 "//ios/public/provider/chrome/browser/voice", |
| 63 "//ios/public/provider/chrome/browser/voice:test_support", |
| 64 "//testing/gtest", |
| 121 ] | 65 ] |
| 122 | 66 |
| 123 deps = [ | 67 # TODO(sdefresne): remove once downstream has been converted to depends |
| 124 ":browser", | 68 # directly on the sub-targets. |
| 125 "//base", | |
| 126 "//components/signin/ios/browser:test_support", | |
| 127 "//components/sync_sessions", | |
| 128 "//ios/chrome/app/theme", | |
| 129 "//testing/gtest", | |
| 130 ] | |
| 131 public_deps = [ | 69 public_deps = [ |
| 132 "//testing/gmock", | 70 "//ios/public/provider/chrome/browser/distribution:test_support", |
| 71 "//ios/public/provider/chrome/browser/images:test_support", |
| 72 "//ios/public/provider/chrome/browser/omaha:test_support", |
| 73 "//ios/public/provider/chrome/browser/sessions:test_support", |
| 74 "//ios/public/provider/chrome/browser/signin:test_support", |
| 75 "//ios/public/provider/chrome/browser/ui:test_support", |
| 76 "//ios/public/provider/chrome/browser/user_feedback:test_support", |
| 77 "//ios/public/provider/chrome/browser/voice:test_support", |
| 133 ] | 78 ] |
| 134 } | 79 } |
| OLD | NEW |