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("//testing/libfuzzer/fuzzer_test.gni") | 12 import("//testing/libfuzzer/fuzzer_test.gni") |
13 import("//testing/test.gni") | 13 import("//testing/test.gni") |
14 import("//third_party/ffmpeg/ffmpeg_options.gni") | |
15 | 14 |
16 buildflag_header("media_features") { | 15 buildflag_header("media_features") { |
17 header = "media_features.h" | 16 header = "media_features.h" |
18 | 17 |
19 flags = [ | 18 flags = [ |
20 "ENABLE_AC3_EAC3_AUDIO_DEMUXING=$enable_ac3_eac3_audio_demuxing", | 19 "ENABLE_AC3_EAC3_AUDIO_DEMUXING=$enable_ac3_eac3_audio_demuxing", |
21 "ENABLE_HEVC_DEMUXING=$enable_hevc_demuxing", | 20 "ENABLE_HEVC_DEMUXING=$enable_hevc_demuxing", |
22 "ENABLE_MSE_MPEG2TS_STREAM_PARSER=$enable_mse_mpeg2ts_stream_parser", | 21 "ENABLE_MSE_MPEG2TS_STREAM_PARSER=$enable_mse_mpeg2ts_stream_parser", |
23 ] | 22 ] |
24 } | 23 } |
25 | 24 |
26 if (proprietary_codecs && media_use_ffmpeg) { | |
27 assert( | |
28 ffmpeg_branding != "Chromium", | |
29 "proprietary codecs and ffmpeg_branding set to Chromium are incompatible") | |
30 } | |
31 | |
32 # Common configuration for targets in the media directory. | 25 # Common configuration for targets in the media directory. |
33 # NOT for exporting. | 26 # NOT for exporting. |
34 config("media_config") { | 27 config("media_config") { |
35 defines = [] | 28 defines = [] |
36 if (!media_use_libvpx) { | 29 if (!media_use_libvpx) { |
37 defines += [ "MEDIA_DISABLE_LIBVPX" ] | 30 defines += [ "MEDIA_DISABLE_LIBVPX" ] |
38 } | 31 } |
39 if (!media_use_ffmpeg) { | 32 if (!media_use_ffmpeg) { |
40 defines += [ "MEDIA_DISABLE_FFMPEG" ] | 33 defines += [ "MEDIA_DISABLE_FFMPEG" ] |
41 } | 34 } |
(...skipping 842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
884 sources = [ | 877 sources = [ |
885 "filters/vpx_video_decoder_fuzzertest.cc", | 878 "filters/vpx_video_decoder_fuzzertest.cc", |
886 ] | 879 ] |
887 deps = [ | 880 deps = [ |
888 ":media", | 881 ":media", |
889 "//base", | 882 "//base", |
890 ] | 883 ] |
891 libfuzzer_options = [ "max_len = 400000" ] | 884 libfuzzer_options = [ "max_len = 400000" ] |
892 seed_corpus = "//media/test/data" | 885 seed_corpus = "//media/test/data" |
893 } | 886 } |
OLD | NEW |