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 | 9 |
10 source_set("renderer") { | 10 source_set("renderer") { |
11 # Only the public target should depend on this. All other targets (even | 11 # Only the public target should depend on this. All other targets (even |
12 # internal content ones) should depend on the public one. | 12 # internal content ones) should depend on the public one. |
13 visibility = [ "//content/public/renderer:renderer_sources" ] | 13 visibility = [ "//content/public/renderer:renderer_sources" ] |
14 | 14 |
15 sources = rebase_path(content_renderer_gypi_values.private_renderer_sources, | 15 sources = rebase_path(content_renderer_gypi_values.private_renderer_sources, |
16 ".", "//content") | 16 ".", |
| 17 "//content") |
17 | 18 |
18 configs += [ | 19 configs += [ "//content:content_implementation" ] |
19 "//content:content_implementation", | |
20 ] | |
21 | 20 |
22 deps = [ | 21 deps = [ |
23 # TODO(GYP) bug 376846 remove this. This should be inherited from //net but | 22 # TODO(GYP) bug 376846 remove this. This should be inherited from //net but |
24 # those don't cross component boundaries. | 23 # those don't cross component boundaries. |
25 "//crypto:platform", | 24 "//crypto:platform", |
26 | |
27 "//base/allocator", | 25 "//base/allocator", |
28 "//cc", | 26 "//cc", |
29 "//cc/blink", | 27 "//cc/blink", |
30 "//content:resources", | 28 "//content:resources", |
31 "//content/common:mojo_bindings", | 29 "//content/common:mojo_bindings", |
32 "//content/public/child:child_sources", | 30 "//content/public/child:child_sources", |
33 "//content/public/common:common_sources", | 31 "//content/public/common:common_sources", |
34 "//content/public/common:mojo_bindings", | 32 "//content/public/common:mojo_bindings", |
35 "//device/battery:mojo_bindings", | 33 "//device/battery:mojo_bindings", |
36 "//gin", | 34 "//gin", |
(...skipping 30 matching lines...) Expand all Loading... |
67 "webscrollbarbehavior_impl_gtkoraura.cc", | 65 "webscrollbarbehavior_impl_gtkoraura.cc", |
68 "webscrollbarbehavior_impl_gtkoraura.h", | 66 "webscrollbarbehavior_impl_gtkoraura.h", |
69 ] | 67 ] |
70 sources += [ | 68 sources += [ |
71 "external_popup_menu.cc", | 69 "external_popup_menu.cc", |
72 "external_popup_menu.h", | 70 "external_popup_menu.h", |
73 ] | 71 ] |
74 } | 72 } |
75 | 73 |
76 if (is_android) { | 74 if (is_android) { |
77 sources -= [ | 75 sources -= [ "media/audio_decoder.cc" ] |
78 "media/audio_decoder.cc", | |
79 ] | |
80 sources += [ | 76 sources += [ |
81 "external_popup_menu.cc", | 77 "external_popup_menu.cc", |
82 "external_popup_menu.h", | 78 "external_popup_menu.h", |
83 ] | 79 ] |
84 | 80 |
85 # Add back the Linux file which Android shares. | 81 # Add back the Linux file which Android shares. |
86 set_sources_assignment_filter([]) | 82 set_sources_assignment_filter([]) |
87 sources += [ | 83 sources += [ "render_view_linux.cc" ] |
88 "render_view_linux.cc", | |
89 ] | |
90 | 84 |
91 deps += [ | 85 deps += [ |
92 "//third_party/android_tools:cpu_features", | 86 "//third_party/android_tools:cpu_features", |
93 "//third_party/libphonenumber", | 87 "//third_party/libphonenumber", |
94 ] | 88 ] |
95 } else { | 89 } else { |
96 sources -= [ | 90 sources -= [ |
97 "java/gin_java_bridge_dispatcher.cc", | 91 "java/gin_java_bridge_dispatcher.cc", |
98 "java/gin_java_bridge_dispatcher.h", | 92 "java/gin_java_bridge_dispatcher.h", |
99 "java/gin_java_bridge_object.cc", | 93 "java/gin_java_bridge_object.cc", |
(...skipping 17 matching lines...) Expand all Loading... |
117 "media/media_stream_constraints_util.h", | 111 "media/media_stream_constraints_util.h", |
118 "media/media_stream_dispatcher.h", | 112 "media/media_stream_dispatcher.h", |
119 "media/media_stream_dispatcher_eventhandler.h", | 113 "media/media_stream_dispatcher_eventhandler.h", |
120 "media/media_stream_track.cc", | 114 "media/media_stream_track.cc", |
121 "media/media_stream_track.h", | 115 "media/media_stream_track.h", |
122 ] | 116 ] |
123 } | 117 } |
124 | 118 |
125 if (enable_webrtc) { | 119 if (enable_webrtc) { |
126 sources += rebase_path( | 120 sources += rebase_path( |
127 content_renderer_gypi_values.private_renderer_webrtc_sources, | 121 content_renderer_gypi_values.private_renderer_webrtc_sources, |
128 ".", "//content") | 122 ".", |
| 123 "//content") |
129 deps += [ | 124 deps += [ |
130 "//crypto", | 125 "//crypto", |
131 "//third_party/libyuv", | 126 "//third_party/libyuv", |
132 "//third_party/webrtc/modules/audio_device", | 127 "//third_party/webrtc/modules/audio_device", |
133 "//third_party/webrtc/modules/audio_processing", | 128 "//third_party/webrtc/modules/audio_processing", |
134 "//third_party/libjingle:libjingle_webrtc", | 129 "//third_party/libjingle:libjingle_webrtc", |
135 "//third_party/libjingle:libpeerconnection", | 130 "//third_party/libjingle:libpeerconnection", |
136 ] | 131 ] |
137 } else { | 132 } else { |
138 sources += [ | 133 sources += [ |
139 "media/webrtc_logging_noop.cc", | 134 "media/webrtc_logging_noop.cc", |
140 "media/webrtc_logging.h", | 135 "media/webrtc_logging.h", |
141 ] | 136 ] |
142 } | 137 } |
143 | 138 |
144 if (enable_plugins) { | 139 if (enable_plugins) { |
145 sources += rebase_path( | 140 sources += rebase_path( |
146 content_renderer_gypi_values.private_renderer_plugin_sources, | 141 content_renderer_gypi_values.private_renderer_plugin_sources, |
147 ".", "//content") | 142 ".", |
| 143 "//content") |
148 deps += [ | 144 deps += [ |
149 "//ppapi:ppapi_host", | 145 "//ppapi:ppapi_host", |
150 "//ppapi:ppapi_proxy", | 146 "//ppapi:ppapi_proxy", |
151 "//ppapi:ppapi_shared", | 147 "//ppapi:ppapi_shared", |
152 "//third_party/libyuv", | 148 "//third_party/libyuv", |
153 ] | 149 ] |
154 } else { | 150 } else { |
155 # These files are in the WebRTC list, but also require plugins. | 151 # These files are in the WebRTC list, but also require plugins. |
156 if (enable_webrtc) { | 152 if (enable_webrtc) { |
157 sources -= [ | 153 sources -= [ |
158 "media/webrtc/video_destination_handler.cc", | 154 "media/webrtc/video_destination_handler.cc", |
159 "media/webrtc/video_destination_handler.h", | 155 "media/webrtc/video_destination_handler.h", |
160 ] | 156 ] |
161 } | 157 } |
162 } | 158 } |
163 | 159 |
164 if (enable_plugins && enable_webrtc) { | 160 if (enable_plugins && enable_webrtc) { |
165 sources += rebase_path( | 161 sources += rebase_path( |
166 content_renderer_gypi_values.private_renderer_plugin_webrtc_sources, | 162 content_renderer_gypi_values.private_renderer_plugin_webrtc_sources, |
167 ".", "//content") | 163 ".", |
| 164 "//content") |
168 } | 165 } |
169 | 166 |
170 if (!enable_pepper_cdms) { | 167 if (!enable_pepper_cdms) { |
171 sources -= [ | 168 sources -= [ |
172 "media/crypto/pepper_cdm_wrapper.h", | 169 "media/crypto/pepper_cdm_wrapper.h", |
173 "media/crypto/pepper_cdm_wrapper_impl.cc", | 170 "media/crypto/pepper_cdm_wrapper_impl.cc", |
174 "media/crypto/pepper_cdm_wrapper_impl.h", | 171 "media/crypto/pepper_cdm_wrapper_impl.h", |
175 "media/crypto/ppapi_decryptor.cc", | 172 "media/crypto/ppapi_decryptor.cc", |
176 "media/crypto/ppapi_decryptor.h", | 173 "media/crypto/ppapi_decryptor.h", |
177 ] | 174 ] |
178 } | 175 } |
179 | 176 |
180 if (enable_print_preview) { | 177 if (enable_print_preview) { |
181 deps += [ "//printing" ] | 178 deps += [ "//printing" ] |
182 } | 179 } |
183 | 180 |
184 if (enable_browser_cdms) { | 181 if (enable_browser_cdms) { |
185 sources += [ | 182 sources += [ |
186 "media/crypto/proxy_media_keys.cc", | 183 "media/crypto/proxy_media_keys.cc", |
187 "media/crypto/proxy_media_keys.h", | 184 "media/crypto/proxy_media_keys.h", |
188 "media/crypto/renderer_cdm_manager.cc", | 185 "media/crypto/renderer_cdm_manager.cc", |
189 "media/crypto/renderer_cdm_manager.h", | 186 "media/crypto/renderer_cdm_manager.h", |
190 ] | 187 ] |
191 } | 188 } |
192 } | 189 } |
OLD | NEW |