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/ivf_parser.cc',
543 'filters/ivf_parser.h',
544 'filters/in_memory_url_protocol.cc',
545 'filters/in_memory_url_protocol.h',
546 'filters/jpeg_parser.cc',
547 'filters/jpeg_parser.h',
548 'filters/opus_audio_decoder.cc',
549 'filters/opus_audio_decoder.h',
550 'filters/source_buffer_range.cc',
551 'filters/source_buffer_range.h',
552 'filters/source_buffer_stream.cc',
553 'filters/source_buffer_stream.h',
554 'filters/stream_parser_factory.cc',
555 'filters/stream_parser_factory.h',
556 'filters/video_cadence_estimator.cc',
557 'filters/video_cadence_estimator.h',
558 'filters/video_renderer_algorithm.cc',
559 'filters/video_renderer_algorithm.h',
560 'filters/vp8_bool_decoder.cc',
561 'filters/vp8_bool_decoder.h',
562 'filters/vp8_parser.cc',
563 'filters/vp8_parser.h',
564 'filters/vpx_video_decoder.cc',
565 'filters/vpx_video_decoder.h',
566 'filters/webvtt_util.h',
567 'filters/wsola_internals.cc',
568 'filters/wsola_internals.h',
569 'formats/common/offset_byte_queue.cc',
570 'formats/common/offset_byte_queue.h',
571 'formats/webm/webm_audio_client.cc',
572 'formats/webm/webm_audio_client.h',
573 'formats/webm/webm_cluster_parser.cc',
574 'formats/webm/webm_cluster_parser.h',
575 'formats/webm/webm_constants.cc',
576 'formats/webm/webm_constants.h',
577 'formats/webm/webm_content_encodings.cc',
578 'formats/webm/webm_content_encodings.h',
579 'formats/webm/webm_content_encodings_client.cc',
580 'formats/webm/webm_content_encodings_client.h',
581 'formats/webm/webm_crypto_helpers.cc',
582 'formats/webm/webm_crypto_helpers.h',
583 'formats/webm/webm_info_parser.cc',
584 'formats/webm/webm_info_parser.h',
585 'formats/webm/webm_parser.cc',
586 'formats/webm/webm_parser.h',
587 'formats/webm/webm_stream_parser.cc',
588 'formats/webm/webm_stream_parser.h',
589 'formats/webm/webm_tracks_parser.cc',
590 'formats/webm/webm_tracks_parser.h',
591 'formats/webm/webm_video_client.cc',
592 'formats/webm/webm_video_client.h',
593 'formats/webm/webm_webvtt_parser.cc',
594 'ozone/media_ozone_platform.cc',
595 'ozone/media_ozone_platform.h',
596 'renderers/audio_renderer_impl.cc',
597 'renderers/audio_renderer_impl.h',
598 'renderers/default_renderer_factory.cc',
599 'renderers/default_renderer_factory.h',
600 'renderers/gpu_video_accelerator_factories.h',
601 'renderers/renderer_impl.cc',
602 'renderers/renderer_impl.h',
603 'renderers/video_renderer_impl.cc',
604 'renderers/video_renderer_impl.h',
605 'video/fake_video_encode_accelerator.cc',
606 'video/fake_video_encode_accelerator.h',
607 'video/gpu_memory_buffer_video_frame_pool.cc',
608 'video/gpu_memory_buffer_video_frame_pool.h',
611 'video/jpeg_decode_accelerator.cc',
612 'video/jpeg_decode_accelerator.h',
615 'video/video_decode_accelerator.cc',
616 'video/video_decode_accelerator.h',
617 'video/video_encode_accelerator.cc',
618 'video/video_encode_accelerator.h',
619 'formats/webm/webm_webvtt_parser.h'
621 'direct_dependent_settings': {
632 ['media_use_ffmpeg==1', {
634 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
636 }, { # media_use_ffmpeg==0
637 # Exclude the sources that depend on ffmpeg.
639 'base/audio_video_metadata_extractor.cc',
640 'base/audio_video_metadata_extractor.h',
641 'base/container_names.cc',
642 'base/container_names.h',
643 'base/media_file_checker.cc',
644 'base/media_file_checker.h',
645 'ffmpeg/ffmpeg_common.cc',
646 'ffmpeg/ffmpeg_common.h',
647 'filters/audio_file_reader.cc',
648 'filters/audio_file_reader.h',
649 'filters/blocking_url_protocol.cc',
650 'filters/blocking_url_protocol.h',
651 'filters/ffmpeg_aac_bitstream_converter.cc',
652 'filters/ffmpeg_aac_bitstream_converter.h',
653 'filters/ffmpeg_audio_decoder.cc',
654 'filters/ffmpeg_audio_decoder.h',
655 'filters/ffmpeg_bitstream_converter.h',
656 'filters/ffmpeg_demuxer.cc',
657 'filters/ffmpeg_demuxer.h',
658 'filters/ffmpeg_glue.cc',
659 'filters/ffmpeg_glue.h',
660 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc',
661 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.h',
662 'filters/ffmpeg_video_decoder.cc',
663 'filters/ffmpeg_video_decoder.h',
664 'filters/in_memory_url_protocol.cc',
665 'filters/in_memory_url_protocol.h',
668 'MEDIA_DISABLE_FFMPEG',
670 'direct_dependent_settings': {
672 'MEDIA_DISABLE_FFMPEG',
676 ['media_use_libvpx==1', {
678 '<(DEPTH)/third_party/libvpx/libvpx.gyp:libvpx',
680 }, { # media_use_libvpx==0
682 'MEDIA_DISABLE_LIBVPX',
684 'direct_dependent_settings': {
686 'MEDIA_DISABLE_LIBVPX',
689 # Exclude the sources that depend on libvpx.
691 'filters/vpx_video_decoder.cc',
692 'filters/vpx_video_decoder.h',
695 ['media_use_libwebm==1', {
697 '<(DEPTH)/third_party/libwebm/libwebm.gyp:libwebm',
699 }, { # media_use_libwebm==0
700 # Exclude the sources that depend on libwebm.
702 'capture/webm_muxer.cc',
703 'capture/webm_muxer.h',
706 ['enable_browser_cdms==1', {
708 'base/browser_cdm.cc',
709 'base/browser_cdm.h',
710 'base/browser_cdm_factory.cc',
711 'base/browser_cdm_factory.h',
716 'media_android_jni_headers',
719 'video_capture_android_jni_headers',
722 'base/audio_video_metadata_extractor.cc',
723 'base/audio_video_metadata_extractor.h',
724 'base/media_file_checker.cc',
725 'base/media_file_checker.h',
726 'filters/ffmpeg_video_decoder.cc',
727 'filters/ffmpeg_video_decoder.h',
730 'DISABLE_USER_INPUT_MONITOR',
733 ['media_use_ffmpeg == 1', {
735 # On Android, FFmpeg is built without video decoders. We only
736 # support hardware video decoding.
737 'ENABLE_MEDIA_PIPELINE_ON_ANDROID',
738 'DISABLE_FFMPEG_VIDEO_DECODERS',
740 'direct_dependent_settings': {
742 'ENABLE_MEDIA_PIPELINE_ON_ANDROID',
743 'DISABLE_FFMPEG_VIDEO_DECODERS',
746 }, { # media_use_ffmpeg == 0
748 'filters/opus_audio_decoder.cc',
749 'filters/opus_audio_decoder.h',
754 # For VaapiVideoEncodeAccelerator.
755 ['target_arch != "arm" and chromeos == 1', {
757 'filters/h264_bitstream_buffer.cc',
758 'filters/h264_bitstream_buffer.h',
772 ['exclude', '(^|/)alsa/'],
773 ['exclude', '_alsa\\.(h|cc)$'],
778 'audio/openbsd/audio_manager_openbsd.cc',
779 'audio/openbsd/audio_manager_openbsd.h',
781 }, { # else: openbsd==1
783 'capture/video/linux/v4l2_capture_delegate_multi_plane.cc',
784 'capture/video/linux/v4l2_capture_delegate_multi_plane.h',
791 '../build/linux/system.gyp:x11',
792 '../build/linux/system.gyp:xdamage',
793 '../build/linux/system.gyp:xext',
794 '../build/linux/system.gyp:xfixes',
795 '../build/linux/system.gyp:xtst',
796 '../ui/gfx/x/gfx_x11.gyp:gfx_x11',
798 }, { # else: use_x11==0
800 'base/user_input_monitor_linux.cc',
803 'DISABLE_USER_INPUT_MONITOR',
808 '../chromeos/chromeos.gyp:chromeos',
811 '<!@(<(pkg-config) --cflags libcras)',
815 '<!@(<(pkg-config) --libs libcras)',
821 }, { # else: use_cras==0
823 'audio/cras/audio_manager_cras.cc',
824 'audio/cras/audio_manager_cras.h',
825 'audio/cras/cras_input.cc',
826 'audio/cras/cras_input.h',
827 'audio/cras/cras_unified.cc',
828 'audio/cras/cras_unified.h',
835 'platform_list_txt_file': '<(SHARED_INTERMEDIATE_DIR)/ui/ozone/platform_list.txt',
836 'constructor_list_cc_file': '<(INTERMEDIATE_DIR)/media/ozone/constructor_list.cc',
839 # Used for the generated listing header (ui/ozone/platform_list.h)
840 '<(SHARED_INTERMEDIATE_DIR)',
843 '<(constructor_list_cc_file)',
846 '../ui/ozone/ozone.gyp:ozone',
850 # Ozone platform objects are auto-generated using similar
851 # patterns for naming and classes constructors. Here we build the
852 # object MediaOzonePlatform.
853 'action_name': 'generate_constructor_list',
855 'generator_path': '../ui/ozone/generate_constructor_list.py',
859 '<(platform_list_txt_file)',
862 '<(constructor_list_cc_file)',
867 '--platform_list=<(platform_list_txt_file)',
868 '--output_cc=<(constructor_list_cc_file)',
870 '--typename=MediaOzonePlatform',
871 '--include="media/ozone/media_ozone_platform.h"'
877 'ozone/media_ozone_platform.cc',
878 'ozone/media_ozone_platform.h',
883 'audio/cras/audio_manager_cras.cc',
884 'audio/cras/audio_manager_cras.h',
885 'audio/cras/cras_input.cc',
886 'audio/cras/cras_input.h',
887 'audio/cras/cras_unified.cc',
888 'audio/cras/cras_unified.h',
891 ['use_pulseaudio==1', {
893 '<!@(<(pkg-config) --cflags libpulse)',
899 ['linux_link_pulseaudio==0', {
904 'generate_stubs_script': '../tools/generate_stubs/generate_stubs.py',
905 'extra_header': 'audio/pulse/pulse_stub_header.fragment',
906 'sig_files': ['audio/pulse/pulse.sigs'],
907 'outfile_type': 'posix_stubs',
908 'stubs_filename_root': 'pulse_stubs',
909 'project_path': 'media/audio/pulse',
910 'intermediate_dir': '<(INTERMEDIATE_DIR)',
911 'output_root': '<(SHARED_INTERMEDIATE_DIR)/pulse',
918 'action_name': 'generate_stubs',
920 '<(generate_stubs_script)',
925 '<(intermediate_dir)/<(stubs_filename_root).cc',
926 '<(output_root)/<(project_path)/<(stubs_filename_root).h',
929 '<(generate_stubs_script)',
930 '-i', '<(intermediate_dir)',
931 '-o', '<(output_root)/<(project_path)',
932 '-t', '<(outfile_type)',
933 '-e', '<(extra_header)',
934 '-s', '<(stubs_filename_root)',
935 '-p', '<(project_path)',
938 'process_outputs_as_sources': 1,
939 'message': 'Generating Pulse stubs for dynamic loading',
943 # Linux/Solaris need libdl for dlopen() and friends.
944 ['OS=="linux" or OS=="solaris"', {
952 }, { # else: linux_link_pulseaudio==0
955 '<!@(<(pkg-config) --libs-only-L --libs-only-other libpulse)',
958 '<!@(<(pkg-config) --libs-only-l libpulse)',
963 }, { # else: use_pulseaudio==0
965 'audio/pulse/audio_manager_pulse.cc',
966 'audio/pulse/audio_manager_pulse.h',
967 'audio/pulse/pulse_input.cc',
968 'audio/pulse/pulse_input.h',
969 'audio/pulse/pulse_output.cc',
970 'audio/pulse/pulse_output.h',
971 'audio/pulse/pulse_util.cc',
972 'audio/pulse/pulse_util.h',
977 '../third_party/decklink/decklink.gyp:decklink',
981 '$(SDKROOT)/System/Library/Frameworks/AudioToolbox.framework',
982 '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework',
983 '$(SDKROOT)/System/Library/Frameworks/CoreAudio.framework',
984 '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework',
985 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
986 '$(SDKROOT)/System/Library/Frameworks/QTKit.framework',
999 # Specify delayload for media.dll.
1009 # Specify delayload for components that link with media.lib.
1010 'all_dependent_settings': {
1021 # TODO(wolenetz): Fix size_t to int truncations in win64. See
1022 # http://crbug.com/171009
1024 ['target_arch=="x64"', {
1025 'msvs_disabled_warnings': [ 4267, ],
1029 ['proprietary_codecs==1', {
1031 'cdm/cenc_utils.cc',
1033 'filters/ffmpeg_aac_bitstream_converter.cc',
1034 'filters/ffmpeg_aac_bitstream_converter.h',
1035 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc',
1036 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.h',
1037 'filters/h264_to_annex_b_bitstream_converter.cc',
1038 'filters/h264_to_annex_b_bitstream_converter.h',
1039 'formats/mp2t/es_adapter_video.cc',
1040 'formats/mp2t/es_adapter_video.h',
1041 'formats/mp2t/es_parser.cc',
1042 'formats/mp2t/es_parser.h',
1043 'formats/mp2t/es_parser_adts.cc',
1044 'formats/mp2t/es_parser_adts.h',
1045 'formats/mp2t/es_parser_h264.cc',
1046 'formats/mp2t/es_parser_h264.h',
1047 'formats/mp2t/es_parser_mpeg1audio.cc',
1048 'formats/mp2t/es_parser_mpeg1audio.h',
1049 'formats/mp2t/mp2t_common.h',
1050 'formats/mp2t/mp2t_stream_parser.cc',
1051 'formats/mp2t/mp2t_stream_parser.h',
1052 'formats/mp2t/timestamp_unroller.cc',
1053 'formats/mp2t/timestamp_unroller.h',
1054 'formats/mp2t/ts_packet.cc',
1055 'formats/mp2t/ts_packet.h',
1056 'formats/mp2t/ts_section.h',
1057 'formats/mp2t/ts_section_pat.cc',
1058 'formats/mp2t/ts_section_pat.h',
1059 'formats/mp2t/ts_section_pes.cc',
1060 'formats/mp2t/ts_section_pes.h',
1061 'formats/mp2t/ts_section_pmt.cc',
1062 'formats/mp2t/ts_section_pmt.h',
1063 'formats/mp2t/ts_section_psi.cc',
1064 'formats/mp2t/ts_section_psi.h',
1065 'formats/mp4/aac.cc',
1066 'formats/mp4/aac.h',
1067 'formats/mp4/avc.cc',
1068 'formats/mp4/avc.h',
1069 'formats/mp4/box_definitions.cc',
1070 'formats/mp4/box_definitions.h',
1071 'formats/mp4/box_reader.cc',
1072 'formats/mp4/box_reader.h',
1073 'formats/mp4/cenc.cc',
1074 'formats/mp4/cenc.h',
1075 'formats/mp4/es_descriptor.cc',
1076 'formats/mp4/es_descriptor.h',
1077 'formats/mp4/mp4_stream_parser.cc',
1078 'formats/mp4/mp4_stream_parser.h',
1079 'formats/mp4/sample_to_group_iterator.cc',
1080 'formats/mp4/sample_to_group_iterator.h',
1081 'formats/mp4/track_run_iterator.cc',
1082 'formats/mp4/track_run_iterator.h',
1083 'formats/mpeg/adts_constants.cc',
1084 'formats/mpeg/adts_constants.h',
1085 'formats/mpeg/adts_stream_parser.cc',
1086 'formats/mpeg/adts_stream_parser.h',
1087 'formats/mpeg/mpeg1_audio_stream_parser.cc',
1088 'formats/mpeg/mpeg1_audio_stream_parser.h',
1089 'formats/mpeg/mpeg_audio_stream_parser_base.cc',
1090 'formats/mpeg/mpeg_audio_stream_parser_base.h',
1093 ['target_arch=="ia32" or target_arch=="x64"', {
1098 'base/simd/convert_rgb_to_yuv_sse2.cc',
1099 'base/simd/convert_rgb_to_yuv_ssse3.cc',
1100 'base/simd/convert_yuv_to_rgb_x86.cc',
1101 'base/simd/filter_yuv_sse2.cc',
1104 ['OS!="linux" and OS!="win"', {
1106 'base/keyboard_event_counter.cc',
1107 'base/keyboard_event_counter.h',
1110 ['use_low_memory_buffer==1', {
1112 'filters/source_buffer_platform.h',
1113 'filters/source_buffer_platform_lowmem.cc',
1115 }, { # 'use_low_memory_buffer==0'
1117 'filters/source_buffer_platform.cc',
1118 'filters/source_buffer_platform.h',
1122 'target_conditions': [
1123 ['OS == "ios" and _toolset != "host"', {
1125 # Pull in specific Mac files for iOS (which have been filtered out
1126 # by file name rules).
1127 ['include', '^base/mac/coremedia_glue\\.h$'],
1128 ['include', '^base/mac/coremedia_glue\\.mm$'],
1129 ['include', '^base/mac/corevideo_glue\\.h$'],
1130 ['include', '^base/mac/videotoolbox_glue\\.h$'],
1131 ['include', '^base/mac/videotoolbox_glue\\.mm$'],
1132 ['include', '^base/mac/video_frame_mac\\.h$'],
1133 ['include', '^base/mac/video_frame_mac\\.cc$'],
1136 ], # target_conditions
1139 # GN version: //media:media_unittests
1140 'target_name': 'media_unittests',
1141 'type': '<(gtest_target_type)',
1143 'audio_test_config',
1145 'media_test_support',
1146 'shared_memory_support',
1147 '../base/base.gyp:base',
1148 '../base/base.gyp:base_i18n',
1149 '../base/base.gyp:test_support_base',
1150 '../gpu/gpu.gyp:command_buffer_common',
1151 '../gpu/gpu.gyp:gpu_unittest_utils',
1152 '../skia/skia.gyp:skia',
1153 '../testing/gmock.gyp:gmock',
1154 '../testing/gtest.gyp:gtest',
1155 '../third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
1156 '../ui/gfx/gfx.gyp:gfx',
1157 '../ui/gfx/gfx.gyp:gfx_geometry',
1158 '../ui/gfx/gfx.gyp:gfx_test_support',
1159 '../url/url.gyp:url_lib',
1162 'base/android/access_unit_queue_unittest.cc',
1163 'base/android/media_codec_bridge_unittest.cc',
1164 'base/android/media_codec_decoder_unittest.cc',
1165 'base/android/media_codec_player_unittest.cc',
1166 'base/android/media_drm_bridge_unittest.cc',
1167 'base/android/media_player_bridge_unittest.cc',
1168 'base/android/media_source_player_unittest.cc',
1169 'base/android/test_data_factory.cc',
1170 'base/android/test_data_factory.h',
1171 'base/android/test_statistics.h',
1172 'base/audio_block_fifo_unittest.cc',
1173 'base/audio_buffer_converter_unittest.cc',
1174 'base/audio_buffer_queue_unittest.cc',
1175 'base/audio_buffer_unittest.cc',
1176 'base/audio_bus_unittest.cc',
1177 'base/audio_converter_unittest.cc',
1178 'base/audio_discard_helper_unittest.cc',
1179 'base/audio_fifo_unittest.cc',
1180 'base/audio_hardware_config_unittest.cc',
1181 'base/audio_hash_unittest.cc',
1182 'base/audio_pull_fifo_unittest.cc',
1183 'base/audio_renderer_mixer_input_unittest.cc',
1184 'base/audio_renderer_mixer_unittest.cc',
1185 'base/audio_shifter_unittest.cc',
1186 'base/audio_splicer_unittest.cc',
1187 'base/audio_timestamp_helper_unittest.cc',
1188 'base/audio_video_metadata_extractor_unittest.cc',
1189 'base/bind_to_current_loop_unittest.cc',
1190 'base/bit_reader_unittest.cc',
1191 'base/callback_holder.h',
1192 'base/callback_holder_unittest.cc',
1193 'base/channel_mixer_unittest.cc',
1194 'base/channel_mixing_matrix_unittest.cc',
1195 'base/container_names_unittest.cc',
1196 'base/data_buffer_unittest.cc',
1197 'base/decoder_buffer_queue_unittest.cc',
1198 'base/decoder_buffer_unittest.cc',
1199 'base/djb2_unittest.cc',
1200 'base/fake_demuxer_stream_unittest.cc',
1201 'base/gmock_callback_support_unittest.cc',
1202 'base/key_systems_unittest.cc',
1203 'base/mac/video_frame_mac_unittests.cc',
1204 'base/media_file_checker_unittest.cc',
1205 'base/mime_util_unittest.cc',
1206 'base/moving_average_unittest.cc',
1207 'base/multi_channel_resampler_unittest.cc',
1208 'base/null_video_sink_unittest.cc',
1209 'base/pipeline_unittest.cc',
1210 'base/ranges_unittest.cc',
1211 'base/run_all_unittests.cc',
1212 'base/seekable_buffer_unittest.cc',
1213 'base/serial_runner_unittest.cc',
1214 'base/sinc_resampler_unittest.cc',
1215 'base/stream_parser_unittest.cc',
1216 'base/text_ranges_unittest.cc',
1217 'base/text_renderer_unittest.cc',
1218 'base/time_delta_interpolator_unittest.cc',
1219 'base/user_input_monitor_unittest.cc',
1220 'base/vector_math_testing.h',
1221 'base/vector_math_unittest.cc',
1222 'base/video_frame_pool_unittest.cc',
1223 'base/video_frame_unittest.cc',
1224 'base/video_util_unittest.cc',
1225 'base/wall_clock_time_source_unittest.cc',
1226 'base/yuv_convert_unittest.cc',
1227 'blink/skcanvas_video_renderer_unittest.cc',
1228 'capture/content/animated_content_sampler_unittest.cc',
1229 'capture/content/capture_resolution_chooser_unittest.cc',
1230 'capture/content/feedback_signal_accumulator_unittest.cc',
1231 'capture/content/smooth_event_sampler_unittest.cc',
1232 'capture/content/video_capture_oracle_unittest.cc',
1233 'capture/video/fake_video_capture_device_unittest.cc',
1234 'capture/video/video_capture_device_unittest.cc',
1235 'cdm/aes_decryptor_unittest.cc',
1236 'cdm/json_web_key_unittest.cc',
1237 'ffmpeg/ffmpeg_common_unittest.cc',
1238 'filters/audio_clock_unittest.cc',
1239 'filters/audio_decoder_selector_unittest.cc',
1240 'filters/audio_decoder_unittest.cc',
1241 'filters/audio_file_reader_unittest.cc',
1242 'filters/audio_renderer_algorithm_unittest.cc',
1243 'filters/blocking_url_protocol_unittest.cc',
1244 'filters/chunk_demuxer_unittest.cc',
1245 'filters/decrypting_audio_decoder_unittest.cc',
1246 'filters/decrypting_demuxer_stream_unittest.cc',
1247 'filters/decrypting_video_decoder_unittest.cc',
1248 'filters/fake_video_decoder.cc',
1249 'filters/fake_video_decoder.h',
1250 'filters/fake_video_decoder_unittest.cc',
1251 'filters/ffmpeg_demuxer_unittest.cc',
1252 'filters/ffmpeg_glue_unittest.cc',
1253 'filters/ffmpeg_video_decoder_unittest.cc',
1254 'filters/file_data_source_unittest.cc',
1255 'filters/frame_processor_unittest.cc',
1256 'filters/h264_bit_reader_unittest.cc',
1257 'filters/h264_parser_unittest.cc',
1258 'filters/in_memory_url_protocol_unittest.cc',
1259 'filters/ivf_parser_unittest.cc',
1260 'filters/jpeg_parser_unittest.cc',
1261 'filters/source_buffer_stream_unittest.cc',
1262 'filters/video_cadence_estimator_unittest.cc',
1263 'filters/video_decoder_selector_unittest.cc',
1264 'filters/video_frame_stream_unittest.cc',
1265 'filters/video_renderer_algorithm_unittest.cc',
1266 'filters/vp8_bool_decoder_unittest.cc',
1267 'filters/vp8_parser_unittest.cc',
1268 'capture/webm_muxer_unittest.cc',
1269 'formats/common/offset_byte_queue_unittest.cc',
1270 'formats/webm/cluster_builder.cc',
1271 'formats/webm/cluster_builder.h',
1272 'formats/webm/opus_packet_builder.cc',
1273 'formats/webm/opus_packet_builder.h',
1274 'formats/webm/tracks_builder.cc',
1275 'formats/webm/tracks_builder.h',
1276 'formats/webm/webm_cluster_parser_unittest.cc',
1277 'formats/webm/webm_content_encodings_client_unittest.cc',
1278 'formats/webm/webm_parser_unittest.cc',
1279 'formats/webm/webm_tracks_parser_unittest.cc',
1280 'formats/webm/webm_webvtt_parser_unittest.cc',
1281 'renderers/audio_renderer_impl_unittest.cc',
1282 'renderers/renderer_impl_unittest.cc',
1283 'renderers/video_renderer_impl_unittest.cc',
1284 'test/pipeline_integration_test.cc',
1285 'test/pipeline_integration_test_base.cc',
1286 'video/h264_poc_unittest.cc',
1287 'video/gpu_memory_buffer_video_frame_pool_unittest.cc',
1290 # Needed by media_drm_bridge.cc.
1291 '<(SHARED_INTERMEDIATE_DIR)',
1299 ['media_use_ffmpeg==1', {
1301 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
1303 }, { # media_use_ffmpeg==0
1305 'ffmpeg/ffmpeg_common_unittest.cc',
1306 'filters/audio_decoder_unittest.cc',
1307 'filters/ffmpeg_aac_bitstream_converter_unittest.cc',
1308 'filters/ffmpeg_demuxer_unittest.cc',
1309 'filters/ffmpeg_glue_unittest.cc',
1310 'filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc',
1313 # Even if FFmpeg is enabled on Android we don't want these.
1314 # TODO(watk): Refactor tests that could be made to run on Android.
1315 ['media_use_ffmpeg==0 or OS=="android"', {
1317 'base/audio_video_metadata_extractor_unittest.cc',
1318 'base/container_names_unittest.cc',
1319 'base/media_file_checker_unittest.cc',
1320 'filters/audio_file_reader_unittest.cc',
1321 'filters/blocking_url_protocol_unittest.cc',
1322 'filters/ffmpeg_video_decoder_unittest.cc',
1323 'filters/in_memory_url_protocol_unittest.cc',
1324 'test/pipeline_integration_test.cc',
1325 'test/pipeline_integration_test_base.cc',
1328 ['media_use_libwebm==1', {
1330 '<(DEPTH)/third_party/libwebm/libwebm.gyp:libwebm',
1332 }, { # media_use_libwebm==0
1333 # Exclude the sources that depend on libwebm.
1335 'capture/webm_muxer_unittest.cc',
1339 ['(os_posix==1 and OS!="mac") or (OS=="win" and component!="shared_library" and win_use_allocator_shim==1)', {
1341 ['use_allocator!="none"', {
1343 '../base/allocator/allocator.gyp:allocator',
1350 '../testing/android/native_test.gyp:native_test_native_code',
1354 ['target_arch != "arm" and chromeos == 1 and use_x11 == 1', {
1356 'filters/h264_bitstream_buffer_unittest.cc',
1359 ['target_arch=="ia32" or target_arch=="x64"', {
1361 'base/simd/convert_rgb_to_yuv_unittest.cc',
1364 ['proprietary_codecs==1', {
1366 'cdm/cenc_utils_unittest.cc',
1367 'filters/ffmpeg_aac_bitstream_converter_unittest.cc',
1368 'filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc',
1369 'filters/h264_to_annex_b_bitstream_converter_unittest.cc',
1370 'formats/common/stream_parser_test_base.cc',
1371 'formats/common/stream_parser_test_base.h',
1372 'formats/mp2t/es_adapter_video_unittest.cc',
1373 'formats/mp2t/es_parser_adts_unittest.cc',
1374 'formats/mp2t/es_parser_h264_unittest.cc',
1375 'formats/mp2t/es_parser_mpeg1audio_unittest.cc',
1376 'formats/mp2t/es_parser_test_base.cc',
1377 'formats/mp2t/es_parser_test_base.h',
1378 'formats/mp2t/mp2t_stream_parser_unittest.cc',
1379 'formats/mp2t/timestamp_unroller_unittest.cc',
1380 'formats/mp4/aac_unittest.cc',
1381 'formats/mp4/avc_unittest.cc',
1382 'formats/mp4/box_reader_unittest.cc',
1383 'formats/mp4/es_descriptor_unittest.cc',
1384 'formats/mp4/mp4_stream_parser_unittest.cc',
1385 'formats/mp4/sample_to_group_iterator_unittest.cc',
1386 'formats/mp4/track_run_iterator_unittest.cc',
1387 'formats/mpeg/adts_stream_parser_unittest.cc',
1388 'formats/mpeg/mpeg1_audio_stream_parser_unittest.cc',
1393 'capture/video/mac/video_capture_device_factory_mac_unittest.mm',
1398 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
1404 # GN version: //media:media_perftests
1405 'target_name': 'media_perftests',
1406 'type': '<(gtest_target_type)',
1408 '../base/base.gyp:test_support_base',
1409 '../testing/gmock.gyp:gmock',
1410 '../testing/gtest.gyp:gtest',
1411 '../testing/perf/perf_test.gyp:perf_test',
1412 '../ui/gfx/gfx.gyp:gfx',
1413 '../ui/gfx/gfx.gyp:gfx_test_support',
1414 '../ui/gfx/gfx.gyp:gfx_geometry',
1416 'media_test_support',
1417 'shared_memory_support',
1420 'base/audio_bus_perftest.cc',
1421 'base/audio_converter_perftest.cc',
1422 'base/demuxer_perftest.cc',
1423 'base/run_all_perftests.cc',
1424 'base/sinc_resampler_perftest.cc',
1425 'base/vector_math_perftest.cc',
1426 'base/yuv_convert_perftest.cc',
1427 'test/pipeline_integration_perftest.cc',
1428 'test/pipeline_integration_test_base.cc',
1438 '../testing/android/native_test.gyp:native_test_native_code',
1439 '../ui/gl/gl.gyp:gl',
1442 ['media_use_ffmpeg==1', {
1444 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
1446 }, { # media_use_ffmpeg==0
1448 'base/demuxer_perftest.cc',
1449 'test/pipeline_integration_perftest.cc',
1450 'test/pipeline_integration_test_base.cc',
1456 # GN version: //media/audio:unittests
1457 # For including the sources and configs in multiple test targets.
1458 'target_name': 'audio_test_config',
1460 'direct_dependent_settings': {
1462 'audio/audio_input_controller_unittest.cc',
1463 'audio/audio_input_unittest.cc',
1464 'audio/audio_manager_factory_unittest.cc',
1465 'audio/audio_manager_unittest.cc',
1466 'audio/audio_output_controller_unittest.cc',
1467 'audio/audio_output_device_unittest.cc',
1468 'audio/audio_output_proxy_unittest.cc',
1469 'audio/audio_parameters_unittest.cc',
1470 'audio/audio_power_monitor_unittest.cc',
1471 'audio/fake_audio_worker_unittest.cc',
1472 'audio/simple_sources_unittest.cc',
1473 'audio/virtual_audio_input_stream_unittest.cc',
1474 'audio/virtual_audio_output_stream_unittest.cc',
1477 # TODO(wolenetz): Fix size_t to int truncations in win64. See
1478 # http://crbug.com/171009
1479 ['OS=="win" and target_arch=="x64"', {
1480 'msvs_disabled_warnings': [ 4267, ],
1484 'audio/android/audio_android_unittest.cc',
1488 'audio/audio_input_volume_unittest.cc',
1493 'audio/mac/audio_auhal_mac_unittest.cc',
1494 'audio/mac/audio_device_listener_mac_unittest.cc',
1495 'audio/mac/audio_low_latency_input_mac_unittest.cc',
1500 'audio/sounds/audio_stream_handler_unittest.cc',
1501 'audio/sounds/sounds_manager_unittest.cc',
1502 'audio/sounds/test_data.cc',
1503 'audio/sounds/test_data.h',
1504 'audio/sounds/wav_audio_handler_unittest.cc',
1509 'audio/win/audio_device_listener_win_unittest.cc',
1510 'audio/win/audio_low_latency_input_win_unittest.cc',
1511 'audio/win/audio_low_latency_output_win_unittest.cc',
1512 'audio/win/audio_output_win_unittest.cc',
1513 'audio/win/core_audio_util_win_unittest.cc',
1518 'audio/alsa/alsa_output_unittest.cc',
1519 'audio/audio_low_latency_input_output_unittest.cc',
1525 ['use_pulseaudio==1', {
1532 'audio/cras/cras_input_unittest.cc',
1533 'audio/cras/cras_unified_unittest.cc',
1543 # GN version: //media:audio_unittests
1544 # For running the subset of media_unittests that might require audio
1545 # hardware separately on GPU bots. media_unittests includes these too.
1546 'target_name': 'audio_unittests',
1547 'type': '<(gtest_target_type)',
1549 'audio_test_config',
1550 'media_test_support',
1551 '../base/base.gyp:test_support_base',
1552 '../testing/gmock.gyp:gmock',
1553 '../testing/gtest.gyp:gtest',
1554 '../ui/gfx/gfx.gyp:gfx_test_support',
1555 '../url/url.gyp:url_lib',
1558 'base/run_all_unittests.cc',
1562 # GN versions (it is split apart): //media:test_support,
1563 # //media/base:test_support, and //media/audio:test_support
1564 'target_name': 'media_test_support',
1565 'type': 'static_library',
1568 'shared_memory_support',
1569 '../base/base.gyp:base',
1570 '../skia/skia.gyp:skia',
1571 '../testing/gmock.gyp:gmock',
1572 '../testing/gtest.gyp:gtest',
1575 'audio/audio_unittest_util.cc',
1576 'audio/audio_unittest_util.h',
1577 'audio/mock_audio_manager.cc',
1578 'audio/mock_audio_manager.h',
1579 'audio/mock_audio_source_callback.cc',
1580 'audio/mock_audio_source_callback.h',
1581 'audio/test_audio_input_controller_factory.cc',
1582 'audio/test_audio_input_controller_factory.h',
1583 'base/fake_audio_render_callback.cc',
1584 'base/fake_audio_render_callback.h',
1585 'base/fake_audio_renderer_sink.cc',
1586 'base/fake_audio_renderer_sink.h',
1587 'base/fake_demuxer_stream.cc',
1588 'base/fake_demuxer_stream.h',
1589 'base/fake_output_device.cc',
1590 'base/fake_output_device.h',
1591 'base/fake_text_track_stream.cc',
1592 'base/fake_text_track_stream.h',
1593 'base/gmock_callback_support.h',
1594 'base/mock_audio_renderer_sink.cc',
1595 'base/mock_audio_renderer_sink.h',
1596 'base/mock_demuxer_host.cc',
1597 'base/mock_demuxer_host.h',
1598 'base/mock_filters.cc',
1599 'base/mock_filters.h',
1600 'base/test_data_util.cc',
1601 'base/test_data_util.h',
1602 'base/test_helpers.cc',
1603 'base/test_helpers.h',
1604 'renderers/mock_gpu_video_accelerator_factories.cc',
1605 'renderers/mock_gpu_video_accelerator_factories.h',
1606 'video/mock_video_decode_accelerator.cc',
1607 'video/mock_video_decode_accelerator.h',
1611 # Minimal target for NaCl and other renderer side media clients which
1612 # only need to send audio data across the shared memory to the browser
1614 # GN version: //media:shared_memory_support
1615 'target_name': 'shared_memory_support',
1616 'type': '<(component)',
1618 '../base/base.gyp:base',
1621 'MEDIA_IMPLEMENTATION',
1627 'shared_memory_support.gypi',
1630 '<@(shared_memory_support_sources)',
1642 ['target_arch=="ia32" or target_arch=="x64"', {
1645 'target_name': 'media_asm',
1646 'type': 'static_library',
1648 'base/simd/convert_rgb_to_yuv_ssse3.asm',
1649 'base/simd/convert_yuv_to_rgb_sse.asm',
1650 'base/simd/convert_yuva_to_argb_mmx.asm',
1651 'base/simd/empty_register_state_mmx.asm',
1652 'base/simd/linear_scale_yuv_to_rgb_mmx.asm',
1653 'base/simd/linear_scale_yuv_to_rgb_sse.asm',
1654 'base/simd/scale_yuv_to_rgb_mmx.asm',
1655 'base/simd/scale_yuv_to_rgb_sse.asm',
1658 ['component=="shared_library"', {
1660 'yasm_flags': ['-DEXPORT_SYMBOLS'],
1663 ['target_arch=="x64"', {
1664 # Source files optimized for X64 systems.
1666 'base/simd/linear_scale_yuv_to_rgb_mmx_x64.asm',
1667 'base/simd/scale_yuv_to_rgb_sse2_x64.asm',
1670 'yasm_flags': ['-DARCH_X86_64'],
1673 ['OS=="mac" or OS=="ios"', {
1681 # XCode doesn't want to link a pure assembly target and will
1682 # fail to link when it creates an empty file list. So add a
1683 # dummy file keep the linker happy. See http://crbug.com/157073
1684 'base/simd/xcode_hack.c',
1687 ['os_posix==1 and OS!="mac"', {
1690 ['target_arch=="ia32"', {
1695 }, { # target_arch=="x64"
1707 'yasm_output_path': '<(SHARED_INTERMEDIATE_DIR)/media',
1710 # In addition to the same path as source asm, let yasm %include
1711 # search path be relative to src/ per Chromium policy.
1715 '../third_party/x86inc/x86inc.asm',
1716 'base/simd/convert_rgb_to_yuv_ssse3.inc',
1717 'base/simd/convert_yuv_to_rgb_mmx.inc',
1718 'base/simd/convert_yuva_to_argb_mmx.inc',
1719 'base/simd/linear_scale_yuv_to_rgb_mmx.inc',
1720 'base/simd/media_export.asm',
1721 'base/simd/scale_yuv_to_rgb_mmx.inc',
1724 'msvs_2010_disable_uldi_when_referenced': 1,
1726 '../third_party/yasm/yasm_compile.gypi',
1735 'target_name': 'media_unittests_apk',
1742 'test_suite_name': 'media_unittests',
1743 'isolate_file': 'media_unittests.isolate',
1745 'includes': ['../build/apk_test.gypi'],
1749 'target_name': 'media_perftests_apk',
1756 'test_suite_name': 'media_perftests',
1757 'isolate_file': 'media_perftests.isolate',
1759 'includes': ['../build/apk_test.gypi'],
1762 # GN: //media/base/android:media_android_jni_headers
1763 'target_name': 'media_android_jni_headers',
1766 'base/android/java/src/org/chromium/media/AudioManagerAndroid.java',
1767 'base/android/java/src/org/chromium/media/AudioRecordInput.java',
1768 'base/android/java/src/org/chromium/media/MediaCodecBridge.java',
1769 'base/android/java/src/org/chromium/media/MediaDrmBridge.java',
1770 'base/android/java/src/org/chromium/media/MediaPlayerBridge.java',
1771 'base/android/java/src/org/chromium/media/MediaPlayerListener.java',
1772 'base/android/java/src/org/chromium/media/WebAudioMediaCodecBridge.java',
1775 'jni_gen_package': 'media',
1777 'includes': ['../build/jni_generator.gypi'],
1780 # GN: //media/base/android:video_capture_android_jni_headers
1781 'target_name': 'video_capture_android_jni_headers',
1784 'base/android/java/src/org/chromium/media/VideoCapture.java',
1785 'base/android/java/src/org/chromium/media/VideoCaptureFactory.java',
1788 'jni_gen_package': 'media',
1790 'includes': ['../build/jni_generator.gypi'],
1793 # GN: //media/base/android:android
1794 'target_name': 'player_android',
1795 'type': 'static_library',
1797 'base/android/access_unit_queue.cc',
1798 'base/android/access_unit_queue.h',
1799 'base/android/audio_decoder_job.cc',
1800 'base/android/audio_decoder_job.h',
1801 'base/android/browser_cdm_factory_android.cc',
1802 'base/android/browser_cdm_factory_android.h',
1803 'base/android/demuxer_android.h',
1804 'base/android/demuxer_stream_player_params.cc',
1805 'base/android/demuxer_stream_player_params.h',
1806 'base/android/media_client_android.cc',
1807 'base/android/media_client_android.h',
1808 'base/android/media_codec_audio_decoder.cc',
1809 'base/android/media_codec_audio_decoder.h',
1810 'base/android/media_codec_bridge.cc',
1811 'base/android/media_codec_bridge.h',
1812 'base/android/media_codec_decoder.cc',
1813 'base/android/media_codec_decoder.h',
1814 'base/android/media_codec_player.cc',
1815 'base/android/media_codec_player.h',
1816 'base/android/media_codec_video_decoder.cc',
1817 'base/android/media_codec_video_decoder.h',
1818 'base/android/media_common_android.h',
1819 'base/android/media_decoder_job.cc',
1820 'base/android/media_decoder_job.h',
1821 'base/android/media_drm_bridge.cc',
1822 'base/android/media_drm_bridge.h',
1823 'base/android/media_drm_bridge_delegate.cc',
1824 'base/android/media_drm_bridge_delegate.h',
1825 'base/android/media_jni_registrar.cc',
1826 'base/android/media_jni_registrar.h',
1827 'base/android/media_player_android.cc',
1828 'base/android/media_player_android.h',
1829 'base/android/media_player_bridge.cc',
1830 'base/android/media_player_bridge.h',
1831 'base/android/media_player_listener.cc',
1832 'base/android/media_player_listener.h',
1833 'base/android/media_player_manager.h',
1834 'base/android/media_resource_getter.cc',
1835 'base/android/media_resource_getter.h',
1836 'base/android/media_source_player.cc',
1837 'base/android/media_source_player.h',
1838 'base/android/media_url_interceptor.h',
1839 'base/android/video_decoder_job.cc',
1840 'base/android/video_decoder_job.h',
1841 'base/android/webaudio_media_codec_bridge.cc',
1842 'base/android/webaudio_media_codec_bridge.h',
1843 'base/android/webaudio_media_codec_info.h',
1846 '../base/base.gyp:base',
1847 '../third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
1848 '../ui/gl/gl.gyp:gl',
1849 '../url/url.gyp:url_lib',
1850 'media_android_jni_headers',
1853 # Needed by media_drm_bridge.cc.
1854 '<(SHARED_INTERMEDIATE_DIR)',
1857 'MEDIA_IMPLEMENTATION',
1861 # GN: //media/base/android:media_java
1862 'target_name': 'media_java',
1865 '../base/base.gyp:base',
1866 'media_android_captureapitype',
1867 'media_android_imageformat',
1869 'export_dependent_settings': [
1870 '../base/base.gyp:base',
1873 'java_in_dir': 'base/android/java',
1875 'includes': ['../build/java.gypi'],
1878 # GN: //media/base/android:media_android_captureapitype
1879 'target_name': 'media_android_captureapitype',
1882 'source_file': 'capture/video/video_capture_device.h',
1884 'includes': [ '../build/android/java_cpp_enum.gypi' ],
1887 # GN: //media/base/android:media_android_imageformat
1888 'target_name': 'media_android_imageformat',
1891 'source_file': 'capture/video/android/video_capture_device_android.h',
1893 'includes': [ '../build/android/java_cpp_enum.gypi' ],
1897 ['media_use_ffmpeg==1', {
1900 # GN version: //media:ffmpeg_regression_tests
1901 'target_name': 'ffmpeg_regression_tests',
1902 'type': 'executable',
1904 '../base/base.gyp:test_support_base',
1905 '../testing/gmock.gyp:gmock',
1906 '../testing/gtest.gyp:gtest',
1907 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
1908 '../ui/gfx/gfx.gyp:gfx_geometry',
1910 'media_test_support',
1913 'base/run_all_unittests.cc',
1914 'ffmpeg/ffmpeg_regression_tests.cc',
1915 'test/pipeline_integration_test_base.cc',
1918 ['os_posix==1 and OS!="mac"', {
1920 ['use_allocator!="none"', {
1922 '../base/allocator/allocator.gyp:allocator',
1934 # Minimal media component for media/cast on iOS.
1935 # GN version: //media:media_for_cast_ios
1936 'target_name': 'media_for_cast_ios',
1937 'type': '<(component)',
1939 '../base/base.gyp:base',
1940 '../gpu/gpu.gyp:command_buffer_common',
1941 '../ui/gfx/gfx.gyp:gfx_geometry',
1942 'shared_memory_support',
1945 'MEDIA_DISABLE_FFMPEG',
1946 'MEDIA_DISABLE_LIBVPX',
1947 'MEDIA_FOR_CAST_IOS',
1948 'MEDIA_IMPLEMENTATION',
1950 'direct_dependent_settings': {
1952 'MEDIA_DISABLE_FFMPEG',
1953 'MEDIA_DISABLE_LIBVPX',
1963 'base/mac/coremedia_glue.h',
1964 'base/mac/coremedia_glue.mm',
1965 'base/mac/corevideo_glue.h',
1966 'base/mac/video_frame_mac.cc',
1967 'base/mac/video_frame_mac.h',
1968 'base/mac/videotoolbox_glue.h',
1969 'base/mac/videotoolbox_glue.mm',
1970 'base/simd/convert_rgb_to_yuv.h',
1971 'base/simd/convert_rgb_to_yuv_c.cc',
1972 'base/simd/convert_yuv_to_rgb.h',
1973 'base/simd/convert_yuv_to_rgb_c.cc',
1974 'base/simd/filter_yuv.h',
1975 'base/simd/filter_yuv_c.cc',
1976 'base/video_frame.cc',
1977 'base/video_frame.h',
1978 'base/video_frame_metadata.cc',
1979 'base/video_frame_metadata.h',
1980 'base/video_types.cc',
1981 'base/video_types.h',
1982 'base/video_util.cc',
1983 'base/video_util.h',
1984 'base/yuv_convert.cc',
1985 'base/yuv_convert.h',
1989 '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework',
1999 'target_conditions': [
2000 ['OS == "ios" and _toolset != "host"', {
2002 # Pull in specific Mac files for iOS (which have been filtered
2003 # out by file name rules).
2004 ['include', '^base/mac/coremedia_glue\\.h$'],
2005 ['include', '^base/mac/coremedia_glue\\.mm$'],
2006 ['include', '^base/mac/corevideo_glue\\.h$'],
2007 ['include', '^base/mac/videotoolbox_glue\\.h$'],
2008 ['include', '^base/mac/videotoolbox_glue\\.mm$'],
2009 ['include', '^base/mac/video_frame_mac\\.h$'],
2010 ['include', '^base/mac/video_frame_mac\\.cc$'],
2013 ], # target_conditions
2017 ['test_isolation_mode != "noop"', {
2020 'target_name': 'media_unittests_run',
2026 '../build/isolate.gypi',
2029 'media_unittests.isolate',
2033 'target_name': 'audio_unittests_run',
2039 '../build/isolate.gypi',
2042 'audio_unittests.isolate',
2047 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',