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" ]
37 config("media_implementation") {
38 defines = [ "MEDIA_IMPLEMENTATION" ]
41 config("media_dependent_config") {
43 if (!media_use_libvpx) {
44 defines += [ "MEDIA_DISABLE_LIBVPX" ]
46 if (!media_use_ffmpeg) {
47 defines += [ "MEDIA_DISABLE_FFMPEG" ]
52 "/DELAYLOAD:mfplat.dll",
53 "/DELAYLOAD:mfreadwrite.dll",
59 action("generate_ozone_constructor_list") {
60 # Ozone platform objects are auto-generated using similar
61 # patterns for naming and classes constructors. Here we build the
62 # object MediaOzonePlatform.
63 script = "../ui/ozone/generate_constructor_list.py"
65 platform_list_txt_file = "$target_gen_dir/../ui/ozone/platform_list.txt"
66 constructor_list_cc_file = "$target_gen_dir/ozone/constructor_list.cc"
69 platform_list_txt_file,
72 constructor_list_cc_file,
75 "--platform_list=" + rebase_path(platform_list_txt_file, root_build_dir),
76 "--output_cc=" + rebase_path(constructor_list_cc_file, root_build_dir),
78 "--typename=MediaOzonePlatform",
79 "--include=\"media/ozone/media_ozone_platform.h\"",
82 "//ui/ozone:generate_ozone_platform_list",
89 "blink/skcanvas_video_renderer.cc",
90 "blink/skcanvas_video_renderer.h",
91 "capture/content/animated_content_sampler.cc",
92 "capture/content/animated_content_sampler.h",
93 "capture/content/capture_resolution_chooser.cc",
94 "capture/content/capture_resolution_chooser.h",
95 "capture/content/feedback_signal_accumulator.cc",
96 "capture/content/feedback_signal_accumulator.h",
97 "capture/content/screen_capture_device_core.cc",
98 "capture/content/screen_capture_device_core.h",
99 "capture/content/smooth_event_sampler.cc",
100 "capture/content/smooth_event_sampler.h",
101 "capture/content/thread_safe_capture_oracle.cc",
102 "capture/content/thread_safe_capture_oracle.h",
103 "capture/content/video_capture_oracle.cc",
104 "capture/content/video_capture_oracle.h",
105 "capture/video/fake_video_capture_device.cc",
106 "capture/video/fake_video_capture_device.h",
107 "capture/video/fake_video_capture_device_factory.cc",
108 "capture/video/fake_video_capture_device_factory.h",
109 "capture/video/file_video_capture_device.cc",
110 "capture/video/file_video_capture_device.h",
111 "capture/video/file_video_capture_device_factory.cc",
112 "capture/video/file_video_capture_device_factory.h",
113 "capture/video/linux/v4l2_capture_delegate.cc",
114 "capture/video/linux/v4l2_capture_delegate.h",
115 "capture/video/linux/v4l2_capture_delegate_multi_plane.cc",
116 "capture/video/linux/v4l2_capture_delegate_multi_plane.h",
117 "capture/video/linux/v4l2_capture_delegate_single_plane.cc",
118 "capture/video/linux/v4l2_capture_delegate_single_plane.h",
119 "capture/video/linux/video_capture_device_chromeos.cc",
120 "capture/video/linux/video_capture_device_chromeos.h",
121 "capture/video/linux/video_capture_device_factory_linux.cc",
122 "capture/video/linux/video_capture_device_factory_linux.h",
123 "capture/video/linux/video_capture_device_linux.cc",
124 "capture/video/linux/video_capture_device_linux.h",
125 "capture/video/mac/platform_video_capturing_mac.h",
126 "capture/video/mac/video_capture_device_avfoundation_mac.h",
127 "capture/video/mac/video_capture_device_avfoundation_mac.mm",
128 "capture/video/mac/video_capture_device_decklink_mac.h",
129 "capture/video/mac/video_capture_device_decklink_mac.mm",
130 "capture/video/mac/video_capture_device_factory_mac.h",
131 "capture/video/mac/video_capture_device_factory_mac.mm",
132 "capture/video/mac/video_capture_device_mac.h",
133 "capture/video/mac/video_capture_device_mac.mm",
134 "capture/video/mac/video_capture_device_qtkit_mac.h",
135 "capture/video/mac/video_capture_device_qtkit_mac.mm",
136 "capture/video/video_capture_device.cc",
137 "capture/video/video_capture_device.h",
138 "capture/video/video_capture_device_factory.cc",
139 "capture/video/video_capture_device_factory.h",
140 "capture/video/video_capture_device_info.cc",
141 "capture/video/video_capture_device_info.h",
142 "capture/video/win/capability_list_win.cc",
143 "capture/video/win/capability_list_win.h",
144 "capture/video/win/filter_base_win.cc",
145 "capture/video/win/filter_base_win.h",
146 "capture/video/win/pin_base_win.cc",
147 "capture/video/win/pin_base_win.h",
148 "capture/video/win/sink_filter_observer_win.h",
149 "capture/video/win/sink_filter_win.cc",
150 "capture/video/win/sink_filter_win.h",
151 "capture/video/win/sink_input_pin_win.cc",
152 "capture/video/win/sink_input_pin_win.h",
153 "capture/video/win/video_capture_device_factory_win.cc",
154 "capture/video/win/video_capture_device_factory_win.h",
155 "capture/video/win/video_capture_device_mf_win.cc",
156 "capture/video/win/video_capture_device_mf_win.h",
157 "capture/video/win/video_capture_device_win.cc",
158 "capture/video/win/video_capture_device_win.h",
159 "cdm/aes_decryptor.cc",
160 "cdm/aes_decryptor.h",
161 "cdm/default_cdm_factory.cc",
162 "cdm/default_cdm_factory.h",
163 "cdm/json_web_key.cc",
164 "cdm/json_web_key.h",
165 "cdm/key_system_names.cc",
166 "cdm/key_system_names.h",
167 "cdm/player_tracker_impl.cc",
168 "cdm/player_tracker_impl.h",
169 "cdm/proxy_decryptor.cc",
170 "cdm/proxy_decyrptor.h",
171 "ffmpeg/ffmpeg_deleters.h",
172 "filters/audio_clock.cc",
173 "filters/audio_clock.h",
174 "filters/audio_renderer_algorithm.cc",
175 "filters/audio_renderer_algorithm.h",
176 "filters/chunk_demuxer.cc",
177 "filters/chunk_demuxer.h",
178 "filters/context_3d.h",
179 "filters/decoder_selector.cc",
180 "filters/decoder_selector.h",
181 "filters/decoder_stream.cc",
182 "filters/decoder_stream.h",
183 "filters/decoder_stream_traits.cc",
184 "filters/decoder_stream_traits.h",
185 "filters/decrypting_audio_decoder.cc",
186 "filters/decrypting_audio_decoder.h",
187 "filters/decrypting_demuxer_stream.cc",
188 "filters/decrypting_demuxer_stream.h",
189 "filters/decrypting_video_decoder.cc",
190 "filters/decrypting_video_decoder.h",
191 "filters/default_media_permission.cc",
192 "filters/default_media_permission.h",
193 "filters/file_data_source.cc",
194 "filters/file_data_source.h",
195 "filters/frame_processor.cc",
196 "filters/frame_processor.h",
197 "filters/gpu_video_decoder.cc",
198 "filters/gpu_video_decoder.h",
199 "filters/h264_bit_reader.cc",
200 "filters/h264_bit_reader.h",
201 "filters/h264_parser.cc",
202 "filters/h264_parser.h",
203 "filters/jpeg_parser.cc",
204 "filters/jpeg_parser.h",
205 "filters/source_buffer_platform.cc",
206 "filters/source_buffer_platform.h",
207 "filters/source_buffer_range.cc",
208 "filters/source_buffer_range.h",
209 "filters/source_buffer_stream.cc",
210 "filters/source_buffer_stream.h",
211 "filters/stream_parser_factory.cc",
212 "filters/stream_parser_factory.h",
213 "filters/video_cadence_estimator.cc",
214 "filters/video_cadence_estimator.h",
215 "filters/video_renderer_algorithm.cc",
216 "filters/video_renderer_algorithm.h",
217 "filters/vp8_bool_decoder.cc",
218 "filters/vp8_bool_decoder.h",
219 "filters/vp8_parser.cc",
220 "filters/vp8_parser.h",
221 "filters/webvtt_util.h",
222 "filters/wsola_internals.cc",
223 "filters/wsola_internals.h",
224 "formats/common/offset_byte_queue.cc",
225 "formats/common/offset_byte_queue.h",
226 "formats/webm/webm_audio_client.cc",
227 "formats/webm/webm_audio_client.h",
228 "formats/webm/webm_cluster_parser.cc",
229 "formats/webm/webm_cluster_parser.h",
230 "formats/webm/webm_constants.cc",
231 "formats/webm/webm_constants.h",
232 "formats/webm/webm_content_encodings.cc",
233 "formats/webm/webm_content_encodings.h",
234 "formats/webm/webm_content_encodings_client.cc",
235 "formats/webm/webm_content_encodings_client.h",
236 "formats/webm/webm_crypto_helpers.cc",
237 "formats/webm/webm_crypto_helpers.h",
238 "formats/webm/webm_info_parser.cc",
239 "formats/webm/webm_info_parser.h",
240 "formats/webm/webm_parser.cc",
241 "formats/webm/webm_parser.h",
242 "formats/webm/webm_stream_parser.cc",
243 "formats/webm/webm_stream_parser.h",
244 "formats/webm/webm_tracks_parser.cc",
245 "formats/webm/webm_tracks_parser.h",
246 "formats/webm/webm_video_client.cc",
247 "formats/webm/webm_video_client.h",
248 "formats/webm/webm_webvtt_parser.cc",
249 "formats/webm/webm_webvtt_parser.h",
250 "renderers/audio_renderer_impl.cc",
251 "renderers/audio_renderer_impl.h",
252 "renderers/default_renderer_factory.cc",
253 "renderers/default_renderer_factory.h",
254 "renderers/gpu_video_accelerator_factories.h",
255 "renderers/renderer_impl.cc",
256 "renderers/renderer_impl.h",
257 "renderers/video_renderer_impl.cc",
258 "renderers/video_renderer_impl.h",
259 "video/fake_video_encode_accelerator.cc",
260 "video/fake_video_encode_accelerator.h",
261 "video/gpu_memory_buffer_video_frame_pool.cc",
262 "video/gpu_memory_buffer_video_frame_pool.h",
265 "video/jpeg_decode_accelerator.cc",
266 "video/jpeg_decode_accelerator.h",
269 "video/video_decode_accelerator.cc",
270 "video/video_decode_accelerator.h",
271 "video/video_encode_accelerator.cc",
272 "video/video_encode_accelerator.h",
277 ":media_implementation",
279 # TODO(wolenetz): Fix size_t to int trunctaion in win64.
280 # See http://crbug.com/171009
281 "//build/config/compiler:no_size_t_to_int_warning",
283 all_dependent_configs = [ ":media_dependent_config" ]
285 allow_circular_includes_from = []
291 include_dirs = [ "." ]
292 if (media_use_ffmpeg) {
293 deps += [ "//third_party/ffmpeg" ]
295 "ffmpeg/ffmpeg_common.cc",
296 "ffmpeg/ffmpeg_common.h",
297 "filters/audio_file_reader.cc",
298 "filters/audio_file_reader.h",
299 "filters/blocking_url_protocol.cc",
300 "filters/blocking_url_protocol.h",
301 "filters/ffmpeg_audio_decoder.cc",
302 "filters/ffmpeg_audio_decoder.h",
303 "filters/ffmpeg_bitstream_converter.h",
304 "filters/ffmpeg_demuxer.cc",
305 "filters/ffmpeg_demuxer.h",
306 "filters/ffmpeg_glue.cc",
307 "filters/ffmpeg_glue.h",
308 "filters/ffmpeg_video_decoder.cc",
309 "filters/ffmpeg_video_decoder.h",
310 "filters/in_memory_url_protocol.cc",
311 "filters/in_memory_url_protocol.h",
313 if (proprietary_codecs) {
315 "filters/ffmpeg_aac_bitstream_converter.cc",
316 "filters/ffmpeg_aac_bitstream_converter.h",
317 "filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc",
318 "filters/ffmpeg_h264_to_annex_b_bitstream_converter.h",
323 if (current_cpu == "arm" && arm_use_neon) {
324 defines += [ "USE_NEON" ]
327 if (media_use_libvpx) {
329 "filters/vpx_video_decoder.cc",
330 "filters/vpx_video_decoder.h",
332 deps += [ "//third_party/libvpx" ]
337 "capture/video/android/video_capture_device_android.cc",
338 "capture/video/android/video_capture_device_android.h",
339 "capture/video/android/video_capture_device_factory_android.cc",
340 "capture/video/android/video_capture_device_factory_android.h",
343 "//media/base/android",
344 "//media/base/android:media_jni_headers",
345 "//media/base/android:video_capture_jni_headers",
347 allow_circular_includes_from = [ "//media/base/android" ]
350 "filters/opus_audio_decoder.cc",
351 "filters/opus_audio_decoder.h",
355 if (current_cpu != "arm" && is_chromeos) {
357 "filters/h264_bitstream_buffer.cc",
358 "filters/h264_bitstream_buffer.h",
362 # A simple WebM encoder for animated avatars on ChromeOS.
365 # Used for the generated listing header (ui/ozone/platform_list.h)
366 include_dirs += [ target_gen_dir ]
369 "ozone/media_ozone_platform.cc",
370 "ozone/media_ozone_platform.h",
371 ] + get_target_outputs(":generate_ozone_constructor_list")
374 ":generate_ozone_constructor_list",
382 "//third_party/decklink",
385 "CoreVideo.framework",
393 "capture/video/linux/v4l2_capture_delegate_multi_plane.cc",
394 "capture/video/linux/v4l2_capture_delegate_multi_plane.h",
399 deps += [ "//media/base/mac" ]
403 deps += [ "//media/base/win" ]
412 if (proprietary_codecs) {
416 "filters/h264_to_annex_b_bitstream_converter.cc",
417 "filters/h264_to_annex_b_bitstream_converter.h",
418 "formats/mp2t/es_adapter_video.cc",
419 "formats/mp2t/es_adapter_video.h",
420 "formats/mp2t/es_parser.cc",
421 "formats/mp2t/es_parser.h",
422 "formats/mp2t/es_parser_adts.cc",
423 "formats/mp2t/es_parser_adts.h",
424 "formats/mp2t/es_parser_h264.cc",
425 "formats/mp2t/es_parser_h264.h",
426 "formats/mp2t/es_parser_mpeg1audio.cc",
427 "formats/mp2t/es_parser_mpeg1audio.h",
428 "formats/mp2t/mp2t_common.h",
429 "formats/mp2t/mp2t_stream_parser.cc",
430 "formats/mp2t/mp2t_stream_parser.h",
431 "formats/mp2t/timestamp_unroller.cc",
432 "formats/mp2t/timestamp_unroller.h",
433 "formats/mp2t/ts_packet.cc",
434 "formats/mp2t/ts_packet.h",
435 "formats/mp2t/ts_section.h",
436 "formats/mp2t/ts_section_pat.cc",
437 "formats/mp2t/ts_section_pat.h",
438 "formats/mp2t/ts_section_pes.cc",
439 "formats/mp2t/ts_section_pes.h",
440 "formats/mp2t/ts_section_pmt.cc",
441 "formats/mp2t/ts_section_pmt.h",
442 "formats/mp2t/ts_section_psi.cc",
443 "formats/mp2t/ts_section_psi.h",
444 "formats/mp4/aac.cc",
446 "formats/mp4/avc.cc",
448 "formats/mp4/box_definitions.cc",
449 "formats/mp4/box_definitions.h",
450 "formats/mp4/box_reader.cc",
451 "formats/mp4/box_reader.h",
452 "formats/mp4/cenc.cc",
453 "formats/mp4/cenc.h",
454 "formats/mp4/es_descriptor.cc",
455 "formats/mp4/es_descriptor.h",
456 "formats/mp4/mp4_stream_parser.cc",
457 "formats/mp4/mp4_stream_parser.h",
458 "formats/mp4/sample_to_group_iterator.cc",
459 "formats/mp4/sample_to_group_iterator.h",
460 "formats/mp4/track_run_iterator.cc",
461 "formats/mp4/track_run_iterator.h",
462 "formats/mpeg/adts_constants.cc",
463 "formats/mpeg/adts_constants.h",
464 "formats/mpeg/adts_stream_parser.cc",
465 "formats/mpeg/adts_stream_parser.h",
466 "formats/mpeg/mpeg1_audio_stream_parser.cc",
467 "formats/mpeg/mpeg1_audio_stream_parser.h",
468 "formats/mpeg/mpeg_audio_stream_parser_base.cc",
469 "formats/mpeg/mpeg_audio_stream_parser_base.h",
479 ":shared_memory_support",
482 "//base/third_party/dynamic_annotations",
484 "//crypto:platform", # TODO(ajwong): This used to be provided by crypto.gyp via export_dependent_settings
485 "//gpu/command_buffer/common",
487 "//third_party/libyuv",
488 "//third_party/opus",
489 "//ui/events:events_base",
496 # Minimal media component for media/cast on iOS.
498 component("media_for_cast_ios") {
501 ":media_implementation",
503 all_dependent_configs = [ ":media_dependent_config" ]
504 include_dirs = [ "." ]
505 libs = [ "CoreVideo.framework" ]
508 ":shared_memory_support",
510 "//gpu/command_buffer/common",
511 "//media/base:base_for_cast_ios",
518 test("media_unittests") {
520 "blink/skcanvas_video_renderer_unittest.cc",
521 "capture/content/animated_content_sampler_unittest.cc",
522 "capture/content/capture_resolution_chooser_unittest.cc",
523 "capture/content/feedback_signal_accumulator_unittest.cc",
524 "capture/content/smooth_event_sampler_unittest.cc",
525 "capture/content/video_capture_oracle_unittest.cc",
526 "capture/video/fake_video_capture_device_unittest.cc",
527 "capture/video/video_capture_device_unittest.cc",
528 "cdm/aes_decryptor_unittest.cc",
529 "cdm/json_web_key_unittest.cc",
530 "filters/audio_clock_unittest.cc",
531 "filters/audio_decoder_selector_unittest.cc",
532 "filters/audio_renderer_algorithm_unittest.cc",
533 "filters/chunk_demuxer_unittest.cc",
534 "filters/decrypting_audio_decoder_unittest.cc",
535 "filters/decrypting_demuxer_stream_unittest.cc",
536 "filters/decrypting_video_decoder_unittest.cc",
537 "filters/fake_video_decoder.cc",
538 "filters/fake_video_decoder.h",
539 "filters/fake_video_decoder_unittest.cc",
540 "filters/file_data_source_unittest.cc",
541 "filters/frame_processor_unittest.cc",
542 "filters/h264_bit_reader_unittest.cc",
543 "filters/h264_parser_unittest.cc",
544 "filters/jpeg_parser_unittest.cc",
545 "filters/source_buffer_stream_unittest.cc",
546 "filters/video_cadence_estimator_unittest.cc",
547 "filters/video_decoder_selector_unittest.cc",
548 "filters/video_frame_stream_unittest.cc",
549 "filters/video_renderer_algorithm_unittest.cc",
550 "filters/vp8_bool_decoder_unittest.cc",
551 "filters/vp8_parser_unittest.cc",
552 "formats/common/offset_byte_queue_unittest.cc",
553 "formats/webm/cluster_builder.cc",
554 "formats/webm/cluster_builder.h",
555 "formats/webm/opus_packet_builder.cc",
556 "formats/webm/opus_packet_builder.h",
557 "formats/webm/tracks_builder.cc",
558 "formats/webm/tracks_builder.h",
559 "formats/webm/webm_cluster_parser_unittest.cc",
560 "formats/webm/webm_content_encodings_client_unittest.cc",
561 "formats/webm/webm_parser_unittest.cc",
562 "formats/webm/webm_tracks_parser_unittest.cc",
563 "formats/webm/webm_webvtt_parser_unittest.cc",
564 "renderers/audio_renderer_impl_unittest.cc",
565 "renderers/renderer_impl_unittest.cc",
566 "renderers/video_renderer_impl_unittest.cc",
567 "video/h264_poc_unittest.cc",
570 # TODO(wolenetz): Fix size_t to int trunctaion in win64.
571 # See http://crbug.com/171009
572 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
578 "//base/test:test_support",
579 "//media/audio:unittests",
580 "//media/audio:test_support",
581 "//media/base:unittests",
582 "//media/base:test_support",
583 "//media/test:pipeline_integration_tests",
584 "//skia", # Direct dependency required to inherit config.
587 "//third_party/widevine/cdm:version_h",
588 "//ui/gfx:test_support",
593 isolate_file = "media_unittests.isolate"
595 "//media/base/android",
597 #"//testing/android/native_test:native_test_native_code"
601 if (media_use_ffmpeg) {
603 "ffmpeg/ffmpeg_common_unittest.cc",
604 "filters/audio_decoder_unittest.cc",
605 "filters/audio_file_reader_unittest.cc",
606 "filters/blocking_url_protocol_unittest.cc",
607 "filters/ffmpeg_demuxer_unittest.cc",
608 "filters/ffmpeg_glue_unittest.cc",
609 "filters/ffmpeg_video_decoder_unittest.cc",
610 "filters/in_memory_url_protocol_unittest.cc",
614 if (current_cpu != "arm" && is_chromeos) {
615 sources += [ "filters/h264_bitstream_buffer_unittest.cc" ]
618 if (proprietary_codecs) {
620 "cdm/cenc_utils_unittest.cc",
621 "filters/h264_to_annex_b_bitstream_converter_unittest.cc",
622 "formats/common/stream_parser_test_base.cc",
623 "formats/common/stream_parser_test_base.h",
624 "formats/mp2t/es_adapter_video_unittest.cc",
625 "formats/mp2t/es_parser_adts_unittest.cc",
626 "formats/mp2t/es_parser_h264_unittest.cc",
627 "formats/mp2t/es_parser_mpeg1audio_unittest.cc",
628 "formats/mp2t/es_parser_test_base.cc",
629 "formats/mp2t/es_parser_test_base.h",
630 "formats/mp2t/mp2t_stream_parser_unittest.cc",
631 "formats/mp2t/timestamp_unroller_unittest.cc",
632 "formats/mp4/aac_unittest.cc",
633 "formats/mp4/avc_unittest.cc",
634 "formats/mp4/box_reader_unittest.cc",
635 "formats/mp4/es_descriptor_unittest.cc",
636 "formats/mp4/mp4_stream_parser_unittest.cc",
637 "formats/mp4/sample_to_group_iterator_unittest.cc",
638 "formats/mp4/track_run_iterator_unittest.cc",
639 "formats/mpeg/adts_stream_parser_unittest.cc",
640 "formats/mpeg/mpeg1_audio_stream_parser_unittest.cc",
642 if (media_use_ffmpeg) {
644 "filters/ffmpeg_aac_bitstream_converter_unittest.cc",
645 "filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc",
650 if (is_mac || is_ios) {
651 deps += [ "//media/base/mac" ]
656 [ "capture/video/mac/video_capture_device_factory_mac_unittest.mm" ]
660 # # Needed by media_drm_bridge.cc.
664 configs += [ ":media_config" ]
666 if (media_use_ffmpeg) {
667 deps += [ "//third_party/ffmpeg" ] # Direct dependency required to inherit config.
671 test("media_perftests") {
672 configs += [ ":media_config" ]
675 ":shared_memory_support",
677 "//base/test:test_support",
678 "//media/audio:test_support",
679 "//media/base:perftests",
680 "//media/base:test_support",
681 "//media/test:pipeline_integration_perftests",
685 "//third_party/widevine/cdm:version_h",
686 "//ui/gfx:test_support",
689 deps += [ "//ui/gl" ]
690 isolate_file = "media_perftests.isolate"
692 if (media_use_ffmpeg) {
693 deps += [ "//third_party/ffmpeg" ] # Direct dependency required to inherit config.
697 # For running the subset of media_unittests that might require audio hardware
698 # separately on GPU bots. media_unittests includes these too.
699 test("audio_unittests") {
701 "base/run_all_unittests.cc",
705 "//base/test:test_support",
706 "//media/audio:unittests",
707 "//ui/gfx:test_support",
711 source_set("test_support") {
714 "renderers/mock_gpu_video_accelerator_factories.cc",
715 "renderers/mock_gpu_video_accelerator_factories.h",
716 "video/mock_video_decode_accelerator.cc",
717 "video/mock_video_decode_accelerator.h",
721 ":shared_memory_support",
729 # TODO(dalecurtis): How to split this across audio/base directories??
730 component("shared_memory_support") {
732 "audio/audio_parameters.cc",
733 "audio/audio_parameters.h",
736 "base/channel_layout.cc",
737 "base/channel_layout.h",
739 "base/media_export.h",
740 "base/vector_math.cc",
741 "base/vector_math.h",
745 ":media_implementation",
752 if (media_use_ffmpeg) {
753 test("ffmpeg_regression_tests") {
755 "base/run_all_unittests.cc",
756 "ffmpeg/ffmpeg_regression_tests.cc",
759 configs += [ "//media:media_config" ]
762 "//base/test:test_support",
764 "//media:test_support",
765 "//media/audio:test_support",
766 "//media/base:test_support",
767 "//media/test:pipeline_integration_tests",
770 "//third_party/ffmpeg",
772 "//ui/gfx:test_support",