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

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

Issue 554393009: Make chrome GN build work in component mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: undo gyp changes 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/public/renderer/BUILD.gn ('k') | content/renderer/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/utility/BUILD.gn
diff --git a/content/public/utility/BUILD.gn b/content/public/utility/BUILD.gn
index a1ab07682d28cb2c86cb6044be93f344faccf1cd..e6fecd03c5e46f25e809f7a1de1ce75977fd173a 100644
--- a/content/public/utility/BUILD.gn
+++ b/content/public/utility/BUILD.gn
@@ -2,7 +2,19 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-source_set("utility") {
+# See //content/BUILD.gn for how this works.
+group("utility") {
+ if (is_component_build) {
+ deps = [ "//content" ]
+ } else {
+ deps = [ ":utility_sources" ]
+ }
+ forward_dependent_configs_from = deps
+}
+
+source_set("utility_sources") {
+ visibility = [ "//content/*" ]
+
sources = [
"content_utility_client.cc",
"content_utility_client.h",
@@ -15,7 +27,7 @@ source_set("utility") {
deps = [
"//base",
"//content:export",
- "//content/public/common",
+ "//content/public/common:common_sources",
"//content/utility",
"//ipc",
]
@@ -23,7 +35,8 @@ source_set("utility") {
allow_circular_includes_from = [
# This target is a pair with content/browser. They always go together and
# include headers from each other.
- "//content/utility",
+ # TODO(brettw) enable this when this permits non-dependent targets.
+ #"//content/utility",
]
}
« no previous file with comments | « content/public/renderer/BUILD.gn ('k') | content/renderer/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698