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 import("//third_party/webrtc/build/webrtc.gni") | 9 import("//third_party/webrtc/build/webrtc.gni") |
10 import("//tools/ipc_fuzzer/ipc_fuzzer.gni") | 10 import("//tools/ipc_fuzzer/ipc_fuzzer.gni") |
11 | 11 |
12 source_set("renderer") { | 12 if (is_component_build) { |
| 13 link_target_type = "source_set" |
| 14 } else { |
| 15 link_target_type = "static_library" |
| 16 } |
| 17 target(link_target_type, "renderer") { |
13 # Only the public target should depend on this. All other targets (even | 18 # Only the public target should depend on this. All other targets (even |
14 # internal content ones) should depend on the public one. | 19 # internal content ones) should depend on the public one. |
15 visibility = [ | 20 visibility = [ |
16 ":for_content_tests", | 21 ":for_content_tests", |
17 "//content/public/renderer:renderer_sources", | 22 "//content/public/renderer:renderer_sources", |
18 ] | 23 ] |
19 | 24 |
20 sources = rebase_path(content_renderer_gypi_values.private_renderer_sources, | 25 sources = rebase_path(content_renderer_gypi_values.private_renderer_sources, |
21 ".", | 26 ".", |
22 "//content") | 27 "//content") |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 # For the defines in mojo_media_config. | 269 # For the defines in mojo_media_config. |
265 public_configs = [ "//media/mojo/services:mojo_media_config" ] | 270 public_configs = [ "//media/mojo/services:mojo_media_config" ] |
266 } | 271 } |
267 | 272 |
268 if (!is_component_build) { | 273 if (!is_component_build) { |
269 public_deps = [ | 274 public_deps = [ |
270 ":renderer", | 275 ":renderer", |
271 ] | 276 ] |
272 } | 277 } |
273 } | 278 } |
OLD | NEW |