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 ] |
24 defines = [] | 27 defines = [] |
25 | 28 |
| 29 public_deps = [] |
26 deps = [ | 30 deps = [ |
27 "//base:i18n", | 31 "//base:i18n", |
28 "//cc", | 32 "//cc", |
29 "//cc/blink", | 33 "//cc/blink", |
30 "//cc/proto", | 34 "//cc/proto", |
31 "//cc/surfaces", | 35 "//cc/surfaces", |
32 "//cc/surfaces:surface_id", | 36 "//cc/surfaces:surface_id", |
33 "//components/scheduler:scheduler", | 37 "//components/scheduler:scheduler", |
34 "//components/url_formatter", | 38 "//components/url_formatter", |
35 "//content:resources", | 39 "//content:resources", |
36 "//content/common:mojo_bindings", | 40 "//content/common", |
37 "//content/gpu:gpu_sources", | 41 "//content/gpu:gpu_sources", |
38 "//content/public/child:child_sources", | 42 "//content/public/child:child_sources", |
39 "//content/public/common:common_sources", | 43 "//content/public/common:common_sources", |
40 "//content/public/common:feature_h264_with_openh264_ffmpeg", | 44 "//content/public/common:feature_h264_with_openh264_ffmpeg", |
41 "//content/public/common:features", | 45 "//content/public/common:features", |
42 "//content/public/common:mojo_bindings", | 46 "//content/public/common:mojo_bindings", |
43 "//crypto:platform", | 47 "//crypto:platform", |
44 "//device/battery:mojo_bindings", | 48 "//device/battery:mojo_bindings", |
45 "//device/bluetooth", | 49 "//device/bluetooth", |
46 "//device/usb/public/interfaces", | 50 "//device/usb/public/interfaces", |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 "//ui/events:events_base", | 84 "//ui/events:events_base", |
81 "//ui/events/blink", | 85 "//ui/events/blink", |
82 "//ui/gl", | 86 "//ui/gl", |
83 "//ui/native_theme", | 87 "//ui/native_theme", |
84 "//ui/surface", | 88 "//ui/surface", |
85 "//v8", | 89 "//v8", |
86 ] | 90 ] |
87 allow_circular_includes_from = [] | 91 allow_circular_includes_from = [] |
88 | 92 |
89 if (use_aura) { | 93 if (use_aura) { |
90 deps += [ "//content/renderer/mus" ] | 94 public_deps += [ "//content/renderer/mus" ] |
91 allow_circular_includes_from += [ "//content/renderer/mus" ] | 95 allow_circular_includes_from += [ "//content/renderer/mus" ] |
92 } | 96 } |
93 | 97 |
94 if (is_mac) { | 98 if (is_mac) { |
95 sources -= [ | 99 sources -= [ |
96 "webscrollbarbehavior_impl_gtkoraura.cc", | 100 "webscrollbarbehavior_impl_gtkoraura.cc", |
97 "webscrollbarbehavior_impl_gtkoraura.h", | 101 "webscrollbarbehavior_impl_gtkoraura.h", |
98 ] | 102 ] |
99 sources += [ | 103 sources += [ |
100 "external_popup_menu.cc", | 104 "external_popup_menu.cc", |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 } | 244 } |
241 | 245 |
242 if (use_seccomp_bpf) { | 246 if (use_seccomp_bpf) { |
243 defines += [ "USE_SECCOMP_BPF" ] | 247 defines += [ "USE_SECCOMP_BPF" ] |
244 } | 248 } |
245 | 249 |
246 if (use_ozone) { | 250 if (use_ozone) { |
247 deps += [ "//ui/ozone" ] | 251 deps += [ "//ui/ozone" ] |
248 } | 252 } |
249 } | 253 } |
| 254 |
| 255 # See comment at the top of //content/BUILD.gn for how this works. |
| 256 group("for_content_tests") { |
| 257 visibility = [ "//content/test/*" ] |
| 258 if (!is_component_build) { |
| 259 public_deps = [ |
| 260 ":renderer", |
| 261 ] |
| 262 } |
| 263 } |
OLD | NEW |