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
3 # found in the LICENSE file.
5 import("//build/config/android/config.gni")
6 import("//build/config/arm.gni")
7 import("//build/config/features.gni")
8 import("//build/config/linux/pkg_config.gni")
9 import("//build/config/ui.gni")
10 import("//media/media_options.gni")
11 import("//testing/test.gni")
13 # Common configuration for targets in the media directory.
15 config("media_config") {
17 if (!media_use_libvpx) {
18 defines += [ "MEDIA_DISABLE_LIBVPX" ]
20 if (!media_use_ffmpeg) {
21 defines += [ "MEDIA_DISABLE_FFMPEG" ]
23 if (current_cpu == "arm" && arm_use_neon) {
24 defines += [ "USE_NEON" ]
27 defines += [ "USE_PULSEAUDIO" ]
28 if (!link_pulseaudio) {
29 defines += [ "DLOPEN_PULSEAUDIO" ]
33 defines += [ "USE_CRAS" ]
36 defines += [ "USE_ALSA" ]
40 config("media_implementation") {
41 defines = [ "MEDIA_IMPLEMENTATION" ]
44 config("media_dependent_config") {
46 if (!media_use_libvpx) {
47 defines += [ "MEDIA_DISABLE_LIBVPX" ]
49 if (!media_use_ffmpeg) {
50 defines += [ "MEDIA_DISABLE_FFMPEG" ]
55 "/DELAYLOAD:mfplat.dll",
56 "/DELAYLOAD:mfreadwrite.dll",
62 action("generate_ozone_constructor_list") {
63 # Ozone platform objects are auto-generated using similar
64 # patterns for naming and classes constructors. Here we build the
65 # object MediaOzonePlatform.
66 script = "../ui/ozone/generate_constructor_list.py"
68 platform_list_txt_file = "$target_gen_dir/../ui/ozone/platform_list.txt"
69 constructor_list_cc_file =
70 "$target_gen_dir/../media/ozone/constructor_list.cc"
73 platform_list_txt_file,
76 constructor_list_cc_file,
79 "--platform_list=" + rebase_path(platform_list_txt_file, root_build_dir),
80 "--output_cc=" + rebase_path(constructor_list_cc_file, root_build_dir),
82 "--typename=MediaOzonePlatform",
83 "--include=\"media/ozone/media_ozone_platform.h\"",
90 "blink/skcanvas_video_renderer.cc",
91 "blink/skcanvas_video_renderer.h",
92 "cdm/aes_decryptor.cc",
93 "cdm/aes_decryptor.h",
96 "cdm/default_cdm_factory.cc",
97 "cdm/default_cdm_factory.h",
98 "cdm/json_web_key.cc",
100 "cdm/key_system_names.cc",
101 "cdm/key_system_names.h",
102 "cdm/player_tracker_impl.cc",
103 "cdm/player_tracker_impl.h",
104 "cdm/proxy_decryptor.cc",
105 "cdm/proxy_decyrptor.h",
106 "ffmpeg/ffmpeg_deleters.h",
107 "filters/audio_clock.cc",
108 "filters/audio_clock.h",
109 "filters/audio_renderer_algorithm.cc",
110 "filters/audio_renderer_algorithm.h",
111 "filters/chunk_demuxer.cc",
112 "filters/chunk_demuxer.h",
113 "filters/context_3d.h",
114 "filters/decoder_selector.cc",
115 "filters/decoder_selector.h",
116 "filters/decoder_stream.cc",
117 "filters/decoder_stream.h",
118 "filters/decoder_stream_traits.cc",
119 "filters/decoder_stream_traits.h",
120 "filters/decrypting_audio_decoder.cc",
121 "filters/decrypting_audio_decoder.h",
122 "filters/decrypting_demuxer_stream.cc",
123 "filters/decrypting_demuxer_stream.h",
124 "filters/decrypting_video_decoder.cc",
125 "filters/decrypting_video_decoder.h",
126 "filters/default_media_permission.cc",
127 "filters/default_media_permission.h",
128 "filters/file_data_source.cc",
129 "filters/file_data_source.h",
130 "filters/frame_processor.cc",
131 "filters/frame_processor.h",
132 "filters/gpu_video_decoder.cc",
133 "filters/gpu_video_decoder.h",
134 "filters/h264_bit_reader.cc",
135 "filters/h264_bit_reader.h",
136 "filters/h264_parser.cc",
137 "filters/h264_parser.h",
138 "filters/jpeg_parser.cc",
139 "filters/jpeg_parser.h",
140 "filters/source_buffer_platform.cc",
141 "filters/source_buffer_platform.h",
142 "filters/source_buffer_range.cc",
143 "filters/source_buffer_range.h",
144 "filters/source_buffer_stream.cc",
145 "filters/source_buffer_stream.h",
146 "filters/stream_parser_factory.cc",
147 "filters/stream_parser_factory.h",
148 "filters/vp8_bool_decoder.cc",
149 "filters/vp8_bool_decoder.h",
150 "filters/vp8_parser.cc",
151 "filters/vp8_parser.h",
152 "filters/webvtt_util.h",
153 "filters/wsola_internals.cc",
154 "filters/wsola_internals.h",
155 "formats/common/offset_byte_queue.cc",
156 "formats/common/offset_byte_queue.h",
157 "formats/webm/webm_audio_client.cc",
158 "formats/webm/webm_audio_client.h",
159 "formats/webm/webm_cluster_parser.cc",
160 "formats/webm/webm_cluster_parser.h",
161 "formats/webm/webm_constants.cc",
162 "formats/webm/webm_constants.h",
163 "formats/webm/webm_content_encodings.cc",
164 "formats/webm/webm_content_encodings.h",
165 "formats/webm/webm_content_encodings_client.cc",
166 "formats/webm/webm_content_encodings_client.h",
167 "formats/webm/webm_crypto_helpers.cc",
168 "formats/webm/webm_crypto_helpers.h",
169 "formats/webm/webm_info_parser.cc",
170 "formats/webm/webm_info_parser.h",
171 "formats/webm/webm_parser.cc",
172 "formats/webm/webm_parser.h",
173 "formats/webm/webm_stream_parser.cc",
174 "formats/webm/webm_stream_parser.h",
175 "formats/webm/webm_tracks_parser.cc",
176 "formats/webm/webm_tracks_parser.h",
177 "formats/webm/webm_video_client.cc",
178 "formats/webm/webm_video_client.h",
179 "formats/webm/webm_webvtt_parser.cc",
180 "formats/webm/webm_webvtt_parser.h",
181 "midi/midi_manager.cc",
182 "midi/midi_manager.h",
183 "midi/midi_manager_mac.cc",
184 "midi/midi_manager_mac.h",
185 "midi/midi_manager_usb.cc",
186 "midi/midi_manager_usb.h",
187 "midi/midi_manager_win.cc",
188 "midi/midi_manager_win.h",
189 "midi/midi_message_queue.cc",
190 "midi/midi_message_queue.h",
191 "midi/midi_message_util.cc",
192 "midi/midi_message_util.h",
193 "midi/midi_port_info.cc",
194 "midi/midi_port_info.h",
195 "midi/midi_scheduler.cc",
196 "midi/midi_scheduler.h",
197 "midi/usb_midi_descriptor_parser.cc",
198 "midi/usb_midi_descriptor_parser.h",
199 "midi/usb_midi_device.h",
200 "midi/usb_midi_input_stream.cc",
201 "midi/usb_midi_input_stream.h",
202 "midi/usb_midi_jack.h",
203 "midi/usb_midi_output_stream.cc",
204 "midi/usb_midi_output_stream.h",
205 "renderers/audio_renderer_impl.cc",
206 "renderers/audio_renderer_impl.h",
207 "renderers/gpu_video_accelerator_factories.h",
208 "renderers/renderer_impl.cc",
209 "renderers/renderer_impl.h",
210 "renderers/video_renderer_impl.cc",
211 "renderers/video_renderer_impl.h",
212 "video/capture/fake_video_capture_device.cc",
213 "video/capture/fake_video_capture_device.h",
214 "video/capture/fake_video_capture_device_factory.cc",
215 "video/capture/fake_video_capture_device_factory.h",
216 "video/capture/file_video_capture_device.cc",
217 "video/capture/file_video_capture_device.h",
218 "video/capture/file_video_capture_device_factory.cc",
219 "video/capture/file_video_capture_device_factory.h",
220 "video/capture/linux/v4l2_capture_delegate.cc",
221 "video/capture/linux/v4l2_capture_delegate.h",
222 "video/capture/linux/v4l2_capture_delegate_multi_plane.cc",
223 "video/capture/linux/v4l2_capture_delegate_multi_plane.h",
224 "video/capture/linux/v4l2_capture_delegate_single_plane.cc",
225 "video/capture/linux/v4l2_capture_delegate_single_plane.h",
226 "video/capture/linux/video_capture_device_chromeos.cc",
227 "video/capture/linux/video_capture_device_chromeos.h",
228 "video/capture/linux/video_capture_device_factory_linux.cc",
229 "video/capture/linux/video_capture_device_factory_linux.h",
230 "video/capture/linux/video_capture_device_linux.cc",
231 "video/capture/linux/video_capture_device_linux.h",
232 "video/capture/mac/platform_video_capturing_mac.h",
233 "video/capture/mac/video_capture_device_avfoundation_mac.h",
234 "video/capture/mac/video_capture_device_avfoundation_mac.mm",
235 "video/capture/mac/video_capture_device_decklink_mac.h",
236 "video/capture/mac/video_capture_device_decklink_mac.mm",
237 "video/capture/mac/video_capture_device_factory_mac.h",
238 "video/capture/mac/video_capture_device_factory_mac.mm",
239 "video/capture/mac/video_capture_device_mac.h",
240 "video/capture/mac/video_capture_device_mac.mm",
241 "video/capture/mac/video_capture_device_qtkit_mac.h",
242 "video/capture/mac/video_capture_device_qtkit_mac.mm",
243 "video/capture/video_capture_device.cc",
244 "video/capture/video_capture_device.h",
245 "video/capture/video_capture_device_factory.cc",
246 "video/capture/video_capture_device_factory.h",
247 "video/capture/video_capture_device_info.cc",
248 "video/capture/video_capture_device_info.h",
249 "video/capture/win/capability_list_win.cc",
250 "video/capture/win/capability_list_win.h",
251 "video/capture/win/filter_base_win.cc",
252 "video/capture/win/filter_base_win.h",
253 "video/capture/win/pin_base_win.cc",
254 "video/capture/win/pin_base_win.h",
255 "video/capture/win/sink_filter_observer_win.h",
256 "video/capture/win/sink_filter_win.cc",
257 "video/capture/win/sink_filter_win.h",
258 "video/capture/win/sink_input_pin_win.cc",
259 "video/capture/win/sink_input_pin_win.h",
260 "video/capture/win/video_capture_device_factory_win.cc",
261 "video/capture/win/video_capture_device_factory_win.h",
262 "video/capture/win/video_capture_device_mf_win.cc",
263 "video/capture/win/video_capture_device_mf_win.h",
264 "video/capture/win/video_capture_device_win.cc",
265 "video/capture/win/video_capture_device_win.h",
266 "video/fake_video_encode_accelerator.cc",
267 "video/fake_video_encode_accelerator.h",
272 "video/video_decode_accelerator.cc",
273 "video/video_decode_accelerator.h",
274 "video/video_encode_accelerator.cc",
275 "video/video_encode_accelerator.h",
280 ":media_implementation",
282 # TODO(wolenetz): Fix size_t to int trunctaion in win64.
283 # See http://crbug.com/171009
284 "//build/config/compiler:no_size_t_to_int_warning",
286 all_dependent_configs = [ ":media_dependent_config" ]
288 allow_circular_includes_from = []
294 include_dirs = [ "." ]
295 if (media_use_ffmpeg) {
296 deps += [ "//third_party/ffmpeg" ]
298 "ffmpeg/ffmpeg_common.cc",
299 "ffmpeg/ffmpeg_common.h",
300 "filters/audio_file_reader.cc",
301 "filters/audio_file_reader.h",
302 "filters/blocking_url_protocol.cc",
303 "filters/blocking_url_protocol.h",
304 "filters/ffmpeg_audio_decoder.cc",
305 "filters/ffmpeg_audio_decoder.h",
306 "filters/ffmpeg_bitstream_converter.h",
307 "filters/ffmpeg_demuxer.cc",
308 "filters/ffmpeg_demuxer.h",
309 "filters/ffmpeg_glue.cc",
310 "filters/ffmpeg_glue.h",
311 "filters/ffmpeg_video_decoder.cc",
312 "filters/ffmpeg_video_decoder.h",
313 "filters/in_memory_url_protocol.cc",
314 "filters/in_memory_url_protocol.h",
316 if (proprietary_codecs) {
318 "filters/ffmpeg_aac_bitstream_converter.cc",
319 "filters/ffmpeg_aac_bitstream_converter.h",
320 "filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc",
321 "filters/ffmpeg_h264_to_annex_b_bitstream_converter.h",
326 if (current_cpu == "arm" && arm_use_neon) {
327 defines += [ "USE_NEON" ]
330 if (media_use_libvpx) {
332 "filters/vpx_video_decoder.cc",
333 "filters/vpx_video_decoder.h",
335 deps += [ "//third_party/libvpx" ]
340 "midi/midi_manager_android.cc",
341 "midi/usb_midi_device_android.cc",
342 "midi/usb_midi_device_android.h",
343 "midi/usb_midi_device_factory_android.cc",
344 "midi/usb_midi_device_factory_android.h",
345 "video/capture/android/video_capture_device_android.cc",
346 "video/capture/android/video_capture_device_android.h",
347 "video/capture/android/video_capture_device_factory_android.cc",
348 "video/capture/android/video_capture_device_factory_android.h",
351 "//media/base/android",
352 "//media/base/android:media_java",
353 "//media/base/android:media_jni_headers",
354 "//media/base/android:video_capture_jni_headers",
356 allow_circular_includes_from = [ "//media/base/android" ]
359 "filters/opus_audio_decoder.cc",
360 "filters/opus_audio_decoder.h",
361 "renderers/default_renderer_factory.cc",
362 "renderers/default_renderer_factory.h",
366 if (current_cpu != "arm" && is_chromeos) {
368 "filters/h264_bitstream_buffer.cc",
369 "filters/h264_bitstream_buffer.h",
373 if (use_alsa && use_udev) {
376 "midi/midi_manager_alsa.cc",
377 "midi/midi_manager_alsa.h",
379 deps += [ "//device/udev_linux" ]
382 # A simple WebM encoder for animated avatars on ChromeOS.
385 # Used for the generated listing header (ui/ozone/platform_list.h)
386 include_dirs += [ target_gen_dir ]
389 "ozone/media_ozone_platform.cc",
390 "ozone/media_ozone_platform.h",
391 ] + get_target_outputs(":generate_ozone_constructor_list")
394 ":generate_ozone_constructor_list",
402 "//third_party/decklink",
405 "CoreMIDI.framework",
406 "CoreVideo.framework",
414 "video/capture/linux/v4l2_capture_delegate_multi_plane.cc",
415 "video/capture/linux/v4l2_capture_delegate_multi_plane.h",
420 deps += [ "//media/base/mac" ]
424 deps += [ "//device/usb" ]
434 if (proprietary_codecs) {
436 "filters/h264_to_annex_b_bitstream_converter.cc",
437 "filters/h264_to_annex_b_bitstream_converter.h",
438 "formats/mp2t/es_adapter_video.cc",
439 "formats/mp2t/es_adapter_video.h",
440 "formats/mp2t/es_parser.cc",
441 "formats/mp2t/es_parser.h",
442 "formats/mp2t/es_parser_adts.cc",
443 "formats/mp2t/es_parser_adts.h",
444 "formats/mp2t/es_parser_h264.cc",
445 "formats/mp2t/es_parser_h264.h",
446 "formats/mp2t/es_parser_mpeg1audio.cc",
447 "formats/mp2t/es_parser_mpeg1audio.h",
448 "formats/mp2t/mp2t_common.h",
449 "formats/mp2t/mp2t_stream_parser.cc",
450 "formats/mp2t/mp2t_stream_parser.h",
451 "formats/mp2t/timestamp_unroller.cc",
452 "formats/mp2t/timestamp_unroller.h",
453 "formats/mp2t/ts_packet.cc",
454 "formats/mp2t/ts_packet.h",
455 "formats/mp2t/ts_section.h",
456 "formats/mp2t/ts_section_pat.cc",
457 "formats/mp2t/ts_section_pat.h",
458 "formats/mp2t/ts_section_pes.cc",
459 "formats/mp2t/ts_section_pes.h",
460 "formats/mp2t/ts_section_pmt.cc",
461 "formats/mp2t/ts_section_pmt.h",
462 "formats/mp2t/ts_section_psi.cc",
463 "formats/mp2t/ts_section_psi.h",
464 "formats/mp4/aac.cc",
466 "formats/mp4/avc.cc",
468 "formats/mp4/box_definitions.cc",
469 "formats/mp4/box_definitions.h",
470 "formats/mp4/box_reader.cc",
471 "formats/mp4/box_reader.h",
472 "formats/mp4/cenc.cc",
473 "formats/mp4/cenc.h",
474 "formats/mp4/es_descriptor.cc",
475 "formats/mp4/es_descriptor.h",
476 "formats/mp4/mp4_stream_parser.cc",
477 "formats/mp4/mp4_stream_parser.h",
478 "formats/mp4/sample_to_group_iterator.cc",
479 "formats/mp4/sample_to_group_iterator.h",
480 "formats/mp4/track_run_iterator.cc",
481 "formats/mp4/track_run_iterator.h",
482 "formats/mpeg/adts_constants.cc",
483 "formats/mpeg/adts_constants.h",
484 "formats/mpeg/adts_stream_parser.cc",
485 "formats/mpeg/adts_stream_parser.h",
486 "formats/mpeg/mpeg1_audio_stream_parser.cc",
487 "formats/mpeg/mpeg1_audio_stream_parser.h",
488 "formats/mpeg/mpeg_audio_stream_parser_base.cc",
489 "formats/mpeg/mpeg_audio_stream_parser_base.h",
499 ":shared_memory_support",
502 "//base/third_party/dynamic_annotations",
504 "//crypto:platform", # TODO(ajwong): This used to be provided by crypto.gyp via export_dependent_settings
505 "//gpu/command_buffer/common",
507 "//third_party/libyuv",
508 "//third_party/opus",
509 "//ui/events:events_base",
516 # Minimal media component for media/cast on iOS.
518 component("media_for_cast_ios") {
521 ":media_implementation",
523 all_dependent_configs = [ ":media_dependent_config" ]
524 include_dirs = [ "." ]
525 libs = [ "CoreVideo.framework" ]
528 ":shared_memory_support",
530 "//media/base:base_for_cast_ios",
537 test("media_unittests") {
539 "blink/skcanvas_video_renderer_unittest.cc",
540 "cdm/aes_decryptor_unittest.cc",
541 "cdm/cenc_utils_unittest.cc",
542 "cdm/json_web_key_unittest.cc",
543 "filters/audio_clock_unittest.cc",
544 "filters/audio_decoder_selector_unittest.cc",
545 "filters/audio_renderer_algorithm_unittest.cc",
546 "filters/chunk_demuxer_unittest.cc",
547 "filters/decrypting_audio_decoder_unittest.cc",
548 "filters/decrypting_demuxer_stream_unittest.cc",
549 "filters/decrypting_video_decoder_unittest.cc",
550 "filters/fake_demuxer_stream.cc",
551 "filters/fake_demuxer_stream.h",
552 "filters/fake_demuxer_stream_unittest.cc",
553 "filters/fake_video_decoder.cc",
554 "filters/fake_video_decoder.h",
555 "filters/fake_video_decoder_unittest.cc",
556 "filters/file_data_source_unittest.cc",
557 "filters/frame_processor_unittest.cc",
558 "filters/h264_bit_reader_unittest.cc",
559 "filters/h264_parser_unittest.cc",
560 "filters/jpeg_parser_unittest.cc",
561 "filters/source_buffer_stream_unittest.cc",
562 "filters/video_decoder_selector_unittest.cc",
563 "filters/video_frame_stream_unittest.cc",
564 "filters/vp8_bool_decoder_unittest.cc",
565 "filters/vp8_parser_unittest.cc",
566 "formats/common/offset_byte_queue_unittest.cc",
567 "formats/webm/cluster_builder.cc",
568 "formats/webm/cluster_builder.h",
569 "formats/webm/opus_packet_builder.cc",
570 "formats/webm/opus_packet_builder.h",
571 "formats/webm/tracks_builder.cc",
572 "formats/webm/tracks_builder.h",
573 "formats/webm/webm_cluster_parser_unittest.cc",
574 "formats/webm/webm_content_encodings_client_unittest.cc",
575 "formats/webm/webm_parser_unittest.cc",
576 "formats/webm/webm_tracks_parser_unittest.cc",
577 "formats/webm/webm_webvtt_parser_unittest.cc",
578 "midi/midi_manager_unittest.cc",
579 "midi/midi_manager_usb_unittest.cc",
580 "midi/midi_message_queue_unittest.cc",
581 "midi/midi_message_util_unittest.cc",
582 "midi/usb_midi_descriptor_parser_unittest.cc",
583 "midi/usb_midi_input_stream_unittest.cc",
584 "midi/usb_midi_output_stream_unittest.cc",
585 "renderers/audio_renderer_impl_unittest.cc",
586 "renderers/renderer_impl_unittest.cc",
587 "renderers/video_renderer_impl_unittest.cc",
588 "video/capture/fake_video_capture_device_unittest.cc",
589 "video/capture/video_capture_device_unittest.cc",
590 "video/h264_poc_unittest.cc",
593 # TODO(wolenetz): Fix size_t to int trunctaion in win64.
594 # See http://crbug.com/171009
595 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
601 "//base/test:test_support",
602 "//media/audio:unittests",
603 "//media/audio:test_support",
604 "//media/base:unittests",
605 "//media/base:test_support",
606 "//media/test:pipeline_integration_tests",
607 "//skia", # Direct dependency required to inherit config.
610 "//third_party/widevine/cdm:version_h",
611 "//ui/gfx:test_support",
617 "//media/base/android",
619 #"//testing/android/native_test:native_test_native_code"
623 if (media_use_ffmpeg) {
625 "ffmpeg/ffmpeg_common_unittest.cc",
626 "filters/audio_decoder_unittest.cc",
627 "filters/audio_file_reader_unittest.cc",
628 "filters/blocking_url_protocol_unittest.cc",
629 "filters/ffmpeg_demuxer_unittest.cc",
630 "filters/ffmpeg_glue_unittest.cc",
631 "filters/ffmpeg_video_decoder_unittest.cc",
632 "filters/in_memory_url_protocol_unittest.cc",
636 if (current_cpu != "arm" && is_chromeos) {
637 sources += [ "filters/h264_bitstream_buffer_unittest.cc" ]
640 if (proprietary_codecs) {
642 "filters/ffmpeg_aac_bitstream_converter_unittest.cc",
643 "filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc",
644 "filters/h264_to_annex_b_bitstream_converter_unittest.cc",
645 "formats/common/stream_parser_test_base.cc",
646 "formats/common/stream_parser_test_base.h",
647 "formats/mp2t/es_adapter_video_unittest.cc",
648 "formats/mp2t/es_parser_adts_unittest.cc",
649 "formats/mp2t/es_parser_h264_unittest.cc",
650 "formats/mp2t/es_parser_mpeg1audio_unittest.cc",
651 "formats/mp2t/es_parser_test_base.cc",
652 "formats/mp2t/es_parser_test_base.h",
653 "formats/mp2t/mp2t_stream_parser_unittest.cc",
654 "formats/mp2t/timestamp_unroller_unittest.cc",
655 "formats/mp4/aac_unittest.cc",
656 "formats/mp4/avc_unittest.cc",
657 "formats/mp4/box_reader_unittest.cc",
658 "formats/mp4/es_descriptor_unittest.cc",
659 "formats/mp4/mp4_stream_parser_unittest.cc",
660 "formats/mp4/sample_to_group_iterator_unittest.cc",
661 "formats/mp4/track_run_iterator_unittest.cc",
662 "formats/mpeg/adts_stream_parser_unittest.cc",
663 "formats/mpeg/mpeg1_audio_stream_parser_unittest.cc",
667 if (is_mac || is_ios) {
668 deps += [ "//media/base/mac" ]
673 "midi/midi_manager_mac_unittest.cc",
674 "video/capture/mac/video_capture_device_factory_mac_unittest.mm",
677 # Required by midi_manager_mac_unittest.cc.
678 "CoreMIDI.framework",
682 if (use_alsa && use_udev) {
683 sources += [ "midi/midi_manager_alsa_unittest.cc" ]
687 # # Needed by media_drm_bridge.cc.
691 configs += [ ":media_config" ]
693 if (media_use_ffmpeg) {
694 deps += [ "//third_party/ffmpeg" ] # Direct dependency required to inherit config.
698 test("media_perftests") {
699 configs += [ ":media_config" ]
702 ":shared_memory_support",
704 "//base/test:test_support",
705 "//media/audio:test_support",
706 "//media/base:perftests",
707 "//media/base:test_support",
708 "//media/test:pipeline_integration_perftests",
712 "//third_party/widevine/cdm:version_h",
713 "//ui/gfx:test_support",
716 deps += [ "//ui/gl" ]
718 if (media_use_ffmpeg) {
719 deps += [ "//third_party/ffmpeg" ] # Direct dependency required to inherit config.
723 source_set("test_support") {
726 "renderers/mock_gpu_video_accelerator_factories.cc",
727 "renderers/mock_gpu_video_accelerator_factories.h",
728 "video/mock_video_decode_accelerator.cc",
729 "video/mock_video_decode_accelerator.h",
733 ":shared_memory_support",
741 # TODO(dalecurtis): How to split this across audio/base directories??
742 component("shared_memory_support") {
744 "audio/audio_parameters.cc",
745 "audio/audio_parameters.h",
748 "base/channel_layout.cc",
749 "base/channel_layout.h",
751 "base/media_export.h",
752 "base/vector_math.cc",
753 "base/vector_math.h",
757 ":media_implementation",
764 if (media_use_ffmpeg) {
765 test("ffmpeg_regression_tests") {
767 "base/run_all_unittests.cc",
768 "ffmpeg/ffmpeg_regression_tests.cc",
771 configs += [ "//media:media_config" ]
774 "//base/test:test_support",
776 "//media:test_support",
777 "//media/audio:test_support",
778 "//media/base:test_support",
779 "//media/test:pipeline_integration_tests",
782 "//third_party/ffmpeg",
784 "//ui/gfx:test_support",