Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(363)

Side by Side Diff: media/BUILD.gn

Issue 1517473002: Support HLS MPEG2 TS with SAMPLE-AES encryption. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@encryption_scheme
Patch Set: move some gn defs Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | media/base/bit_reader.h » ('j') | media/base/bit_reader.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_HLS_SAMPLE_AES=$enable_hls_sample_aes",
22 ] 23 ]
23 } 24 }
24 25
25 # Common configuration for targets in the media directory. 26 # Common configuration for targets in the media directory.
26 # NOT for exporting. 27 # NOT for exporting.
27 config("media_config") { 28 config("media_config") {
28 defines = [] 29 defines = []
29 if (!media_use_libvpx) { 30 if (!media_use_libvpx) {
30 defines += [ "MEDIA_DISABLE_LIBVPX" ] 31 defines += [ "MEDIA_DISABLE_LIBVPX" ]
31 } 32 }
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 "formats/mpeg/adts_header_parser.h", 432 "formats/mpeg/adts_header_parser.h",
432 "formats/mpeg/adts_stream_parser.cc", 433 "formats/mpeg/adts_stream_parser.cc",
433 "formats/mpeg/adts_stream_parser.h", 434 "formats/mpeg/adts_stream_parser.h",
434 "formats/mpeg/mpeg1_audio_stream_parser.cc", 435 "formats/mpeg/mpeg1_audio_stream_parser.cc",
435 "formats/mpeg/mpeg1_audio_stream_parser.h", 436 "formats/mpeg/mpeg1_audio_stream_parser.h",
436 "formats/mpeg/mpeg_audio_stream_parser_base.cc", 437 "formats/mpeg/mpeg_audio_stream_parser_base.cc",
437 "formats/mpeg/mpeg_audio_stream_parser_base.h", 438 "formats/mpeg/mpeg_audio_stream_parser_base.h",
438 ] 439 ]
439 if (enable_mse_mpeg2ts_stream_parser) { 440 if (enable_mse_mpeg2ts_stream_parser) {
440 sources += [ 441 sources += [
442 "formats/mp2t/descriptors.cc",
443 "formats/mp2t/descriptors.h",
441 "formats/mp2t/es_adapter_video.cc", 444 "formats/mp2t/es_adapter_video.cc",
442 "formats/mp2t/es_adapter_video.h", 445 "formats/mp2t/es_adapter_video.h",
443 "formats/mp2t/es_parser.cc", 446 "formats/mp2t/es_parser.cc",
444 "formats/mp2t/es_parser.h", 447 "formats/mp2t/es_parser.h",
445 "formats/mp2t/es_parser_adts.cc", 448 "formats/mp2t/es_parser_adts.cc",
446 "formats/mp2t/es_parser_adts.h", 449 "formats/mp2t/es_parser_adts.h",
447 "formats/mp2t/es_parser_h264.cc", 450 "formats/mp2t/es_parser_h264.cc",
448 "formats/mp2t/es_parser_h264.h", 451 "formats/mp2t/es_parser_h264.h",
449 "formats/mp2t/es_parser_mpeg1audio.cc", 452 "formats/mp2t/es_parser_mpeg1audio.cc",
450 "formats/mp2t/es_parser_mpeg1audio.h", 453 "formats/mp2t/es_parser_mpeg1audio.h",
451 "formats/mp2t/mp2t_common.h", 454 "formats/mp2t/mp2t_common.h",
452 "formats/mp2t/mp2t_stream_parser.cc", 455 "formats/mp2t/mp2t_stream_parser.cc",
453 "formats/mp2t/mp2t_stream_parser.h", 456 "formats/mp2t/mp2t_stream_parser.h",
454 "formats/mp2t/timestamp_unroller.cc", 457 "formats/mp2t/timestamp_unroller.cc",
455 "formats/mp2t/timestamp_unroller.h", 458 "formats/mp2t/timestamp_unroller.h",
456 "formats/mp2t/ts_packet.cc", 459 "formats/mp2t/ts_packet.cc",
457 "formats/mp2t/ts_packet.h", 460 "formats/mp2t/ts_packet.h",
458 "formats/mp2t/ts_section.h", 461 "formats/mp2t/ts_section.h",
459 "formats/mp2t/ts_section_pat.cc", 462 "formats/mp2t/ts_section_pat.cc",
460 "formats/mp2t/ts_section_pat.h", 463 "formats/mp2t/ts_section_pat.h",
461 "formats/mp2t/ts_section_pes.cc", 464 "formats/mp2t/ts_section_pes.cc",
462 "formats/mp2t/ts_section_pes.h", 465 "formats/mp2t/ts_section_pes.h",
463 "formats/mp2t/ts_section_pmt.cc", 466 "formats/mp2t/ts_section_pmt.cc",
464 "formats/mp2t/ts_section_pmt.h", 467 "formats/mp2t/ts_section_pmt.h",
465 "formats/mp2t/ts_section_psi.cc", 468 "formats/mp2t/ts_section_psi.cc",
466 "formats/mp2t/ts_section_psi.h", 469 "formats/mp2t/ts_section_psi.h",
467 ] 470 ]
471 if (enable_hls_sample_aes) {
472 sources += [
473 "formats/mp2t/ts_section_cat.cc",
474 "formats/mp2t/ts_section_cat.h",
475 "formats/mp2t/ts_section_cets_ecm.cc",
476 "formats/mp2t/ts_section_cets_ecm.h",
477 "formats/mp2t/ts_section_cets_pssh.cc",
478 "formats/mp2t/ts_section_cets_pssh.h",
479 ]
480 }
468 } 481 }
469 } 482 }
470 483
471 if (use_low_memory_buffer) { 484 if (use_low_memory_buffer) {
472 sources += [ 485 sources += [
473 "filters/source_buffer_platform.h", 486 "filters/source_buffer_platform.h",
474 "filters/source_buffer_platform_lowmem.cc", 487 "filters/source_buffer_platform_lowmem.cc",
475 ] 488 ]
476 } else { 489 } else {
477 sources += [ 490 sources += [
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 } 706 }
694 if (media_use_ffmpeg) { 707 if (media_use_ffmpeg) {
695 sources += [ 708 sources += [
696 "filters/ffmpeg_aac_bitstream_converter_unittest.cc", 709 "filters/ffmpeg_aac_bitstream_converter_unittest.cc",
697 "filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc", 710 "filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc",
698 ] 711 ]
699 } 712 }
700 if (enable_hevc_demuxing) { 713 if (enable_hevc_demuxing) {
701 sources += [ "filters/h265_parser_unittest.cc" ] 714 sources += [ "filters/h265_parser_unittest.cc" ]
702 } 715 }
716 if (enable_hls_sample_aes) {
717 deps += [ "//third_party/boringssl" ]
718 }
703 } 719 }
704 720
705 if (is_mac || is_ios) { 721 if (is_mac || is_ios) {
706 deps += [ "//media/base/mac" ] 722 deps += [ "//media/base/mac" ]
707 } 723 }
708 724
709 # include_dirs += [ 725 # include_dirs += [
710 # # Needed by media_drm_bridge.cc. 726 # # Needed by media_drm_bridge.cc.
711 # target_gen_dir, 727 # target_gen_dir,
712 # ], 728 # ],
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
867 fuzzer_test("media_vp9_parser_fuzzer") { 883 fuzzer_test("media_vp9_parser_fuzzer") {
868 sources = [ 884 sources = [
869 "filters/vp9_parser_fuzzertest.cc", 885 "filters/vp9_parser_fuzzertest.cc",
870 ] 886 ]
871 deps = [ 887 deps = [
872 ":media", 888 ":media",
873 "//base", 889 "//base",
874 ] 890 ]
875 libfuzzer_options = "filters/vp9_parser_fuzzertest.options" 891 libfuzzer_options = "filters/vp9_parser_fuzzertest.options"
876 } 892 }
OLDNEW
« no previous file with comments | « no previous file | media/base/bit_reader.h » ('j') | media/base/bit_reader.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698