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("//ppapi/features/features.gni") | 12 import("//ppapi/features/features.gni") |
13 import("//testing/libfuzzer/fuzzer_test.gni") | 13 import("//testing/libfuzzer/fuzzer_test.gni") |
14 import("//testing/test.gni") | 14 import("//testing/test.gni") |
15 import("//third_party/ffmpeg/ffmpeg_options.gni") | 15 import("//third_party/ffmpeg/ffmpeg_options.gni") |
16 | 16 |
17 buildflag_header("media_features") { | 17 buildflag_header("media_features") { |
18 header = "media_features.h" | 18 header = "media_features.h" |
19 | 19 |
20 flags = [ | 20 flags = [ |
21 "ENABLE_AC3_EAC3_AUDIO_DEMUXING=$enable_ac3_eac3_audio_demuxing", | 21 "ENABLE_AC3_EAC3_AUDIO_DEMUXING=$enable_ac3_eac3_audio_demuxing", |
22 "ENABLE_CBCS_ENCRYPTION_SCHEME=$enable_cbcs_encryption_scheme", | 22 "ENABLE_CBCS_ENCRYPTION_SCHEME=$enable_cbcs_encryption_scheme", |
23 "ENABLE_HEVC_DEMUXING=$enable_hevc_demuxing", | 23 "ENABLE_HEVC_DEMUXING=$enable_hevc_demuxing", |
| 24 "ENABLE_HLS_SAMPLE_AES=$enable_hls_sample_aes", |
24 "ENABLE_MSE_MPEG2TS_STREAM_PARSER=$enable_mse_mpeg2ts_stream_parser", | 25 "ENABLE_MSE_MPEG2TS_STREAM_PARSER=$enable_mse_mpeg2ts_stream_parser", |
25 "ENABLE_MEDIA_REMOTING=$enable_media_remoting", | 26 "ENABLE_MEDIA_REMOTING=$enable_media_remoting", |
26 "ENABLE_WEBRTC=$enable_webrtc", | 27 "ENABLE_WEBRTC=$enable_webrtc", |
27 ] | 28 ] |
28 } | 29 } |
29 | 30 |
30 if (proprietary_codecs && media_use_ffmpeg) { | 31 if (proprietary_codecs && media_use_ffmpeg) { |
31 assert( | 32 assert( |
32 ffmpeg_branding != "Chromium", | 33 ffmpeg_branding != "Chromium", |
33 "proprietary codecs and ffmpeg_branding set to Chromium are incompatible") | 34 "proprietary codecs and ffmpeg_branding set to Chromium are incompatible") |
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 "formats/mpeg/adts_constants.h", | 428 "formats/mpeg/adts_constants.h", |
428 "formats/mpeg/adts_stream_parser.cc", | 429 "formats/mpeg/adts_stream_parser.cc", |
429 "formats/mpeg/adts_stream_parser.h", | 430 "formats/mpeg/adts_stream_parser.h", |
430 "formats/mpeg/mpeg1_audio_stream_parser.cc", | 431 "formats/mpeg/mpeg1_audio_stream_parser.cc", |
431 "formats/mpeg/mpeg1_audio_stream_parser.h", | 432 "formats/mpeg/mpeg1_audio_stream_parser.h", |
432 "formats/mpeg/mpeg_audio_stream_parser_base.cc", | 433 "formats/mpeg/mpeg_audio_stream_parser_base.cc", |
433 "formats/mpeg/mpeg_audio_stream_parser_base.h", | 434 "formats/mpeg/mpeg_audio_stream_parser_base.h", |
434 ] | 435 ] |
435 if (enable_mse_mpeg2ts_stream_parser) { | 436 if (enable_mse_mpeg2ts_stream_parser) { |
436 sources += [ | 437 sources += [ |
| 438 "formats/mp2t/descriptors.cc", |
| 439 "formats/mp2t/descriptors.h", |
437 "formats/mp2t/es_adapter_video.cc", | 440 "formats/mp2t/es_adapter_video.cc", |
438 "formats/mp2t/es_adapter_video.h", | 441 "formats/mp2t/es_adapter_video.h", |
439 "formats/mp2t/es_parser.cc", | 442 "formats/mp2t/es_parser.cc", |
440 "formats/mp2t/es_parser.h", | 443 "formats/mp2t/es_parser.h", |
441 "formats/mp2t/es_parser_adts.cc", | 444 "formats/mp2t/es_parser_adts.cc", |
442 "formats/mp2t/es_parser_adts.h", | 445 "formats/mp2t/es_parser_adts.h", |
443 "formats/mp2t/es_parser_h264.cc", | 446 "formats/mp2t/es_parser_h264.cc", |
444 "formats/mp2t/es_parser_h264.h", | 447 "formats/mp2t/es_parser_h264.h", |
445 "formats/mp2t/es_parser_mpeg1audio.cc", | 448 "formats/mp2t/es_parser_mpeg1audio.cc", |
446 "formats/mp2t/es_parser_mpeg1audio.h", | 449 "formats/mp2t/es_parser_mpeg1audio.h", |
447 "formats/mp2t/mp2t_common.h", | 450 "formats/mp2t/mp2t_common.h", |
448 "formats/mp2t/mp2t_stream_parser.cc", | 451 "formats/mp2t/mp2t_stream_parser.cc", |
449 "formats/mp2t/mp2t_stream_parser.h", | 452 "formats/mp2t/mp2t_stream_parser.h", |
450 "formats/mp2t/timestamp_unroller.cc", | 453 "formats/mp2t/timestamp_unroller.cc", |
451 "formats/mp2t/timestamp_unroller.h", | 454 "formats/mp2t/timestamp_unroller.h", |
452 "formats/mp2t/ts_packet.cc", | 455 "formats/mp2t/ts_packet.cc", |
453 "formats/mp2t/ts_packet.h", | 456 "formats/mp2t/ts_packet.h", |
454 "formats/mp2t/ts_section.h", | 457 "formats/mp2t/ts_section.h", |
455 "formats/mp2t/ts_section_pat.cc", | 458 "formats/mp2t/ts_section_pat.cc", |
456 "formats/mp2t/ts_section_pat.h", | 459 "formats/mp2t/ts_section_pat.h", |
457 "formats/mp2t/ts_section_pes.cc", | 460 "formats/mp2t/ts_section_pes.cc", |
458 "formats/mp2t/ts_section_pes.h", | 461 "formats/mp2t/ts_section_pes.h", |
459 "formats/mp2t/ts_section_pmt.cc", | 462 "formats/mp2t/ts_section_pmt.cc", |
460 "formats/mp2t/ts_section_pmt.h", | 463 "formats/mp2t/ts_section_pmt.h", |
461 "formats/mp2t/ts_section_psi.cc", | 464 "formats/mp2t/ts_section_psi.cc", |
462 "formats/mp2t/ts_section_psi.h", | 465 "formats/mp2t/ts_section_psi.h", |
463 ] | 466 ] |
| 467 if (enable_hls_sample_aes) { |
| 468 sources += [ |
| 469 "formats/mp2t/ts_section_cat.cc", |
| 470 "formats/mp2t/ts_section_cat.h", |
| 471 "formats/mp2t/ts_section_cets_ecm.cc", |
| 472 "formats/mp2t/ts_section_cets_ecm.h", |
| 473 "formats/mp2t/ts_section_cets_pssh.cc", |
| 474 "formats/mp2t/ts_section_cets_pssh.h", |
| 475 ] |
| 476 } |
464 } | 477 } |
465 } | 478 } |
466 | 479 |
467 if (use_low_memory_buffer) { | 480 if (use_low_memory_buffer) { |
468 sources += [ | 481 sources += [ |
469 "filters/source_buffer_platform.h", | 482 "filters/source_buffer_platform.h", |
470 "filters/source_buffer_platform_lowmem.cc", | 483 "filters/source_buffer_platform_lowmem.cc", |
471 ] | 484 ] |
472 } else { | 485 } else { |
473 sources += [ | 486 sources += [ |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
593 # TODO(wolenetz): Fix size_t to int truncation in win64. | 606 # TODO(wolenetz): Fix size_t to int truncation in win64. |
594 # See http://crbug.com/171009 | 607 # See http://crbug.com/171009 |
595 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 608 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
596 | 609 |
597 deps = [ | 610 deps = [ |
598 ":cdm_api", | 611 ":cdm_api", |
599 ":cdm_paths", | 612 ":cdm_paths", |
600 ":media", | 613 ":media", |
601 ":test_support", | 614 ":test_support", |
602 "//base/test:test_support", | 615 "//base/test:test_support", |
| 616 "//crypto", |
603 "//gpu:test_support", | 617 "//gpu:test_support", |
604 "//gpu/command_buffer/common", | 618 "//gpu/command_buffer/common", |
605 "//media/audio:test_support", | 619 "//media/audio:test_support", |
606 "//media/base:test_support", | 620 "//media/base:test_support", |
607 "//ppapi/features", | 621 "//ppapi/features", |
608 "//skia", # Direct dependency required to inherit config. | 622 "//skia", # Direct dependency required to inherit config. |
609 "//testing/gmock", | 623 "//testing/gmock", |
610 "//testing/gtest", | 624 "//testing/gtest", |
611 "//third_party/libwebm", | 625 "//third_party/libwebm", |
612 "//third_party/libyuv", | 626 "//third_party/libyuv", |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
686 } | 700 } |
687 if (media_use_ffmpeg) { | 701 if (media_use_ffmpeg) { |
688 sources += [ | 702 sources += [ |
689 "filters/ffmpeg_aac_bitstream_converter_unittest.cc", | 703 "filters/ffmpeg_aac_bitstream_converter_unittest.cc", |
690 "filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc", | 704 "filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc", |
691 ] | 705 ] |
692 } | 706 } |
693 if (enable_hevc_demuxing) { | 707 if (enable_hevc_demuxing) { |
694 sources += [ "filters/h265_parser_unittest.cc" ] | 708 sources += [ "filters/h265_parser_unittest.cc" ] |
695 } | 709 } |
| 710 if (enable_hls_sample_aes) { |
| 711 deps += [ "//third_party/boringssl" ] |
| 712 } |
696 } | 713 } |
697 | 714 |
698 if (is_mac || is_ios) { | 715 if (is_mac || is_ios) { |
699 libs = [ | 716 libs = [ |
700 "AppKit.framework", | 717 "AppKit.framework", |
701 "Foundation.framework", | 718 "Foundation.framework", |
702 ] | 719 ] |
703 } | 720 } |
704 | 721 |
705 configs += [ ":media_config" ] | 722 configs += [ ":media_config" ] |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
931 fuzzer_test("media_mp4_avcc_parser_fuzzer") { | 948 fuzzer_test("media_mp4_avcc_parser_fuzzer") { |
932 sources = [ | 949 sources = [ |
933 "formats/mp4/mp4_avcc_parser_fuzzer.cc", | 950 "formats/mp4/mp4_avcc_parser_fuzzer.cc", |
934 ] | 951 ] |
935 deps = [ | 952 deps = [ |
936 ":media", | 953 ":media", |
937 "//base", | 954 "//base", |
938 ] | 955 ] |
939 } | 956 } |
940 } | 957 } |
OLD | NEW |