Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(182)

Side by Side Diff: media/cast/BUILD.gn

Issue 2462863002: Fix direct dependencies in //media/cast/BUILD.gn. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | media/cast/cast_config.h » ('j') | media/cast/cast_config.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/android/config.gni") 5 import("//build/config/android/config.gni")
6 import("//build/config/features.gni") 6 import("//build/config/features.gni")
7 import("//build/config/ui.gni") 7 import("//build/config/ui.gni")
8 import("//testing/test.gni") 8 import("//testing/test.gni")
9 import("//third_party/protobuf/proto_library.gni") 9 import("//third_party/protobuf/proto_library.gni")
10 10
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 "net/rtp/rtp_parser.cc", 99 "net/rtp/rtp_parser.cc",
100 "net/rtp/rtp_parser.h", 100 "net/rtp/rtp_parser.h",
101 "net/rtp/rtp_sender.cc", 101 "net/rtp/rtp_sender.cc",
102 "net/rtp/rtp_sender.h", 102 "net/rtp/rtp_sender.h",
103 "net/udp_transport.cc", 103 "net/udp_transport.cc",
104 "net/udp_transport.h", 104 "net/udp_transport.h",
105 ] 105 ]
106 106
107 deps = [ 107 deps = [
108 ":common", 108 ":common",
109 "//base",
110 "//net",
109 ] 111 ]
110 112
111 public_deps = [ 113 public_deps = [
112 ":common", 114 ":common",
113 ] 115 ]
114 } 116 }
115 117
116 source_set("sender") { 118 source_set("sender") {
117 sources = [ 119 sources = [
118 "cast_sender.h", 120 "cast_sender.h",
(...skipping 27 matching lines...) Expand all
146 "sender/video_sender.h", 148 "sender/video_sender.h",
147 "sender/vp8_encoder.cc", 149 "sender/vp8_encoder.cc",
148 "sender/vp8_encoder.h", 150 "sender/vp8_encoder.h",
149 "sender/vp8_quantizer_parser.cc", 151 "sender/vp8_quantizer_parser.cc",
150 "sender/vp8_quantizer_parser.h", 152 "sender/vp8_quantizer_parser.h",
151 ] 153 ]
152 154
153 deps = [ 155 deps = [
154 ":common", 156 ":common",
155 ":net", 157 ":net",
158 "//base",
156 "//media", 159 "//media",
157 "//media:media_features", 160 "//media:media_features",
158 "//media:shared_memory_support", 161 "//media:shared_memory_support",
159 "//third_party/libvpx", 162 "//third_party/libvpx",
160 "//third_party/opus", 163 "//third_party/opus",
161 "//ui/gfx/geometry", 164 "//ui/gfx/geometry",
162 ] 165 ]
163 166
164 libs = [] 167 libs = []
165 168
(...skipping 28 matching lines...) Expand all
194 "receiver/cast_receiver_impl.h", 197 "receiver/cast_receiver_impl.h",
195 "receiver/frame_receiver.cc", 198 "receiver/frame_receiver.cc",
196 "receiver/frame_receiver.h", 199 "receiver/frame_receiver.h",
197 "receiver/video_decoder.cc", 200 "receiver/video_decoder.cc",
198 "receiver/video_decoder.h", 201 "receiver/video_decoder.h",
199 ] 202 ]
200 203
201 deps = [ 204 deps = [
202 ":common", 205 ":common",
203 ":net", 206 ":net",
207 "//base",
204 "//media", 208 "//media",
205 "//media:shared_memory_support", 209 "//media:shared_memory_support",
206 "//third_party/libvpx", 210 "//third_party/libvpx",
207 "//third_party/libyuv", 211 "//third_party/libyuv",
208 "//third_party/opus", 212 "//third_party/opus",
209 "//ui/gfx/geometry", 213 "//ui/gfx/geometry",
210 ] 214 ]
211 } 215 }
212 216
213 static_library("test_support") { 217 static_library("test_support") {
(...skipping 25 matching lines...) Expand all
239 "test/utility/test_util.h", 243 "test/utility/test_util.h",
240 "test/utility/udp_proxy.cc", 244 "test/utility/udp_proxy.cc",
241 "test/utility/udp_proxy.h", 245 "test/utility/udp_proxy.h",
242 "test/utility/video_utility.cc", 246 "test/utility/video_utility.cc",
243 "test/utility/video_utility.h", 247 "test/utility/video_utility.h",
244 ] 248 ]
245 249
246 deps = [ 250 deps = [
247 ":net", 251 ":net",
248 ":receiver", 252 ":receiver",
253 ":sender",
249 "//base/test:test_support", 254 "//base/test:test_support",
250 "//media:test_support", 255 "//media:test_support",
251 "//media/base:test_support", 256 "//media/base:test_support",
257 "//net",
252 "//testing/gtest", 258 "//testing/gtest",
253 "//third_party/libyuv", 259 "//third_party/libyuv",
254 "//third_party/mt19937ar", 260 "//third_party/mt19937ar",
255 "//ui/gfx:test_support", 261 "//ui/gfx:test_support",
256 ] 262 ]
257 263
258 # FFMPEG software video decoders are not available on Android and/or 264 # FFMPEG software video decoders are not available on Android and/or
259 # Chromecast content_shell builds. 265 # Chromecast content_shell builds.
260 # 266 #
261 # TODO(miu): There *are* hardware decoder APIs available via FFMPEG, and we 267 # TODO(miu): There *are* hardware decoder APIs available via FFMPEG, and we
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 "sender/video_encoder_unittest.cc", 323 "sender/video_encoder_unittest.cc",
318 "sender/video_sender_unittest.cc", 324 "sender/video_sender_unittest.cc",
319 "sender/vp8_quantizer_parser_unittest.cc", 325 "sender/vp8_quantizer_parser_unittest.cc",
320 "test/end2end_unittest.cc", 326 "test/end2end_unittest.cc",
321 "test/utility/audio_utility_unittest.cc", 327 "test/utility/audio_utility_unittest.cc",
322 "test/utility/barcode_unittest.cc", 328 "test/utility/barcode_unittest.cc",
323 ] 329 ]
324 330
325 deps = [ 331 deps = [
326 ":common", 332 ":common",
333 ":net",
327 ":receiver", 334 ":receiver",
328 ":sender", 335 ":sender",
329 ":test_support", 336 ":test_support",
337 "//base",
330 "//base/test:run_all_unittests", 338 "//base/test:run_all_unittests",
339 "//base/test:test_support",
340 "//media",
341 "//media:shared_memory_support",
342 "//media/base",
343 "//media/base:test_support",
344 "//net",
331 "//testing/gmock", 345 "//testing/gmock",
332 "//testing/gtest", 346 "//testing/gtest",
347 "//third_party/opus",
333 ] 348 ]
334 349
335 if (is_android) { 350 if (is_android) {
336 deps += [ "//testing/android/native_test:native_test_native_code" ] 351 deps += [ "//testing/android/native_test:native_test_native_code" ]
337 } 352 }
338 353
339 if (is_ios || is_mac) { 354 if (is_ios || is_mac) {
340 sources += [ "sender/h264_vt_encoder_unittest.cc" ] 355 sources += [ "sender/h264_vt_encoder_unittest.cc" ]
341 356
342 deps += [ "//third_party/ffmpeg" ] 357 deps += [ "//third_party/ffmpeg" ]
(...skipping 20 matching lines...) Expand all
363 testonly = true 378 testonly = true
364 sources = [ 379 sources = [
365 "test/cast_benchmarks.cc", 380 "test/cast_benchmarks.cc",
366 ] 381 ]
367 deps = [ 382 deps = [
368 ":common", 383 ":common",
369 ":net", 384 ":net",
370 ":receiver", 385 ":receiver",
371 ":sender", 386 ":sender",
372 ":test_support", 387 ":test_support",
388 "//base",
389 "//base/test:test_support",
390 "//media:shared_memory_support",
391 "//media/base",
392 "//media/base:test_support",
373 "//net", 393 "//net",
374 "//testing/gtest", 394 "//testing/gtest",
395 "//ui/gfx/geometry",
375 ] 396 ]
376 } 397 }
377 398
378 executable("cast_receiver_app") { 399 executable("cast_receiver_app") {
379 testonly = true 400 testonly = true
380 sources = [ 401 sources = [
381 "test/receiver.cc", 402 "test/receiver.cc",
382 ] 403 ]
383 deps = [ 404 deps = [
384 ":common", 405 ":common",
385 ":net", 406 ":net",
386 ":receiver", 407 ":receiver",
387 ":test_support", 408 ":test_support",
409 "//base",
388 "//build/win:default_exe_manifest", 410 "//build/win:default_exe_manifest",
411 "//media:shared_memory_support",
412 "//media/audio",
413 "//media/base",
414 "//net",
415 "//ui/gfx/geometry",
389 ] 416 ]
390 417
391 if (is_linux && !is_chromeos && use_x11) { 418 if (is_linux && !is_chromeos && use_x11) {
392 sources += [ 419 sources += [
393 "test/linux_output_window.cc", 420 "test/linux_output_window.cc",
394 "test/linux_output_window.h", 421 "test/linux_output_window.h",
395 ] 422 ]
396 configs += [ 423 configs += [
397 "//build/config/linux:x11", 424 "//build/config/linux:x11",
398 "//build/config/linux:xext", 425 "//build/config/linux:xext",
399 ] 426 ]
400 deps += [ "//third_party/libyuv" ] 427 deps += [ "//third_party/libyuv" ]
401 } 428 }
402 } 429 }
403 430
404 executable("cast_sender_app") { 431 executable("cast_sender_app") {
405 testonly = true 432 testonly = true
406 sources = [ 433 sources = [
407 "test/sender.cc", 434 "test/sender.cc",
408 ] 435 ]
409 deps = [ 436 deps = [
410 ":common", 437 ":common",
411 ":net", 438 ":net",
412 ":sender", 439 ":sender",
413 ":test_support", 440 ":test_support",
441 "//base",
414 "//build/win:default_exe_manifest", 442 "//build/win:default_exe_manifest",
443 "//media/base",
415 ] 444 ]
416 } 445 }
417 446
418 proto_library("network_simulation_model_proto") { 447 proto_library("network_simulation_model_proto") {
419 visibility = [ ":cast_simulator" ] 448 visibility = [ ":cast_simulator" ]
420 sources = [ 449 sources = [
421 "test/proto/network_simulation_model.proto", 450 "test/proto/network_simulation_model.proto",
422 ] 451 ]
423 } 452 }
424 453
425 executable("cast_simulator") { 454 executable("cast_simulator") {
426 testonly = true 455 testonly = true
427 sources = [ 456 sources = [
428 "test/simulator.cc", 457 "test/simulator.cc",
429 ] 458 ]
430 deps = [ 459 deps = [
431 ":common", 460 ":common",
432 ":net", 461 ":net",
433 ":network_simulation_model_proto", 462 ":network_simulation_model_proto",
463 ":receiver",
434 ":sender", 464 ":sender",
435 ":test_support", 465 ":test_support",
466 "//base",
467 "//base/test:test_support",
436 "//build/win:default_exe_manifest", 468 "//build/win:default_exe_manifest",
469 "//media:shared_memory_support",
470 "//media/base",
471 "//media/base:test_support",
437 ] 472 ]
438 } 473 }
439 474
440 executable("generate_barcode_video") { 475 executable("generate_barcode_video") {
441 testonly = true 476 testonly = true
442 sources = [ 477 sources = [
443 "test/utility/generate_barcode_video.cc", 478 "test/utility/generate_barcode_video.cc",
444 ] 479 ]
445 deps = [ 480 deps = [
446 ":test_support", 481 ":test_support",
(...skipping 21 matching lines...) Expand all
468 executable("udp_proxy") { 503 executable("udp_proxy") {
469 testonly = true 504 testonly = true
470 sources = [ 505 sources = [
471 "test/utility/udp_proxy_main.cc", 506 "test/utility/udp_proxy_main.cc",
472 ] 507 ]
473 deps = [ 508 deps = [
474 ":test_support", 509 ":test_support",
475 "//base", 510 "//base",
476 "//build/config/sanitizers:deps", 511 "//build/config/sanitizers:deps",
477 "//build/win:default_exe_manifest", 512 "//build/win:default_exe_manifest",
513 "//net",
478 ] 514 ]
479 } 515 }
480 } else { # !(is_win || is_mac || (is_linux && !is_chromeos)) 516 } else { # !(is_win || is_mac || (is_linux && !is_chromeos))
481 # The testing tools are only built for the desktop platforms. 517 # The testing tools are only built for the desktop platforms.
482 group("testing_tools") { 518 group("testing_tools") {
483 } 519 }
484 } 520 }
485 521
486 if (is_linux && !is_chromeos) { 522 if (is_linux && !is_chromeos) {
487 test("tap_proxy") { 523 test("tap_proxy") {
488 sources = [ 524 sources = [
489 "test/utility/tap_proxy.cc", 525 "test/utility/tap_proxy.cc",
490 ] 526 ]
491 527
492 deps = [ 528 deps = [
493 ":test_support", 529 ":test_support",
494 "//base", 530 "//base",
495 "//media", 531 "//media",
532 "//net",
496 ] 533 ]
497 } 534 }
498 } 535 }
499 536
500 # Projects external to Chromium can build cast_sender and/or cast_receiver to 537 # Projects external to Chromium can build cast_sender and/or cast_receiver to
501 # produce libraries to link with their applications. Chromium targets should 538 # produce libraries to link with their applications. Chromium targets should
502 # not reference these. 539 # not reference these.
503 540
504 static_library("cast_sender") { 541 static_library("cast_sender") {
505 complete_static_lib = true 542 complete_static_lib = true
506 deps = [ 543 deps = [
507 ":sender", 544 ":sender",
508 ] 545 ]
509 } 546 }
510 547
511 static_library("cast_receiver") { 548 static_library("cast_receiver") {
512 complete_static_lib = true 549 complete_static_lib = true
513 deps = [ 550 deps = [
514 ":receiver", 551 ":receiver",
515 ] 552 ]
516 } 553 }
OLDNEW
« no previous file with comments | « no previous file | media/cast/cast_config.h » ('j') | media/cast/cast_config.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698