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_DOLBY_VISION_DEMUXING=$enable_dolby_vision_demuxing", |
24 "ENABLE_HLS_SAMPLE_AES=$enable_hls_sample_aes", | 25 "ENABLE_HLS_SAMPLE_AES=$enable_hls_sample_aes", |
25 "ENABLE_MSE_MPEG2TS_STREAM_PARSER=$enable_mse_mpeg2ts_stream_parser", | 26 "ENABLE_MSE_MPEG2TS_STREAM_PARSER=$enable_mse_mpeg2ts_stream_parser", |
26 "ENABLE_MEDIA_REMOTING=$enable_media_remoting", | 27 "ENABLE_MEDIA_REMOTING=$enable_media_remoting", |
27 "ENABLE_WEBRTC=$enable_webrtc", | 28 "ENABLE_WEBRTC=$enable_webrtc", |
28 ] | 29 ] |
29 } | 30 } |
30 | 31 |
31 if (proprietary_codecs && media_use_ffmpeg) { | 32 if (proprietary_codecs && media_use_ffmpeg) { |
32 assert( | 33 assert( |
33 ffmpeg_branding != "Chromium", | 34 ffmpeg_branding != "Chromium", |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 "formats/mp4/hevc.cc", | 322 "formats/mp4/hevc.cc", |
322 "formats/mp4/hevc.h", | 323 "formats/mp4/hevc.h", |
323 ] | 324 ] |
324 if (media_use_ffmpeg) { | 325 if (media_use_ffmpeg) { |
325 sources += [ | 326 sources += [ |
326 "filters/ffmpeg_h265_to_annex_b_bitstream_converter.cc", | 327 "filters/ffmpeg_h265_to_annex_b_bitstream_converter.cc", |
327 "filters/ffmpeg_h265_to_annex_b_bitstream_converter.h", | 328 "filters/ffmpeg_h265_to_annex_b_bitstream_converter.h", |
328 ] | 329 ] |
329 } | 330 } |
330 } | 331 } |
| 332 if (proprietary_codecs && enable_dolby_vision_demuxing) { |
| 333 sources += [ |
| 334 "formats/mp4/dolby_vision.cc", |
| 335 "formats/mp4/dolby_vision.h", |
| 336 ] |
| 337 } |
331 | 338 |
332 if (current_cpu == "arm" && arm_use_neon) { | 339 if (current_cpu == "arm" && arm_use_neon) { |
333 defines += [ "USE_NEON" ] | 340 defines += [ "USE_NEON" ] |
334 } | 341 } |
335 | 342 |
336 if (media_use_libvpx) { | 343 if (media_use_libvpx) { |
337 sources += [ | 344 sources += [ |
338 "filters/vpx_video_decoder.cc", | 345 "filters/vpx_video_decoder.cc", |
339 "filters/vpx_video_decoder.h", | 346 "filters/vpx_video_decoder.h", |
340 ] | 347 ] |
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
710 "filters/ffmpeg_aac_bitstream_converter_unittest.cc", | 717 "filters/ffmpeg_aac_bitstream_converter_unittest.cc", |
711 "filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc", | 718 "filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc", |
712 ] | 719 ] |
713 } | 720 } |
714 if (enable_hevc_demuxing) { | 721 if (enable_hevc_demuxing) { |
715 sources += [ "filters/h265_parser_unittest.cc" ] | 722 sources += [ "filters/h265_parser_unittest.cc" ] |
716 } | 723 } |
717 if (enable_hls_sample_aes) { | 724 if (enable_hls_sample_aes) { |
718 deps += [ "//third_party/boringssl" ] | 725 deps += [ "//third_party/boringssl" ] |
719 } | 726 } |
| 727 if (enable_dolby_vision_demuxing) { |
| 728 sources += [ "formats/mp4/dolby_vision_unittest.cc" ] |
| 729 } |
720 } | 730 } |
721 | 731 |
722 if (is_mac || is_ios) { | 732 if (is_mac || is_ios) { |
723 libs = [ | 733 libs = [ |
724 "AppKit.framework", | 734 "AppKit.framework", |
725 "Foundation.framework", | 735 "Foundation.framework", |
726 ] | 736 ] |
727 } | 737 } |
728 | 738 |
729 configs += [ ":media_config" ] | 739 configs += [ ":media_config" ] |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
973 fuzzer_test("media_mp4_avcc_parser_fuzzer") { | 983 fuzzer_test("media_mp4_avcc_parser_fuzzer") { |
974 sources = [ | 984 sources = [ |
975 "formats/mp4/mp4_avcc_parser_fuzzer.cc", | 985 "formats/mp4/mp4_avcc_parser_fuzzer.cc", |
976 ] | 986 ] |
977 deps = [ | 987 deps = [ |
978 ":media", | 988 ":media", |
979 "//base", | 989 "//base", |
980 ] | 990 ] |
981 } | 991 } |
982 } | 992 } |
OLD | NEW |