diff options
Diffstat (limited to 'content/utility/BUILD.gn')
-rw-r--r-- | content/utility/BUILD.gn | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/content/utility/BUILD.gn b/content/utility/BUILD.gn index 9aea9db..0ef4261 100644 --- a/content/utility/BUILD.gn +++ b/content/utility/BUILD.gn @@ -7,8 +7,11 @@ import("//media/media_options.gni") source_set("utility") { # Only the public target should depend on this. All other targets (even - # internal content ones) should depend on the public one. - visibility = [ "//content/public/utility:utility_sources" ] + # internal content ones other than test) should depend on the public one. + visibility = [ + ":for_content_tests", + "//content/public/utility:utility_sources", + ] sources = rebase_path(content_utility_gypi_values.utility_sources, ".", "//content") @@ -17,11 +20,13 @@ source_set("utility") { deps = [ "//base", + "//components/scheduler", "//content:export", "//content/public/child:child_sources", "//content/public/common:common_sources", "//content/public/common:mojo_bindings", "//courgette:courgette_lib", + "//media/mojo/services:application_factory", "//mojo/common", "//mojo/public/cpp/bindings", "//mojo/shell", @@ -35,3 +40,13 @@ source_set("utility") { deps += [ "//media/mojo/services:application_factory" ] } } + +# 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 = [ + ":utility", + ] + } +} |