| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
| 6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
| 7 import("//content/renderer/renderer.gni") | 7 import("//content/renderer/renderer.gni") |
| 8 import("//media/media_options.gni") | 8 import("//media/media_options.gni") |
| 9 | 9 |
| 10 source_set("renderer") { | 10 source_set("renderer") { |
| 11 # Only the public target should depend on this. All other targets (even | 11 # Only the public target should depend on this. All other targets (even |
| 12 # internal content ones) should depend on the public one. | 12 # internal content ones) should depend on the public one. |
| 13 visibility = [ "//content/public/renderer:renderer_sources" ] | 13 visibility = [ |
| 14 ":for_content_tests", |
| 15 "//content/public/renderer:renderer_sources", |
| 16 ] |
| 14 | 17 |
| 15 sources = rebase_path(content_renderer_gypi_values.private_renderer_sources, | 18 sources = rebase_path(content_renderer_gypi_values.private_renderer_sources, |
| 16 ".", | 19 ".", |
| 17 "//content") | 20 "//content") |
| 18 | 21 |
| 19 configs += [ | 22 configs += [ |
| 20 "//content:content_implementation", | 23 "//content:content_implementation", |
| 21 "//build/config/compiler:no_size_t_to_int_warning", | 24 "//build/config/compiler:no_size_t_to_int_warning", |
| 22 "//content/public/common:mojo_shell_client", | 25 "//content/public/common:mojo_shell_client", |
| 23 ] | 26 ] |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 } | 243 } |
| 241 | 244 |
| 242 if (use_seccomp_bpf) { | 245 if (use_seccomp_bpf) { |
| 243 defines += [ "USE_SECCOMP_BPF" ] | 246 defines += [ "USE_SECCOMP_BPF" ] |
| 244 } | 247 } |
| 245 | 248 |
| 246 if (use_ozone) { | 249 if (use_ozone) { |
| 247 deps += [ "//ui/ozone" ] | 250 deps += [ "//ui/ozone" ] |
| 248 } | 251 } |
| 249 } | 252 } |
| 253 |
| 254 # See comment at the top of //content/BUILD.gn for how this works. |
| 255 group("for_content_tests") { |
| 256 visibility = [ "//content/test/*" ] |
| 257 if (!is_component_build) { |
| 258 public_deps = [ |
| 259 ":renderer", |
| 260 ] |
| 261 } |
| 262 } |
| OLD | NEW |