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

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: rebase Created 4 years, 9 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/media_options.gni » ('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",
ddorwin 2016/03/23 22:29:26 Is this a subset/dependent on enable_mse_mpeg2ts_s
dougsteed 2016/03/31 19:09:50 Done the gni variable check. I have not include t
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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 "formats/mp4/hevc.h", 299 "formats/mp4/hevc.h",
299 ] 300 ]
300 if (media_use_ffmpeg) { 301 if (media_use_ffmpeg) {
301 sources += [ 302 sources += [
302 "filters/ffmpeg_h265_to_annex_b_bitstream_converter.cc", 303 "filters/ffmpeg_h265_to_annex_b_bitstream_converter.cc",
303 "filters/ffmpeg_h265_to_annex_b_bitstream_converter.h", 304 "filters/ffmpeg_h265_to_annex_b_bitstream_converter.h",
304 ] 305 ]
305 } 306 }
306 } 307 }
307 308
309 if (proprietary_codecs && enable_hls_sample_aes) {
ddorwin 2016/03/23 22:29:26 Should this be within in the enable_mse_mpeg2ts_st
dougsteed 2016/03/31 19:09:50 I don't strongly object to that, but didn't do it
ddorwin 2016/03/31 20:59:21 I meant should we move this condition and its cont
dougsteed 2016/04/01 01:19:28 Done.
310 sources += [
311 "formats/mp2t/ts_section_cat.cc",
312 "formats/mp2t/ts_section_cat.h",
313 "formats/mp2t/ts_section_cets_ecm.cc",
314 "formats/mp2t/ts_section_cets_ecm.h",
315 "formats/mp2t/ts_section_cets_pssh.cc",
316 "formats/mp2t/ts_section_cets_pssh.h",
317 ]
318 }
319
308 if (current_cpu == "arm" && arm_use_neon) { 320 if (current_cpu == "arm" && arm_use_neon) {
309 defines += [ "USE_NEON" ] 321 defines += [ "USE_NEON" ]
310 } 322 }
311 323
312 if (media_use_libvpx) { 324 if (media_use_libvpx) {
313 sources += [ 325 sources += [
314 "filters/vpx_video_decoder.cc", 326 "filters/vpx_video_decoder.cc",
315 "filters/vpx_video_decoder.h", 327 "filters/vpx_video_decoder.h",
316 ] 328 ]
317 deps += [ "//third_party/libvpx" ] 329 deps += [ "//third_party/libvpx" ]
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 "formats/mpeg/adts_header_parser.h", 443 "formats/mpeg/adts_header_parser.h",
432 "formats/mpeg/adts_stream_parser.cc", 444 "formats/mpeg/adts_stream_parser.cc",
433 "formats/mpeg/adts_stream_parser.h", 445 "formats/mpeg/adts_stream_parser.h",
434 "formats/mpeg/mpeg1_audio_stream_parser.cc", 446 "formats/mpeg/mpeg1_audio_stream_parser.cc",
435 "formats/mpeg/mpeg1_audio_stream_parser.h", 447 "formats/mpeg/mpeg1_audio_stream_parser.h",
436 "formats/mpeg/mpeg_audio_stream_parser_base.cc", 448 "formats/mpeg/mpeg_audio_stream_parser_base.cc",
437 "formats/mpeg/mpeg_audio_stream_parser_base.h", 449 "formats/mpeg/mpeg_audio_stream_parser_base.h",
438 ] 450 ]
439 if (enable_mse_mpeg2ts_stream_parser) { 451 if (enable_mse_mpeg2ts_stream_parser) {
440 sources += [ 452 sources += [
453 "formats/mp2t/descriptors.cc",
454 "formats/mp2t/descriptors.h",
441 "formats/mp2t/es_adapter_video.cc", 455 "formats/mp2t/es_adapter_video.cc",
442 "formats/mp2t/es_adapter_video.h", 456 "formats/mp2t/es_adapter_video.h",
443 "formats/mp2t/es_parser.cc", 457 "formats/mp2t/es_parser.cc",
444 "formats/mp2t/es_parser.h", 458 "formats/mp2t/es_parser.h",
445 "formats/mp2t/es_parser_adts.cc", 459 "formats/mp2t/es_parser_adts.cc",
446 "formats/mp2t/es_parser_adts.h", 460 "formats/mp2t/es_parser_adts.h",
447 "formats/mp2t/es_parser_h264.cc", 461 "formats/mp2t/es_parser_h264.cc",
448 "formats/mp2t/es_parser_h264.h", 462 "formats/mp2t/es_parser_h264.h",
449 "formats/mp2t/es_parser_mpeg1audio.cc", 463 "formats/mp2t/es_parser_mpeg1audio.cc",
450 "formats/mp2t/es_parser_mpeg1audio.h", 464 "formats/mp2t/es_parser_mpeg1audio.h",
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 } 707 }
694 if (media_use_ffmpeg) { 708 if (media_use_ffmpeg) {
695 sources += [ 709 sources += [
696 "filters/ffmpeg_aac_bitstream_converter_unittest.cc", 710 "filters/ffmpeg_aac_bitstream_converter_unittest.cc",
697 "filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc", 711 "filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc",
698 ] 712 ]
699 } 713 }
700 if (enable_hevc_demuxing) { 714 if (enable_hevc_demuxing) {
701 sources += [ "filters/h265_parser_unittest.cc" ] 715 sources += [ "filters/h265_parser_unittest.cc" ]
702 } 716 }
717 if (enable_hls_sample_aes) {
718 deps += [ "//third_party/boringssl" ]
719 }
703 } 720 }
704 721
705 if (is_mac || is_ios) { 722 if (is_mac || is_ios) {
706 deps += [ "//media/base/mac" ] 723 deps += [ "//media/base/mac" ]
707 } 724 }
708 725
709 # include_dirs += [ 726 # include_dirs += [
710 # # Needed by media_drm_bridge.cc. 727 # # Needed by media_drm_bridge.cc.
711 # target_gen_dir, 728 # target_gen_dir,
712 # ], 729 # ],
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
867 fuzzer_test("media_vp9_parser_fuzzer") { 884 fuzzer_test("media_vp9_parser_fuzzer") {
868 sources = [ 885 sources = [
869 "filters/vp9_parser_fuzzertest.cc", 886 "filters/vp9_parser_fuzzertest.cc",
870 ] 887 ]
871 deps = [ 888 deps = [
872 ":media", 889 ":media",
873 "//base", 890 "//base",
874 ] 891 ]
875 libfuzzer_options = "filters/vp9_parser_fuzzertest.options" 892 libfuzzer_options = "filters/vp9_parser_fuzzertest.options"
876 } 893 }
OLDNEW
« no previous file with comments | « no previous file | media/base/bit_reader.h » ('j') | media/media_options.gni » ('J')

Powered by Google App Engine
This is Rietveld 408576698