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

Unified Diff: content/public/app/BUILD.gn

Issue 549863004: Make ui gn check pass. Misc GN build improvements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix utility linking Created 6 years, 3 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
« no previous file with comments | « content/BUILD.gn ('k') | content/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/app/BUILD.gn
diff --git a/content/public/app/BUILD.gn b/content/public/app/BUILD.gn
index 37d2847278c0a071cc51d07a9cb112e18c0c2cfa..fa087e3b056c4d9a925de8254fb3cfa17c2d91c8 100644
--- a/content/public/app/BUILD.gn
+++ b/content/public/app/BUILD.gn
@@ -2,7 +2,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-source_set("app") {
+# Used internally to hold the sources shared between the various targets below.
+source_set("app_sources") {
sources = [
"android_library_loader_hooks.h",
"content_main.h",
@@ -23,3 +24,45 @@ source_set("app") {
"//content/public/utility",
]
}
+
+# The structure of this is like the private content/app implementation.
+if (is_component_build) {
+
+ group("app") {
+ deps = [
+ ":app_sources",
+ "//content/app",
+ ]
+ }
+ group("browser") {
+ deps = [ "//content" ]
+ }
+ group("child") {
+ deps = [ "//content" ]
+ }
+ group("both") {
+ deps = [ "//content" ]
+ }
+
+} else {
+
+ group("browser") {
+ deps = [
+ ":app_sources",
+ "//content/app:browser"
+ ]
+ }
+ group("child") {
+ deps = [
+ ":app_sources",
+ "//content/app:child"
+ ]
+ }
+ group("both") {
+ deps = [
+ ":app_sources",
+ "//content/app:both"
+ ]
+ }
+
+}
« no previous file with comments | « content/BUILD.gn ('k') | content/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698