Index: content/gpu/BUILD.gn |
diff --git a/content/gpu/BUILD.gn b/content/gpu/BUILD.gn |
index d43bb8205447c06abdd970572b7bc81b3f649321..5ef0014e587f38b45e77c925536912e5bb094aa1 100644 |
--- a/content/gpu/BUILD.gn |
+++ b/content/gpu/BUILD.gn |
@@ -5,7 +5,22 @@ |
import("//build/config/ui.gni") |
import("//content/content.gni") |
-source_set("gpu") { |
+# See //content/BUILD.gn for how this works. |
+group("gpu") { |
+ visibility = [ "//content/*" ] |
+ |
+ if (is_component_build) { |
+ public_deps = [ |
+ "//content", |
+ ] |
+ } else { |
+ public_deps = [ |
+ ":gpu_sources", |
+ ] |
+ } |
+} |
+ |
+source_set("gpu_sources") { |
visibility = [ "//content/*" ] |
sources = [ |