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

Unified Diff: content/public/common/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/child/BUILD.gn ('k') | content/public/plugin/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/BUILD.gn
diff --git a/content/public/common/BUILD.gn b/content/public/common/BUILD.gn
index 60bb14cd3afa6c73b0677fe283459ecc5a24982b..e9049e3b1cad1b8c6a4037911db02d2e0ace5d12 100644
--- a/content/public/common/BUILD.gn
+++ b/content/public/common/BUILD.gn
@@ -5,7 +5,19 @@
import("//build/config/features.gni")
import("//content/common/common.gni")
-source_set("common") {
+# See //content/BUILD.gn for how this works.
+group("common") {
+ if (is_component_build) {
+ deps = [ "//content" ]
+ } else {
+ deps = [ ":common_sources" ]
+ }
+ forward_dependent_configs_from = deps
+}
+
+source_set("common_sources") {
+ visibility = [ "//content/*" ]
+
sources = rebase_path(content_common_gypi_values.public_common_sources,
".", "//content")
« no previous file with comments | « content/public/child/BUILD.gn ('k') | content/public/plugin/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698