1 # Copyright (c) 2012 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.
8 # Override to dynamically link the cras (ChromeOS audio) library.
10 # Option e.g. for Linux distributions to link pulseaudio directly
11 # (DT_NEEDED) instead of using dlopen. This helps with automated
12 # detection of ABI mismatches and prevents silent errors.
13 'linux_link_pulseaudio%': 0,
15 # Enable ALSA and Pulse for runtime selection.
16 ['(OS=="linux" or OS=="freebsd" or OS=="solaris") and (embedded!=1 or (chromecast==1 and target_arch!="arm"))', {
17 # ALSA is always needed for Web MIDI even if the cras is enabled.
30 # low memory buffer is used in non-Android based chromecast build due to hardware limitation.
31 ['chromecast==1 and OS!="android"', {
32 'use_low_memory_buffer%': 1,
34 'use_low_memory_buffer%': 0,
40 'media_variables.gypi',
45 'target_name': 'media',
46 'type': '<(component)',
48 '../base/base.gyp:base',
49 '../base/base.gyp:base_i18n',
50 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
51 '../crypto/crypto.gyp:crypto',
52 '../gpu/gpu.gyp:command_buffer_common',
53 '../skia/skia.gyp:skia',
54 '../third_party/libyuv/libyuv.gyp:libyuv',
55 '../third_party/opus/opus.gyp:opus',
56 '../ui/events/events.gyp:events_base',
57 '../ui/gfx/gfx.gyp:gfx',
58 '../ui/gfx/gfx.gyp:gfx_geometry',
59 '../url/url.gyp:url_lib',
60 'shared_memory_support',
62 'export_dependent_settings': [
63 '../third_party/opus/opus.gyp:opus',
66 'MEDIA_IMPLEMENTATION',
72 'audio/agc_audio_stream.h',
73 'audio/alsa/alsa_input.cc',
74 'audio/alsa/alsa_input.h',
75 'audio/alsa/alsa_output.cc',
76 'audio/alsa/alsa_output.h',
77 'audio/alsa/alsa_util.cc',
78 'audio/alsa/alsa_util.h',
79 'audio/alsa/alsa_wrapper.cc',
80 'audio/alsa/alsa_wrapper.h',
81 'audio/alsa/audio_manager_alsa.cc',
82 'audio/alsa/audio_manager_alsa.h',
83 'audio/android/audio_manager_android.cc',
84 'audio/android/audio_manager_android.h',
85 'audio/android/audio_record_input.cc',
86 'audio/android/audio_record_input.h',
87 'audio/android/opensles_input.cc',
88 'audio/android/opensles_input.h',
89 'audio/android/opensles_output.cc',
90 'audio/android/opensles_output.h',
91 'audio/android/opensles_wrapper.cc',
92 'audio/audio_device_name.cc',
93 'audio/audio_device_name.h',
94 'audio/audio_device_thread.cc',
95 'audio/audio_device_thread.h',
96 'audio/audio_input_controller.cc',
97 'audio/audio_input_controller.h',
98 'audio/audio_input_device.cc',
99 'audio/audio_input_device.h',
100 'audio/audio_input_ipc.cc',
101 'audio/audio_input_ipc.h',
103 'audio/audio_manager.cc',
104 'audio/audio_manager.h',
105 'audio/audio_manager_base.cc',
106 'audio/audio_manager_base.h',
107 'audio/audio_output_controller.cc',
108 'audio/audio_output_controller.h',
109 'audio/audio_output_device.cc',
110 'audio/audio_output_device.h',
111 'audio/audio_output_dispatcher.cc',
112 'audio/audio_output_dispatcher.h',
113 'audio/audio_output_dispatcher_impl.cc',
114 'audio/audio_output_dispatcher_impl.h',
115 'audio/audio_output_ipc.cc',
116 'audio/audio_output_ipc.h',
117 'audio/audio_output_proxy.cc',
118 'audio/audio_output_proxy.h',
119 'audio/audio_output_resampler.cc',
120 'audio/audio_output_resampler.h',
121 'audio/audio_output_stream_sink.cc',
122 'audio/audio_output_stream_sink.h',
123 'audio/audio_power_monitor.cc',
124 'audio/audio_power_monitor.h',
125 'audio/audio_source_diverter.h',
126 'audio/clockless_audio_sink.cc',
127 'audio/clockless_audio_sink.h',
128 'audio/cras/audio_manager_cras.cc',
129 'audio/cras/audio_manager_cras.h',
130 'audio/cras/cras_input.cc',
131 'audio/cras/cras_input.h',
132 'audio/cras/cras_unified.cc',
133 'audio/cras/cras_unified.h',
134 'audio/fake_audio_input_stream.cc',
135 'audio/fake_audio_input_stream.h',
136 'audio/fake_audio_log_factory.cc',
137 'audio/fake_audio_log_factory.h',
138 'audio/fake_audio_manager.cc',
139 'audio/fake_audio_manager.h',
140 'audio/fake_audio_output_stream.cc',
141 'audio/fake_audio_output_stream.h',
142 'audio/fake_audio_worker.cc',
143 'audio/fake_audio_worker.h',
144 'audio/linux/audio_manager_linux.cc',
145 'audio/mac/audio_auhal_mac.cc',
146 'audio/mac/audio_auhal_mac.h',
147 'audio/mac/audio_device_listener_mac.cc',
148 'audio/mac/audio_device_listener_mac.h',
149 'audio/mac/audio_input_mac.cc',
150 'audio/mac/audio_input_mac.h',
151 'audio/mac/audio_low_latency_input_mac.cc',
152 'audio/mac/audio_low_latency_input_mac.h',
153 'audio/mac/audio_manager_mac.cc',
154 'audio/mac/audio_manager_mac.h',
155 'audio/null_audio_sink.cc',
156 'audio/null_audio_sink.h',
157 'audio/openbsd/audio_manager_openbsd.cc',
158 'audio/openbsd/audio_manager_openbsd.h',
159 'audio/pulse/audio_manager_pulse.cc',
160 'audio/pulse/audio_manager_pulse.h',
161 'audio/pulse/pulse_input.cc',
162 'audio/pulse/pulse_input.h',
163 'audio/pulse/pulse_output.cc',
164 'audio/pulse/pulse_output.h',
165 'audio/pulse/pulse_util.cc',
166 'audio/pulse/pulse_util.h',
167 'audio/sample_rates.cc',
168 'audio/sample_rates.h',
169 'audio/scoped_task_runner_observer.cc',
170 'audio/scoped_task_runner_observer.h',
171 'audio/simple_sources.cc',
172 'audio/simple_sources.h',
173 'audio/sounds/audio_stream_handler.cc',
174 'audio/sounds/audio_stream_handler.h',
175 'audio/sounds/sounds_manager.cc',
176 'audio/sounds/sounds_manager.h',
177 'audio/sounds/wav_audio_handler.cc',
178 'audio/sounds/wav_audio_handler.h',
179 'audio/virtual_audio_input_stream.cc',
180 'audio/virtual_audio_input_stream.h',
181 'audio/virtual_audio_output_stream.cc',
182 'audio/virtual_audio_output_stream.h',
183 'audio/win/audio_device_listener_win.cc',
184 'audio/win/audio_device_listener_win.h',
185 'audio/win/audio_low_latency_input_win.cc',
186 'audio/win/audio_low_latency_input_win.h',
187 'audio/win/audio_low_latency_output_win.cc',
188 'audio/win/audio_low_latency_output_win.h',
189 'audio/win/audio_manager_win.cc',
190 'audio/win/audio_manager_win.h',
191 'audio/win/avrt_wrapper_win.cc',
192 'audio/win/avrt_wrapper_win.h',
193 'audio/win/core_audio_util_win.cc',
194 'audio/win/core_audio_util_win.h',
195 'audio/win/device_enumeration_win.cc',
196 'audio/win/device_enumeration_win.h',
197 'audio/win/wavein_input_win.cc',
198 'audio/win/wavein_input_win.h',
199 'audio/win/waveout_output_win.cc',
200 'audio/win/waveout_output_win.h',
201 'base/audio_block_fifo.cc',
202 'base/audio_block_fifo.h',
203 'base/audio_buffer.cc',
204 'base/audio_buffer.h',
205 'base/audio_buffer_converter.cc',
206 'base/audio_buffer_converter.h',
207 'base/audio_buffer_queue.cc',
208 'base/audio_buffer_queue.h',
209 'base/audio_capturer_source.h',
210 'base/audio_converter.cc',
211 'base/audio_converter.h',
212 'base/audio_decoder.cc',
213 'base/audio_decoder.h',
214 'base/audio_decoder_config.cc',
215 'base/audio_decoder_config.h',
216 'base/audio_discard_helper.cc',
217 'base/audio_discard_helper.h',
218 'base/audio_fifo.cc',
220 'base/audio_hardware_config.cc',
221 'base/audio_hardware_config.h',
222 'base/audio_hash.cc',
224 'base/audio_pull_fifo.cc',
225 'base/audio_pull_fifo.h',
226 'base/audio_renderer.cc',
227 'base/audio_renderer.h',
228 'base/audio_renderer_mixer.cc',
229 'base/audio_renderer_mixer.h',
230 'base/audio_renderer_mixer_input.cc',
231 'base/audio_renderer_mixer_input.h',
232 'base/audio_renderer_sink.h',
233 'base/audio_shifter.cc',
234 'base/audio_shifter.h',
235 'base/audio_splicer.cc',
236 'base/audio_splicer.h',
237 'base/audio_timestamp_helper.cc',
238 'base/audio_timestamp_helper.h',
239 'base/audio_video_metadata_extractor.cc',
240 'base/audio_video_metadata_extractor.h',
241 'base/bind_to_current_loop.h',
242 'base/bit_reader.cc',
244 'base/bit_reader_core.cc',
245 'base/bit_reader_core.h',
246 'base/bitstream_buffer.h',
247 'base/buffering_state.h',
249 'base/byte_queue.cc',
251 'base/cdm_callback_promise.cc',
252 'base/cdm_callback_promise.h',
254 'base/cdm_context.cc',
255 'base/cdm_context.h',
256 'base/cdm_factory.cc',
257 'base/cdm_factory.h',
258 'base/cdm_initialized_promise.cc',
259 'base/cdm_initialized_promise.h',
260 'base/cdm_key_information.cc',
261 'base/cdm_key_information.h',
262 'base/cdm_promise.cc',
263 'base/cdm_promise.h',
264 'base/cdm_promise_adapter.cc',
265 'base/cdm_promise_adapter.h',
266 'base/channel_mixer.cc',
267 'base/channel_mixer.h',
268 'base/channel_mixing_matrix.cc',
269 'base/channel_mixing_matrix.h',
270 'base/container_names.cc',
271 'base/container_names.h',
272 'base/data_buffer.cc',
273 'base/data_buffer.h',
274 'base/data_source.cc',
275 'base/data_source.h',
276 'base/decoder_buffer.cc',
277 'base/decoder_buffer.h',
278 'base/decoder_buffer_queue.cc',
279 'base/decoder_buffer_queue.h',
280 'base/decrypt_config.cc',
281 'base/decrypt_config.h',
286 'base/demuxer_stream.cc',
287 'base/demuxer_stream.h',
288 'base/demuxer_stream_provider.cc',
289 'base/demuxer_stream_provider.h',
292 'base/eme_constants.h',
293 'base/key_system_info.cc',
294 'base/key_system_info.h',
295 'base/key_systems.cc',
296 'base/key_systems.h',
297 'base/key_systems_support_uma.cc',
298 'base/key_systems_support_uma.h',
299 'base/keyboard_event_counter.cc',
300 'base/keyboard_event_counter.h',
301 'base/mac/avfoundation_glue.h',
302 'base/mac/avfoundation_glue.mm',
303 'base/mac/coremedia_glue.h',
304 'base/mac/coremedia_glue.mm',
305 'base/mac/corevideo_glue.h',
306 'base/mac/video_frame_mac.cc',
307 'base/mac/video_frame_mac.h',
308 'base/mac/videotoolbox_glue.h',
309 'base/mac/videotoolbox_glue.mm',
312 'base/media_client.cc',
313 'base/media_client.h',
314 'base/media_file_checker.cc',
315 'base/media_file_checker.h',
316 'base/media_keys.cc',
320 'base/media_log_event.h',
321 'base/media_permission.cc',
322 'base/media_permission.h',
323 'base/media_switches.cc',
324 'base/media_switches.h',
327 'base/moving_average.cc',
328 'base/moving_average.h',
329 'base/multi_channel_resampler.cc',
330 'base/multi_channel_resampler.h',
331 'base/null_video_sink.cc',
332 'base/null_video_sink.h',
333 'base/output_device.h',
336 'base/pipeline_status.h',
337 'base/player_tracker.cc',
338 'base/player_tracker.h',
343 'base/renderer_factory.cc',
344 'base/renderer_factory.h',
345 'base/sample_format.cc',
346 'base/sample_format.h',
347 'base/seekable_buffer.cc',
348 'base/seekable_buffer.h',
349 'base/serial_runner.cc',
350 'base/serial_runner.h',
351 'base/simd/convert_rgb_to_yuv.h',
352 'base/simd/convert_rgb_to_yuv_c.cc',
353 'base/simd/convert_yuv_to_rgb.h',
354 'base/simd/convert_yuv_to_rgb_c.cc',
355 'base/simd/filter_yuv.h',
356 'base/simd/filter_yuv_c.cc',
357 'base/sinc_resampler.cc',
358 'base/sinc_resampler.h',
359 'base/stream_parser.cc',
360 'base/stream_parser.h',
361 'base/stream_parser_buffer.cc',
362 'base/stream_parser_buffer.h',
365 'base/text_ranges.cc',
366 'base/text_ranges.h',
367 'base/text_renderer.cc',
368 'base/text_renderer.h',
370 'base/text_track_config.cc',
371 'base/text_track_config.h',
372 'base/time_delta_interpolator.cc',
373 'base/time_delta_interpolator.h',
374 'base/time_source.h',
375 'base/user_input_monitor.cc',
376 'base/user_input_monitor.h',
377 'base/user_input_monitor_linux.cc',
378 'base/user_input_monitor_mac.cc',
379 'base/user_input_monitor_win.cc',
380 'base/video_capture_types.cc',
381 'base/video_capture_types.h',
382 'base/video_capturer_source.cc',
383 'base/video_capturer_source.h',
384 'base/video_decoder.cc',
385 'base/video_decoder.h',
386 'base/video_decoder_config.cc',
387 'base/video_decoder_config.h',
388 'base/video_frame.cc',
389 'base/video_frame.h',
390 'base/video_frame_metadata.cc',
391 'base/video_frame_metadata.h',
392 'base/video_frame_pool.cc',
393 'base/video_frame_pool.h',
394 'base/video_renderer.cc',
395 'base/video_renderer.h',
396 'base/video_rotation.h',
397 'base/video_types.cc',
398 'base/video_types.h',
399 'base/video_util.cc',
401 'base/wall_clock_time_source.cc',
402 'base/wall_clock_time_source.h',
403 'base/win/mf_initializer.cc',
404 'base/win/mf_initializer.h',
405 'base/yuv_convert.cc',
406 'base/yuv_convert.h',
407 'blink/skcanvas_video_renderer.cc',
408 'blink/skcanvas_video_renderer.h',
409 'capture/content/animated_content_sampler.cc',
410 'capture/content/animated_content_sampler.h',
411 'capture/content/capture_resolution_chooser.cc',
412 'capture/content/capture_resolution_chooser.h',
413 'capture/content/feedback_signal_accumulator.cc',
414 'capture/content/feedback_signal_accumulator.h',
415 'capture/content/screen_capture_device_core.cc',
416 'capture/content/screen_capture_device_core.h',
417 'capture/content/thread_safe_capture_oracle.cc',
418 'capture/content/thread_safe_capture_oracle.h',
419 'capture/content/smooth_event_sampler.cc',
420 'capture/content/smooth_event_sampler.h',
421 'capture/content/video_capture_oracle.cc',
422 'capture/content/video_capture_oracle.h',
423 'capture/video/android/video_capture_device_android.cc',
424 'capture/video/android/video_capture_device_android.h',
425 'capture/video/android/video_capture_device_factory_android.cc',
426 'capture/video/android/video_capture_device_factory_android.h',
427 'capture/video/fake_video_capture_device.cc',
428 'capture/video/fake_video_capture_device.h',
429 'capture/video/fake_video_capture_device_factory.cc',
430 'capture/video/fake_video_capture_device_factory.h',
431 'capture/video/file_video_capture_device.cc',
432 'capture/video/file_video_capture_device.h',
433 'capture/video/file_video_capture_device_factory.cc',
434 'capture/video/file_video_capture_device_factory.h',
435 'capture/video/linux/v4l2_capture_delegate.cc',
436 'capture/video/linux/v4l2_capture_delegate.h',
437 'capture/video/linux/v4l2_capture_delegate_multi_plane.cc',
438 'capture/video/linux/v4l2_capture_delegate_multi_plane.h',
439 'capture/video/linux/v4l2_capture_delegate_single_plane.cc',
440 'capture/video/linux/v4l2_capture_delegate_single_plane.h',
441 'capture/video/linux/video_capture_device_chromeos.cc',
442 'capture/video/linux/video_capture_device_chromeos.h',
443 'capture/video/linux/video_capture_device_factory_linux.cc',
444 'capture/video/linux/video_capture_device_factory_linux.h',
445 'capture/video/linux/video_capture_device_linux.cc',
446 'capture/video/linux/video_capture_device_linux.h',
447 'capture/video/mac/platform_video_capturing_mac.h',
448 'capture/video/mac/video_capture_device_avfoundation_mac.h',
449 'capture/video/mac/video_capture_device_avfoundation_mac.mm',
450 'capture/video/mac/video_capture_device_decklink_mac.h',
451 'capture/video/mac/video_capture_device_decklink_mac.mm',
452 'capture/video/mac/video_capture_device_factory_mac.h',
453 'capture/video/mac/video_capture_device_factory_mac.mm',
454 'capture/video/mac/video_capture_device_mac.h',
455 'capture/video/mac/video_capture_device_mac.mm',
456 'capture/video/mac/video_capture_device_qtkit_mac.h',
457 'capture/video/mac/video_capture_device_qtkit_mac.mm',
458 'capture/video/video_capture_device.cc',
459 'capture/video/video_capture_device.h',
460 'capture/video/video_capture_device_factory.cc',
461 'capture/video/video_capture_device_factory.h',
462 'capture/video/video_capture_device_info.cc',
463 'capture/video/video_capture_device_info.h',
464 'capture/video/win/capability_list_win.cc',
465 'capture/video/win/capability_list_win.h',
466 'capture/video/win/filter_base_win.cc',
467 'capture/video/win/filter_base_win.h',
468 'capture/video/win/pin_base_win.cc',
469 'capture/video/win/pin_base_win.h',
470 'capture/video/win/sink_filter_observer_win.h',
471 'capture/video/win/sink_filter_win.cc',
472 'capture/video/win/sink_filter_win.h',
473 'capture/video/win/sink_input_pin_win.cc',
474 'capture/video/win/sink_input_pin_win.h',
475 'capture/video/win/video_capture_device_factory_win.cc',
476 'capture/video/win/video_capture_device_factory_win.h',
477 'capture/video/win/video_capture_device_mf_win.cc',
478 'capture/video/win/video_capture_device_mf_win.h',
479 'capture/video/win/video_capture_device_win.cc',
480 'capture/video/win/video_capture_device_win.h',
481 'capture/webm_muxer.cc',
482 'capture/webm_muxer.h',
483 'cdm/aes_decryptor.cc',
484 'cdm/aes_decryptor.h',
485 'cdm/default_cdm_factory.cc',
486 'cdm/default_cdm_factory.h',
487 'cdm/json_web_key.cc',
488 'cdm/json_web_key.h',
489 'cdm/key_system_names.cc',
490 'cdm/key_system_names.h',
491 'cdm/player_tracker_impl.cc',
492 'cdm/player_tracker_impl.h',
493 'cdm/proxy_decryptor.cc',
494 'cdm/proxy_decryptor.h',
495 'ffmpeg/ffmpeg_common.cc',
496 'ffmpeg/ffmpeg_common.h',
497 'ffmpeg/ffmpeg_deleters.h',
498 'filters/audio_clock.cc',
499 'filters/audio_clock.h',
500 'filters/audio_file_reader.cc',
501 'filters/audio_file_reader.h',
502 'filters/audio_renderer_algorithm.cc',
503 'filters/audio_renderer_algorithm.h',
504 'filters/blocking_url_protocol.cc',
505 'filters/blocking_url_protocol.h',
506 'filters/chunk_demuxer.cc',
507 'filters/chunk_demuxer.h',
508 'filters/context_3d.h',
509 'filters/decoder_selector.cc',
510 'filters/decoder_selector.h',
511 'filters/decoder_stream.cc',
512 'filters/decoder_stream.h',
513 'filters/decoder_stream_traits.cc',
514 'filters/decoder_stream_traits.h',
515 'filters/decrypting_audio_decoder.cc',
516 'filters/decrypting_audio_decoder.h',
517 'filters/decrypting_demuxer_stream.cc',
518 'filters/decrypting_demuxer_stream.h',
519 'filters/decrypting_video_decoder.cc',
520 'filters/decrypting_video_decoder.h',
521 'filters/default_media_permission.cc',
522 'filters/default_media_permission.h',
523 'filters/ffmpeg_audio_decoder.cc',
524 'filters/ffmpeg_audio_decoder.h',
525 'filters/ffmpeg_bitstream_converter.h',
526 'filters/ffmpeg_demuxer.cc',
527 'filters/ffmpeg_demuxer.h',
528 'filters/ffmpeg_glue.cc',
529 'filters/ffmpeg_glue.h',
530 'filters/ffmpeg_video_decoder.cc',
531 'filters/ffmpeg_video_decoder.h',
532 'filters/file_data_source.cc',
533 'filters/file_data_source.h',
534 'filters/frame_processor.cc',
535 'filters/frame_processor.h',
536 'filters/gpu_video_decoder.cc',
537 'filters/gpu_video_decoder.h',
538 'filters/h264_bit_reader.cc',
539 'filters/h264_bit_reader.h',
540 'filters/h264_parser.cc',
541 'filters/h264_parser.h',
542 'filters/in_memory_url_protocol.cc',
543 'filters/in_memory_url_protocol.h',
544 'filters/jpeg_parser.cc',
545 'filters/jpeg_parser.h',
546 'filters/opus_audio_decoder.cc',
547 'filters/opus_audio_decoder.h',
548 'filters/source_buffer_range.cc',
549 'filters/source_buffer_range.h',
550 'filters/source_buffer_stream.cc',
551 'filters/source_buffer_stream.h',
552 'filters/stream_parser_factory.cc',
553 'filters/stream_parser_factory.h',
554 'filters/video_cadence_estimator.cc',
555 'filters/video_cadence_estimator.h',
556 'filters/video_renderer_algorithm.cc',
557 'filters/video_renderer_algorithm.h',
558 'filters/vp8_bool_decoder.cc',
559 'filters/vp8_bool_decoder.h',
560 'filters/vp8_parser.cc',
561 'filters/vp8_parser.h',
562 'filters/vpx_video_decoder.cc',
563 'filters/vpx_video_decoder.h',
564 'filters/webvtt_util.h',
565 'filters/wsola_internals.cc',
566 'filters/wsola_internals.h',
567 'formats/common/offset_byte_queue.cc',
568 'formats/common/offset_byte_queue.h',
569 'formats/webm/webm_audio_client.cc',
570 'formats/webm/webm_audio_client.h',
571 'formats/webm/webm_cluster_parser.cc',
572 'formats/webm/webm_cluster_parser.h',
573 'formats/webm/webm_constants.cc',
574 'formats/webm/webm_constants.h',
575 'formats/webm/webm_content_encodings.cc',
576 'formats/webm/webm_content_encodings.h',
577 'formats/webm/webm_content_encodings_client.cc',
578 'formats/webm/webm_content_encodings_client.h',
579 'formats/webm/webm_crypto_helpers.cc',
580 'formats/webm/webm_crypto_helpers.h',
581 'formats/webm/webm_info_parser.cc',
582 'formats/webm/webm_info_parser.h',
583 'formats/webm/webm_parser.cc',
584 'formats/webm/webm_parser.h',
585 'formats/webm/webm_stream_parser.cc',
586 'formats/webm/webm_stream_parser.h',
587 'formats/webm/webm_tracks_parser.cc',
588 'formats/webm/webm_tracks_parser.h',
589 'formats/webm/webm_video_client.cc',
590 'formats/webm/webm_video_client.h',
591 'formats/webm/webm_webvtt_parser.cc',
592 'ozone/media_ozone_platform.cc',
593 'ozone/media_ozone_platform.h',
594 'renderers/audio_renderer_impl.cc',
595 'renderers/audio_renderer_impl.h',
596 'renderers/default_renderer_factory.cc',
597 'renderers/default_renderer_factory.h',
598 'renderers/gpu_video_accelerator_factories.h',
599 'renderers/renderer_impl.cc',
600 'renderers/renderer_impl.h',
601 'renderers/video_renderer_impl.cc',
602 'renderers/video_renderer_impl.h',
603 'video/fake_video_encode_accelerator.cc',
604 'video/fake_video_encode_accelerator.h',
605 'video/gpu_memory_buffer_video_frame_pool.cc',
606 'video/gpu_memory_buffer_video_frame_pool.h',
609 'video/jpeg_decode_accelerator.cc',
610 'video/jpeg_decode_accelerator.h',
613 'video/video_decode_accelerator.cc',
614 'video/video_decode_accelerator.h',
615 'video/video_encode_accelerator.cc',
616 'video/video_encode_accelerator.h',
617 'formats/webm/webm_webvtt_parser.h'
619 'direct_dependent_settings': {
630 ['media_use_ffmpeg==1', {
632 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
634 }, { # media_use_ffmpeg==0
635 # Exclude the sources that depend on ffmpeg.
637 'base/audio_video_metadata_extractor.cc',
638 'base/audio_video_metadata_extractor.h',
639 'base/container_names.cc',
640 'base/container_names.h',
641 'base/media_file_checker.cc',
642 'base/media_file_checker.h',
643 'ffmpeg/ffmpeg_common.cc',
644 'ffmpeg/ffmpeg_common.h',
645 'filters/audio_file_reader.cc',
646 'filters/audio_file_reader.h',
647 'filters/blocking_url_protocol.cc',
648 'filters/blocking_url_protocol.h',
649 'filters/ffmpeg_aac_bitstream_converter.cc',
650 'filters/ffmpeg_aac_bitstream_converter.h',
651 'filters/ffmpeg_audio_decoder.cc',
652 'filters/ffmpeg_audio_decoder.h',
653 'filters/ffmpeg_bitstream_converter.h',
654 'filters/ffmpeg_demuxer.cc',
655 'filters/ffmpeg_demuxer.h',
656 'filters/ffmpeg_glue.cc',
657 'filters/ffmpeg_glue.h',
658 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc',
659 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.h',
660 'filters/ffmpeg_video_decoder.cc',
661 'filters/ffmpeg_video_decoder.h',
662 'filters/in_memory_url_protocol.cc',
663 'filters/in_memory_url_protocol.h',
666 'MEDIA_DISABLE_FFMPEG',
668 'direct_dependent_settings': {
670 'MEDIA_DISABLE_FFMPEG',
674 ['media_use_libvpx==1', {
676 '<(DEPTH)/third_party/libvpx/libvpx.gyp:libvpx',
678 }, { # media_use_libvpx==0
680 'MEDIA_DISABLE_LIBVPX',
682 'direct_dependent_settings': {
684 'MEDIA_DISABLE_LIBVPX',
687 # Exclude the sources that depend on libvpx.
689 'filters/vpx_video_decoder.cc',
690 'filters/vpx_video_decoder.h',
693 ['media_use_libwebm==1', {
695 '<(DEPTH)/third_party/libwebm/libwebm.gyp:libwebm',
697 }, { # media_use_libwebm==0
698 # Exclude the sources that depend on libwebm.
700 'capture/webm_muxer.cc',
701 'capture/webm_muxer.h',
704 ['enable_browser_cdms==1', {
706 'base/browser_cdm.cc',
707 'base/browser_cdm.h',
708 'base/browser_cdm_factory.cc',
709 'base/browser_cdm_factory.h',
714 'media_android_jni_headers',
717 'video_capture_android_jni_headers',
720 'base/audio_video_metadata_extractor.cc',
721 'base/audio_video_metadata_extractor.h',
722 'base/media_file_checker.cc',
723 'base/media_file_checker.h',
724 'filters/ffmpeg_video_decoder.cc',
725 'filters/ffmpeg_video_decoder.h',
728 'DISABLE_USER_INPUT_MONITOR',
731 ['media_use_ffmpeg == 1', {
733 # On Android, FFmpeg is built without video decoders. We only
734 # support hardware video decoding.
735 'ENABLE_MEDIA_PIPELINE_ON_ANDROID',
736 'DISABLE_FFMPEG_VIDEO_DECODERS',
738 'direct_dependent_settings': {
740 'ENABLE_MEDIA_PIPELINE_ON_ANDROID',
741 'DISABLE_FFMPEG_VIDEO_DECODERS',
744 }, { # media_use_ffmpeg == 0
746 'filters/opus_audio_decoder.cc',
747 'filters/opus_audio_decoder.h',
752 # For VaapiVideoEncodeAccelerator.
753 ['target_arch != "arm" and chromeos == 1', {
755 'filters/h264_bitstream_buffer.cc',
756 'filters/h264_bitstream_buffer.h',
770 ['exclude', '(^|/)alsa/'],
771 ['exclude', '_alsa\\.(h|cc)$'],
776 'audio/openbsd/audio_manager_openbsd.cc',
777 'audio/openbsd/audio_manager_openbsd.h',
779 }, { # else: openbsd==1
781 'capture/video/linux/v4l2_capture_delegate_multi_plane.cc',
782 'capture/video/linux/v4l2_capture_delegate_multi_plane.h',
789 '../build/linux/system.gyp:x11',
790 '../build/linux/system.gyp:xdamage',
791 '../build/linux/system.gyp:xext',
792 '../build/linux/system.gyp:xfixes',
793 '../build/linux/system.gyp:xtst',
794 '../ui/gfx/x/gfx_x11.gyp:gfx_x11',
796 }, { # else: use_x11==0
798 'base/user_input_monitor_linux.cc',
801 'DISABLE_USER_INPUT_MONITOR',
806 '../chromeos/chromeos.gyp:chromeos',
809 '<!@(<(pkg-config) --cflags libcras)',
813 '<!@(<(pkg-config) --libs libcras)',
819 }, { # else: use_cras==0
821 'audio/cras/audio_manager_cras.cc',
822 'audio/cras/audio_manager_cras.h',
823 'audio/cras/cras_input.cc',
824 'audio/cras/cras_input.h',
825 'audio/cras/cras_unified.cc',
826 'audio/cras/cras_unified.h',
833 'platform_list_txt_file': '<(SHARED_INTERMEDIATE_DIR)/ui/ozone/platform_list.txt',
834 'constructor_list_cc_file': '<(INTERMEDIATE_DIR)/media/ozone/constructor_list.cc',
837 # Used for the generated listing header (ui/ozone/platform_list.h)
838 '<(SHARED_INTERMEDIATE_DIR)',
841 '<(constructor_list_cc_file)',
844 '../ui/ozone/ozone.gyp:ozone',
848 # Ozone platform objects are auto-generated using similar
849 # patterns for naming and classes constructors. Here we build the
850 # object MediaOzonePlatform.
851 'action_name': 'generate_constructor_list',
853 'generator_path': '../ui/ozone/generate_constructor_list.py',
857 '<(platform_list_txt_file)',
860 '<(constructor_list_cc_file)',
865 '--platform_list=<(platform_list_txt_file)',
866 '--output_cc=<(constructor_list_cc_file)',
868 '--typename=MediaOzonePlatform',
869 '--include="media/ozone/media_ozone_platform.h"'
875 'ozone/media_ozone_platform.cc',
876 'ozone/media_ozone_platform.h',
881 'audio/cras/audio_manager_cras.cc',
882 'audio/cras/audio_manager_cras.h',
883 'audio/cras/cras_input.cc',
884 'audio/cras/cras_input.h',
885 'audio/cras/cras_unified.cc',
886 'audio/cras/cras_unified.h',
889 ['use_pulseaudio==1', {
891 '<!@(<(pkg-config) --cflags libpulse)',
897 ['linux_link_pulseaudio==0', {
902 'generate_stubs_script': '../tools/generate_stubs/generate_stubs.py',
903 'extra_header': 'audio/pulse/pulse_stub_header.fragment',
904 'sig_files': ['audio/pulse/pulse.sigs'],
905 'outfile_type': 'posix_stubs',
906 'stubs_filename_root': 'pulse_stubs',
907 'project_path': 'media/audio/pulse',
908 'intermediate_dir': '<(INTERMEDIATE_DIR)',
909 'output_root': '<(SHARED_INTERMEDIATE_DIR)/pulse',
916 'action_name': 'generate_stubs',
918 '<(generate_stubs_script)',
923 '<(intermediate_dir)/<(stubs_filename_root).cc',
924 '<(output_root)/<(project_path)/<(stubs_filename_root).h',
927 '<(generate_stubs_script)',
928 '-i', '<(intermediate_dir)',
929 '-o', '<(output_root)/<(project_path)',
930 '-t', '<(outfile_type)',
931 '-e', '<(extra_header)',
932 '-s', '<(stubs_filename_root)',
933 '-p', '<(project_path)',
936 'process_outputs_as_sources': 1,
937 'message': 'Generating Pulse stubs for dynamic loading',
941 # Linux/Solaris need libdl for dlopen() and friends.
942 ['OS=="linux" or OS=="solaris"', {
950 }, { # else: linux_link_pulseaudio==0
953 '<!@(<(pkg-config) --libs-only-L --libs-only-other libpulse)',
956 '<!@(<(pkg-config) --libs-only-l libpulse)',
961 }, { # else: use_pulseaudio==0
963 'audio/pulse/audio_manager_pulse.cc',
964 'audio/pulse/audio_manager_pulse.h',
965 'audio/pulse/pulse_input.cc',
966 'audio/pulse/pulse_input.h',
967 'audio/pulse/pulse_output.cc',
968 'audio/pulse/pulse_output.h',
969 'audio/pulse/pulse_util.cc',
970 'audio/pulse/pulse_util.h',
975 '../third_party/decklink/decklink.gyp:decklink',
979 '$(SDKROOT)/System/Library/Frameworks/AudioToolbox.framework',
980 '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework',
981 '$(SDKROOT)/System/Library/Frameworks/CoreAudio.framework',
982 '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework',
983 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
984 '$(SDKROOT)/System/Library/Frameworks/QTKit.framework',
997 # Specify delayload for media.dll.
1007 # Specify delayload for components that link with media.lib.
1008 'all_dependent_settings': {
1019 # TODO(wolenetz): Fix size_t to int truncations in win64. See
1020 # http://crbug.com/171009
1022 ['target_arch=="x64"', {
1023 'msvs_disabled_warnings': [ 4267, ],
1027 ['proprietary_codecs==1', {
1029 'cdm/cenc_utils.cc',
1031 'filters/ffmpeg_aac_bitstream_converter.cc',
1032 'filters/ffmpeg_aac_bitstream_converter.h',
1033 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc',
1034 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.h',
1035 'filters/h264_to_annex_b_bitstream_converter.cc',
1036 'filters/h264_to_annex_b_bitstream_converter.h',
1037 'formats/mp2t/es_adapter_video.cc',
1038 'formats/mp2t/es_adapter_video.h',
1039 'formats/mp2t/es_parser.cc',
1040 'formats/mp2t/es_parser.h',
1041 'formats/mp2t/es_parser_adts.cc',
1042 'formats/mp2t/es_parser_adts.h',
1043 'formats/mp2t/es_parser_h264.cc',
1044 'formats/mp2t/es_parser_h264.h',
1045 'formats/mp2t/es_parser_mpeg1audio.cc',
1046 'formats/mp2t/es_parser_mpeg1audio.h',
1047 'formats/mp2t/mp2t_common.h',
1048 'formats/mp2t/mp2t_stream_parser.cc',
1049 'formats/mp2t/mp2t_stream_parser.h',
1050 'formats/mp2t/timestamp_unroller.cc',
1051 'formats/mp2t/timestamp_unroller.h',
1052 'formats/mp2t/ts_packet.cc',
1053 'formats/mp2t/ts_packet.h',
1054 'formats/mp2t/ts_section.h',
1055 'formats/mp2t/ts_section_pat.cc',
1056 'formats/mp2t/ts_section_pat.h',
1057 'formats/mp2t/ts_section_pes.cc',
1058 'formats/mp2t/ts_section_pes.h',
1059 'formats/mp2t/ts_section_pmt.cc',
1060 'formats/mp2t/ts_section_pmt.h',
1061 'formats/mp2t/ts_section_psi.cc',
1062 'formats/mp2t/ts_section_psi.h',
1063 'formats/mp4/aac.cc',
1064 'formats/mp4/aac.h',
1065 'formats/mp4/avc.cc',
1066 'formats/mp4/avc.h',
1067 'formats/mp4/box_definitions.cc',
1068 'formats/mp4/box_definitions.h',
1069 'formats/mp4/box_reader.cc',
1070 'formats/mp4/box_reader.h',
1071 'formats/mp4/cenc.cc',
1072 'formats/mp4/cenc.h',
1073 'formats/mp4/es_descriptor.cc',
1074 'formats/mp4/es_descriptor.h',
1075 'formats/mp4/mp4_stream_parser.cc',
1076 'formats/mp4/mp4_stream_parser.h',
1077 'formats/mp4/sample_to_group_iterator.cc',
1078 'formats/mp4/sample_to_group_iterator.h',
1079 'formats/mp4/track_run_iterator.cc',
1080 'formats/mp4/track_run_iterator.h',
1081 'formats/mpeg/adts_constants.cc',
1082 'formats/mpeg/adts_constants.h',
1083 'formats/mpeg/adts_stream_parser.cc',
1084 'formats/mpeg/adts_stream_parser.h',
1085 'formats/mpeg/mpeg1_audio_stream_parser.cc',
1086 'formats/mpeg/mpeg1_audio_stream_parser.h',
1087 'formats/mpeg/mpeg_audio_stream_parser_base.cc',
1088 'formats/mpeg/mpeg_audio_stream_parser_base.h',
1091 ['target_arch=="ia32" or target_arch=="x64"', {
1096 'base/simd/convert_rgb_to_yuv_sse2.cc',
1097 'base/simd/convert_rgb_to_yuv_ssse3.cc',
1098 'base/simd/convert_yuv_to_rgb_x86.cc',
1099 'base/simd/filter_yuv_sse2.cc',
1102 ['OS!="linux" and OS!="win"', {
1104 'base/keyboard_event_counter.cc',
1105 'base/keyboard_event_counter.h',
1108 ['use_low_memory_buffer==1', {
1110 'filters/source_buffer_platform.h',
1111 'filters/source_buffer_platform_lowmem.cc',
1113 }, { # 'use_low_memory_buffer==0'
1115 'filters/source_buffer_platform.cc',
1116 'filters/source_buffer_platform.h',
1120 'target_conditions': [
1121 ['OS == "ios" and _toolset != "host"', {
1123 # Pull in specific Mac files for iOS (which have been filtered out
1124 # by file name rules).
1125 ['include', '^base/mac/coremedia_glue\\.h$'],
1126 ['include', '^base/mac/coremedia_glue\\.mm$'],
1127 ['include', '^base/mac/corevideo_glue\\.h$'],
1128 ['include', '^base/mac/videotoolbox_glue\\.h$'],
1129 ['include', '^base/mac/videotoolbox_glue\\.mm$'],
1130 ['include', '^base/mac/video_frame_mac\\.h$'],
1131 ['include', '^base/mac/video_frame_mac\\.cc$'],
1134 ], # target_conditions
1137 # GN version: //media:media_unittests
1138 'target_name': 'media_unittests',
1139 'type': '<(gtest_target_type)',
1141 'audio_test_config',
1143 'media_test_support',
1144 'shared_memory_support',
1145 '../base/base.gyp:base',
1146 '../base/base.gyp:base_i18n',
1147 '../base/base.gyp:test_support_base',
1148 '../gpu/gpu.gyp:command_buffer_common',
1149 '../gpu/gpu.gyp:gpu_unittest_utils',
1150 '../skia/skia.gyp:skia',
1151 '../testing/gmock.gyp:gmock',
1152 '../testing/gtest.gyp:gtest',
1153 '../third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
1154 '../ui/gfx/gfx.gyp:gfx',
1155 '../ui/gfx/gfx.gyp:gfx_geometry',
1156 '../ui/gfx/gfx.gyp:gfx_test_support',
1157 '../url/url.gyp:url_lib',
1160 'base/android/access_unit_queue_unittest.cc',
1161 'base/android/media_codec_bridge_unittest.cc',
1162 'base/android/media_codec_decoder_unittest.cc',
1163 'base/android/media_codec_player_unittest.cc',
1164 'base/android/media_drm_bridge_unittest.cc',
1165 'base/android/media_player_bridge_unittest.cc',
1166 'base/android/media_source_player_unittest.cc',
1167 'base/android/test_data_factory.cc',
1168 'base/android/test_data_factory.h',
1169 'base/android/test_statistics.h',
1170 'base/audio_block_fifo_unittest.cc',
1171 'base/audio_buffer_converter_unittest.cc',
1172 'base/audio_buffer_queue_unittest.cc',
1173 'base/audio_buffer_unittest.cc',
1174 'base/audio_bus_unittest.cc',
1175 'base/audio_converter_unittest.cc',
1176 'base/audio_discard_helper_unittest.cc',
1177 'base/audio_fifo_unittest.cc',
1178 'base/audio_hardware_config_unittest.cc',
1179 'base/audio_hash_unittest.cc',
1180 'base/audio_pull_fifo_unittest.cc',
1181 'base/audio_renderer_mixer_input_unittest.cc',
1182 'base/audio_renderer_mixer_unittest.cc',
1183 'base/audio_shifter_unittest.cc',
1184 'base/audio_splicer_unittest.cc',
1185 'base/audio_timestamp_helper_unittest.cc',
1186 'base/audio_video_metadata_extractor_unittest.cc',
1187 'base/bind_to_current_loop_unittest.cc',
1188 'base/bit_reader_unittest.cc',
1189 'base/callback_holder.h',
1190 'base/callback_holder_unittest.cc',
1191 'base/channel_mixer_unittest.cc',
1192 'base/channel_mixing_matrix_unittest.cc',
1193 'base/container_names_unittest.cc',
1194 'base/data_buffer_unittest.cc',
1195 'base/decoder_buffer_queue_unittest.cc',
1196 'base/decoder_buffer_unittest.cc',
1197 'base/djb2_unittest.cc',
1198 'base/fake_demuxer_stream_unittest.cc',
1199 'base/gmock_callback_support_unittest.cc',
1200 'base/key_systems_unittest.cc',
1201 'base/mac/video_frame_mac_unittests.cc',
1202 'base/media_file_checker_unittest.cc',
1203 'base/mime_util_unittest.cc',
1204 'base/moving_average_unittest.cc',
1205 'base/multi_channel_resampler_unittest.cc',
1206 'base/null_video_sink_unittest.cc',
1207 'base/pipeline_unittest.cc',
1208 'base/ranges_unittest.cc',
1209 'base/run_all_unittests.cc',
1210 'base/seekable_buffer_unittest.cc',
1211 'base/serial_runner_unittest.cc',
1212 'base/sinc_resampler_unittest.cc',
1213 'base/stream_parser_unittest.cc',
1214 'base/text_ranges_unittest.cc',
1215 'base/text_renderer_unittest.cc',
1216 'base/time_delta_interpolator_unittest.cc',
1217 'base/user_input_monitor_unittest.cc',
1218 'base/vector_math_testing.h',
1219 'base/vector_math_unittest.cc',
1220 'base/video_frame_pool_unittest.cc',
1221 'base/video_frame_unittest.cc',
1222 'base/video_util_unittest.cc',
1223 'base/wall_clock_time_source_unittest.cc',
1224 'base/yuv_convert_unittest.cc',
1225 'blink/skcanvas_video_renderer_unittest.cc',
1226 'capture/content/animated_content_sampler_unittest.cc',
1227 'capture/content/capture_resolution_chooser_unittest.cc',
1228 'capture/content/feedback_signal_accumulator_unittest.cc',
1229 'capture/content/smooth_event_sampler_unittest.cc',
1230 'capture/content/video_capture_oracle_unittest.cc',
1231 'capture/video/fake_video_capture_device_unittest.cc',
1232 'capture/video/video_capture_device_unittest.cc',
1233 'cdm/aes_decryptor_unittest.cc',
1234 'cdm/json_web_key_unittest.cc',
1235 'ffmpeg/ffmpeg_common_unittest.cc',
1236 'filters/audio_clock_unittest.cc',
1237 'filters/audio_decoder_selector_unittest.cc',
1238 'filters/audio_decoder_unittest.cc',
1239 'filters/audio_file_reader_unittest.cc',
1240 'filters/audio_renderer_algorithm_unittest.cc',
1241 'filters/blocking_url_protocol_unittest.cc',
1242 'filters/chunk_demuxer_unittest.cc',
1243 'filters/decrypting_audio_decoder_unittest.cc',
1244 'filters/decrypting_demuxer_stream_unittest.cc',
1245 'filters/decrypting_video_decoder_unittest.cc',
1246 'filters/fake_video_decoder.cc',
1247 'filters/fake_video_decoder.h',
1248 'filters/fake_video_decoder_unittest.cc',
1249 'filters/ffmpeg_demuxer_unittest.cc',
1250 'filters/ffmpeg_glue_unittest.cc',
1251 'filters/ffmpeg_video_decoder_unittest.cc',
1252 'filters/file_data_source_unittest.cc',
1253 'filters/frame_processor_unittest.cc',
1254 'filters/h264_bit_reader_unittest.cc',
1255 'filters/h264_parser_unittest.cc',
1256 'filters/in_memory_url_protocol_unittest.cc',
1257 'filters/jpeg_parser_unittest.cc',
1258 'filters/source_buffer_stream_unittest.cc',
1259 'filters/video_cadence_estimator_unittest.cc',
1260 'filters/video_decoder_selector_unittest.cc',
1261 'filters/video_frame_stream_unittest.cc',
1262 'filters/video_renderer_algorithm_unittest.cc',
1263 'filters/vp8_bool_decoder_unittest.cc',
1264 'filters/vp8_parser_unittest.cc',
1265 'capture/webm_muxer_unittest.cc',
1266 'formats/common/offset_byte_queue_unittest.cc',
1267 'formats/webm/cluster_builder.cc',
1268 'formats/webm/cluster_builder.h',
1269 'formats/webm/opus_packet_builder.cc',
1270 'formats/webm/opus_packet_builder.h',
1271 'formats/webm/tracks_builder.cc',
1272 'formats/webm/tracks_builder.h',
1273 'formats/webm/webm_cluster_parser_unittest.cc',
1274 'formats/webm/webm_content_encodings_client_unittest.cc',
1275 'formats/webm/webm_parser_unittest.cc',
1276 'formats/webm/webm_tracks_parser_unittest.cc',
1277 'formats/webm/webm_webvtt_parser_unittest.cc',
1278 'renderers/audio_renderer_impl_unittest.cc',
1279 'renderers/renderer_impl_unittest.cc',
1280 'renderers/video_renderer_impl_unittest.cc',
1281 'test/pipeline_integration_test.cc',
1282 'test/pipeline_integration_test_base.cc',
1283 'video/h264_poc_unittest.cc',
1284 'video/gpu_memory_buffer_video_frame_pool_unittest.cc',
1287 # Needed by media_drm_bridge.cc.
1288 '<(SHARED_INTERMEDIATE_DIR)',
1296 ['media_use_ffmpeg==1', {
1298 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
1300 }, { # media_use_ffmpeg==0
1302 'ffmpeg/ffmpeg_common_unittest.cc',
1303 'filters/audio_decoder_unittest.cc',
1304 'filters/ffmpeg_aac_bitstream_converter_unittest.cc',
1305 'filters/ffmpeg_demuxer_unittest.cc',
1306 'filters/ffmpeg_glue_unittest.cc',
1307 'filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc',
1310 # Even if FFmpeg is enabled on Android we don't want these.
1311 # TODO(watk): Refactor tests that could be made to run on Android.
1312 ['media_use_ffmpeg==0 or OS=="android"', {
1314 'base/audio_video_metadata_extractor_unittest.cc',
1315 'base/container_names_unittest.cc',
1316 'base/media_file_checker_unittest.cc',
1317 'filters/audio_file_reader_unittest.cc',
1318 'filters/blocking_url_protocol_unittest.cc',
1319 'filters/ffmpeg_video_decoder_unittest.cc',
1320 'filters/in_memory_url_protocol_unittest.cc',
1321 'test/pipeline_integration_test.cc',
1322 'test/pipeline_integration_test_base.cc',
1325 ['media_use_libwebm==1', {
1327 '<(DEPTH)/third_party/libwebm/libwebm.gyp:libwebm',
1329 }, { # media_use_libwebm==0
1330 # Exclude the sources that depend on libwebm.
1332 'capture/webm_muxer_unittest.cc',
1336 ['(os_posix==1 and OS!="mac") or (OS=="win" and component!="shared_library" and win_use_allocator_shim==1)', {
1338 ['use_allocator!="none"', {
1340 '../base/allocator/allocator.gyp:allocator',
1347 '../testing/android/native_test.gyp:native_test_native_code',
1351 ['target_arch != "arm" and chromeos == 1 and use_x11 == 1', {
1353 'filters/h264_bitstream_buffer_unittest.cc',
1356 ['target_arch=="ia32" or target_arch=="x64"', {
1358 'base/simd/convert_rgb_to_yuv_unittest.cc',
1361 ['proprietary_codecs==1', {
1363 'cdm/cenc_utils_unittest.cc',
1364 'filters/ffmpeg_aac_bitstream_converter_unittest.cc',
1365 'filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc',
1366 'filters/h264_to_annex_b_bitstream_converter_unittest.cc',
1367 'formats/common/stream_parser_test_base.cc',
1368 'formats/common/stream_parser_test_base.h',
1369 'formats/mp2t/es_adapter_video_unittest.cc',
1370 'formats/mp2t/es_parser_adts_unittest.cc',
1371 'formats/mp2t/es_parser_h264_unittest.cc',
1372 'formats/mp2t/es_parser_mpeg1audio_unittest.cc',
1373 'formats/mp2t/es_parser_test_base.cc',
1374 'formats/mp2t/es_parser_test_base.h',
1375 'formats/mp2t/mp2t_stream_parser_unittest.cc',
1376 'formats/mp2t/timestamp_unroller_unittest.cc',
1377 'formats/mp4/aac_unittest.cc',
1378 'formats/mp4/avc_unittest.cc',
1379 'formats/mp4/box_reader_unittest.cc',
1380 'formats/mp4/es_descriptor_unittest.cc',
1381 'formats/mp4/mp4_stream_parser_unittest.cc',
1382 'formats/mp4/sample_to_group_iterator_unittest.cc',
1383 'formats/mp4/track_run_iterator_unittest.cc',
1384 'formats/mpeg/adts_stream_parser_unittest.cc',
1385 'formats/mpeg/mpeg1_audio_stream_parser_unittest.cc',
1390 'capture/video/mac/video_capture_device_factory_mac_unittest.mm',
1395 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
1401 # GN version: //media:media_perftests
1402 'target_name': 'media_perftests',
1403 'type': '<(gtest_target_type)',
1405 '../base/base.gyp:test_support_base',
1406 '../testing/gmock.gyp:gmock',
1407 '../testing/gtest.gyp:gtest',
1408 '../testing/perf/perf_test.gyp:perf_test',
1409 '../ui/gfx/gfx.gyp:gfx',
1410 '../ui/gfx/gfx.gyp:gfx_test_support',
1411 '../ui/gfx/gfx.gyp:gfx_geometry',
1413 'media_test_support',
1414 'shared_memory_support',
1417 'base/audio_bus_perftest.cc',
1418 'base/audio_converter_perftest.cc',
1419 'base/demuxer_perftest.cc',
1420 'base/run_all_perftests.cc',
1421 'base/sinc_resampler_perftest.cc',
1422 'base/vector_math_perftest.cc',
1423 'base/yuv_convert_perftest.cc',
1424 'test/pipeline_integration_perftest.cc',
1425 'test/pipeline_integration_test_base.cc',
1435 '../testing/android/native_test.gyp:native_test_native_code',
1436 '../ui/gl/gl.gyp:gl',
1439 ['media_use_ffmpeg==1', {
1441 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
1443 }, { # media_use_ffmpeg==0
1445 'base/demuxer_perftest.cc',
1446 'test/pipeline_integration_perftest.cc',
1447 'test/pipeline_integration_test_base.cc',
1453 # GN version: //media/audio:unittests
1454 # For including the sources and configs in multiple test targets.
1455 'target_name': 'audio_test_config',
1457 'direct_dependent_settings': {
1459 'audio/audio_input_controller_unittest.cc',
1460 'audio/audio_input_unittest.cc',
1461 'audio/audio_manager_factory_unittest.cc',
1462 'audio/audio_manager_unittest.cc',
1463 'audio/audio_output_controller_unittest.cc',
1464 'audio/audio_output_device_unittest.cc',
1465 'audio/audio_output_proxy_unittest.cc',
1466 'audio/audio_parameters_unittest.cc',
1467 'audio/audio_power_monitor_unittest.cc',
1468 'audio/fake_audio_worker_unittest.cc',
1469 'audio/simple_sources_unittest.cc',
1470 'audio/virtual_audio_input_stream_unittest.cc',
1471 'audio/virtual_audio_output_stream_unittest.cc',
1474 # TODO(wolenetz): Fix size_t to int truncations in win64. See
1475 # http://crbug.com/171009
1476 ['OS=="win" and target_arch=="x64"', {
1477 'msvs_disabled_warnings': [ 4267, ],
1481 'audio/android/audio_android_unittest.cc',
1485 'audio/audio_input_volume_unittest.cc',
1490 'audio/mac/audio_auhal_mac_unittest.cc',
1491 'audio/mac/audio_device_listener_mac_unittest.cc',
1492 'audio/mac/audio_low_latency_input_mac_unittest.cc',
1497 'audio/sounds/audio_stream_handler_unittest.cc',
1498 'audio/sounds/sounds_manager_unittest.cc',
1499 'audio/sounds/test_data.cc',
1500 'audio/sounds/test_data.h',
1501 'audio/sounds/wav_audio_handler_unittest.cc',
1506 'audio/win/audio_device_listener_win_unittest.cc',
1507 'audio/win/audio_low_latency_input_win_unittest.cc',
1508 'audio/win/audio_low_latency_output_win_unittest.cc',
1509 'audio/win/audio_output_win_unittest.cc',
1510 'audio/win/core_audio_util_win_unittest.cc',
1515 'audio/alsa/alsa_output_unittest.cc',
1516 'audio/audio_low_latency_input_output_unittest.cc',
1522 ['use_pulseaudio==1', {
1529 'audio/cras/cras_input_unittest.cc',
1530 'audio/cras/cras_unified_unittest.cc',
1540 # GN version: //media:audio_unittests
1541 # For running the subset of media_unittests that might require audio
1542 # hardware separately on GPU bots. media_unittests includes these too.
1543 'target_name': 'audio_unittests',
1544 'type': '<(gtest_target_type)',
1546 'audio_test_config',
1547 'media_test_support',
1548 '../base/base.gyp:test_support_base',
1549 '../testing/gmock.gyp:gmock',
1550 '../testing/gtest.gyp:gtest',
1551 '../ui/gfx/gfx.gyp:gfx_test_support',
1552 '../url/url.gyp:url_lib',
1555 'base/run_all_unittests.cc',
1559 # GN versions (it is split apart): //media:test_support,
1560 # //media/base:test_support, and //media/audio:test_support
1561 'target_name': 'media_test_support',
1562 'type': 'static_library',
1565 'shared_memory_support',
1566 '../base/base.gyp:base',
1567 '../skia/skia.gyp:skia',
1568 '../testing/gmock.gyp:gmock',
1569 '../testing/gtest.gyp:gtest',
1572 'audio/audio_unittest_util.cc',
1573 'audio/audio_unittest_util.h',
1574 'audio/mock_audio_manager.cc',
1575 'audio/mock_audio_manager.h',
1576 'audio/mock_audio_source_callback.cc',
1577 'audio/mock_audio_source_callback.h',
1578 'audio/test_audio_input_controller_factory.cc',
1579 'audio/test_audio_input_controller_factory.h',
1580 'base/fake_audio_render_callback.cc',
1581 'base/fake_audio_render_callback.h',
1582 'base/fake_audio_renderer_sink.cc',
1583 'base/fake_audio_renderer_sink.h',
1584 'base/fake_demuxer_stream.cc',
1585 'base/fake_demuxer_stream.h',
1586 'base/fake_output_device.cc',
1587 'base/fake_output_device.h',
1588 'base/fake_text_track_stream.cc',
1589 'base/fake_text_track_stream.h',
1590 'base/gmock_callback_support.h',
1591 'base/mock_audio_renderer_sink.cc',
1592 'base/mock_audio_renderer_sink.h',
1593 'base/mock_demuxer_host.cc',
1594 'base/mock_demuxer_host.h',
1595 'base/mock_filters.cc',
1596 'base/mock_filters.h',
1597 'base/test_data_util.cc',
1598 'base/test_data_util.h',
1599 'base/test_helpers.cc',
1600 'base/test_helpers.h',
1601 'renderers/mock_gpu_video_accelerator_factories.cc',
1602 'renderers/mock_gpu_video_accelerator_factories.h',
1603 'video/mock_video_decode_accelerator.cc',
1604 'video/mock_video_decode_accelerator.h',
1608 # Minimal target for NaCl and other renderer side media clients which
1609 # only need to send audio data across the shared memory to the browser
1611 # GN version: //media:shared_memory_support
1612 'target_name': 'shared_memory_support',
1613 'type': '<(component)',
1615 '../base/base.gyp:base',
1618 'MEDIA_IMPLEMENTATION',
1624 'shared_memory_support.gypi',
1627 '<@(shared_memory_support_sources)',
1639 ['target_arch=="ia32" or target_arch=="x64"', {
1642 'target_name': 'media_asm',
1643 'type': 'static_library',
1645 'base/simd/convert_rgb_to_yuv_ssse3.asm',
1646 'base/simd/convert_yuv_to_rgb_sse.asm',
1647 'base/simd/convert_yuva_to_argb_mmx.asm',
1648 'base/simd/empty_register_state_mmx.asm',
1649 'base/simd/linear_scale_yuv_to_rgb_mmx.asm',
1650 'base/simd/linear_scale_yuv_to_rgb_sse.asm',
1651 'base/simd/scale_yuv_to_rgb_mmx.asm',
1652 'base/simd/scale_yuv_to_rgb_sse.asm',
1655 ['component=="shared_library"', {
1657 'yasm_flags': ['-DEXPORT_SYMBOLS'],
1660 ['target_arch=="x64"', {
1661 # Source files optimized for X64 systems.
1663 'base/simd/linear_scale_yuv_to_rgb_mmx_x64.asm',
1664 'base/simd/scale_yuv_to_rgb_sse2_x64.asm',
1667 'yasm_flags': ['-DARCH_X86_64'],
1670 ['OS=="mac" or OS=="ios"', {
1678 # XCode doesn't want to link a pure assembly target and will
1679 # fail to link when it creates an empty file list. So add a
1680 # dummy file keep the linker happy. See http://crbug.com/157073
1681 'base/simd/xcode_hack.c',
1684 ['os_posix==1 and OS!="mac"', {
1687 ['target_arch=="ia32"', {
1692 }, { # target_arch=="x64"
1704 'yasm_output_path': '<(SHARED_INTERMEDIATE_DIR)/media',
1707 # In addition to the same path as source asm, let yasm %include
1708 # search path be relative to src/ per Chromium policy.
1712 '../third_party/x86inc/x86inc.asm',
1713 'base/simd/convert_rgb_to_yuv_ssse3.inc',
1714 'base/simd/convert_yuv_to_rgb_mmx.inc',
1715 'base/simd/convert_yuva_to_argb_mmx.inc',
1716 'base/simd/linear_scale_yuv_to_rgb_mmx.inc',
1717 'base/simd/media_export.asm',
1718 'base/simd/scale_yuv_to_rgb_mmx.inc',
1721 'msvs_2010_disable_uldi_when_referenced': 1,
1723 '../third_party/yasm/yasm_compile.gypi',
1732 'target_name': 'media_unittests_apk',
1739 'test_suite_name': 'media_unittests',
1740 'isolate_file': 'media_unittests.isolate',
1742 'includes': ['../build/apk_test.gypi'],
1746 'target_name': 'media_perftests_apk',
1753 'test_suite_name': 'media_perftests',
1754 'isolate_file': 'media_perftests.isolate',
1756 'includes': ['../build/apk_test.gypi'],
1759 # GN: //media/base/android:media_android_jni_headers
1760 'target_name': 'media_android_jni_headers',
1763 'base/android/java/src/org/chromium/media/AudioManagerAndroid.java',
1764 'base/android/java/src/org/chromium/media/AudioRecordInput.java',
1765 'base/android/java/src/org/chromium/media/MediaCodecBridge.java',
1766 'base/android/java/src/org/chromium/media/MediaDrmBridge.java',
1767 'base/android/java/src/org/chromium/media/MediaPlayerBridge.java',
1768 'base/android/java/src/org/chromium/media/MediaPlayerListener.java',
1769 'base/android/java/src/org/chromium/media/WebAudioMediaCodecBridge.java',
1772 'jni_gen_package': 'media',
1774 'includes': ['../build/jni_generator.gypi'],
1777 # GN: //media/base/android:video_capture_android_jni_headers
1778 'target_name': 'video_capture_android_jni_headers',
1781 'base/android/java/src/org/chromium/media/VideoCapture.java',
1782 'base/android/java/src/org/chromium/media/VideoCaptureFactory.java',
1785 'jni_gen_package': 'media',
1787 'includes': ['../build/jni_generator.gypi'],
1790 # GN: //media/base/android:android
1791 'target_name': 'player_android',
1792 'type': 'static_library',
1794 'base/android/access_unit_queue.cc',
1795 'base/android/access_unit_queue.h',
1796 'base/android/audio_decoder_job.cc',
1797 'base/android/audio_decoder_job.h',
1798 'base/android/browser_cdm_factory_android.cc',
1799 'base/android/browser_cdm_factory_android.h',
1800 'base/android/demuxer_android.h',
1801 'base/android/demuxer_stream_player_params.cc',
1802 'base/android/demuxer_stream_player_params.h',
1803 'base/android/media_client_android.cc',
1804 'base/android/media_client_android.h',
1805 'base/android/media_codec_audio_decoder.cc',
1806 'base/android/media_codec_audio_decoder.h',
1807 'base/android/media_codec_bridge.cc',
1808 'base/android/media_codec_bridge.h',
1809 'base/android/media_codec_decoder.cc',
1810 'base/android/media_codec_decoder.h',
1811 'base/android/media_codec_player.cc',
1812 'base/android/media_codec_player.h',
1813 'base/android/media_codec_video_decoder.cc',
1814 'base/android/media_codec_video_decoder.h',
1815 'base/android/media_common_android.h',
1816 'base/android/media_decoder_job.cc',
1817 'base/android/media_decoder_job.h',
1818 'base/android/media_drm_bridge.cc',
1819 'base/android/media_drm_bridge.h',
1820 'base/android/media_drm_bridge_delegate.cc',
1821 'base/android/media_drm_bridge_delegate.h',
1822 'base/android/media_jni_registrar.cc',
1823 'base/android/media_jni_registrar.h',
1824 'base/android/media_player_android.cc',
1825 'base/android/media_player_android.h',
1826 'base/android/media_player_bridge.cc',
1827 'base/android/media_player_bridge.h',
1828 'base/android/media_player_listener.cc',
1829 'base/android/media_player_listener.h',
1830 'base/android/media_player_manager.h',
1831 'base/android/media_resource_getter.cc',
1832 'base/android/media_resource_getter.h',
1833 'base/android/media_source_player.cc',
1834 'base/android/media_source_player.h',
1835 'base/android/media_url_interceptor.h',
1836 'base/android/video_decoder_job.cc',
1837 'base/android/video_decoder_job.h',
1838 'base/android/webaudio_media_codec_bridge.cc',
1839 'base/android/webaudio_media_codec_bridge.h',
1840 'base/android/webaudio_media_codec_info.h',
1843 '../base/base.gyp:base',
1844 '../third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
1845 '../ui/gl/gl.gyp:gl',
1846 '../url/url.gyp:url_lib',
1847 'media_android_jni_headers',
1850 # Needed by media_drm_bridge.cc.
1851 '<(SHARED_INTERMEDIATE_DIR)',
1854 'MEDIA_IMPLEMENTATION',
1858 # GN: //media/base/android:media_java
1859 'target_name': 'media_java',
1862 '../base/base.gyp:base',
1863 'media_android_captureapitype',
1864 'media_android_imageformat',
1866 'export_dependent_settings': [
1867 '../base/base.gyp:base',
1870 'java_in_dir': 'base/android/java',
1872 'includes': ['../build/java.gypi'],
1875 # GN: //media/base/android:media_android_captureapitype
1876 'target_name': 'media_android_captureapitype',
1879 'source_file': 'capture/video/video_capture_device.h',
1881 'includes': [ '../build/android/java_cpp_enum.gypi' ],
1884 # GN: //media/base/android:media_android_imageformat
1885 'target_name': 'media_android_imageformat',
1888 'source_file': 'capture/video/android/video_capture_device_android.h',
1890 'includes': [ '../build/android/java_cpp_enum.gypi' ],
1894 ['media_use_ffmpeg==1', {
1897 # GN version: //media:ffmpeg_regression_tests
1898 'target_name': 'ffmpeg_regression_tests',
1899 'type': 'executable',
1901 '../base/base.gyp:test_support_base',
1902 '../testing/gmock.gyp:gmock',
1903 '../testing/gtest.gyp:gtest',
1904 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
1905 '../ui/gfx/gfx.gyp:gfx_geometry',
1907 'media_test_support',
1910 'base/run_all_unittests.cc',
1911 'ffmpeg/ffmpeg_regression_tests.cc',
1912 'test/pipeline_integration_test_base.cc',
1915 ['os_posix==1 and OS!="mac"', {
1917 ['use_allocator!="none"', {
1919 '../base/allocator/allocator.gyp:allocator',
1931 # Minimal media component for media/cast on iOS.
1932 # GN version: //media:media_for_cast_ios
1933 'target_name': 'media_for_cast_ios',
1934 'type': '<(component)',
1936 '../base/base.gyp:base',
1937 '../gpu/gpu.gyp:command_buffer_common',
1938 '../ui/gfx/gfx.gyp:gfx_geometry',
1939 'shared_memory_support',
1942 'MEDIA_DISABLE_FFMPEG',
1943 'MEDIA_DISABLE_LIBVPX',
1944 'MEDIA_FOR_CAST_IOS',
1945 'MEDIA_IMPLEMENTATION',
1947 'direct_dependent_settings': {
1949 'MEDIA_DISABLE_FFMPEG',
1950 'MEDIA_DISABLE_LIBVPX',
1960 'base/mac/coremedia_glue.h',
1961 'base/mac/coremedia_glue.mm',
1962 'base/mac/corevideo_glue.h',
1963 'base/mac/video_frame_mac.cc',
1964 'base/mac/video_frame_mac.h',
1965 'base/mac/videotoolbox_glue.h',
1966 'base/mac/videotoolbox_glue.mm',
1967 'base/simd/convert_rgb_to_yuv.h',
1968 'base/simd/convert_rgb_to_yuv_c.cc',
1969 'base/simd/convert_yuv_to_rgb.h',
1970 'base/simd/convert_yuv_to_rgb_c.cc',
1971 'base/simd/filter_yuv.h',
1972 'base/simd/filter_yuv_c.cc',
1973 'base/video_frame.cc',
1974 'base/video_frame.h',
1975 'base/video_frame_metadata.cc',
1976 'base/video_frame_metadata.h',
1977 'base/video_types.cc',
1978 'base/video_types.h',
1979 'base/video_util.cc',
1980 'base/video_util.h',
1981 'base/yuv_convert.cc',
1982 'base/yuv_convert.h',
1986 '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework',
1996 'target_conditions': [
1997 ['OS == "ios" and _toolset != "host"', {
1999 # Pull in specific Mac files for iOS (which have been filtered
2000 # out by file name rules).
2001 ['include', '^base/mac/coremedia_glue\\.h$'],
2002 ['include', '^base/mac/coremedia_glue\\.mm$'],
2003 ['include', '^base/mac/corevideo_glue\\.h$'],
2004 ['include', '^base/mac/videotoolbox_glue\\.h$'],
2005 ['include', '^base/mac/videotoolbox_glue\\.mm$'],
2006 ['include', '^base/mac/video_frame_mac\\.h$'],
2007 ['include', '^base/mac/video_frame_mac\\.cc$'],
2010 ], # target_conditions
2014 ['test_isolation_mode != "noop"', {
2017 'target_name': 'media_unittests_run',
2023 '../build/isolate.gypi',
2026 'media_unittests.isolate',
2030 'target_name': 'audio_unittests_run',
2036 '../build/isolate.gypi',
2039 'audio_unittests.isolate',
2044 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',