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

Unified Diff: content/renderer/BUILD.gn

Issue 1833193002: Content "gn check" work. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/utility/BUILD.gn ('k') | content/renderer/mus/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/BUILD.gn
diff --git a/content/renderer/BUILD.gn b/content/renderer/BUILD.gn
index bf4554614035c6678d0b90d351b418bba94da199..f9a554d07e7689f9cd199ed8a2dc5df0dfea6884 100644
--- a/content/renderer/BUILD.gn
+++ b/content/renderer/BUILD.gn
@@ -10,7 +10,10 @@ import("//media/media_options.gni")
source_set("renderer") {
# Only the public target should depend on this. All other targets (even
# internal content ones) should depend on the public one.
- visibility = [ "//content/public/renderer:renderer_sources" ]
+ visibility = [
+ ":for_content_tests",
+ "//content/public/renderer:renderer_sources",
+ ]
sources = rebase_path(content_renderer_gypi_values.private_renderer_sources,
".",
@@ -23,6 +26,7 @@ source_set("renderer") {
]
defines = []
+ public_deps = []
deps = [
"//base:i18n",
"//cc",
@@ -33,7 +37,7 @@ source_set("renderer") {
"//components/scheduler:scheduler",
"//components/url_formatter",
"//content:resources",
- "//content/common:mojo_bindings",
+ "//content/common",
"//content/gpu:gpu_sources",
"//content/public/child:child_sources",
"//content/public/common:common_sources",
@@ -87,7 +91,7 @@ source_set("renderer") {
allow_circular_includes_from = []
if (use_aura) {
- deps += [ "//content/renderer/mus" ]
+ public_deps += [ "//content/renderer/mus" ]
allow_circular_includes_from += [ "//content/renderer/mus" ]
}
@@ -247,3 +251,13 @@ source_set("renderer") {
deps += [ "//ui/ozone" ]
}
}
+
+# 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 = [
+ ":renderer",
+ ]
+ }
+}
« no previous file with comments | « content/public/utility/BUILD.gn ('k') | content/renderer/mus/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698