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") |
11 import("//media/media_options.gni") | 11 import("//media/media_options.gni") |
12 import("//testing/libfuzzer/fuzzer_test.gni") | 12 import("//testing/libfuzzer/fuzzer_test.gni") |
13 import("//testing/test.gni") | 13 import("//testing/test.gni") |
14 | 14 |
15 buildflag_header("media_features") { | 15 buildflag_header("media_features") { |
16 header = "media_features.h" | 16 header = "media_features.h" |
17 | 17 |
18 flags = [ | 18 flags = [ |
19 "ENABLE_AC3_EAC3_AUDIO_DEMUXING=$enable_ac3_eac3_audio_demuxing", | 19 "ENABLE_AC3_EAC3_AUDIO_DEMUXING=$enable_ac3_eac3_audio_demuxing", |
20 "ENABLE_HEVC_DEMUXING=$enable_hevc_demuxing", | 20 "ENABLE_HEVC_DEMUXING=$enable_hevc_demuxing", |
21 "ENABLE_MSE_MPEG2TS_STREAM_PARSER=$enable_mse_mpeg2ts_stream_parser", | 21 "ENABLE_MSE_MPEG2TS_STREAM_PARSER=$enable_mse_mpeg2ts_stream_parser", |
22 "ENABLE_MP4_VP9_DEMUXING=0", | 22 "ENABLE_MP4_VP9_DEMUXING=0", |
| 23 "ENABLE_HLS_SAMPLE_AES=$enable_hls_sample_aes", |
23 ] | 24 ] |
24 } | 25 } |
25 | 26 |
26 # Common configuration for targets in the media directory. | 27 # Common configuration for targets in the media directory. |
27 # NOT for exporting. | 28 # NOT for exporting. |
28 config("media_config") { | 29 config("media_config") { |
29 defines = [] | 30 defines = [] |
30 if (!media_use_libvpx) { | 31 if (!media_use_libvpx) { |
31 defines += [ "MEDIA_DISABLE_LIBVPX" ] | 32 defines += [ "MEDIA_DISABLE_LIBVPX" ] |
32 } | 33 } |
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 "formats/mpeg/adts_header_parser.h", | 414 "formats/mpeg/adts_header_parser.h", |
414 "formats/mpeg/adts_stream_parser.cc", | 415 "formats/mpeg/adts_stream_parser.cc", |
415 "formats/mpeg/adts_stream_parser.h", | 416 "formats/mpeg/adts_stream_parser.h", |
416 "formats/mpeg/mpeg1_audio_stream_parser.cc", | 417 "formats/mpeg/mpeg1_audio_stream_parser.cc", |
417 "formats/mpeg/mpeg1_audio_stream_parser.h", | 418 "formats/mpeg/mpeg1_audio_stream_parser.h", |
418 "formats/mpeg/mpeg_audio_stream_parser_base.cc", | 419 "formats/mpeg/mpeg_audio_stream_parser_base.cc", |
419 "formats/mpeg/mpeg_audio_stream_parser_base.h", | 420 "formats/mpeg/mpeg_audio_stream_parser_base.h", |
420 ] | 421 ] |
421 if (enable_mse_mpeg2ts_stream_parser) { | 422 if (enable_mse_mpeg2ts_stream_parser) { |
422 sources += [ | 423 sources += [ |
| 424 "formats/mp2t/descriptors.cc", |
| 425 "formats/mp2t/descriptors.h", |
423 "formats/mp2t/es_adapter_video.cc", | 426 "formats/mp2t/es_adapter_video.cc", |
424 "formats/mp2t/es_adapter_video.h", | 427 "formats/mp2t/es_adapter_video.h", |
425 "formats/mp2t/es_parser.cc", | 428 "formats/mp2t/es_parser.cc", |
426 "formats/mp2t/es_parser.h", | 429 "formats/mp2t/es_parser.h", |
427 "formats/mp2t/es_parser_adts.cc", | 430 "formats/mp2t/es_parser_adts.cc", |
428 "formats/mp2t/es_parser_adts.h", | 431 "formats/mp2t/es_parser_adts.h", |
429 "formats/mp2t/es_parser_h264.cc", | 432 "formats/mp2t/es_parser_h264.cc", |
430 "formats/mp2t/es_parser_h264.h", | 433 "formats/mp2t/es_parser_h264.h", |
431 "formats/mp2t/es_parser_mpeg1audio.cc", | 434 "formats/mp2t/es_parser_mpeg1audio.cc", |
432 "formats/mp2t/es_parser_mpeg1audio.h", | 435 "formats/mp2t/es_parser_mpeg1audio.h", |
433 "formats/mp2t/mp2t_common.h", | 436 "formats/mp2t/mp2t_common.h", |
434 "formats/mp2t/mp2t_stream_parser.cc", | 437 "formats/mp2t/mp2t_stream_parser.cc", |
435 "formats/mp2t/mp2t_stream_parser.h", | 438 "formats/mp2t/mp2t_stream_parser.h", |
436 "formats/mp2t/timestamp_unroller.cc", | 439 "formats/mp2t/timestamp_unroller.cc", |
437 "formats/mp2t/timestamp_unroller.h", | 440 "formats/mp2t/timestamp_unroller.h", |
438 "formats/mp2t/ts_packet.cc", | 441 "formats/mp2t/ts_packet.cc", |
439 "formats/mp2t/ts_packet.h", | 442 "formats/mp2t/ts_packet.h", |
440 "formats/mp2t/ts_section.h", | 443 "formats/mp2t/ts_section.h", |
441 "formats/mp2t/ts_section_pat.cc", | 444 "formats/mp2t/ts_section_pat.cc", |
442 "formats/mp2t/ts_section_pat.h", | 445 "formats/mp2t/ts_section_pat.h", |
443 "formats/mp2t/ts_section_pes.cc", | 446 "formats/mp2t/ts_section_pes.cc", |
444 "formats/mp2t/ts_section_pes.h", | 447 "formats/mp2t/ts_section_pes.h", |
445 "formats/mp2t/ts_section_pmt.cc", | 448 "formats/mp2t/ts_section_pmt.cc", |
446 "formats/mp2t/ts_section_pmt.h", | 449 "formats/mp2t/ts_section_pmt.h", |
447 "formats/mp2t/ts_section_psi.cc", | 450 "formats/mp2t/ts_section_psi.cc", |
448 "formats/mp2t/ts_section_psi.h", | 451 "formats/mp2t/ts_section_psi.h", |
449 ] | 452 ] |
| 453 if (enable_hls_sample_aes) { |
| 454 sources += [ |
| 455 "formats/mp2t/ts_section_cat.cc", |
| 456 "formats/mp2t/ts_section_cat.h", |
| 457 "formats/mp2t/ts_section_cets_ecm.cc", |
| 458 "formats/mp2t/ts_section_cets_ecm.h", |
| 459 "formats/mp2t/ts_section_cets_pssh.cc", |
| 460 "formats/mp2t/ts_section_cets_pssh.h", |
| 461 ] |
| 462 } |
450 } | 463 } |
451 } | 464 } |
452 | 465 |
453 if (use_low_memory_buffer) { | 466 if (use_low_memory_buffer) { |
454 sources += [ | 467 sources += [ |
455 "filters/source_buffer_platform.h", | 468 "filters/source_buffer_platform.h", |
456 "filters/source_buffer_platform_lowmem.cc", | 469 "filters/source_buffer_platform_lowmem.cc", |
457 ] | 470 ] |
458 } else { | 471 } else { |
459 sources += [ | 472 sources += [ |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
689 } | 702 } |
690 if (media_use_ffmpeg) { | 703 if (media_use_ffmpeg) { |
691 sources += [ | 704 sources += [ |
692 "filters/ffmpeg_aac_bitstream_converter_unittest.cc", | 705 "filters/ffmpeg_aac_bitstream_converter_unittest.cc", |
693 "filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc", | 706 "filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc", |
694 ] | 707 ] |
695 } | 708 } |
696 if (enable_hevc_demuxing) { | 709 if (enable_hevc_demuxing) { |
697 sources += [ "filters/h265_parser_unittest.cc" ] | 710 sources += [ "filters/h265_parser_unittest.cc" ] |
698 } | 711 } |
| 712 if (enable_hls_sample_aes) { |
| 713 deps += [ "//third_party/boringssl" ] |
| 714 } |
699 } | 715 } |
700 | 716 |
701 if (is_mac || is_ios) { | 717 if (is_mac || is_ios) { |
702 libs = [ | 718 libs = [ |
703 "AppKit.framework", | 719 "AppKit.framework", |
704 "Foundation.framework", | 720 "Foundation.framework", |
705 ] | 721 ] |
706 } | 722 } |
707 | 723 |
708 # include_dirs += [ | 724 # include_dirs += [ |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
884 sources = [ | 900 sources = [ |
885 "filters/vpx_video_decoder_fuzzertest.cc", | 901 "filters/vpx_video_decoder_fuzzertest.cc", |
886 ] | 902 ] |
887 deps = [ | 903 deps = [ |
888 ":media", | 904 ":media", |
889 "//base", | 905 "//base", |
890 ] | 906 ] |
891 libfuzzer_options = [ "max_len = 400000" ] | 907 libfuzzer_options = [ "max_len = 400000" ] |
892 seed_corpus = "//media/test/data" | 908 seed_corpus = "//media/test/data" |
893 } | 909 } |
OLD | NEW |