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 source_set("renderer") { | 8 # See //content/BUILD.gn for how this works. |
| 9 group("renderer") { |
| 10 if (is_component_build) { |
| 11 deps = [ "//content" ] |
| 12 } else { |
| 13 deps = [ ":renderer_sources" ] |
| 14 } |
| 15 forward_dependent_configs_from = deps |
| 16 } |
| 17 |
| 18 source_set("renderer_sources") { |
| 19 visibility = [ "//content/*" ] |
| 20 |
9 sources = rebase_path(content_renderer_gypi_values.public_renderer_sources, | 21 sources = rebase_path(content_renderer_gypi_values.public_renderer_sources, |
10 ".", "//content") | 22 ".", "//content") |
11 | 23 |
12 configs += [ | 24 configs += [ |
13 "//content:content_implementation", | 25 "//content:content_implementation", |
14 ] | 26 ] |
15 | 27 |
16 deps = [ | 28 deps = [ |
17 "//content/public/common", | 29 "//content/public/common:common_sources", |
18 "//content/renderer", | 30 "//content/renderer", |
19 "//skia", | 31 "//skia", |
20 "//third_party/libjingle", | 32 "//third_party/libjingle", |
21 "//third_party/WebKit/public:blink_headers", | 33 "//third_party/WebKit/public:blink_headers", |
22 "//third_party/widevine/cdm:version_h", | 34 "//third_party/widevine/cdm:version_h", |
23 "//ui/gfx", | 35 "//ui/gfx", |
24 "//v8", | 36 "//v8", |
25 ] | 37 ] |
26 | 38 |
27 allow_circular_includes_from = [ | 39 allow_circular_includes_from = [ |
28 # This target is a pair with content/renderer. They always go together and | 40 # This target is a pair with content/renderer. They always go together and |
29 # include headers from each other. | 41 # include headers from each other. |
30 "//content/renderer", | 42 # TODO(brettw) enable this when this permits non-dependent targets. |
| 43 #"//content/renderer", |
31 ] | 44 ] |
32 | 45 |
33 if (enable_webrtc) { | 46 if (enable_webrtc) { |
34 sources += rebase_path( | 47 sources += rebase_path( |
35 content_renderer_gypi_values.public_renderer_webrtc_sources, | 48 content_renderer_gypi_values.public_renderer_webrtc_sources, |
36 ".", "//content") | 49 ".", "//content") |
37 } | 50 } |
38 } | 51 } |
OLD | NEW |