| 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_RUNTIME_MEDIA_RENDERER_SELECTION=$enable_runtime_media_renderer_sele
ction", | 27 "ENABLE_RUNTIME_MEDIA_RENDERER_SELECTION=$enable_runtime_media_renderer_sele
ction", |
| 27 "ENABLE_MEDIA_REMOTING=$enable_media_remoting", | 28 "ENABLE_MEDIA_REMOTING=$enable_media_remoting", |
| 28 "ENABLE_WEBRTC=$enable_webrtc", | 29 "ENABLE_WEBRTC=$enable_webrtc", |
| 29 "USE_PROPRIETARY_CODECS=$proprietary_codecs", | 30 "USE_PROPRIETARY_CODECS=$proprietary_codecs", |
| 30 ] | 31 ] |
| 31 } | 32 } |
| 32 | 33 |
| 33 if (proprietary_codecs && media_use_ffmpeg) { | 34 if (proprietary_codecs && media_use_ffmpeg) { |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 "formats/mp4/hevc.cc", | 344 "formats/mp4/hevc.cc", |
| 344 "formats/mp4/hevc.h", | 345 "formats/mp4/hevc.h", |
| 345 ] | 346 ] |
| 346 if (media_use_ffmpeg) { | 347 if (media_use_ffmpeg) { |
| 347 sources += [ | 348 sources += [ |
| 348 "filters/ffmpeg_h265_to_annex_b_bitstream_converter.cc", | 349 "filters/ffmpeg_h265_to_annex_b_bitstream_converter.cc", |
| 349 "filters/ffmpeg_h265_to_annex_b_bitstream_converter.h", | 350 "filters/ffmpeg_h265_to_annex_b_bitstream_converter.h", |
| 350 ] | 351 ] |
| 351 } | 352 } |
| 352 } | 353 } |
| 354 if (proprietary_codecs && enable_dolby_vision_demuxing) { |
| 355 sources += [ |
| 356 "formats/mp4/dolby_vision.cc", |
| 357 "formats/mp4/dolby_vision.h", |
| 358 ] |
| 359 } |
| 353 | 360 |
| 354 if (current_cpu == "arm" && arm_use_neon) { | 361 if (current_cpu == "arm" && arm_use_neon) { |
| 355 defines += [ "USE_NEON" ] | 362 defines += [ "USE_NEON" ] |
| 356 } | 363 } |
| 357 | 364 |
| 358 if (media_use_libvpx) { | 365 if (media_use_libvpx) { |
| 359 sources += [ | 366 sources += [ |
| 360 "filters/vpx_video_decoder.cc", | 367 "filters/vpx_video_decoder.cc", |
| 361 "filters/vpx_video_decoder.h", | 368 "filters/vpx_video_decoder.h", |
| 362 ] | 369 ] |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 697 "filters/ffmpeg_aac_bitstream_converter_unittest.cc", | 704 "filters/ffmpeg_aac_bitstream_converter_unittest.cc", |
| 698 "filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc", | 705 "filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc", |
| 699 ] | 706 ] |
| 700 } | 707 } |
| 701 if (enable_hevc_demuxing) { | 708 if (enable_hevc_demuxing) { |
| 702 sources += [ "filters/h265_parser_unittest.cc" ] | 709 sources += [ "filters/h265_parser_unittest.cc" ] |
| 703 } | 710 } |
| 704 if (enable_hls_sample_aes) { | 711 if (enable_hls_sample_aes) { |
| 705 deps += [ "//third_party/boringssl" ] | 712 deps += [ "//third_party/boringssl" ] |
| 706 } | 713 } |
| 714 if (enable_dolby_vision_demuxing) { |
| 715 sources += [ "formats/mp4/dolby_vision_unittest.cc" ] |
| 716 } |
| 707 } | 717 } |
| 708 | 718 |
| 709 if (is_mac || is_ios) { | 719 if (is_mac || is_ios) { |
| 710 libs = [ | 720 libs = [ |
| 711 "AppKit.framework", | 721 "AppKit.framework", |
| 712 "Foundation.framework", | 722 "Foundation.framework", |
| 713 ] | 723 ] |
| 714 } | 724 } |
| 715 | 725 |
| 716 configs += [ ":media_config" ] | 726 configs += [ ":media_config" ] |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 969 fuzzer_test("media_mp4_avcc_parser_fuzzer") { | 979 fuzzer_test("media_mp4_avcc_parser_fuzzer") { |
| 970 sources = [ | 980 sources = [ |
| 971 "formats/mp4/mp4_avcc_parser_fuzzer.cc", | 981 "formats/mp4/mp4_avcc_parser_fuzzer.cc", |
| 972 ] | 982 ] |
| 973 deps = [ | 983 deps = [ |
| 974 ":media", | 984 ":media", |
| 975 "//base", | 985 "//base", |
| 976 ] | 986 ] |
| 977 } | 987 } |
| 978 } | 988 } |
| OLD | NEW |