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/buildflag_header.gni") | 5 import("//build/buildflag_header.gni") |
6 import("//build/config/android/config.gni") | 6 import("//build/config/android/config.gni") |
7 import("//build/config/arm.gni") | 7 import("//build/config/arm.gni") |
8 import("//build/config/features.gni") | 8 import("//build/config/features.gni") |
9 import("//build/config/linux/pkg_config.gni") | 9 import("//build/config/linux/pkg_config.gni") |
10 import("//build/config/ui.gni") | 10 import("//build/config/ui.gni") |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
370 | 370 |
371 if (media_use_libvpx) { | 371 if (media_use_libvpx) { |
372 sources += [ | 372 sources += [ |
373 "filters/vpx_video_decoder.cc", | 373 "filters/vpx_video_decoder.cc", |
374 "filters/vpx_video_decoder.h", | 374 "filters/vpx_video_decoder.h", |
375 ] | 375 ] |
376 deps += [ "//third_party/libvpx" ] | 376 deps += [ "//third_party/libvpx" ] |
377 } | 377 } |
378 | 378 |
379 if (disable_ffmpeg_video_decoders) { | 379 if (disable_ffmpeg_video_decoders) { |
380 sources -= [ | 380 sources -= [ |
381 "filters/decrypting_video_decoder.cc", | 381 "filters/decrypting_video_decoder.cc", |
382 "filters/decrypting_video_decoder.h", | 382 "filters/decrypting_video_decoder.h", |
383 ] | 383 ] |
384 } | 384 } |
385 | 385 |
386 if (is_android) { | 386 if (is_android) { |
387 sources -= [ | 387 sources -= [ |
388 "filters/decrypting_audio_decoder.cc", | 388 "filters/decrypting_audio_decoder.cc", |
389 "filters/decrypting_audio_decoder.h", | 389 "filters/decrypting_audio_decoder.h", |
390 ] | 390 ] |
391 sources += [ | 391 sources += [ |
392 "filters/android/media_codec_audio_decoder.cc", | 392 "filters/android/media_codec_audio_decoder.cc", |
393 "filters/android/media_codec_audio_decoder.h", | 393 "filters/android/media_codec_audio_decoder.h", |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
509 | 509 |
510 if (use_udev) { | 510 if (use_udev) { |
511 deps += [ "//device/udev_linux" ] | 511 deps += [ "//device/udev_linux" ] |
512 sources += [ | 512 sources += [ |
513 "device_monitors/device_monitor_udev.cc", | 513 "device_monitors/device_monitor_udev.cc", |
514 "device_monitors/device_monitor_udev.h", | 514 "device_monitors/device_monitor_udev.h", |
515 ] | 515 ] |
516 } | 516 } |
517 } | 517 } |
518 | 518 |
519 # Must not be a source_set() because CdmManager exposes a static singleton, | |
520 # shared by multiple component()s. | |
521 component("cdm_manager") { | |
522 sources = [ | |
523 "cdm/cdm_manager.cc", | |
524 "cdm/cdm_manager.h", | |
525 ] | |
526 configs += [ ":media_implementation" ] | |
xhwang
2017/05/04 20:46:11
Typically we only use this on the "media" target.
sandersd (OOO until July 31)
2017/05/04 21:03:35
I have restricted the visibility and added a comme
| |
527 deps = [ | |
528 ":media", | |
529 "//base", | |
530 ] | |
531 } | |
532 | |
519 static_library("cdm_paths") { | 533 static_library("cdm_paths") { |
520 sources = [ | 534 sources = [ |
521 "cdm/cdm_paths.cc", | 535 "cdm/cdm_paths.cc", |
522 "cdm/cdm_paths.h", | 536 "cdm/cdm_paths.h", |
523 ] | 537 ] |
524 deps = [ | 538 deps = [ |
525 "//base", | 539 "//base", |
526 ] | 540 ] |
527 } | 541 } |
528 | 542 |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
652 ] | 666 ] |
653 | 667 |
654 deps += [ | 668 deps += [ |
655 "//media/ffmpeg:ffmpeg_unittests", | 669 "//media/ffmpeg:ffmpeg_unittests", |
656 | 670 |
657 # Direct dependency needed for the config | 671 # Direct dependency needed for the config |
658 "//third_party/opus", | 672 "//third_party/opus", |
659 ] | 673 ] |
660 | 674 |
661 if (!disable_ffmpeg_video_decoders) { | 675 if (!disable_ffmpeg_video_decoders) { |
662 sources += [ | 676 sources += [ "filters/ffmpeg_video_decoder_unittest.cc" ] |
663 "filters/ffmpeg_video_decoder_unittest.cc", | |
664 ] | |
665 } | 677 } |
666 } | 678 } |
667 | 679 |
668 if (current_cpu != "arm" && is_chromeos) { | 680 if (current_cpu != "arm" && is_chromeos) { |
669 sources += [ "filters/h264_bitstream_buffer_unittest.cc" ] | 681 sources += [ "filters/h264_bitstream_buffer_unittest.cc" ] |
670 } | 682 } |
671 | 683 |
672 if (proprietary_codecs) { | 684 if (proprietary_codecs) { |
673 sources += [ | 685 sources += [ |
674 "cdm/cenc_utils_unittest.cc", | 686 "cdm/cenc_utils_unittest.cc", |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
977 fuzzer_test("media_mp4_avcc_parser_fuzzer") { | 989 fuzzer_test("media_mp4_avcc_parser_fuzzer") { |
978 sources = [ | 990 sources = [ |
979 "formats/mp4/mp4_avcc_parser_fuzzer.cc", | 991 "formats/mp4/mp4_avcc_parser_fuzzer.cc", |
980 ] | 992 ] |
981 deps = [ | 993 deps = [ |
982 ":media", | 994 ":media", |
983 "//base", | 995 "//base", |
984 ] | 996 ] |
985 } | 997 } |
986 } | 998 } |
OLD | NEW |