Index: content/app/BUILD.gn |
diff --git a/content/app/BUILD.gn b/content/app/BUILD.gn |
index abe8a752254fe499c7fa39ff40e6e797edbacbde..1d06bca19ef6bdd84336b3048754f5c14a5ee856 100644 |
--- a/content/app/BUILD.gn |
+++ b/content/app/BUILD.gn |
@@ -67,13 +67,26 @@ if (!is_multi_dll_chrome) { |
source_set("both") { |
# Only the public target should depend on this. All other targets (even |
# internal content ones) should depend on the public one. |
- visibility = [ "//content/public/app:*" ] |
+ visibility = [ |
+ ":*", |
+ "//content/public/app:*", |
+ ] |
sources = content_app_sources |
configs += content_app_extra_configs |
deps = content_app_deps |
} |
+# See comment at the top of //content/BUILD.gn for how this works. |
+group("both_for_content_tests") { |
+ visibility = [ "//content/test/*" ] |
+ if (!is_component_build) { |
+ public_deps = [ |
+ ":both", |
+ ] |
+ } |
+} |
+ |
if (is_multi_dll_chrome) { |
# It doesn't make sense to do the browser/child dll split in component mode. |
assert(!is_component_build) |