summaryrefslogtreecommitdiffstats
path: root/content/public/app
diff options
context:
space:
mode:
authorBrett Wilson <brettw@chromium.org>2014-09-05 16:29:55 -0700
committerBrett Wilson <brettw@chromium.org>2014-09-05 23:32:30 +0000
commitb41a8d6e789ac5df9a6d314cd0ad59f584f53dea (patch)
tree704c4f7928c596805437ec6be0656cbd24b80ff8 /content/public/app
parent12a31fdc4f1d7abebb7845628dcd86a79d01e9b2 (diff)
downloadchromium_src-b41a8d6e789ac5df9a6d314cd0ad59f584f53dea.zip
chromium_src-b41a8d6e789ac5df9a6d314cd0ad59f584f53dea.tar.gz
chromium_src-b41a8d6e789ac5df9a6d314cd0ad59f584f53dea.tar.bz2
Make ui gn check pass. Misc GN build improvements.
Content/public/app was messed up and didn't link everything properly, so this separates it out into browser and child like content/app is. R=jamesr@chromium.org Review URL: https://codereview.chromium.org/545313002 Cr-Commit-Position: refs/heads/master@{#293592}
Diffstat (limited to 'content/public/app')
-rw-r--r--content/public/app/BUILD.gn45
1 files changed, 44 insertions, 1 deletions
diff --git a/content/public/app/BUILD.gn b/content/public/app/BUILD.gn
index 37d2847..fa087e3 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"
+ ]
+ }
+
+}