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 if (is_component_build) { |
| 22 link_target_type = "source_set" |
| 23 } else { |
| 24 link_target_type = "static_library" |
| 25 } |
| 26 target(link_target_type, "renderer_sources") { |
22 # External code should depend on via ":renderer" above. | 27 # External code should depend on via ":renderer" above. |
23 visibility = [ "//content/*" ] | 28 visibility = [ "//content/*" ] |
24 | 29 |
25 sources = rebase_path(content_renderer_gypi_values.public_renderer_sources, | 30 sources = rebase_path(content_renderer_gypi_values.public_renderer_sources, |
26 ".", | 31 ".", |
27 "//content") | 32 "//content") |
28 | 33 |
29 configs += [ "//content:content_implementation" ] | 34 configs += [ "//content:content_implementation" ] |
30 | 35 |
31 deps = [ | 36 deps = [ |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 ] | 70 ] |
66 } | 71 } |
67 | 72 |
68 if (enable_plugins) { | 73 if (enable_plugins) { |
69 sources += | 74 sources += |
70 rebase_path(content_renderer_gypi_values.public_renderer_plugin_sources, | 75 rebase_path(content_renderer_gypi_values.public_renderer_plugin_sources, |
71 ".", | 76 ".", |
72 "//content") | 77 "//content") |
73 } | 78 } |
74 } | 79 } |
OLD | NEW |