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") | |
7 | 6 |
8 # See //content/BUILD.gn for how this works. | 7 # See //content/BUILD.gn for how this works. |
9 group("renderer") { | 8 group("renderer") { |
10 if (is_component_build) { | 9 if (is_component_build) { |
11 public_deps = [ | 10 public_deps = [ |
12 "//content", | 11 "//content", |
13 ] | 12 ] |
14 } else { | 13 } else { |
15 public_deps = [ | 14 public_deps = [ |
16 ":renderer_sources", | 15 ":renderer_sources", |
17 ] | 16 ] |
18 } | 17 } |
19 } | 18 } |
20 | 19 |
21 if (is_component_build) { | 20 if (is_component_build) { |
22 link_target_type = "source_set" | 21 link_target_type = "source_set" |
23 } else { | 22 } else { |
24 link_target_type = "static_library" | 23 link_target_type = "static_library" |
25 } | 24 } |
26 target(link_target_type, "renderer_sources") { | 25 target(link_target_type, "renderer_sources") { |
27 # External code should depend on via ":renderer" above. | 26 # External code should depend on via ":renderer" above. |
28 visibility = [ "//content/*" ] | 27 visibility = [ "//content/*" ] |
29 | 28 |
30 sources = rebase_path(content_renderer_gypi_values.public_renderer_sources, | 29 sources = [ |
31 ".", | 30 "android_content_detection_prefixes.cc", |
32 "//content") | 31 "android_content_detection_prefixes.h", |
| 32 "browser_plugin_delegate.cc", |
| 33 "browser_plugin_delegate.h", |
| 34 "chrome_object_extensions_utils.cc", |
| 35 "chrome_object_extensions_utils.h", |
| 36 "content_renderer_client.cc", |
| 37 "content_renderer_client.h", |
| 38 "context_menu_client.h", |
| 39 "document_state.cc", |
| 40 "document_state.h", |
| 41 "media_stream_audio_renderer.h", |
| 42 "media_stream_audio_sink.cc", |
| 43 "media_stream_audio_sink.h", |
| 44 "media_stream_sink.h", |
| 45 "media_stream_video_renderer.h", |
| 46 "navigation_state.cc", |
| 47 "navigation_state.h", |
| 48 "pepper_plugin_instance.h", |
| 49 "platform_event_observer.h", |
| 50 "render_accessibility.h", |
| 51 "render_frame.h", |
| 52 "render_frame_observer.cc", |
| 53 "render_frame_observer.h", |
| 54 "render_frame_observer_tracker.h", |
| 55 "render_thread.cc", |
| 56 "render_thread.h", |
| 57 "render_thread_observer.cc", |
| 58 "render_thread_observer.h", |
| 59 "render_view.h", |
| 60 "render_view_observer.cc", |
| 61 "render_view_observer.h", |
| 62 "render_view_observer_tracker.h", |
| 63 "render_view_visitor.h", |
| 64 "renderer_ppapi_host.h", |
| 65 "resource_fetcher.h", |
| 66 "video_encode_accelerator.cc", |
| 67 "video_encode_accelerator.h", |
| 68 ] |
33 | 69 |
34 configs += [ "//content:content_implementation" ] | 70 configs += [ "//content:content_implementation" ] |
35 | 71 |
36 deps = [ | 72 deps = [ |
37 "//content/public/child:child_sources", | 73 "//content/public/child:child_sources", |
38 "//content/public/common:common_sources", | 74 "//content/public/common:common_sources", |
39 "//content/renderer", | 75 "//content/renderer", |
40 "//gin", | 76 "//gin", |
41 "//media", | 77 "//media", |
42 "//media/gpu/ipc/client", | 78 "//media/gpu/ipc/client", |
43 "//net", | 79 "//net", |
44 "//ppapi/c", | 80 "//ppapi/c", |
45 "//skia", | 81 "//skia", |
46 "//third_party/WebKit/public:blink_headers", | 82 "//third_party/WebKit/public:blink_headers", |
47 "//third_party/libjingle", | 83 "//third_party/libjingle", |
48 "//third_party/widevine/cdm:version_h", | 84 "//third_party/widevine/cdm:version_h", |
49 "//ui/base", | 85 "//ui/base", |
50 "//ui/base/ime", | 86 "//ui/base/ime", |
51 "//ui/gfx", | 87 "//ui/gfx", |
52 "//v8", | 88 "//v8", |
53 ] | 89 ] |
54 | 90 |
55 allow_circular_includes_from = [ | 91 allow_circular_includes_from = [ |
56 # This target is a pair with content/renderer. They always go together and | 92 # This target is a pair with content/renderer. They always go together and |
57 # include headers from each other. | 93 # include headers from each other. |
58 "//content/renderer", | 94 "//content/renderer", |
59 ] | 95 ] |
60 | 96 |
61 if (enable_webrtc) { | 97 if (enable_webrtc) { |
62 sources += | 98 sources += [ |
63 rebase_path(content_renderer_gypi_values.public_renderer_webrtc_sources, | 99 "media_stream_renderer_factory.h", |
64 ".", | 100 "media_stream_utils.cc", |
65 "//content") | 101 "media_stream_utils.h", |
| 102 "media_stream_video_sink.cc", |
| 103 "media_stream_video_sink.h", |
| 104 "webrtc_log_message_delegate.h", |
| 105 ] |
66 deps += [ | 106 deps += [ |
67 "//content/public/common:feature_h264_with_openh264_ffmpeg", | 107 "//content/public/common:feature_h264_with_openh264_ffmpeg", |
68 "//content/public/common:features", | 108 "//content/public/common:features", |
69 "//third_party/webrtc", | 109 "//third_party/webrtc", |
70 ] | 110 ] |
71 } | 111 } |
72 | 112 |
73 if (enable_plugins) { | 113 if (enable_plugins) { |
74 sources += | 114 sources += [ "plugin_instance_throttler.h" ] |
75 rebase_path(content_renderer_gypi_values.public_renderer_plugin_sources, | |
76 ".", | |
77 "//content") | |
78 } | 115 } |
79 } | 116 } |
OLD | NEW |