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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 } | 369 } |
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) { | |
380 sources -= [ | |
381 "filters/decrypting_video_decoder.cc", | |
382 "filters/decrypting_video_decoder.h", | |
383 ] | |
384 } | |
385 | |
386 if (is_android) { | 379 if (is_android) { |
387 sources -= [ | 380 sources -= [ |
388 "filters/decrypting_audio_decoder.cc", | 381 "filters/decrypting_audio_decoder.cc", |
389 "filters/decrypting_audio_decoder.h", | 382 "filters/decrypting_audio_decoder.h", |
| 383 "filters/decrypting_video_decoder.cc", |
| 384 "filters/decrypting_video_decoder.h", |
390 ] | 385 ] |
391 sources += [ | 386 sources += [ |
392 "filters/android/media_codec_audio_decoder.cc", | 387 "filters/android/media_codec_audio_decoder.cc", |
393 "filters/android/media_codec_audio_decoder.h", | 388 "filters/android/media_codec_audio_decoder.h", |
394 ] | 389 ] |
395 } | 390 } |
396 | 391 |
397 if (current_cpu != "arm" && is_chromeos) { | 392 if (current_cpu != "arm" && is_chromeos) { |
398 sources += [ | 393 sources += [ |
399 "filters/h264_bitstream_buffer.cc", | 394 "filters/h264_bitstream_buffer.cc", |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
618 "//testing/gtest", | 613 "//testing/gtest", |
619 "//third_party/libwebm", | 614 "//third_party/libwebm", |
620 "//third_party/libyuv", | 615 "//third_party/libyuv", |
621 "//third_party/widevine/cdm:headers", | 616 "//third_party/widevine/cdm:headers", |
622 "//ui/gfx:test_support", | 617 "//ui/gfx:test_support", |
623 "//url", | 618 "//url", |
624 ] | 619 ] |
625 | 620 |
626 data_deps = [] | 621 data_deps = [] |
627 | 622 |
628 if (disable_ffmpeg_video_decoders) { | 623 if (is_android) { |
629 sources -= [ | 624 sources -= [ |
630 "filters/decrypting_audio_decoder_unittest.cc", | 625 "filters/decrypting_audio_decoder_unittest.cc", |
631 "filters/decrypting_video_decoder_unittest.cc", | 626 "filters/decrypting_video_decoder_unittest.cc", |
632 ] | 627 ] |
633 } | 628 } |
634 if (is_mac || is_ios) { | 629 if (is_mac || is_ios) { |
635 deps += [ "//media/base/mac:unit_tests" ] | 630 deps += [ "//media/base/mac:unit_tests" ] |
636 } | 631 } |
637 | 632 |
638 # If ExternalClearKey is built, we can test CdmAdapter. | 633 # If ExternalClearKey is built, we can test CdmAdapter. |
(...skipping 13 matching lines...) Expand all Loading... |
652 ] | 647 ] |
653 | 648 |
654 deps += [ | 649 deps += [ |
655 "//media/ffmpeg:ffmpeg_unittests", | 650 "//media/ffmpeg:ffmpeg_unittests", |
656 | 651 |
657 # Direct dependency needed for the config | 652 # Direct dependency needed for the config |
658 "//third_party/opus", | 653 "//third_party/opus", |
659 ] | 654 ] |
660 | 655 |
661 if (!disable_ffmpeg_video_decoders) { | 656 if (!disable_ffmpeg_video_decoders) { |
662 sources += [ | 657 # FFmpeg on Android does not include video decoders. |
663 "filters/ffmpeg_video_decoder_unittest.cc", | 658 sources += [ "filters/ffmpeg_video_decoder_unittest.cc" ] |
664 ] | |
665 } | 659 } |
666 } | 660 } |
667 | 661 |
668 if (current_cpu != "arm" && is_chromeos) { | 662 if (current_cpu != "arm" && is_chromeos) { |
669 sources += [ "filters/h264_bitstream_buffer_unittest.cc" ] | 663 sources += [ "filters/h264_bitstream_buffer_unittest.cc" ] |
670 } | 664 } |
671 | 665 |
672 if (proprietary_codecs) { | 666 if (proprietary_codecs) { |
673 sources += [ | 667 sources += [ |
674 "cdm/cenc_utils_unittest.cc", | 668 "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") { | 971 fuzzer_test("media_mp4_avcc_parser_fuzzer") { |
978 sources = [ | 972 sources = [ |
979 "formats/mp4/mp4_avcc_parser_fuzzer.cc", | 973 "formats/mp4/mp4_avcc_parser_fuzzer.cc", |
980 ] | 974 ] |
981 deps = [ | 975 deps = [ |
982 ":media", | 976 ":media", |
983 "//base", | 977 "//base", |
984 ] | 978 ] |
985 } | 979 } |
986 } | 980 } |
OLD | NEW |