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("//remoting/remoting_options.gni") |
6 import("//media/media_options.gni") | 7 import("//media/media_options.gni") |
7 | 8 |
8 static_library("protocol") { | 9 static_library("protocol") { |
9 sources = [ | 10 sources = [ |
10 "audio_decode_scheduler.cc", | 11 "audio_decode_scheduler.cc", |
11 "audio_decode_scheduler.h", | 12 "audio_decode_scheduler.h", |
12 "audio_pump.cc", | |
13 "audio_pump.h", | |
14 "audio_reader.cc", | 13 "audio_reader.cc", |
15 "audio_reader.h", | 14 "audio_reader.h", |
16 "audio_stub.h", | 15 "audio_stub.h", |
17 "audio_writer.cc", | |
18 "audio_writer.h", | |
19 "auth_util.cc", | 16 "auth_util.cc", |
20 "auth_util.h", | 17 "auth_util.h", |
21 "authenticator.cc", | 18 "authenticator.cc", |
22 "authenticator.h", | 19 "authenticator.h", |
23 "capability_names.h", | 20 "capability_names.h", |
24 "channel_authenticator.h", | 21 "channel_authenticator.h", |
25 "channel_dispatcher_base.cc", | 22 "channel_dispatcher_base.cc", |
26 "channel_dispatcher_base.h", | 23 "channel_dispatcher_base.h", |
27 "channel_multiplexer.cc", | 24 "channel_multiplexer.cc", |
28 "channel_multiplexer.h", | 25 "channel_multiplexer.h", |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 public_deps = [ | 183 public_deps = [ |
187 "//remoting/proto", | 184 "//remoting/proto", |
188 "//third_party/libjingle", | 185 "//third_party/libjingle", |
189 ] | 186 ] |
190 deps = [ | 187 deps = [ |
191 "//base", | 188 "//base", |
192 "//crypto", | 189 "//crypto", |
193 "//jingle:jingle_glue", | 190 "//jingle:jingle_glue", |
194 "//net", | 191 "//net", |
195 "//remoting/base", | 192 "//remoting/base", |
196 "//remoting/codec", | 193 "//remoting/codec:decoder", |
197 "//remoting/signaling", | 194 "//remoting/signaling", |
198 "//third_party/boringssl", | 195 "//third_party/boringssl", |
199 "//third_party/libyuv", | 196 "//third_party/libyuv", |
200 ] | 197 ] |
201 | 198 |
202 if (!is_nacl) { | 199 if (!is_nacl) { |
203 if (!is_android) { | |
204 sources += [ | |
205 "ice_connection_to_client.cc", | |
206 "ice_connection_to_client.h", | |
207 ] | |
208 } | |
209 | |
210 sources += [ | 200 sources += [ |
211 "capture_scheduler.cc", | |
212 "capture_scheduler.h", | |
213 "chromium_port_allocator_factory.cc", | 201 "chromium_port_allocator_factory.cc", |
214 "chromium_port_allocator_factory.h", | 202 "chromium_port_allocator_factory.h", |
215 "chromium_socket_factory.cc", | 203 "chromium_socket_factory.cc", |
216 "chromium_socket_factory.h", | 204 "chromium_socket_factory.h", |
217 "video_frame_pump.cc", | |
218 "video_frame_pump.h", | |
219 "webrtc_audio_module.cc", | 205 "webrtc_audio_module.cc", |
220 "webrtc_audio_module.h", | 206 "webrtc_audio_module.h", |
221 "webrtc_audio_sink_adapter.cc", | 207 "webrtc_audio_sink_adapter.cc", |
222 "webrtc_audio_sink_adapter.h", | 208 "webrtc_audio_sink_adapter.h", |
223 "webrtc_audio_source_adapter.cc", | |
224 "webrtc_audio_source_adapter.h", | |
225 "webrtc_audio_stream.cc", | |
226 "webrtc_audio_stream.h", | |
227 "webrtc_connection_to_client.cc", | |
228 "webrtc_connection_to_client.h", | |
229 "webrtc_connection_to_host.cc", | 209 "webrtc_connection_to_host.cc", |
230 "webrtc_connection_to_host.h", | 210 "webrtc_connection_to_host.h", |
231 "webrtc_data_stream_adapter.cc", | 211 "webrtc_data_stream_adapter.cc", |
232 "webrtc_data_stream_adapter.h", | 212 "webrtc_data_stream_adapter.h", |
233 "webrtc_dummy_video_capturer.cc", | 213 "webrtc_dummy_video_capturer.cc", |
234 "webrtc_dummy_video_capturer.h", | 214 "webrtc_dummy_video_capturer.h", |
235 "webrtc_dummy_video_encoder.cc", | 215 "webrtc_dummy_video_encoder.cc", |
236 "webrtc_dummy_video_encoder.h", | 216 "webrtc_dummy_video_encoder.h", |
237 "webrtc_frame_scheduler.h", | |
238 "webrtc_frame_scheduler_simple.cc", | |
239 "webrtc_frame_scheduler_simple.h", | |
240 "webrtc_transport.cc", | 217 "webrtc_transport.cc", |
241 "webrtc_transport.h", | 218 "webrtc_transport.h", |
242 "webrtc_video_renderer_adapter.cc", | 219 "webrtc_video_renderer_adapter.cc", |
243 "webrtc_video_renderer_adapter.h", | 220 "webrtc_video_renderer_adapter.h", |
244 "webrtc_video_stream.cc", | |
245 "webrtc_video_stream.h", | |
246 ] | 221 ] |
247 | 222 |
248 if (enable_webrtc) { | 223 if (enable_remoting_host) { |
249 deps += [ | 224 sources += [ |
250 "//third_party/libjingle/webrtc:libjingle_webrtc", | 225 "webrtc_audio_source_adapter.cc", |
251 "//third_party/libjingle_xmpp", | 226 "webrtc_audio_source_adapter.h", |
252 ] | 227 "webrtc_audio_stream.cc", |
253 } else { | 228 "webrtc_audio_stream.h", |
254 sources -= [ | |
255 "webrtc_connection_to_client.cc", | 229 "webrtc_connection_to_client.cc", |
256 "webrtc_transport.cc", | 230 "webrtc_connection_to_client.h", |
| 231 "webrtc_frame_scheduler.h", |
| 232 "webrtc_frame_scheduler_simple.cc", |
| 233 "webrtc_frame_scheduler_simple.h", |
257 "webrtc_video_stream.cc", | 234 "webrtc_video_stream.cc", |
| 235 "webrtc_video_stream.h", |
258 ] | 236 ] |
259 } | 237 } |
| 238 |
| 239 deps += [ "//third_party/libjingle/webrtc:libjingle_webrtc" ] |
| 240 } |
| 241 |
| 242 if (enable_remoting_host) { |
| 243 sources += [ |
| 244 "audio_pump.cc", |
| 245 "audio_pump.h", |
| 246 "audio_writer.cc", |
| 247 "audio_writer.h", |
| 248 "capture_scheduler.cc", |
| 249 "capture_scheduler.h", |
| 250 "ice_connection_to_client.cc", |
| 251 "ice_connection_to_client.h", |
| 252 "video_frame_pump.cc", |
| 253 "video_frame_pump.h", |
| 254 ] |
| 255 deps += [ "//remoting/codec:encoder" ] |
260 } | 256 } |
261 } | 257 } |
262 | 258 |
263 static_library("test_support") { | 259 static_library("test_support") { |
264 testonly = true | 260 testonly = true |
265 | 261 |
266 sources = [ | 262 sources = [ |
267 "fake_audio_source.cc", | 263 "fake_audio_source.cc", |
268 "fake_audio_source.h", | 264 "fake_audio_source.h", |
269 "fake_authenticator.cc", | 265 "fake_authenticator.cc", |
(...skipping 20 matching lines...) Expand all Loading... |
290 ":protocol", | 286 ":protocol", |
291 "//testing/gmock", | 287 "//testing/gmock", |
292 ] | 288 ] |
293 } | 289 } |
294 | 290 |
295 source_set("unit_tests") { | 291 source_set("unit_tests") { |
296 testonly = true | 292 testonly = true |
297 | 293 |
298 sources = [ | 294 sources = [ |
299 "audio_decode_scheduler_unittest.cc", | 295 "audio_decode_scheduler_unittest.cc", |
300 "audio_pump_unittest.cc", | |
301 "authenticator_test_base.cc", | 296 "authenticator_test_base.cc", |
302 "authenticator_test_base.h", | 297 "authenticator_test_base.h", |
303 "capture_scheduler_unittest.cc", | |
304 "channel_multiplexer_unittest.cc", | 298 "channel_multiplexer_unittest.cc", |
305 "channel_socket_adapter_unittest.cc", | 299 "channel_socket_adapter_unittest.cc", |
306 "chromium_socket_factory_unittest.cc", | 300 "chromium_socket_factory_unittest.cc", |
307 "client_video_dispatcher_unittest.cc", | 301 "client_video_dispatcher_unittest.cc", |
308 "clipboard_echo_filter_unittest.cc", | 302 "clipboard_echo_filter_unittest.cc", |
309 "clipboard_filter_unittest.cc", | 303 "clipboard_filter_unittest.cc", |
310 "connection_tester.cc", | 304 "connection_tester.cc", |
311 "connection_tester.h", | 305 "connection_tester.h", |
312 "content_description_unittest.cc", | 306 "content_description_unittest.cc", |
313 "http_ice_config_request_unittest.cc", | 307 "http_ice_config_request_unittest.cc", |
(...skipping 11 matching lines...) Expand all Loading... |
325 "port_range_unittest.cc", | 319 "port_range_unittest.cc", |
326 "ppapi_module_stub.cc", | 320 "ppapi_module_stub.cc", |
327 "pseudotcp_adapter_unittest.cc", | 321 "pseudotcp_adapter_unittest.cc", |
328 "sdp_message_unittest.cc", | 322 "sdp_message_unittest.cc", |
329 "session_config_unittest.cc", | 323 "session_config_unittest.cc", |
330 "spake2_authenticator_unittest.cc", | 324 "spake2_authenticator_unittest.cc", |
331 "ssl_hmac_channel_authenticator_unittest.cc", | 325 "ssl_hmac_channel_authenticator_unittest.cc", |
332 "third_party_authenticator_unittest.cc", | 326 "third_party_authenticator_unittest.cc", |
333 "v2_authenticator_unittest.cc", | 327 "v2_authenticator_unittest.cc", |
334 "validating_authenticator_unittest.cc", | 328 "validating_authenticator_unittest.cc", |
335 "video_frame_pump_unittest.cc", | |
336 "webrtc_audio_source_adapter_unittest.cc", | |
337 "webrtc_frame_scheduler_unittest.cc", | |
338 "webrtc_transport_unittest.cc", | 329 "webrtc_transport_unittest.cc", |
339 ] | 330 ] |
340 | 331 |
341 if (!is_android) { | 332 if (enable_remoting_host) { |
342 sources += [ "connection_unittest.cc" ] | 333 sources += [ |
| 334 "audio_pump_unittest.cc", |
| 335 "capture_scheduler_unittest.cc", |
| 336 "connection_unittest.cc", |
| 337 "video_frame_pump_unittest.cc", |
| 338 "webrtc_audio_source_adapter_unittest.cc", |
| 339 "webrtc_frame_scheduler_unittest.cc", |
| 340 ] |
343 } | 341 } |
344 | 342 |
345 deps = [ | 343 deps = [ |
346 ":test_support", | 344 ":test_support", |
347 "//net:test_support", | 345 "//net:test_support", |
348 "//testing/gmock", | 346 "//testing/gmock", |
349 "//testing/gtest", | 347 "//testing/gtest", |
350 ] | 348 ] |
351 } | 349 } |
OLD | NEW |