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") |