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

Unified Diff: ios/chrome/app/startup/BUILD.gn

Issue 2661183002: Split ios/chrome/app/startup targets to reduce dependencies. (Closed)
Patch Set: Fixed dependencies, factored out chrome_paths. Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: ios/chrome/app/startup/BUILD.gn
diff --git a/ios/chrome/app/startup/BUILD.gn b/ios/chrome/app/startup/BUILD.gn
index 71c1a1970efdb81f2ccbc0aadd03abfdf974b8ed..2e99d8a79ff92926056c64c41685974abb5b49d1 100644
--- a/ios/chrome/app/startup/BUILD.gn
+++ b/ios/chrome/app/startup/BUILD.gn
@@ -4,22 +4,15 @@
import("//ios/public/provider/chrome/browser/build_config.gni")
-source_set("startup") {
+# Target for sources that don't depend on //ios/chrome/browser
sdefresne 2017/02/01 14:01:02 I was going to suggest enforcing this with assert_
marq (ping after 24h) 2017/05/03 15:27:27 I meant browser:browser. Added the assertion.
+source_set("startup_basic") {
sources = [
- "background_upload_alert.h",
- "background_upload_alert.mm",
"chrome_main_starter.h",
"chrome_main_starter.mm",
- "client_registration.h",
- "client_registration.mm",
"ios_chrome_main.h",
"ios_chrome_main.mm",
"ios_chrome_main_delegate.h",
"ios_chrome_main_delegate.mm",
- "network_stack_setup.h",
- "network_stack_setup.mm",
- "provider_registration.h",
- "provider_registration.mm",
"register_experimental_settings.h",
"register_experimental_settings.mm",
"setup_debugging.h",
@@ -29,6 +22,27 @@ source_set("startup") {
deps = [
"//base",
"//components/crash/core/common",
+ "//ios/chrome/browser:chrome_paths",
+ "//ios/web/public/app",
+ "//skia",
+ ]
+}
+
+source_set("startup") {
+ sources = [
+ "background_upload_alert.h",
+ "background_upload_alert.mm",
+ "client_registration.h",
+ "client_registration.mm",
+ "network_stack_setup.h",
+ "network_stack_setup.mm",
+ "provider_registration.h",
+ "provider_registration.mm",
+ ]
+
+ deps = [
+ ":startup_basic",
+ "//base",
"//ios/chrome/browser",
"//ios/chrome/browser:browser_internal",
"//ios/chrome/browser/web",
@@ -37,7 +51,6 @@ source_set("startup") {
"//ios/public/provider/chrome/browser",
"//ios/web",
"//ios/web/public/app",
- "//skia",
ios_provider_target,
]
}

Powered by Google App Engine
This is Rietveld 408576698