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("//content/renderer/renderer.gni") | 6 import("//content/renderer/renderer.gni") |
7 | 7 |
8 # See //content/BUILD.gn for how this works. | 8 # See //content/BUILD.gn for how this works. |
9 group("renderer") { | 9 group("renderer") { |
10 if (is_component_build) { | 10 if (is_component_build) { |
11 public_deps = [ | 11 public_deps = [ |
12 "//content", | 12 "//content", |
13 ] | 13 ] |
14 } else { | 14 } else { |
15 public_deps = [ | 15 public_deps = [ |
16 ":renderer_sources", | 16 ":renderer_sources", |
17 ] | 17 ] |
18 } | 18 } |
19 } | 19 } |
20 | 20 |
21 source_set("renderer_sources") { | 21 source_set("renderer_sources") { |
| 22 # External code should depend on via ":renderer" above. |
22 visibility = [ "//content/*" ] | 23 visibility = [ "//content/*" ] |
23 | 24 |
24 sources = rebase_path(content_renderer_gypi_values.public_renderer_sources, | 25 sources = rebase_path(content_renderer_gypi_values.public_renderer_sources, |
25 ".", | 26 ".", |
26 "//content") | 27 "//content") |
27 | 28 |
28 configs += [ "//content:content_implementation" ] | 29 configs += [ "//content:content_implementation" ] |
29 | 30 |
30 deps = [ | 31 deps = [ |
31 "//content/public/child:child_sources", | 32 "//content/public/child:child_sources", |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 ] | 64 ] |
64 } | 65 } |
65 | 66 |
66 if (enable_plugins) { | 67 if (enable_plugins) { |
67 sources += | 68 sources += |
68 rebase_path(content_renderer_gypi_values.public_renderer_plugin_sources, | 69 rebase_path(content_renderer_gypi_values.public_renderer_plugin_sources, |
69 ".", | 70 ".", |
70 "//content") | 71 "//content") |
71 } | 72 } |
72 } | 73 } |
OLD | NEW |