| 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/config/features.gni") | 6 import("//build/config/features.gni") |
| 6 import("//build/config/ios/rules.gni") | 7 import("//build/config/ios/rules.gni") |
| 7 import("//third_party/protobuf/proto_library.gni") | 8 import("//third_party/protobuf/proto_library.gni") |
| 8 | 9 |
| 9 declare_args() { | 10 declare_args() { |
| 10 google_test_gaia_client_id = "" | 11 google_test_gaia_client_id = "" |
| 11 google_test_gaia_client_secret = "" | 12 google_test_gaia_client_secret = "" |
| 12 google_staging_api_url = "" | 13 google_staging_api_url = "" |
| 13 google_staging_lso_url = "" | 14 google_staging_lso_url = "" |
| 14 google_test_api_url = "" | 15 google_test_api_url = "" |
| 15 google_test_lso_url = "" | 16 google_test_lso_url = "" |
| 16 google_test_oauth_client_id = "" | 17 google_test_oauth_client_id = "" |
| 17 google_test_oauth_client_secret = "" | 18 google_test_oauth_client_secret = "" |
| 18 google_test_oauth_url = "" | 19 google_test_oauth_url = "" |
| 19 google_test_sync_url = "" | 20 google_test_sync_url = "" |
| 20 } | 21 } |
| 21 | 22 |
| 22 source_set("browser") { | 23 source_set("browser") { |
| 23 sources = [ | 24 sources = [ |
| 25 "about_flags.h", |
| 26 "about_flags.mm", |
| 24 "app_startup_parameters.h", | 27 "app_startup_parameters.h", |
| 25 "app_startup_parameters.mm", | 28 "app_startup_parameters.mm", |
| 26 "application_context.cc", | 29 "application_context.cc", |
| 27 "application_context.h", | 30 "application_context.h", |
| 28 "arch_util.cc", | 31 "arch_util.cc", |
| 29 "arch_util.h", | 32 "arch_util.h", |
| 30 "browser_about_rewriter.cc", | 33 "browser_about_rewriter.cc", |
| 31 "browser_about_rewriter.h", | 34 "browser_about_rewriter.h", |
| 32 "chrome_constants.cc", | 35 "chrome_constants.cc", |
| 33 "chrome_constants.h", | 36 "chrome_constants.h", |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 "root_coordinator.mm", | 70 "root_coordinator.mm", |
| 68 "storekit_launcher.h", | 71 "storekit_launcher.h", |
| 69 "tab_parenting_global_observer.cc", | 72 "tab_parenting_global_observer.cc", |
| 70 "tab_parenting_global_observer.h", | 73 "tab_parenting_global_observer.h", |
| 71 "web_data_service_factory.cc", | 74 "web_data_service_factory.cc", |
| 72 "web_data_service_factory.h", | 75 "web_data_service_factory.h", |
| 73 "xcallback_parameters.h", | 76 "xcallback_parameters.h", |
| 74 "xcallback_parameters.mm", | 77 "xcallback_parameters.mm", |
| 75 ] | 78 ] |
| 76 deps = [ | 79 deps = [ |
| 80 ":google_api_keys_header", |
| 77 ":settings_resources", | 81 ":settings_resources", |
| 78 "//base", | 82 "//base", |
| 79 "//components/autofill/core/browser", | 83 "//components/autofill/core/browser", |
| 80 "//components/autofill/core/common", | 84 "//components/autofill/core/common", |
| 85 "//components/dom_distiller/core", |
| 86 "//components/flags_ui", |
| 87 "//components/flags_ui:switches", |
| 81 "//components/gcm_driver", | 88 "//components/gcm_driver", |
| 82 "//components/handoff", | 89 "//components/handoff", |
| 83 "//components/keyed_service/core", | 90 "//components/keyed_service/core", |
| 84 "//components/keyed_service/ios", | 91 "//components/keyed_service/ios", |
| 85 "//components/metrics", | 92 "//components/metrics", |
| 86 "//components/metrics_services_manager", | 93 "//components/metrics_services_manager", |
| 87 "//components/net_log", | 94 "//components/net_log", |
| 88 "//components/network_session_configurator", | 95 "//components/network_session_configurator", |
| 89 "//components/ntp_tiles", | 96 "//components/ntp_tiles", |
| 90 "//components/pref_registry", | 97 "//components/pref_registry", |
| 91 "//components/prefs", | 98 "//components/prefs", |
| 92 "//components/proxy_config", | 99 "//components/proxy_config", |
| 93 "//components/reading_list/core", | 100 "//components/reading_list/core", |
| 94 "//components/reading_list/ios", | 101 "//components/reading_list/ios", |
| 95 "//components/search_engines", | 102 "//components/search_engines", |
| 96 "//components/signin/core/browser", | 103 "//components/signin/core/browser", |
| 97 "//components/ssl_config", | 104 "//components/ssl_config", |
| 105 "//components/strings", |
| 106 "//components/sync", |
| 98 "//components/translate/core/browser", | 107 "//components/translate/core/browser", |
| 99 "//components/url_formatter", | 108 "//components/url_formatter", |
| 100 "//components/variations", | 109 "//components/variations", |
| 101 "//components/variations/service", | 110 "//components/variations/service", |
| 102 "//components/version_info", | 111 "//components/version_info", |
| 103 "//components/webdata_services", | 112 "//components/webdata_services", |
| 113 "//google_apis", |
| 114 "//ios/chrome/app/strings", |
| 104 "//ios/chrome/browser/browser_state", | 115 "//ios/chrome/browser/browser_state", |
| 105 "//ios/chrome/browser/sync/glue", | 116 "//ios/chrome/browser/sync/glue", |
| 106 "//ios/chrome/common", | 117 "//ios/chrome/common", |
| 107 "//ios/net", | 118 "//ios/net", |
| 108 "//ios/public/provider/chrome/browser", | 119 "//ios/public/provider/chrome/browser", |
| 109 "//ios/public/provider/chrome/browser/voice", | 120 "//ios/public/provider/chrome/browser/voice", |
| 110 "//ios/web", | 121 "//ios/web", |
| 111 "//ios/web:user_agent", | 122 "//ios/web:user_agent", |
| 112 "//net", | 123 "//net", |
| 113 "//url", | 124 "//url", |
| 114 ] | 125 ] |
| 115 allow_circular_includes_from = [ | 126 allow_circular_includes_from = [ |
| 116 "//ios/chrome/browser/sync/glue", | 127 "//ios/chrome/browser/sync/glue", |
| 117 "//ios/chrome/browser/browser_state", | 128 "//ios/chrome/browser/browser_state", |
| 118 ] | 129 ] |
| 119 libs = [ "UIKit.framework" ] | 130 libs = [ "UIKit.framework" ] |
| 120 } | 131 } |
| 121 | 132 |
| 122 source_set("browser_impl") { | 133 source_set("browser_impl") { |
| 123 configs += [ "//build/config/compiler:enable_arc" ] | 134 configs += [ "//build/config/compiler:enable_arc" ] |
| 124 sources = [ | 135 sources = [ |
| 125 "application_context_impl.cc", | 136 "application_context_impl.cc", |
| 126 "application_context_impl.h", | 137 "application_context_impl.h", |
| 127 "ios_chrome_main_parts.h", | 138 "ios_chrome_main_parts.h", |
| 128 "ios_chrome_main_parts.mm", | 139 "ios_chrome_main_parts.mm", |
| 129 ] | 140 ] |
| 130 deps = [ | 141 deps = [ |
| 131 ":about_flags", | |
| 132 ":browser", | 142 ":browser", |
| 133 "//base", | 143 "//base", |
| 134 "//components/component_updater", | 144 "//components/component_updater", |
| 135 "//components/content_settings/core/browser", | 145 "//components/content_settings/core/browser", |
| 136 "//components/content_settings/core/common", | 146 "//components/content_settings/core/common", |
| 137 "//components/flags_ui", | 147 "//components/flags_ui", |
| 138 "//components/gcm_driver", | 148 "//components/gcm_driver", |
| 139 "//components/history/core/browser", | 149 "//components/history/core/browser", |
| 140 "//components/keyed_service/core", | 150 "//components/keyed_service/core", |
| 141 "//components/language_usage_metrics", | 151 "//components/language_usage_metrics", |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 "//ios/web/public/app", | 183 "//ios/web/public/app", |
| 174 "//net", | 184 "//net", |
| 175 "//ui/base", | 185 "//ui/base", |
| 176 ] | 186 ] |
| 177 | 187 |
| 178 if (enable_rlz) { | 188 if (enable_rlz) { |
| 179 deps += [ "//ios/chrome/browser/rlz" ] | 189 deps += [ "//ios/chrome/browser/rlz" ] |
| 180 } | 190 } |
| 181 } | 191 } |
| 182 | 192 |
| 183 # This is a separate target so that the 'defines' does not leak to the | 193 buildflag_header("google_api_keys_header") { |
| 184 # other files (which would increase the compilation time when changing | 194 header = "google_api_keys.h" |
| 185 # the value). | 195 flags = [ |
| 186 source_set("about_flags") { | |
| 187 configs += [ "//build/config/compiler:enable_arc" ] | |
| 188 sources = [ | |
| 189 "about_flags.h", | |
| 190 "about_flags.mm", | |
| 191 ] | |
| 192 | |
| 193 deps = [ | |
| 194 ":browser", | |
| 195 "//base", | |
| 196 "//components/autofill/core/common", | |
| 197 "//components/dom_distiller/core", | |
| 198 "//components/flags_ui", | |
| 199 "//components/flags_ui:switches", | |
| 200 "//components/ntp_tiles", | |
| 201 "//components/reading_list/core", | |
| 202 "//components/strings", | |
| 203 "//components/sync", | |
| 204 "//components/variations", | |
| 205 "//google_apis", | |
| 206 "//ios/chrome/app/strings", | |
| 207 "//ios/web", | |
| 208 "//ios/web:user_agent", | |
| 209 ] | |
| 210 | |
| 211 defines = [ | |
| 212 "GOOGLE_STAGING_API_URL=\"$google_staging_api_url\"", | 196 "GOOGLE_STAGING_API_URL=\"$google_staging_api_url\"", |
| 213 "GOOGLE_STAGING_LSO_URL=\"$google_staging_lso_url\"", | 197 "GOOGLE_STAGING_LSO_URL=\"$google_staging_lso_url\"", |
| 214 "GOOGLE_TEST_API_URL=\"$google_test_api_url\"", | 198 "GOOGLE_TEST_API_URL=\"$google_test_api_url\"", |
| 215 "GOOGLE_TEST_LSO_URL=\"$google_test_lso_url\"", | 199 "GOOGLE_TEST_LSO_URL=\"$google_test_lso_url\"", |
| 216 "GOOGLE_TEST_OAUTH_CLIENT_ID=\"$google_test_oauth_client_id\"", | 200 "GOOGLE_TEST_OAUTH_CLIENT_ID=\"$google_test_oauth_client_id\"", |
| 217 "GOOGLE_TEST_OAUTH_CLIENT_SECRET=\"$google_test_oauth_client_secret\"", | 201 "GOOGLE_TEST_OAUTH_CLIENT_SECRET=\"$google_test_oauth_client_secret\"", |
| 218 "GOOGLE_TEST_OAUTH_URL=\"$google_test_oauth_url\"", | 202 "GOOGLE_TEST_OAUTH_URL=\"$google_test_oauth_url\"", |
| 219 "GOOGLE_TEST_SYNC_URL=\"$google_test_sync_url\"", | 203 "GOOGLE_TEST_SYNC_URL=\"$google_test_sync_url\"", |
| 220 ] | 204 ] |
| 221 } | 205 } |
| (...skipping 27 matching lines...) Expand all Loading... |
| 249 "//components/proxy_config", | 233 "//components/proxy_config", |
| 250 "//components/ssl_config", | 234 "//components/ssl_config", |
| 251 "//components/variations", | 235 "//components/variations", |
| 252 "//ios/web:test_support", | 236 "//ios/web:test_support", |
| 253 "//net", | 237 "//net", |
| 254 "//net:test_support", | 238 "//net:test_support", |
| 255 "//testing/gtest", | 239 "//testing/gtest", |
| 256 "//url", | 240 "//url", |
| 257 ] | 241 ] |
| 258 } | 242 } |
| OLD | NEW |