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 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 "formats/mpeg/adts_header_parser.h", | 399 "formats/mpeg/adts_header_parser.h", |
399 "formats/mpeg/adts_stream_parser.cc", | 400 "formats/mpeg/adts_stream_parser.cc", |
400 "formats/mpeg/adts_stream_parser.h", | 401 "formats/mpeg/adts_stream_parser.h", |
401 "formats/mpeg/mpeg1_audio_stream_parser.cc", | 402 "formats/mpeg/mpeg1_audio_stream_parser.cc", |
402 "formats/mpeg/mpeg1_audio_stream_parser.h", | 403 "formats/mpeg/mpeg1_audio_stream_parser.h", |
403 "formats/mpeg/mpeg_audio_stream_parser_base.cc", | 404 "formats/mpeg/mpeg_audio_stream_parser_base.cc", |
404 "formats/mpeg/mpeg_audio_stream_parser_base.h", | 405 "formats/mpeg/mpeg_audio_stream_parser_base.h", |
405 ] | 406 ] |
406 if (enable_mse_mpeg2ts_stream_parser) { | 407 if (enable_mse_mpeg2ts_stream_parser) { |
407 sources += [ | 408 sources += [ |
| 409 "formats/mp2t/descriptors.cc", |
| 410 "formats/mp2t/descriptors.h", |
408 "formats/mp2t/es_adapter_video.cc", | 411 "formats/mp2t/es_adapter_video.cc", |
409 "formats/mp2t/es_adapter_video.h", | 412 "formats/mp2t/es_adapter_video.h", |
410 "formats/mp2t/es_parser.cc", | 413 "formats/mp2t/es_parser.cc", |
411 "formats/mp2t/es_parser.h", | 414 "formats/mp2t/es_parser.h", |
412 "formats/mp2t/es_parser_adts.cc", | 415 "formats/mp2t/es_parser_adts.cc", |
413 "formats/mp2t/es_parser_adts.h", | 416 "formats/mp2t/es_parser_adts.h", |
414 "formats/mp2t/es_parser_h264.cc", | 417 "formats/mp2t/es_parser_h264.cc", |
415 "formats/mp2t/es_parser_h264.h", | 418 "formats/mp2t/es_parser_h264.h", |
416 "formats/mp2t/es_parser_mpeg1audio.cc", | 419 "formats/mp2t/es_parser_mpeg1audio.cc", |
417 "formats/mp2t/es_parser_mpeg1audio.h", | 420 "formats/mp2t/es_parser_mpeg1audio.h", |
418 "formats/mp2t/mp2t_common.h", | 421 "formats/mp2t/mp2t_common.h", |
419 "formats/mp2t/mp2t_stream_parser.cc", | 422 "formats/mp2t/mp2t_stream_parser.cc", |
420 "formats/mp2t/mp2t_stream_parser.h", | 423 "formats/mp2t/mp2t_stream_parser.h", |
421 "formats/mp2t/timestamp_unroller.cc", | 424 "formats/mp2t/timestamp_unroller.cc", |
422 "formats/mp2t/timestamp_unroller.h", | 425 "formats/mp2t/timestamp_unroller.h", |
423 "formats/mp2t/ts_packet.cc", | 426 "formats/mp2t/ts_packet.cc", |
424 "formats/mp2t/ts_packet.h", | 427 "formats/mp2t/ts_packet.h", |
425 "formats/mp2t/ts_section.h", | 428 "formats/mp2t/ts_section.h", |
426 "formats/mp2t/ts_section_pat.cc", | 429 "formats/mp2t/ts_section_pat.cc", |
427 "formats/mp2t/ts_section_pat.h", | 430 "formats/mp2t/ts_section_pat.h", |
428 "formats/mp2t/ts_section_pes.cc", | 431 "formats/mp2t/ts_section_pes.cc", |
429 "formats/mp2t/ts_section_pes.h", | 432 "formats/mp2t/ts_section_pes.h", |
430 "formats/mp2t/ts_section_pmt.cc", | 433 "formats/mp2t/ts_section_pmt.cc", |
431 "formats/mp2t/ts_section_pmt.h", | 434 "formats/mp2t/ts_section_pmt.h", |
432 "formats/mp2t/ts_section_psi.cc", | 435 "formats/mp2t/ts_section_psi.cc", |
433 "formats/mp2t/ts_section_psi.h", | 436 "formats/mp2t/ts_section_psi.h", |
434 ] | 437 ] |
| 438 if (enable_hls_sample_aes) { |
| 439 sources += [ |
| 440 "formats/mp2t/ts_section_cat.cc", |
| 441 "formats/mp2t/ts_section_cat.h", |
| 442 "formats/mp2t/ts_section_cets_ecm.cc", |
| 443 "formats/mp2t/ts_section_cets_ecm.h", |
| 444 "formats/mp2t/ts_section_cets_pssh.cc", |
| 445 "formats/mp2t/ts_section_cets_pssh.h", |
| 446 ] |
| 447 } |
435 } | 448 } |
436 } | 449 } |
437 | 450 |
438 if (use_low_memory_buffer) { | 451 if (use_low_memory_buffer) { |
439 sources += [ | 452 sources += [ |
440 "filters/source_buffer_platform.h", | 453 "filters/source_buffer_platform.h", |
441 "filters/source_buffer_platform_lowmem.cc", | 454 "filters/source_buffer_platform_lowmem.cc", |
442 ] | 455 ] |
443 } else { | 456 } else { |
444 sources += [ | 457 sources += [ |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
661 } | 674 } |
662 if (media_use_ffmpeg) { | 675 if (media_use_ffmpeg) { |
663 sources += [ | 676 sources += [ |
664 "filters/ffmpeg_aac_bitstream_converter_unittest.cc", | 677 "filters/ffmpeg_aac_bitstream_converter_unittest.cc", |
665 "filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc", | 678 "filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc", |
666 ] | 679 ] |
667 } | 680 } |
668 if (enable_hevc_demuxing) { | 681 if (enable_hevc_demuxing) { |
669 sources += [ "filters/h265_parser_unittest.cc" ] | 682 sources += [ "filters/h265_parser_unittest.cc" ] |
670 } | 683 } |
| 684 if (enable_hls_sample_aes) { |
| 685 deps += [ "//third_party/boringssl" ] |
| 686 } |
671 } | 687 } |
672 | 688 |
673 if (is_mac || is_ios) { | 689 if (is_mac || is_ios) { |
674 deps += [ "//media/base/mac" ] | 690 deps += [ "//media/base/mac" ] |
675 } | 691 } |
676 | 692 |
677 # include_dirs += [ | 693 # include_dirs += [ |
678 # # Needed by media_drm_bridge.cc. | 694 # # Needed by media_drm_bridge.cc. |
679 # target_gen_dir, | 695 # target_gen_dir, |
680 # ], | 696 # ], |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
836 fuzzer_test("media_vp9_parser_fuzzer") { | 852 fuzzer_test("media_vp9_parser_fuzzer") { |
837 sources = [ | 853 sources = [ |
838 "filters/vp9_parser_fuzzertest.cc", | 854 "filters/vp9_parser_fuzzertest.cc", |
839 ] | 855 ] |
840 deps = [ | 856 deps = [ |
841 ":media", | 857 ":media", |
842 "//base", | 858 "//base", |
843 ] | 859 ] |
844 libfuzzer_options = [ "max_len = 400000" ] | 860 libfuzzer_options = [ "max_len = 400000" ] |
845 } | 861 } |
OLD | NEW |