diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-04-05 14:08:31 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-04-11 07:46:53 +0000 |
commit | 6a4cabb866f66d4128a97cdc6d9d08ce074f1247 (patch) | |
tree | ab00f70a5e89278d6a0d16ff0c42578dc4d84a2d /chromium/media/BUILD.gn | |
parent | e733310db58160074f574c429d48f8308c0afe17 (diff) | |
download | qtwebengine-chromium-6a4cabb866f66d4128a97cdc6d9d08ce074f1247.tar.gz |
BASELINE: Update Chromium to 57.0.2987.144
Change-Id: I29db402ff696c71a04c4dbaec822c2e53efe0267
Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
Diffstat (limited to 'chromium/media/BUILD.gn')
-rw-r--r-- | chromium/media/BUILD.gn | 46 |
1 files changed, 45 insertions, 1 deletions
diff --git a/chromium/media/BUILD.gn b/chromium/media/BUILD.gn index 652aad4d9ba..ba0efe7f085 100644 --- a/chromium/media/BUILD.gn +++ b/chromium/media/BUILD.gn @@ -19,9 +19,12 @@ buildflag_header("media_features") { flags = [ "ENABLE_AC3_EAC3_AUDIO_DEMUXING=$enable_ac3_eac3_audio_demuxing", + "ENABLE_CBCS_ENCRYPTION_SCHEME=$enable_cbcs_encryption_scheme", "ENABLE_HEVC_DEMUXING=$enable_hevc_demuxing", + "ENABLE_HLS_SAMPLE_AES=$enable_hls_sample_aes", "ENABLE_MSE_MPEG2TS_STREAM_PARSER=$enable_mse_mpeg2ts_stream_parser", "ENABLE_MEDIA_REMOTING=$enable_media_remoting", + "ENABLE_WEBRTC=$enable_webrtc", ] } @@ -276,6 +279,7 @@ component("media") { public_configs = [ "//third_party/libwebm:libwebm_config" ] public_deps = [ ":filters_common", + "//ui/gfx:color_space", ] include_dirs = [ "." ] @@ -432,6 +436,8 @@ component("media") { ] if (enable_mse_mpeg2ts_stream_parser) { sources += [ + "formats/mp2t/descriptors.cc", + "formats/mp2t/descriptors.h", "formats/mp2t/es_adapter_video.cc", "formats/mp2t/es_adapter_video.h", "formats/mp2t/es_parser.cc", @@ -459,6 +465,16 @@ component("media") { "formats/mp2t/ts_section_psi.cc", "formats/mp2t/ts_section_psi.h", ] + if (enable_hls_sample_aes) { + sources += [ + "formats/mp2t/ts_section_cat.cc", + "formats/mp2t/ts_section_cat.h", + "formats/mp2t/ts_section_cets_ecm.cc", + "formats/mp2t/ts_section_cets_ecm.h", + "formats/mp2t/ts_section_cets_pssh.cc", + "formats/mp2t/ts_section_cets_pssh.h", + ] + } } } @@ -598,6 +614,7 @@ source_set("unit_tests") { ":media", ":test_support", "//base/test:test_support", + "//crypto", "//gpu:test_support", "//gpu/command_buffer/common", "//media/audio:test_support", @@ -632,7 +649,6 @@ source_set("unit_tests") { } if (media_use_ffmpeg) { - deps += [ "//media/ffmpeg:ffmpeg_unittests" ] sources += [ "filters/audio_decoder_unittest.cc", "filters/audio_file_reader_unittest.cc", @@ -642,6 +658,13 @@ source_set("unit_tests") { "filters/in_memory_url_protocol_unittest.cc", ] + deps += [ + "//media/ffmpeg:ffmpeg_unittests", + + # Direct dependency needed for the config + "//third_party/opus", + ] + if (!is_android) { sources += [ # FFmpeg on Android does not include video decoders. @@ -691,6 +714,9 @@ source_set("unit_tests") { if (enable_hevc_demuxing) { sources += [ "filters/h265_parser_unittest.cc" ] } + if (enable_hls_sample_aes) { + deps += [ "//third_party/boringssl" ] + } } if (is_mac || is_ios) { @@ -711,6 +737,14 @@ source_set("unit_tests") { # Contains tests for all targets in the "media" folder. # TODO(xhwang): Move mojo/capture/remoting tests here where applicable. test("media_unittests") { + # crbug.com/676418: Suppress symbol import warnings. + if (is_win && is_component_build) { + ldflags = [ + "/ignore:4217", + "/ignore:4049", + ] + } + deps = [ ":unit_tests", "//media/audio:unit_tests", @@ -733,6 +767,10 @@ test("media_unittests") { if (enable_media_remoting) { deps += [ "//media/remoting:media_remoting_tests" ] } + + if (proprietary_codecs) { + configs += [ "//third_party/opus:opus_config" ] + } } test("media_perftests") { @@ -762,6 +800,12 @@ test("media_perftests") { data = [ "test/data/", + + # Needed for isolate script to execute. + "//testing/scripts/common.py", + "//testing/xvfb.py", + "//testing/scripts/run_gtest_perf_test.py", + "//tools/perf/generate_legacy_perf_dashboard_json.py", ] } |