| 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") |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 defines += [ "DISABLE_FFMPEG_VIDEO_DECODERS" ] | 70 defines += [ "DISABLE_FFMPEG_VIDEO_DECODERS" ] |
| 71 } | 71 } |
| 72 } | 72 } |
| 73 | 73 |
| 74 source_set("cdm_api") { | 74 source_set("cdm_api") { |
| 75 sources = [ | 75 sources = [ |
| 76 "cdm/api/content_decryption_module.h", | 76 "cdm/api/content_decryption_module.h", |
| 77 ] | 77 ] |
| 78 } | 78 } |
| 79 | 79 |
| 80 # TODO(jrummell): This should be in media/filters/BUILD.gn (which doesn't |
| 81 # currently exist). http://crbug.com/613033 |
| 82 source_set("filters_common") { |
| 83 sources = [ |
| 84 "filters/file_data_source.h", |
| 85 ] |
| 86 if (media_use_ffmpeg) { |
| 87 sources += [ |
| 88 "filters/blocking_url_protocol.h", |
| 89 "filters/ffmpeg_glue.h", |
| 90 ] |
| 91 } |
| 92 } |
| 93 |
| 94 # TODO(jrummell): Each subdirectory should have it's own BUILD.gn, and then |
| 95 # this component can depend on them. http://crbug.com/613033 |
| 80 component("media") { | 96 component("media") { |
| 81 sources = [ | 97 sources = [ |
| 82 "cdm/aes_decryptor.cc", | 98 "cdm/aes_decryptor.cc", |
| 83 "cdm/aes_decryptor.h", | 99 "cdm/aes_decryptor.h", |
| 84 "cdm/cdm_adapter.cc", | 100 "cdm/cdm_adapter.cc", |
| 85 "cdm/cdm_adapter.h", | 101 "cdm/cdm_adapter.h", |
| 86 "cdm/cdm_allocator.cc", | 102 "cdm/cdm_allocator.cc", |
| 87 "cdm/cdm_allocator.h", | 103 "cdm/cdm_allocator.h", |
| 88 "cdm/cdm_file_io.cc", | 104 "cdm/cdm_file_io.cc", |
| 89 "cdm/cdm_file_io.h", | 105 "cdm/cdm_file_io.h", |
| (...skipping 23 matching lines...) Expand all Loading... |
| 113 "filters/decoder_stream_traits.h", | 129 "filters/decoder_stream_traits.h", |
| 114 "filters/decrypting_audio_decoder.cc", | 130 "filters/decrypting_audio_decoder.cc", |
| 115 "filters/decrypting_audio_decoder.h", | 131 "filters/decrypting_audio_decoder.h", |
| 116 "filters/decrypting_demuxer_stream.cc", | 132 "filters/decrypting_demuxer_stream.cc", |
| 117 "filters/decrypting_demuxer_stream.h", | 133 "filters/decrypting_demuxer_stream.h", |
| 118 "filters/decrypting_video_decoder.cc", | 134 "filters/decrypting_video_decoder.cc", |
| 119 "filters/decrypting_video_decoder.h", | 135 "filters/decrypting_video_decoder.h", |
| 120 "filters/default_media_permission.cc", | 136 "filters/default_media_permission.cc", |
| 121 "filters/default_media_permission.h", | 137 "filters/default_media_permission.h", |
| 122 "filters/file_data_source.cc", | 138 "filters/file_data_source.cc", |
| 123 "filters/file_data_source.h", | |
| 124 "filters/frame_processor.cc", | 139 "filters/frame_processor.cc", |
| 125 "filters/frame_processor.h", | 140 "filters/frame_processor.h", |
| 126 "filters/gpu_video_decoder.cc", | 141 "filters/gpu_video_decoder.cc", |
| 127 "filters/gpu_video_decoder.h", | 142 "filters/gpu_video_decoder.h", |
| 128 "filters/h264_bit_reader.cc", | 143 "filters/h264_bit_reader.cc", |
| 129 "filters/h264_bit_reader.h", | 144 "filters/h264_bit_reader.h", |
| 130 "filters/h264_parser.cc", | 145 "filters/h264_parser.cc", |
| 131 "filters/h264_parser.h", | 146 "filters/h264_parser.h", |
| 132 "filters/ivf_parser.cc", | 147 "filters/ivf_parser.cc", |
| 133 "filters/ivf_parser.h", | 148 "filters/ivf_parser.h", |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 | 247 |
| 233 allow_circular_includes_from = [] | 248 allow_circular_includes_from = [] |
| 234 cflags = [] | 249 cflags = [] |
| 235 libs = [] | 250 libs = [] |
| 236 defines = [] | 251 defines = [] |
| 237 deps = [ | 252 deps = [ |
| 238 ":cdm_api", | 253 ":cdm_api", |
| 239 ] | 254 ] |
| 240 | 255 |
| 241 public_configs = [ "//third_party/libwebm:libwebm_config" ] | 256 public_configs = [ "//third_party/libwebm:libwebm_config" ] |
| 242 public_deps = [] | 257 public_deps = [ |
| 258 ":filters_common", |
| 259 ] |
| 243 | 260 |
| 244 include_dirs = [ "." ] | 261 include_dirs = [ "." ] |
| 245 if (media_use_ffmpeg) { | 262 if (media_use_ffmpeg) { |
| 246 public_deps += [ "//media/ffmpeg" ] | 263 public_deps += [ "//media/ffmpeg" ] |
| 247 deps += [ "//third_party/ffmpeg" ] | 264 deps += [ "//third_party/ffmpeg" ] |
| 248 sources += [ | 265 sources += [ |
| 249 "filters/audio_file_reader.cc", | 266 "filters/audio_file_reader.cc", |
| 250 "filters/audio_file_reader.h", | 267 "filters/audio_file_reader.h", |
| 251 "filters/blocking_url_protocol.cc", | 268 "filters/blocking_url_protocol.cc", |
| 252 "filters/blocking_url_protocol.h", | |
| 253 "filters/ffmpeg_audio_decoder.cc", | 269 "filters/ffmpeg_audio_decoder.cc", |
| 254 "filters/ffmpeg_audio_decoder.h", | 270 "filters/ffmpeg_audio_decoder.h", |
| 255 "filters/ffmpeg_bitstream_converter.h", | 271 "filters/ffmpeg_bitstream_converter.h", |
| 256 "filters/ffmpeg_demuxer.cc", | 272 "filters/ffmpeg_demuxer.cc", |
| 257 "filters/ffmpeg_demuxer.h", | 273 "filters/ffmpeg_demuxer.h", |
| 258 "filters/ffmpeg_glue.cc", | 274 "filters/ffmpeg_glue.cc", |
| 259 "filters/ffmpeg_glue.h", | |
| 260 "filters/ffmpeg_video_decoder.cc", | 275 "filters/ffmpeg_video_decoder.cc", |
| 261 "filters/ffmpeg_video_decoder.h", | 276 "filters/ffmpeg_video_decoder.h", |
| 262 "filters/in_memory_url_protocol.cc", | 277 "filters/in_memory_url_protocol.cc", |
| 263 "filters/in_memory_url_protocol.h", | 278 "filters/in_memory_url_protocol.h", |
| 264 ] | 279 ] |
| 265 if (proprietary_codecs) { | 280 if (proprietary_codecs) { |
| 266 sources += [ | 281 sources += [ |
| 267 "filters/ffmpeg_aac_bitstream_converter.cc", | 282 "filters/ffmpeg_aac_bitstream_converter.cc", |
| 268 "filters/ffmpeg_aac_bitstream_converter.h", | 283 "filters/ffmpeg_aac_bitstream_converter.h", |
| 269 "filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc", | 284 "filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc", |
| (...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 856 sources = [ | 871 sources = [ |
| 857 "filters/vpx_video_decoder_fuzzertest.cc", | 872 "filters/vpx_video_decoder_fuzzertest.cc", |
| 858 ] | 873 ] |
| 859 deps = [ | 874 deps = [ |
| 860 ":media", | 875 ":media", |
| 861 "//base", | 876 "//base", |
| 862 ] | 877 ] |
| 863 libfuzzer_options = [ "max_len = 400000" ] | 878 libfuzzer_options = [ "max_len = 400000" ] |
| 864 seed_corpus = "//media/test/data" | 879 seed_corpus = "//media/test/data" |
| 865 } | 880 } |
| OLD | NEW |