summaryrefslogtreecommitdiffstats
path: root/content/browser/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/BUILD.gn')
-rw-r--r--content/browser/BUILD.gn17
1 files changed, 15 insertions, 2 deletions
diff --git a/content/browser/BUILD.gn b/content/browser/BUILD.gn
index 9245309..fb8d3a9 100644
--- a/content/browser/BUILD.gn
+++ b/content/browser/BUILD.gn
@@ -11,7 +11,10 @@ import("//mojo/public/mojo_application_manifest.gni")
source_set("browser") {
# Only the public target should depend on this. All other targets (even
# internal content ones) should depend on the public one.
- visibility = [ "//content/public/browser:browser_sources" ]
+ visibility = [
+ ":for_content_tests", # See top of //content/BUILD.gn for why.
+ "//content/public/browser:browser_sources",
+ ]
configs += [
"//build/config:precompiled_headers",
@@ -48,7 +51,7 @@ source_set("browser") {
"//content/browser/notifications:notification_proto",
"//content/browser/service_worker:service_worker_proto",
"//content/browser/speech/proto",
- "//content/common:mojo_bindings",
+ "//content/common",
"//content/public/common:common_sources",
"//content/public/common:mojo_bindings",
"//crypto",
@@ -526,6 +529,16 @@ source_set("browser") {
}
}
+# See comment at the top of //content/BUILD.gn for how this works.
+group("for_content_tests") {
+ visibility = [ "//content/test/*" ]
+ if (!is_component_build) {
+ public_deps = [
+ ":browser",
+ ]
+ }
+}
+
mojo_application_manifest("chrome_manifest") {
type = "exe"
application_name = "chrome"