| 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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 sources += [ | 317 sources += [ |
| 318 "filters/audio_file_reader.cc", | 318 "filters/audio_file_reader.cc", |
| 319 "filters/audio_file_reader.h", | 319 "filters/audio_file_reader.h", |
| 320 "filters/blocking_url_protocol.cc", | 320 "filters/blocking_url_protocol.cc", |
| 321 "filters/ffmpeg_audio_decoder.cc", | 321 "filters/ffmpeg_audio_decoder.cc", |
| 322 "filters/ffmpeg_audio_decoder.h", | 322 "filters/ffmpeg_audio_decoder.h", |
| 323 "filters/ffmpeg_bitstream_converter.h", | 323 "filters/ffmpeg_bitstream_converter.h", |
| 324 "filters/ffmpeg_demuxer.cc", | 324 "filters/ffmpeg_demuxer.cc", |
| 325 "filters/ffmpeg_demuxer.h", | 325 "filters/ffmpeg_demuxer.h", |
| 326 "filters/ffmpeg_glue.cc", | 326 "filters/ffmpeg_glue.cc", |
| 327 "filters/ffmpeg_video_decoder.cc", | |
| 328 "filters/ffmpeg_video_decoder.h", | |
| 329 "filters/in_memory_url_protocol.cc", | 327 "filters/in_memory_url_protocol.cc", |
| 330 "filters/in_memory_url_protocol.h", | 328 "filters/in_memory_url_protocol.h", |
| 331 ] | 329 ] |
| 330 if (!disable_ffmpeg_video_decoders) { |
| 331 sources += [ |
| 332 "filters/ffmpeg_video_decoder.cc", |
| 333 "filters/ffmpeg_video_decoder.h", |
| 334 ] |
| 335 } |
| 332 if (proprietary_codecs) { | 336 if (proprietary_codecs) { |
| 333 sources += [ | 337 sources += [ |
| 334 "filters/ffmpeg_aac_bitstream_converter.cc", | 338 "filters/ffmpeg_aac_bitstream_converter.cc", |
| 335 "filters/ffmpeg_aac_bitstream_converter.h", | 339 "filters/ffmpeg_aac_bitstream_converter.h", |
| 336 "filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc", | 340 "filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc", |
| 337 "filters/ffmpeg_h264_to_annex_b_bitstream_converter.h", | 341 "filters/ffmpeg_h264_to_annex_b_bitstream_converter.h", |
| 338 ] | 342 ] |
| 339 } | 343 } |
| 340 } | 344 } |
| 341 | 345 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 365 } | 369 } |
| 366 | 370 |
| 367 if (media_use_libvpx) { | 371 if (media_use_libvpx) { |
| 368 sources += [ | 372 sources += [ |
| 369 "filters/vpx_video_decoder.cc", | 373 "filters/vpx_video_decoder.cc", |
| 370 "filters/vpx_video_decoder.h", | 374 "filters/vpx_video_decoder.h", |
| 371 ] | 375 ] |
| 372 deps += [ "//third_party/libvpx" ] | 376 deps += [ "//third_party/libvpx" ] |
| 373 } | 377 } |
| 374 | 378 |
| 379 if (disable_ffmpeg_video_decoders) { |
| 380 sources -= [ |
| 381 "filters/decrypting_video_decoder.cc", |
| 382 "filters/decrypting_video_decoder.h", |
| 383 ] |
| 384 } |
| 385 |
| 375 if (is_android) { | 386 if (is_android) { |
| 376 # On Android, FFmpeg is built without video decoders. We only | 387 sources -= [ |
| 377 # support hardware video decoding. | 388 "filters/decrypting_audio_decoder.cc", |
| 378 if (disable_ffmpeg_video_decoders) { | 389 "filters/decrypting_audio_decoder.h", |
| 379 sources -= [ | 390 ] |
| 380 "filters/ffmpeg_video_decoder.cc", | |
| 381 "filters/ffmpeg_video_decoder.h", | |
| 382 ] | |
| 383 } | |
| 384 sources += [ | 391 sources += [ |
| 385 "filters/android/media_codec_audio_decoder.cc", | 392 "filters/android/media_codec_audio_decoder.cc", |
| 386 "filters/android/media_codec_audio_decoder.h", | 393 "filters/android/media_codec_audio_decoder.h", |
| 387 ] | 394 ] |
| 388 sources -= [ | |
| 389 "filters/decrypting_audio_decoder.cc", | |
| 390 "filters/decrypting_audio_decoder.h", | |
| 391 "filters/decrypting_video_decoder.cc", | |
| 392 "filters/decrypting_video_decoder.h", | |
| 393 ] | |
| 394 } | 395 } |
| 395 | 396 |
| 396 if (current_cpu != "arm" && is_chromeos) { | 397 if (current_cpu != "arm" && is_chromeos) { |
| 397 sources += [ | 398 sources += [ |
| 398 "filters/h264_bitstream_buffer.cc", | 399 "filters/h264_bitstream_buffer.cc", |
| 399 "filters/h264_bitstream_buffer.h", | 400 "filters/h264_bitstream_buffer.h", |
| 400 ] | 401 ] |
| 401 } | 402 } |
| 402 | 403 |
| 403 if (is_mac) { | 404 if (is_mac) { |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 617 "//testing/gtest", | 618 "//testing/gtest", |
| 618 "//third_party/libwebm", | 619 "//third_party/libwebm", |
| 619 "//third_party/libyuv", | 620 "//third_party/libyuv", |
| 620 "//third_party/widevine/cdm:headers", | 621 "//third_party/widevine/cdm:headers", |
| 621 "//ui/gfx:test_support", | 622 "//ui/gfx:test_support", |
| 622 "//url", | 623 "//url", |
| 623 ] | 624 ] |
| 624 | 625 |
| 625 data_deps = [] | 626 data_deps = [] |
| 626 | 627 |
| 627 if (is_android) { | 628 if (disable_ffmpeg_video_decoders) { |
| 628 sources -= [ | 629 sources -= [ |
| 629 "filters/decrypting_audio_decoder_unittest.cc", | 630 "filters/decrypting_audio_decoder_unittest.cc", |
| 630 "filters/decrypting_video_decoder_unittest.cc", | 631 "filters/decrypting_video_decoder_unittest.cc", |
| 631 ] | 632 ] |
| 632 } | 633 } |
| 633 if (is_mac || is_ios) { | 634 if (is_mac || is_ios) { |
| 634 deps += [ "//media/base/mac:unit_tests" ] | 635 deps += [ "//media/base/mac:unit_tests" ] |
| 635 } | 636 } |
| 636 | 637 |
| 637 # If ExternalClearKey is built, we can test CdmAdapter. | 638 # If ExternalClearKey is built, we can test CdmAdapter. |
| (...skipping 12 matching lines...) Expand all Loading... |
| 650 "filters/in_memory_url_protocol_unittest.cc", | 651 "filters/in_memory_url_protocol_unittest.cc", |
| 651 ] | 652 ] |
| 652 | 653 |
| 653 deps += [ | 654 deps += [ |
| 654 "//media/ffmpeg:ffmpeg_unittests", | 655 "//media/ffmpeg:ffmpeg_unittests", |
| 655 | 656 |
| 656 # Direct dependency needed for the config | 657 # Direct dependency needed for the config |
| 657 "//third_party/opus", | 658 "//third_party/opus", |
| 658 ] | 659 ] |
| 659 | 660 |
| 660 if (!is_android) { | 661 if (!disable_ffmpeg_video_decoders) { |
| 661 sources += [ | 662 sources += [ |
| 662 # FFmpeg on Android does not include video decoders. | |
| 663 "filters/ffmpeg_video_decoder_unittest.cc", | 663 "filters/ffmpeg_video_decoder_unittest.cc", |
| 664 ] | 664 ] |
| 665 } | 665 } |
| 666 } | 666 } |
| 667 | 667 |
| 668 if (current_cpu != "arm" && is_chromeos) { | 668 if (current_cpu != "arm" && is_chromeos) { |
| 669 sources += [ "filters/h264_bitstream_buffer_unittest.cc" ] | 669 sources += [ "filters/h264_bitstream_buffer_unittest.cc" ] |
| 670 } | 670 } |
| 671 | 671 |
| 672 if (proprietary_codecs) { | 672 if (proprietary_codecs) { |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 977 fuzzer_test("media_mp4_avcc_parser_fuzzer") { | 977 fuzzer_test("media_mp4_avcc_parser_fuzzer") { |
| 978 sources = [ | 978 sources = [ |
| 979 "formats/mp4/mp4_avcc_parser_fuzzer.cc", | 979 "formats/mp4/mp4_avcc_parser_fuzzer.cc", |
| 980 ] | 980 ] |
| 981 deps = [ | 981 deps = [ |
| 982 ":media", | 982 ":media", |
| 983 "//base", | 983 "//base", |
| 984 ] | 984 ] |
| 985 } | 985 } |
| 986 } | 986 } |
| OLD | NEW |