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 ['OS=="android" or OS=="ios"', {
16 # Android and iOS don't use ffmpeg or libvpx.
17 'media_use_ffmpeg%': 0,
18 'media_use_libvpx%': 0,
19 }, { # 'OS!="android" and OS!="ios"'
20 'media_use_ffmpeg%': 1,
21 'media_use_libvpx%': 1,
23 # Enable ALSA and Pulse for runtime selection.
24 ['(OS=="linux" or OS=="freebsd" or OS=="solaris") and (embedded!=1 or (chromecast==1 and target_arch!="arm"))', {
25 # ALSA is always needed for Web MIDI even if the cras is enabled.
39 'pkg-config': '../build/linux/pkg-config-wrapper "<(sysroot)" "<(target_arch)" "<(system_libdir)"',
41 'pkg-config': 'pkg-config'
51 'target_name': 'media',
52 'type': '<(component)',
54 '../base/base.gyp:base',
55 '../base/base.gyp:base_i18n',
56 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
57 '../crypto/crypto.gyp:crypto',
58 '../gpu/gpu.gyp:command_buffer_common',
59 '../skia/skia.gyp:skia',
60 '../third_party/libyuv/libyuv.gyp:libyuv',
61 '../third_party/opus/opus.gyp:opus',
62 '../ui/events/events.gyp:events_base',
63 '../ui/gfx/gfx.gyp:gfx',
64 '../ui/gfx/gfx.gyp:gfx_geometry',
65 '../url/url.gyp:url_lib',
66 'shared_memory_support',
69 'MEDIA_IMPLEMENTATION',
75 'audio/agc_audio_stream.h',
76 'audio/alsa/alsa_input.cc',
77 'audio/alsa/alsa_input.h',
78 'audio/alsa/alsa_output.cc',
79 'audio/alsa/alsa_output.h',
80 'audio/alsa/alsa_util.cc',
81 'audio/alsa/alsa_util.h',
82 'audio/alsa/alsa_wrapper.cc',
83 'audio/alsa/alsa_wrapper.h',
84 'audio/alsa/audio_manager_alsa.cc',
85 'audio/alsa/audio_manager_alsa.h',
86 'audio/android/audio_manager_android.cc',
87 'audio/android/audio_manager_android.h',
88 'audio/android/audio_record_input.cc',
89 'audio/android/audio_record_input.h',
90 'audio/android/opensles_input.cc',
91 'audio/android/opensles_input.h',
92 'audio/android/opensles_output.cc',
93 'audio/android/opensles_output.h',
94 'audio/android/opensles_wrapper.cc',
95 'audio/audio_device_name.cc',
96 'audio/audio_device_name.h',
97 'audio/audio_device_thread.cc',
98 'audio/audio_device_thread.h',
99 'audio/audio_input_controller.cc',
100 'audio/audio_input_controller.h',
101 'audio/audio_input_device.cc',
102 'audio/audio_input_device.h',
103 'audio/audio_input_ipc.cc',
104 'audio/audio_input_ipc.h',
106 'audio/audio_manager.cc',
107 'audio/audio_manager.h',
108 'audio/audio_manager_base.cc',
109 'audio/audio_manager_base.h',
110 'audio/audio_output_controller.cc',
111 'audio/audio_output_controller.h',
112 'audio/audio_output_device.cc',
113 'audio/audio_output_device.h',
114 'audio/audio_output_dispatcher.cc',
115 'audio/audio_output_dispatcher.h',
116 'audio/audio_output_dispatcher_impl.cc',
117 'audio/audio_output_dispatcher_impl.h',
118 'audio/audio_output_ipc.cc',
119 'audio/audio_output_ipc.h',
120 'audio/audio_output_proxy.cc',
121 'audio/audio_output_proxy.h',
122 'audio/audio_output_resampler.cc',
123 'audio/audio_output_resampler.h',
124 'audio/audio_output_stream_sink.cc',
125 'audio/audio_output_stream_sink.h',
126 'audio/audio_power_monitor.cc',
127 'audio/audio_power_monitor.h',
128 'audio/audio_source_diverter.h',
129 'audio/clockless_audio_sink.cc',
130 'audio/clockless_audio_sink.h',
131 'audio/cras/audio_manager_cras.cc',
132 'audio/cras/audio_manager_cras.h',
133 'audio/cras/cras_input.cc',
134 'audio/cras/cras_input.h',
135 'audio/cras/cras_unified.cc',
136 'audio/cras/cras_unified.h',
137 'audio/fake_audio_consumer.cc',
138 'audio/fake_audio_consumer.h',
139 'audio/fake_audio_input_stream.cc',
140 'audio/fake_audio_input_stream.h',
141 'audio/fake_audio_log_factory.h',
142 'audio/fake_audio_log_factory.cc',
143 'audio/fake_audio_manager.cc',
144 'audio/fake_audio_manager.h',
145 'audio/fake_audio_output_stream.cc',
146 'audio/fake_audio_output_stream.h',
147 'audio/linux/audio_manager_linux.cc',
148 'audio/mac/audio_auhal_mac.cc',
149 'audio/mac/audio_auhal_mac.h',
150 'audio/mac/audio_device_listener_mac.cc',
151 'audio/mac/audio_device_listener_mac.h',
152 'audio/mac/audio_input_mac.cc',
153 'audio/mac/audio_input_mac.h',
154 'audio/mac/audio_low_latency_input_mac.cc',
155 'audio/mac/audio_low_latency_input_mac.h',
156 'audio/mac/audio_manager_mac.cc',
157 'audio/mac/audio_manager_mac.h',
158 'audio/null_audio_sink.cc',
159 'audio/null_audio_sink.h',
160 'audio/openbsd/audio_manager_openbsd.cc',
161 'audio/openbsd/audio_manager_openbsd.h',
162 'audio/pulse/audio_manager_pulse.cc',
163 'audio/pulse/audio_manager_pulse.h',
164 'audio/pulse/pulse_input.cc',
165 'audio/pulse/pulse_input.h',
166 'audio/pulse/pulse_output.cc',
167 'audio/pulse/pulse_output.h',
168 'audio/pulse/pulse_util.cc',
169 'audio/pulse/pulse_util.h',
170 'audio/sample_rates.cc',
171 'audio/sample_rates.h',
172 'audio/scoped_task_runner_observer.cc',
173 'audio/scoped_task_runner_observer.h',
174 'audio/simple_sources.cc',
175 'audio/simple_sources.h',
176 'audio/sounds/audio_stream_handler.cc',
177 'audio/sounds/audio_stream_handler.h',
178 'audio/sounds/sounds_manager.cc',
179 'audio/sounds/sounds_manager.h',
180 'audio/sounds/wav_audio_handler.cc',
181 'audio/sounds/wav_audio_handler.h',
182 'audio/virtual_audio_input_stream.cc',
183 'audio/virtual_audio_input_stream.h',
184 'audio/virtual_audio_output_stream.cc',
185 'audio/virtual_audio_output_stream.h',
186 'audio/win/audio_device_listener_win.cc',
187 'audio/win/audio_device_listener_win.h',
188 'audio/win/audio_low_latency_input_win.cc',
189 'audio/win/audio_low_latency_input_win.h',
190 'audio/win/audio_low_latency_output_win.cc',
191 'audio/win/audio_low_latency_output_win.h',
192 'audio/win/audio_manager_win.cc',
193 'audio/win/audio_manager_win.h',
194 'audio/win/avrt_wrapper_win.cc',
195 'audio/win/avrt_wrapper_win.h',
196 'audio/win/core_audio_util_win.cc',
197 'audio/win/core_audio_util_win.h',
198 'audio/win/device_enumeration_win.cc',
199 'audio/win/device_enumeration_win.h',
200 'audio/win/wavein_input_win.cc',
201 'audio/win/wavein_input_win.h',
202 'audio/win/waveout_output_win.cc',
203 'audio/win/waveout_output_win.h',
204 'base/audio_block_fifo.cc',
205 'base/audio_block_fifo.h',
206 'base/audio_buffer.cc',
207 'base/audio_buffer.h',
208 'base/audio_buffer_queue.cc',
209 'base/audio_buffer_queue.h',
210 'base/audio_buffer_converter.cc',
211 'base/audio_buffer_converter.h',
212 'base/audio_capturer_source.h',
213 'base/audio_converter.cc',
214 'base/audio_converter.h',
215 'base/audio_decoder.cc',
216 'base/audio_decoder.h',
217 'base/audio_decoder_config.cc',
218 'base/audio_decoder_config.h',
219 'base/audio_discard_helper.cc',
220 'base/audio_discard_helper.h',
221 'base/audio_fifo.cc',
223 'base/audio_hardware_config.cc',
224 'base/audio_hardware_config.h',
225 'base/audio_hash.cc',
227 'base/audio_pull_fifo.cc',
228 'base/audio_pull_fifo.h',
229 'base/audio_renderer.cc',
230 'base/audio_renderer.h',
231 'base/audio_renderer_mixer.cc',
232 'base/audio_renderer_mixer.h',
233 'base/audio_renderer_mixer_input.cc',
234 'base/audio_renderer_mixer_input.h',
235 'base/audio_renderer_sink.h',
236 'base/audio_splicer.cc',
237 'base/audio_splicer.h',
238 'base/audio_timestamp_helper.cc',
239 'base/audio_timestamp_helper.h',
240 'base/audio_video_metadata_extractor.cc',
241 'base/audio_video_metadata_extractor.h',
242 'base/bind_to_current_loop.h',
243 'base/bit_reader.cc',
245 'base/bit_reader_core.cc',
246 'base/bit_reader_core.h',
247 'base/bitstream_buffer.h',
248 'base/buffering_state.h',
250 'base/byte_queue.cc',
252 'base/cdm_callback_promise.cc',
253 'base/cdm_callback_promise.h',
254 'base/cdm_factory.cc',
255 'base/cdm_factory.h',
256 'base/cdm_promise.cc',
257 'base/cdm_promise.h',
258 'base/channel_mixer.cc',
259 'base/channel_mixer.h',
260 'base/channel_mixing_matrix.cc',
261 'base/channel_mixing_matrix.h',
262 'base/container_names.cc',
263 'base/container_names.h',
264 'base/data_buffer.cc',
265 'base/data_buffer.h',
266 'base/data_source.cc',
267 'base/data_source.h',
268 'base/decoder_buffer.cc',
269 'base/decoder_buffer.h',
270 'base/decoder_buffer_queue.cc',
271 'base/decoder_buffer_queue.h',
272 'base/decrypt_config.cc',
273 'base/decrypt_config.h',
278 'base/demuxer_stream.cc',
279 'base/demuxer_stream.h',
280 'base/demuxer_stream_provider.cc',
281 'base/demuxer_stream_provider.h',
284 'base/eme_constants.h',
285 'base/key_system_info.cc',
286 'base/key_system_info.h',
287 'base/key_systems_support_uma.cc',
288 'base/key_systems_support_uma.h',
289 'base/key_systems.cc',
290 'base/key_systems.h',
291 'base/keyboard_event_counter.cc',
292 'base/keyboard_event_counter.h',
293 'base/mac/avfoundation_glue.h',
294 'base/mac/avfoundation_glue.mm',
295 'base/mac/coremedia_glue.h',
296 'base/mac/coremedia_glue.mm',
297 'base/mac/corevideo_glue.h',
298 'base/mac/videotoolbox_glue.h',
299 'base/mac/videotoolbox_glue.mm',
300 'base/mac/video_frame_mac.h',
301 'base/mac/video_frame_mac.cc',
304 'base/media_client.cc',
305 'base/media_client.h',
306 'base/media_file_checker.cc',
307 'base/media_file_checker.h',
308 'base/media_keys.cc',
312 'base/media_log_event.h',
313 'base/media_posix.cc',
314 'base/media_switches.cc',
315 'base/media_switches.h',
317 'base/multi_channel_resampler.cc',
318 'base/multi_channel_resampler.h',
321 'base/pipeline_status.h',
322 'base/player_tracker.cc',
323 'base/player_tracker.h',
328 'base/sample_format.cc',
329 'base/sample_format.h',
330 'base/scoped_histogram_timer.h',
331 'base/seekable_buffer.cc',
332 'base/seekable_buffer.h',
333 'base/serial_runner.cc',
334 'base/serial_runner.h',
335 'base/simd/convert_rgb_to_yuv.h',
336 'base/simd/convert_rgb_to_yuv_c.cc',
337 'base/simd/convert_yuv_to_rgb.h',
338 'base/simd/convert_yuv_to_rgb_c.cc',
339 'base/simd/filter_yuv.h',
340 'base/simd/filter_yuv_c.cc',
341 'base/simd/yuv_to_rgb_table.cc',
342 'base/simd/yuv_to_rgb_table.h',
343 'base/sinc_resampler.cc',
344 'base/sinc_resampler.h',
345 'base/stream_parser.cc',
346 'base/stream_parser.h',
347 'base/stream_parser_buffer.cc',
348 'base/stream_parser_buffer.h',
351 'base/text_ranges.cc',
352 'base/text_ranges.h',
353 'base/text_renderer.cc',
354 'base/text_renderer.h',
356 'base/text_track_config.cc',
357 'base/text_track_config.h',
358 'base/time_delta_interpolator.cc',
359 'base/time_delta_interpolator.h',
360 'base/time_source.h',
361 'base/user_input_monitor.cc',
362 'base/user_input_monitor.h',
363 'base/user_input_monitor_linux.cc',
364 'base/user_input_monitor_mac.cc',
365 'base/user_input_monitor_win.cc',
366 'base/video_decoder.cc',
367 'base/video_decoder.h',
368 'base/video_decoder_config.cc',
369 'base/video_decoder_config.h',
370 'base/video_frame.cc',
371 'base/video_frame.h',
372 'base/video_frame_pool.cc',
373 'base/video_frame_pool.h',
374 'base/video_renderer.cc',
375 'base/video_renderer.h',
376 'base/video_rotation.h',
377 'base/video_util.cc',
379 'base/yuv_convert.cc',
380 'base/yuv_convert.h',
381 'base/wall_clock_time_source.cc',
382 'base/wall_clock_time_source.h',
383 'cdm/aes_decryptor.cc',
384 'cdm/aes_decryptor.h',
385 'cdm/json_web_key.cc',
386 'cdm/json_web_key.h',
387 'cdm/key_system_names.cc',
388 'cdm/key_system_names.h',
389 'cdm/player_tracker_impl.cc',
390 'cdm/player_tracker_impl.h',
391 'ffmpeg/ffmpeg_common.cc',
392 'ffmpeg/ffmpeg_common.h',
393 'ffmpeg/ffmpeg_deleters.h',
394 'filters/audio_clock.cc',
395 'filters/audio_clock.h',
396 'filters/audio_file_reader.cc',
397 'filters/audio_file_reader.h',
398 'filters/audio_renderer_algorithm.cc',
399 'filters/audio_renderer_algorithm.h',
400 'filters/audio_renderer_impl.cc',
401 'filters/audio_renderer_impl.h',
402 'filters/blocking_url_protocol.cc',
403 'filters/blocking_url_protocol.h',
404 'filters/chunk_demuxer.cc',
405 'filters/chunk_demuxer.h',
406 'filters/decoder_selector.cc',
407 'filters/decoder_selector.h',
408 'filters/decoder_stream.cc',
409 'filters/decoder_stream.h',
410 'filters/decoder_stream_traits.cc',
411 'filters/decoder_stream_traits.h',
412 'filters/decrypting_audio_decoder.cc',
413 'filters/decrypting_audio_decoder.h',
414 'filters/decrypting_demuxer_stream.cc',
415 'filters/decrypting_demuxer_stream.h',
416 'filters/decrypting_video_decoder.cc',
417 'filters/decrypting_video_decoder.h',
418 'filters/ffmpeg_audio_decoder.cc',
419 'filters/ffmpeg_audio_decoder.h',
420 'filters/ffmpeg_bitstream_converter.h',
421 'filters/ffmpeg_demuxer.cc',
422 'filters/ffmpeg_demuxer.h',
423 'filters/ffmpeg_glue.cc',
424 'filters/ffmpeg_glue.h',
425 'filters/ffmpeg_video_decoder.cc',
426 'filters/ffmpeg_video_decoder.h',
427 'filters/file_data_source.cc',
428 'filters/file_data_source.h',
429 'filters/frame_processor.cc',
430 'filters/frame_processor.h',
431 'filters/gpu_video_accelerator_factories.cc',
432 'filters/gpu_video_accelerator_factories.h',
433 'filters/gpu_video_decoder.cc',
434 'filters/gpu_video_decoder.h',
435 'filters/h264_bit_reader.cc',
436 'filters/h264_bit_reader.h',
437 'filters/h264_parser.cc',
438 'filters/h264_parser.h',
439 'filters/in_memory_url_protocol.cc',
440 'filters/in_memory_url_protocol.h',
441 'filters/opus_audio_decoder.cc',
442 'filters/opus_audio_decoder.h',
443 'filters/renderer_impl.cc',
444 'filters/renderer_impl.h',
445 'filters/skcanvas_video_renderer.cc',
446 'filters/skcanvas_video_renderer.h',
447 'filters/source_buffer_platform.cc',
448 'filters/source_buffer_platform.h',
449 'filters/source_buffer_range.cc',
450 'filters/source_buffer_range.h',
451 'filters/source_buffer_stream.cc',
452 'filters/source_buffer_stream.h',
453 'filters/stream_parser_factory.cc',
454 'filters/stream_parser_factory.h',
455 'filters/video_frame_scheduler.h',
456 'filters/video_frame_scheduler_impl.cc',
457 'filters/video_frame_scheduler_impl.h',
458 'filters/video_frame_scheduler_proxy.cc',
459 'filters/video_frame_scheduler_proxy.h',
460 'filters/video_renderer_impl.cc',
461 'filters/video_renderer_impl.h',
462 'filters/vpx_video_decoder.cc',
463 'filters/vpx_video_decoder.h',
464 'filters/webvtt_util.h',
465 'filters/wsola_internals.cc',
466 'filters/wsola_internals.h',
467 'midi/midi_manager.cc',
468 'midi/midi_manager.h',
469 'midi/midi_manager_alsa.cc',
470 'midi/midi_manager_alsa.h',
471 'midi/midi_manager_android.cc',
472 'midi/midi_manager_mac.cc',
473 'midi/midi_manager_mac.h',
474 'midi/midi_manager_usb.cc',
475 'midi/midi_manager_usb.h',
476 'midi/midi_manager_win.cc',
477 'midi/midi_manager_win.h',
478 'midi/midi_message_queue.cc',
479 'midi/midi_message_queue.h',
480 'midi/midi_message_util.cc',
481 'midi/midi_message_util.h',
482 'midi/midi_port_info.cc',
483 'midi/midi_port_info.h',
484 'midi/usb_midi_descriptor_parser.cc',
485 'midi/usb_midi_descriptor_parser.h',
486 'midi/usb_midi_device.h',
487 'midi/usb_midi_device_android.cc',
488 'midi/usb_midi_device_android.h',
489 'midi/usb_midi_device_factory_android.cc',
490 'midi/usb_midi_device_factory_android.h',
491 'midi/usb_midi_input_stream.cc',
492 'midi/usb_midi_input_stream.h',
493 'midi/usb_midi_jack.h',
494 'midi/usb_midi_output_stream.cc',
495 'midi/usb_midi_output_stream.h',
496 'ozone/media_ozone_platform.cc',
497 'ozone/media_ozone_platform.h',
498 'video/capture/android/video_capture_device_android.cc',
499 'video/capture/android/video_capture_device_android.h',
500 'video/capture/android/video_capture_device_factory_android.cc',
501 'video/capture/android/video_capture_device_factory_android.h',
502 'video/capture/fake_video_capture_device.cc',
503 'video/capture/fake_video_capture_device.h',
504 'video/capture/fake_video_capture_device_factory.h',
505 'video/capture/fake_video_capture_device_factory.cc',
506 'video/capture/file_video_capture_device.cc',
507 'video/capture/file_video_capture_device.h',
508 'video/capture/file_video_capture_device_factory.h',
509 'video/capture/file_video_capture_device_factory.cc',
510 'video/capture/linux/video_capture_device_factory_linux.cc',
511 'video/capture/linux/video_capture_device_factory_linux.h',
512 'video/capture/linux/video_capture_device_linux.cc',
513 'video/capture/linux/video_capture_device_linux.h',
514 'video/capture/linux/video_capture_device_chromeos.cc',
515 'video/capture/linux/video_capture_device_chromeos.h',
516 'video/capture/mac/platform_video_capturing_mac.h',
517 'video/capture/mac/video_capture_device_avfoundation_mac.h',
518 'video/capture/mac/video_capture_device_avfoundation_mac.mm',
519 'video/capture/mac/video_capture_device_decklink_mac.h',
520 'video/capture/mac/video_capture_device_decklink_mac.mm',
521 'video/capture/mac/video_capture_device_factory_mac.h',
522 'video/capture/mac/video_capture_device_factory_mac.mm',
523 'video/capture/mac/video_capture_device_mac.h',
524 'video/capture/mac/video_capture_device_mac.mm',
525 'video/capture/mac/video_capture_device_qtkit_mac.h',
526 'video/capture/mac/video_capture_device_qtkit_mac.mm',
527 'video/capture/video_capture_device.cc',
528 'video/capture/video_capture_device.h',
529 'video/capture/video_capture_device_factory.cc',
530 'video/capture/video_capture_device_factory.h',
531 'video/capture/video_capture_device_info.cc',
532 'video/capture/video_capture_device_info.h',
533 'video/capture/video_capture_types.cc',
534 'video/capture/video_capture_types.h',
535 'video/capture/win/capability_list_win.cc',
536 'video/capture/win/capability_list_win.h',
537 'video/capture/win/filter_base_win.cc',
538 'video/capture/win/filter_base_win.h',
539 'video/capture/win/pin_base_win.cc',
540 'video/capture/win/pin_base_win.h',
541 'video/capture/win/sink_filter_observer_win.h',
542 'video/capture/win/sink_filter_win.cc',
543 'video/capture/win/sink_filter_win.h',
544 'video/capture/win/sink_input_pin_win.cc',
545 'video/capture/win/sink_input_pin_win.h',
546 'video/capture/win/video_capture_device_factory_win.cc',
547 'video/capture/win/video_capture_device_factory_win.h',
548 'video/capture/win/video_capture_device_mf_win.cc',
549 'video/capture/win/video_capture_device_mf_win.h',
550 'video/capture/win/video_capture_device_win.cc',
551 'video/capture/win/video_capture_device_win.h',
554 'video/video_decode_accelerator.cc',
555 'video/video_decode_accelerator.h',
556 'video/video_encode_accelerator.cc',
557 'video/video_encode_accelerator.h',
558 'formats/common/offset_byte_queue.cc',
559 'formats/common/offset_byte_queue.h',
560 'formats/webm/webm_audio_client.cc',
561 'formats/webm/webm_audio_client.h',
562 'formats/webm/webm_cluster_parser.cc',
563 'formats/webm/webm_cluster_parser.h',
564 'formats/webm/webm_constants.cc',
565 'formats/webm/webm_constants.h',
566 'formats/webm/webm_content_encodings.cc',
567 'formats/webm/webm_content_encodings.h',
568 'formats/webm/webm_content_encodings_client.cc',
569 'formats/webm/webm_content_encodings_client.h',
570 'formats/webm/webm_crypto_helpers.cc',
571 'formats/webm/webm_crypto_helpers.h',
572 'formats/webm/webm_info_parser.cc',
573 'formats/webm/webm_info_parser.h',
574 'formats/webm/webm_parser.cc',
575 'formats/webm/webm_parser.h',
576 'formats/webm/webm_stream_parser.cc',
577 'formats/webm/webm_stream_parser.h',
578 'formats/webm/webm_tracks_parser.cc',
579 'formats/webm/webm_tracks_parser.h',
580 'formats/webm/webm_video_client.cc',
581 'formats/webm/webm_video_client.h',
582 'formats/webm/webm_webvtt_parser.cc',
583 'formats/webm/webm_webvtt_parser.h'
585 'direct_dependent_settings': {
596 ['media_use_ffmpeg==1', {
598 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
600 }, { # media_use_ffmpeg==0
601 # Exclude the sources that depend on ffmpeg.
603 'base/audio_video_metadata_extractor.cc',
604 'base/audio_video_metadata_extractor.h',
605 'base/container_names.cc',
606 'base/container_names.h',
607 'base/media_file_checker.cc',
608 'base/media_file_checker.h',
609 'base/media_posix.cc',
610 'ffmpeg/ffmpeg_common.cc',
611 'ffmpeg/ffmpeg_common.h',
612 'filters/audio_file_reader.cc',
613 'filters/audio_file_reader.h',
614 'filters/blocking_url_protocol.cc',
615 'filters/blocking_url_protocol.h',
616 'filters/ffmpeg_aac_bitstream_converter.cc',
617 'filters/ffmpeg_aac_bitstream_converter.h',
618 'filters/ffmpeg_audio_decoder.cc',
619 'filters/ffmpeg_audio_decoder.h',
620 'filters/ffmpeg_bitstream_converter.h',
621 'filters/ffmpeg_demuxer.cc',
622 'filters/ffmpeg_demuxer.h',
623 'filters/ffmpeg_glue.cc',
624 'filters/ffmpeg_glue.h',
625 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc',
626 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.h',
627 'filters/ffmpeg_video_decoder.cc',
628 'filters/ffmpeg_video_decoder.h',
629 'filters/in_memory_url_protocol.cc',
630 'filters/in_memory_url_protocol.h',
633 ['media_use_libvpx==1', {
635 '<(DEPTH)/third_party/libvpx/libvpx.gyp:libvpx',
637 }, { # media_use_libvpx==0
638 'direct_dependent_settings': {
640 'MEDIA_DISABLE_LIBVPX',
643 # Exclude the sources that depend on libvpx.
645 'filters/vpx_video_decoder.cc',
646 'filters/vpx_video_decoder.h',
649 ['enable_browser_cdms==1', {
651 'base/browser_cdm.cc',
652 'base/browser_cdm.h',
653 'base/browser_cdm_factory.h',
658 'media_android_jni_headers',
660 'video_capture_android_jni_headers',
665 'base/media_stub.cc',
668 'filters/opus_audio_decoder.cc',
669 'filters/opus_audio_decoder.h',
672 ['android_webview_build==0', {
679 'DISABLE_USER_INPUT_MONITOR',
682 # For VaapiVideoEncodeAccelerator.
683 ['target_arch != "arm" and chromeos == 1 and use_x11 == 1', {
685 'filters/h264_bitstream_buffer.cc',
686 'filters/h264_bitstream_buffer.h',
700 ['exclude', '(^|/)alsa/'],
701 ['exclude', '_alsa\\.(h|cc)$'],
706 'audio/openbsd/audio_manager_openbsd.cc',
707 'audio/openbsd/audio_manager_openbsd.h',
714 '../build/linux/system.gyp:x11',
715 '../build/linux/system.gyp:xdamage',
716 '../build/linux/system.gyp:xext',
717 '../build/linux/system.gyp:xfixes',
718 '../build/linux/system.gyp:xtst',
720 }, { # else: use_x11==0
722 'base/user_input_monitor_linux.cc',
725 'DISABLE_USER_INPUT_MONITOR',
730 '<!@(<(pkg-config) --cflags libcras)',
734 '<!@(<(pkg-config) --libs libcras)',
740 }, { # else: use_cras==0
742 'audio/cras/audio_manager_cras.cc',
743 'audio/cras/audio_manager_cras.h',
744 'audio/cras/cras_input.cc',
745 'audio/cras/cras_input.h',
746 'audio/cras/cras_unified.cc',
747 'audio/cras/cras_unified.h',
754 'platform_list_txt_file': '<(SHARED_INTERMEDIATE_DIR)/ui/ozone/platform_list.txt',
755 'constructor_list_cc_file': '<(INTERMEDIATE_DIR)/media/ozone/constructor_list.cc',
758 # Used for the generated listing header (ui/ozone/platform_list.h)
759 '<(SHARED_INTERMEDIATE_DIR)',
762 '<(constructor_list_cc_file)',
765 '../ui/ozone/ozone.gyp:ozone',
769 # Ozone platform objects are auto-generated using similar
770 # patterns for naming and classes constructors. Here we build the
771 # object MediaOzonePlatform.
772 'action_name': 'generate_constructor_list',
774 'generator_path': '../ui/ozone/generate_constructor_list.py',
778 '<(platform_list_txt_file)',
781 '<(constructor_list_cc_file)',
786 '--platform_list=<(platform_list_txt_file)',
787 '--output_cc=<(constructor_list_cc_file)',
789 '--typename=MediaOzonePlatform',
790 '--include="media/ozone/media_ozone_platform.h"'
796 'ozone/media_ozone_platform.cc',
797 'ozone/media_ozone_platform.h',
802 'audio/cras/audio_manager_cras.cc',
803 'audio/cras/audio_manager_cras.h',
804 'audio/cras/cras_input.cc',
805 'audio/cras/cras_input.h',
806 'audio/cras/cras_unified.cc',
807 'audio/cras/cras_unified.h',
810 ['use_pulseaudio==1', {
812 '<!@(<(pkg-config) --cflags libpulse)',
818 ['linux_link_pulseaudio==0', {
823 'generate_stubs_script': '../tools/generate_stubs/generate_stubs.py',
824 'extra_header': 'audio/pulse/pulse_stub_header.fragment',
825 'sig_files': ['audio/pulse/pulse.sigs'],
826 'outfile_type': 'posix_stubs',
827 'stubs_filename_root': 'pulse_stubs',
828 'project_path': 'media/audio/pulse',
829 'intermediate_dir': '<(INTERMEDIATE_DIR)',
830 'output_root': '<(SHARED_INTERMEDIATE_DIR)/pulse',
837 'action_name': 'generate_stubs',
839 '<(generate_stubs_script)',
844 '<(intermediate_dir)/<(stubs_filename_root).cc',
845 '<(output_root)/<(project_path)/<(stubs_filename_root).h',
848 '<(generate_stubs_script)',
849 '-i', '<(intermediate_dir)',
850 '-o', '<(output_root)/<(project_path)',
851 '-t', '<(outfile_type)',
852 '-e', '<(extra_header)',
853 '-s', '<(stubs_filename_root)',
854 '-p', '<(project_path)',
857 'process_outputs_as_sources': 1,
858 'message': 'Generating Pulse stubs for dynamic loading',
862 # Linux/Solaris need libdl for dlopen() and friends.
863 ['OS=="linux" or OS=="solaris"', {
871 }, { # else: linux_link_pulseaudio==0
874 '<!@(<(pkg-config) --libs-only-L --libs-only-other libpulse)',
877 '<!@(<(pkg-config) --libs-only-l libpulse)',
882 }, { # else: use_pulseaudio==0
884 'audio/pulse/audio_manager_pulse.cc',
885 'audio/pulse/audio_manager_pulse.h',
886 'audio/pulse/pulse_input.cc',
887 'audio/pulse/pulse_input.h',
888 'audio/pulse/pulse_output.cc',
889 'audio/pulse/pulse_output.h',
890 'audio/pulse/pulse_util.cc',
891 'audio/pulse/pulse_util.h',
896 '../third_party/decklink/decklink.gyp:decklink',
900 '$(SDKROOT)/System/Library/Frameworks/AudioToolbox.framework',
901 '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework',
902 '$(SDKROOT)/System/Library/Frameworks/CoreAudio.framework',
903 '$(SDKROOT)/System/Library/Frameworks/CoreMIDI.framework',
904 '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework',
905 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
906 '$(SDKROOT)/System/Library/Frameworks/QTKit.framework',
919 # Specify delayload for media.dll.
929 # Specify delayload for components that link with media.lib.
930 'all_dependent_settings': {
941 # TODO(wolenetz): Fix size_t to int truncations in win64. See
942 # http://crbug.com/171009
944 ['target_arch=="x64"', {
945 'msvs_disabled_warnings': [ 4267, ],
949 ['proprietary_codecs==1', {
951 'filters/ffmpeg_aac_bitstream_converter.cc',
952 'filters/ffmpeg_aac_bitstream_converter.h',
953 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc',
954 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.h',
955 'filters/h264_to_annex_b_bitstream_converter.cc',
956 'filters/h264_to_annex_b_bitstream_converter.h',
957 'formats/mp2t/es_adapter_video.cc',
958 'formats/mp2t/es_adapter_video.h',
959 'formats/mp2t/es_parser.cc',
960 'formats/mp2t/es_parser.h',
961 'formats/mp2t/es_parser_adts.cc',
962 'formats/mp2t/es_parser_adts.h',
963 'formats/mp2t/es_parser_h264.cc',
964 'formats/mp2t/es_parser_h264.h',
965 'formats/mp2t/es_parser_mpeg1audio.cc',
966 'formats/mp2t/es_parser_mpeg1audio.h',
967 'formats/mp2t/mp2t_common.h',
968 'formats/mp2t/mp2t_stream_parser.cc',
969 'formats/mp2t/mp2t_stream_parser.h',
970 'formats/mp2t/timestamp_unroller.cc',
971 'formats/mp2t/timestamp_unroller.h',
972 'formats/mp2t/ts_packet.cc',
973 'formats/mp2t/ts_packet.h',
974 'formats/mp2t/ts_section.h',
975 'formats/mp2t/ts_section_pat.cc',
976 'formats/mp2t/ts_section_pat.h',
977 'formats/mp2t/ts_section_pes.cc',
978 'formats/mp2t/ts_section_pes.h',
979 'formats/mp2t/ts_section_pmt.cc',
980 'formats/mp2t/ts_section_pmt.h',
981 'formats/mp2t/ts_section_psi.cc',
982 'formats/mp2t/ts_section_psi.h',
983 'formats/mp4/aac.cc',
985 'formats/mp4/avc.cc',
987 'formats/mp4/box_definitions.cc',
988 'formats/mp4/box_definitions.h',
989 'formats/mp4/box_reader.cc',
990 'formats/mp4/box_reader.h',
991 'formats/mp4/cenc.cc',
992 'formats/mp4/cenc.h',
993 'formats/mp4/es_descriptor.cc',
994 'formats/mp4/es_descriptor.h',
995 'formats/mp4/mp4_stream_parser.cc',
996 'formats/mp4/mp4_stream_parser.h',
997 'formats/mp4/sample_to_group_iterator.cc',
998 'formats/mp4/sample_to_group_iterator.h',
999 'formats/mp4/track_run_iterator.cc',
1000 'formats/mp4/track_run_iterator.h',
1001 'formats/mpeg/adts_constants.cc',
1002 'formats/mpeg/adts_constants.h',
1003 'formats/mpeg/adts_stream_parser.cc',
1004 'formats/mpeg/adts_stream_parser.h',
1005 'formats/mpeg/mpeg_audio_stream_parser_base.cc',
1006 'formats/mpeg/mpeg_audio_stream_parser_base.h',
1007 'formats/mpeg/mpeg1_audio_stream_parser.cc',
1008 'formats/mpeg/mpeg1_audio_stream_parser.h',
1011 ['target_arch=="ia32" or target_arch=="x64"', {
1017 'base/simd/convert_yuv_to_rgb_x86.cc',
1020 ['OS!="linux" and OS!="win"', {
1022 'base/keyboard_event_counter.cc',
1023 'base/keyboard_event_counter.h',
1027 'target_conditions': [
1028 ['OS == "ios" and _toolset != "host"', {
1030 # Pull in specific Mac files for iOS (which have been filtered out
1031 # by file name rules).
1032 ['include', '^base/mac/coremedia_glue\\.h$'],
1033 ['include', '^base/mac/coremedia_glue\\.mm$'],
1034 ['include', '^base/mac/corevideo_glue\\.h$'],
1035 ['include', '^base/mac/videotoolbox_glue\\.h$'],
1036 ['include', '^base/mac/videotoolbox_glue\\.mm$'],
1037 ['include', '^base/mac/video_frame_mac\\.h$'],
1038 ['include', '^base/mac/video_frame_mac\\.cc$'],
1041 ], # target_conditions
1044 # GN version: //media/mojo/interfaces
1045 'target_name': 'media_mojo_bindings',
1046 'type': 'static_library',
1048 'mojo/interfaces/media_types.mojom',
1049 'mojo/interfaces/media_renderer.mojom',
1050 'mojo/interfaces/demuxer_stream.mojom',
1053 '../mojo/public/tools/bindings/mojom_bindings_generator.gypi'
1055 'export_dependent_settings': [
1056 '../mojo/public/mojo_public.gyp:mojo_cpp_bindings',
1057 '../mojo/services/public/mojo_services_public.gyp:mojo_geometry_bindings',
1060 '../mojo/public/mojo_public.gyp:mojo_cpp_bindings',
1061 '../mojo/services/public/mojo_services_public.gyp:mojo_geometry_bindings',
1065 'target_name': 'media_mojo_lib',
1066 'type': 'static_library',
1068 '../mojo/mojo_variables.gypi',
1072 'media_mojo_bindings',
1073 '../base/base.gyp:base',
1074 '../mojo/mojo_geometry_converters.gyp:mojo_geometry_lib',
1075 '../mojo/mojo_base.gyp:mojo_environment_chromium',
1076 '../mojo/public/mojo_public.gyp:mojo_application_base',
1077 '../mojo/public/mojo_public.gyp:mojo_application_bindings',
1078 '../skia/skia.gyp:skia',
1079 '../ui/gfx/gfx.gyp:gfx_geometry',
1080 '<(mojo_system_for_component)',
1082 'export_dependent_settings': [
1083 'media_mojo_bindings',
1086 'mojo/services/media_type_converters.cc',
1087 'mojo/services/media_type_converters.h',
1088 'mojo/services/mojo_demuxer_stream_impl.cc',
1089 'mojo/services/mojo_demuxer_stream_impl.h',
1090 'mojo/services/mojo_renderer_impl.cc',
1091 'mojo/services/mojo_renderer_impl.h',
1095 'target_name': 'mojo_media_renderer_app',
1096 'type': 'loadable_module',
1098 '../mojo/mojo_variables.gypi',
1101 '../base/base.gyp:base',
1102 '../mojo/mojo_base.gyp:mojo_application_chromium',
1103 '<(mojo_system_for_loadable_module)',
1105 'shared_memory_support',
1108 'mojo/services/demuxer_stream_provider_shim.cc',
1109 'mojo/services/demuxer_stream_provider_shim.h',
1110 'mojo/services/mojo_demuxer_stream_adapter.cc',
1111 'mojo/services/mojo_demuxer_stream_adapter.h',
1112 'mojo/services/mojo_renderer_service.cc',
1113 'mojo/services/mojo_renderer_service.h',
1114 'mojo/services/renderer_config.cc',
1115 'mojo/services/renderer_config.h',
1116 'mojo/services/renderer_config_default.cc',
1120 'target_name': 'media_mojo_lib_unittests',
1121 'type': '<(gtest_target_type)',
1124 'media_mojo_bindings',
1126 '../base/base.gyp:base',
1127 '../base/base.gyp:test_support_base',
1128 '../testing/gtest.gyp:gtest',
1129 '../mojo/edk/mojo_edk.gyp:mojo_run_all_unittests',
1130 '../mojo/mojo_base.gyp:mojo_environment_chromium',
1133 'mojo/services/media_type_converters_unittest.cc',
1137 'target_name': 'media_mojo',
1141 'media_mojo_lib_unittests',
1142 'mojo_media_renderer_app',
1146 # GN version: //media:media_unittests
1147 'target_name': 'media_unittests',
1148 'type': '<(gtest_target_type)',
1151 'media_test_support',
1152 'shared_memory_support',
1153 '../base/base.gyp:base',
1154 '../base/base.gyp:base_i18n',
1155 '../base/base.gyp:test_support_base',
1156 '../gpu/gpu.gyp:command_buffer_common',
1157 '../skia/skia.gyp:skia',
1158 '../testing/gmock.gyp:gmock',
1159 '../testing/gtest.gyp:gtest',
1160 '../third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
1161 '../ui/gfx/gfx.gyp:gfx',
1162 '../ui/gfx/gfx.gyp:gfx_geometry',
1163 '../ui/gfx/gfx.gyp:gfx_test_support',
1164 '../url/url.gyp:url_lib',
1167 'audio/android/audio_android_unittest.cc',
1168 'audio/alsa/alsa_output_unittest.cc',
1169 'audio/audio_input_controller_unittest.cc',
1170 'audio/audio_input_unittest.cc',
1171 'audio/audio_input_volume_unittest.cc',
1172 'audio/audio_low_latency_input_output_unittest.cc',
1173 'audio/audio_manager_unittest.cc',
1174 'audio/audio_output_controller_unittest.cc',
1175 'audio/audio_output_device_unittest.cc',
1176 'audio/audio_output_proxy_unittest.cc',
1177 'audio/audio_parameters_unittest.cc',
1178 'audio/audio_power_monitor_unittest.cc',
1179 'audio/fake_audio_consumer_unittest.cc',
1180 'audio/mac/audio_auhal_mac_unittest.cc',
1181 'audio/mac/audio_device_listener_mac_unittest.cc',
1182 'audio/mac/audio_low_latency_input_mac_unittest.cc',
1183 'audio/simple_sources_unittest.cc',
1184 'audio/sounds/audio_stream_handler_unittest.cc',
1185 'audio/sounds/sounds_manager_unittest.cc',
1186 'audio/sounds/test_data.cc',
1187 'audio/sounds/test_data.h',
1188 'audio/sounds/wav_audio_handler_unittest.cc',
1189 'audio/virtual_audio_input_stream_unittest.cc',
1190 'audio/virtual_audio_output_stream_unittest.cc',
1191 'audio/win/audio_device_listener_win_unittest.cc',
1192 'audio/win/audio_low_latency_input_win_unittest.cc',
1193 'audio/win/audio_low_latency_output_win_unittest.cc',
1194 'audio/win/audio_output_win_unittest.cc',
1195 'audio/win/core_audio_util_win_unittest.cc',
1196 'base/android/media_codec_bridge_unittest.cc',
1197 'base/android/media_drm_bridge_unittest.cc',
1198 'base/android/media_source_player_unittest.cc',
1199 'base/audio_block_fifo_unittest.cc',
1200 'base/audio_buffer_converter_unittest.cc',
1201 'base/audio_buffer_unittest.cc',
1202 'base/audio_buffer_queue_unittest.cc',
1203 'base/audio_bus_unittest.cc',
1204 'base/audio_converter_unittest.cc',
1205 'base/audio_discard_helper_unittest.cc',
1206 'base/audio_fifo_unittest.cc',
1207 'base/audio_hardware_config_unittest.cc',
1208 'base/audio_hash_unittest.cc',
1209 'base/audio_pull_fifo_unittest.cc',
1210 'base/audio_renderer_mixer_input_unittest.cc',
1211 'base/audio_renderer_mixer_unittest.cc',
1212 'base/audio_splicer_unittest.cc',
1213 'base/audio_timestamp_helper_unittest.cc',
1214 'base/audio_video_metadata_extractor_unittest.cc',
1215 'base/bind_to_current_loop_unittest.cc',
1216 'base/bit_reader_unittest.cc',
1217 'base/callback_holder.h',
1218 'base/callback_holder_unittest.cc',
1219 'base/channel_mixer_unittest.cc',
1220 'base/channel_mixing_matrix_unittest.cc',
1221 'base/container_names_unittest.cc',
1222 'base/data_buffer_unittest.cc',
1223 'base/decoder_buffer_queue_unittest.cc',
1224 'base/decoder_buffer_unittest.cc',
1225 'base/djb2_unittest.cc',
1226 'base/gmock_callback_support_unittest.cc',
1227 'base/key_systems_unittest.cc',
1228 'base/mac/video_frame_mac_unittests.cc',
1229 'base/media_file_checker_unittest.cc',
1230 'base/multi_channel_resampler_unittest.cc',
1231 'base/pipeline_unittest.cc',
1232 'base/ranges_unittest.cc',
1233 'base/run_all_unittests.cc',
1234 'base/scoped_histogram_timer_unittest.cc',
1235 'base/serial_runner_unittest.cc',
1236 'base/seekable_buffer_unittest.cc',
1237 'base/sinc_resampler_unittest.cc',
1238 'base/stream_parser_unittest.cc',
1239 'base/text_ranges_unittest.cc',
1240 'base/text_renderer_unittest.cc',
1241 'base/time_delta_interpolator_unittest.cc',
1242 'base/user_input_monitor_unittest.cc',
1243 'base/vector_math_testing.h',
1244 'base/vector_math_unittest.cc',
1245 'base/video_frame_unittest.cc',
1246 'base/video_frame_pool_unittest.cc',
1247 'base/video_util_unittest.cc',
1248 'base/wall_clock_time_source_unittest.cc',
1249 'base/yuv_convert_unittest.cc',
1250 'cdm/aes_decryptor_unittest.cc',
1251 'cdm/json_web_key_unittest.cc',
1252 'ffmpeg/ffmpeg_common_unittest.cc',
1253 'filters/audio_clock_unittest.cc',
1254 'filters/audio_decoder_unittest.cc',
1255 'filters/audio_decoder_selector_unittest.cc',
1256 'filters/audio_file_reader_unittest.cc',
1257 'filters/audio_renderer_algorithm_unittest.cc',
1258 'filters/audio_renderer_impl_unittest.cc',
1259 'filters/blocking_url_protocol_unittest.cc',
1260 'filters/chunk_demuxer_unittest.cc',
1261 'filters/decrypting_audio_decoder_unittest.cc',
1262 'filters/decrypting_demuxer_stream_unittest.cc',
1263 'filters/decrypting_video_decoder_unittest.cc',
1264 'filters/fake_demuxer_stream.cc',
1265 'filters/fake_demuxer_stream.h',
1266 'filters/fake_demuxer_stream_unittest.cc',
1267 'filters/fake_video_decoder.cc',
1268 'filters/fake_video_decoder.h',
1269 'filters/fake_video_decoder_unittest.cc',
1270 'filters/ffmpeg_demuxer_unittest.cc',
1271 'filters/ffmpeg_glue_unittest.cc',
1272 'filters/ffmpeg_video_decoder_unittest.cc',
1273 'filters/file_data_source_unittest.cc',
1274 'filters/frame_processor_unittest.cc',
1275 'filters/h264_bit_reader_unittest.cc',
1276 'filters/h264_parser_unittest.cc',
1277 'filters/in_memory_url_protocol_unittest.cc',
1278 'filters/pipeline_integration_test.cc',
1279 'filters/pipeline_integration_test_base.cc',
1280 'filters/renderer_impl_unittest.cc',
1281 'filters/skcanvas_video_renderer_unittest.cc',
1282 'filters/source_buffer_stream_unittest.cc',
1283 'filters/video_decoder_selector_unittest.cc',
1284 'filters/video_frame_scheduler_impl_unittest.cc',
1285 'filters/video_frame_scheduler_unittest.cc',
1286 'filters/video_frame_stream_unittest.cc',
1287 'filters/video_renderer_impl_unittest.cc',
1288 'midi/midi_manager_unittest.cc',
1289 'midi/midi_manager_usb_unittest.cc',
1290 'midi/midi_message_queue_unittest.cc',
1291 'midi/midi_message_util_unittest.cc',
1292 'midi/usb_midi_descriptor_parser_unittest.cc',
1293 'midi/usb_midi_input_stream_unittest.cc',
1294 'midi/usb_midi_output_stream_unittest.cc',
1295 'video/capture/fake_video_capture_device_unittest.cc',
1296 'video/capture/video_capture_device_unittest.cc',
1297 'formats/common/offset_byte_queue_unittest.cc',
1298 'formats/webm/cluster_builder.cc',
1299 'formats/webm/cluster_builder.h',
1300 'formats/webm/tracks_builder.cc',
1301 'formats/webm/tracks_builder.h',
1302 'formats/webm/webm_cluster_parser_unittest.cc',
1303 'formats/webm/webm_content_encodings_client_unittest.cc',
1304 'formats/webm/webm_parser_unittest.cc',
1305 'formats/webm/webm_tracks_parser_unittest.cc',
1306 'formats/webm/webm_webvtt_parser_unittest.cc',
1309 # Needed by media_drm_bridge.cc.
1310 '<(SHARED_INTERMEDIATE_DIR)',
1318 ['media_use_ffmpeg==1', {
1320 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
1322 }, { # media_use_ffmpeg== 0
1324 'base/audio_video_metadata_extractor_unittest.cc',
1325 'base/container_names_unittest.cc',
1326 'base/media_file_checker_unittest.cc',
1327 'ffmpeg/ffmpeg_common_unittest.cc',
1328 'filters/audio_decoder_unittest.cc',
1329 'filters/audio_file_reader_unittest.cc',
1330 'filters/blocking_url_protocol_unittest.cc',
1331 'filters/ffmpeg_aac_bitstream_converter_unittest.cc',
1332 'filters/ffmpeg_demuxer_unittest.cc',
1333 'filters/ffmpeg_glue_unittest.cc',
1334 'filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc',
1335 'filters/ffmpeg_video_decoder_unittest.cc',
1336 'filters/in_memory_url_protocol_unittest.cc',
1337 'filters/pipeline_integration_test.cc',
1338 'filters/pipeline_integration_test_base.cc',
1346 ['use_pulseaudio==1', {
1351 ['os_posix==1 and OS!="mac"', {
1353 ['use_allocator!="none"', {
1355 '../base/allocator/allocator.gyp:allocator',
1362 'audio/audio_input_volume_unittest.cc',
1365 '../testing/android/native_test.gyp:native_test_native_code',
1373 'audio/cras/cras_input_unittest.cc',
1374 'audio/cras/cras_unified_unittest.cc',
1382 ['target_arch != "arm" and chromeos == 1 and use_x11 == 1', {
1384 'filters/h264_bitstream_buffer_unittest.cc',
1389 'audio/alsa/alsa_output_unittest.cc',
1390 'audio/audio_low_latency_input_output_unittest.cc',
1393 ['target_arch=="ia32" or target_arch=="x64"', {
1395 'base/simd/convert_rgb_to_yuv_unittest.cc',
1398 ['proprietary_codecs==1', {
1400 'filters/ffmpeg_aac_bitstream_converter_unittest.cc',
1401 'filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc',
1402 'filters/h264_to_annex_b_bitstream_converter_unittest.cc',
1403 'formats/common/stream_parser_test_base.cc',
1404 'formats/common/stream_parser_test_base.h',
1405 'formats/mp2t/es_adapter_video_unittest.cc',
1406 'formats/mp2t/es_parser_adts_unittest.cc',
1407 'formats/mp2t/es_parser_h264_unittest.cc',
1408 'formats/mp2t/es_parser_mpeg1audio_unittest.cc',
1409 'formats/mp2t/es_parser_test_base.cc',
1410 'formats/mp2t/es_parser_test_base.h',
1411 'formats/mp2t/mp2t_stream_parser_unittest.cc',
1412 'formats/mp2t/timestamp_unroller_unittest.cc',
1413 'formats/mp4/aac_unittest.cc',
1414 'formats/mp4/avc_unittest.cc',
1415 'formats/mp4/box_reader_unittest.cc',
1416 'formats/mp4/es_descriptor_unittest.cc',
1417 'formats/mp4/mp4_stream_parser_unittest.cc',
1418 'formats/mp4/sample_to_group_iterator_unittest.cc',
1419 'formats/mp4/track_run_iterator_unittest.cc',
1420 'formats/mpeg/adts_stream_parser_unittest.cc',
1421 'formats/mpeg/mpeg1_audio_stream_parser_unittest.cc',
1424 # TODO(wolenetz): Fix size_t to int truncations in win64. See
1425 # http://crbug.com/171009
1426 ['OS=="win" and target_arch=="x64"', {
1427 'msvs_disabled_warnings': [ 4267, ],
1431 'video/capture/mac/video_capture_device_factory_mac_unittest.mm',
1437 # GN version: //media:media_perftests
1438 'target_name': 'media_perftests',
1439 'type': '<(gtest_target_type)',
1441 '../base/base.gyp:test_support_base',
1442 '../testing/gmock.gyp:gmock',
1443 '../testing/gtest.gyp:gtest',
1444 '../testing/perf/perf_test.gyp:perf_test',
1445 '../ui/gfx/gfx.gyp:gfx',
1446 '../ui/gfx/gfx.gyp:gfx_test_support',
1447 '../ui/gfx/gfx.gyp:gfx_geometry',
1449 'media_test_support',
1450 'shared_memory_support',
1453 'base/audio_bus_perftest.cc',
1454 'base/audio_converter_perftest.cc',
1455 'base/demuxer_perftest.cc',
1456 'base/run_all_perftests.cc',
1457 'base/sinc_resampler_perftest.cc',
1458 'base/vector_math_perftest.cc',
1459 'base/yuv_convert_perftest.cc',
1460 'filters/pipeline_integration_perftest.cc',
1461 'filters/pipeline_integration_test_base.cc',
1471 '../testing/android/native_test.gyp:native_test_native_code',
1472 '../ui/gl/gl.gyp:gl',
1475 ['media_use_ffmpeg==1', {
1477 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
1479 }, { # media_use_ffmpeg==0
1481 'base/demuxer_perftest.cc',
1482 'filters/pipeline_integration_perftest.cc',
1483 'filters/pipeline_integration_test_base.cc',
1489 # GN version: //media:test_support
1490 'target_name': 'media_test_support',
1491 'type': 'static_library',
1494 'shared_memory_support',
1495 '../base/base.gyp:base',
1496 '../skia/skia.gyp:skia',
1497 '../testing/gmock.gyp:gmock',
1498 '../testing/gtest.gyp:gtest',
1501 'audio/mock_audio_manager.cc',
1502 'audio/mock_audio_manager.h',
1503 'audio/mock_audio_source_callback.cc',
1504 'audio/mock_audio_source_callback.h',
1505 'audio/test_audio_input_controller_factory.cc',
1506 'audio/test_audio_input_controller_factory.h',
1507 'base/fake_audio_render_callback.cc',
1508 'base/fake_audio_render_callback.h',
1509 'base/fake_audio_renderer_sink.cc',
1510 'base/fake_audio_renderer_sink.h',
1511 'base/fake_text_track_stream.cc',
1512 'base/fake_text_track_stream.h',
1513 'base/gmock_callback_support.h',
1514 'base/mock_audio_renderer_sink.cc',
1515 'base/mock_audio_renderer_sink.h',
1516 'base/mock_demuxer_host.cc',
1517 'base/mock_demuxer_host.h',
1518 'base/mock_filters.cc',
1519 'base/mock_filters.h',
1520 'base/test_data_util.cc',
1521 'base/test_data_util.h',
1522 'base/test_helpers.cc',
1523 'base/test_helpers.h',
1524 'filters/clockless_video_frame_scheduler.cc',
1525 'filters/clockless_video_frame_scheduler.h',
1526 'filters/mock_gpu_video_accelerator_factories.cc',
1527 'filters/mock_gpu_video_accelerator_factories.h',
1528 'filters/test_video_frame_scheduler.cc',
1529 'filters/test_video_frame_scheduler.h',
1530 'video/mock_video_decode_accelerator.cc',
1531 'video/mock_video_decode_accelerator.h',
1535 # Minimal target for NaCl and other renderer side media clients which
1536 # only need to send audio data across the shared memory to the browser
1538 # GN version: //media:shared_memory_support
1539 'target_name': 'shared_memory_support',
1540 'type': '<(component)',
1542 '../base/base.gyp:base',
1545 'MEDIA_IMPLEMENTATION',
1551 'shared_memory_support.gypi',
1554 '<@(shared_memory_support_sources)',
1566 ['target_arch!="arm"', {
1569 'target_name': 'media_asm',
1570 'type': 'static_library',
1572 'base/simd/convert_rgb_to_yuv_ssse3.asm',
1573 'base/simd/convert_yuv_to_rgb_sse.asm',
1574 'base/simd/convert_yuva_to_argb_mmx.asm',
1575 'base/simd/empty_register_state_mmx.asm',
1576 'base/simd/linear_scale_yuv_to_rgb_mmx.asm',
1577 'base/simd/linear_scale_yuv_to_rgb_sse.asm',
1578 'base/simd/scale_yuv_to_rgb_mmx.asm',
1579 'base/simd/scale_yuv_to_rgb_sse.asm',
1582 ['component=="shared_library"', {
1584 'yasm_flags': ['-DEXPORT_SYMBOLS'],
1587 ['target_arch=="x64"', {
1588 # Source files optimized for X64 systems.
1590 'base/simd/linear_scale_yuv_to_rgb_mmx_x64.asm',
1591 'base/simd/scale_yuv_to_rgb_sse2_x64.asm',
1594 'yasm_flags': ['-DARCH_X86_64'],
1597 ['OS=="mac" or OS=="ios"', {
1605 # XCode doesn't want to link a pure assembly target and will
1606 # fail to link when it creates an empty file list. So add a
1607 # dummy file keep the linker happy. See http://crbug.com/157073
1608 'base/simd/xcode_hack.c',
1611 ['os_posix==1 and OS!="mac"', {
1614 ['target_arch=="ia32"', {
1619 }, { # target_arch=="x64"
1631 'yasm_output_path': '<(SHARED_INTERMEDIATE_DIR)/media',
1634 # In addition to the same path as source asm, let yasm %include
1635 # search path be relative to src/ per Chromium policy.
1639 '../third_party/x86inc/x86inc.asm',
1640 'base/simd/convert_rgb_to_yuv_ssse3.inc',
1641 'base/simd/convert_yuv_to_rgb_mmx.inc',
1642 'base/simd/convert_yuva_to_argb_mmx.inc',
1643 'base/simd/linear_scale_yuv_to_rgb_mmx.inc',
1644 'base/simd/media_export.asm',
1645 'base/simd/scale_yuv_to_rgb_mmx.inc',
1648 'msvs_2010_disable_uldi_when_referenced': 1,
1650 '../third_party/yasm/yasm_compile.gypi',
1654 'target_name': 'media_sse2',
1655 'type': 'static_library',
1660 'MEDIA_IMPLEMENTATION',
1666 'base/simd/convert_rgb_to_yuv_sse2.cc',
1667 'base/simd/convert_rgb_to_yuv_ssse3.cc',
1668 'base/simd/filter_yuv_sse2.cc',
1676 'target_name': 'player_x11',
1677 'type': 'executable',
1680 'shared_memory_support',
1681 '../base/base.gyp:base',
1682 '../ui/gl/gl.gyp:gl',
1683 '../ui/gfx/gfx.gyp:gfx',
1684 '../ui/gfx/gfx.gyp:gfx_geometry',
1685 '../build/linux/system.gyp:x11',
1686 '../build/linux/system.gyp:xext',
1687 '../build/linux/system.gyp:xrender',
1690 # Linux/Solaris need libdl for dlopen() and friends.
1691 ['OS=="linux" or OS=="solaris"', {
1700 'tools/player_x11/data_source_logger.cc',
1701 'tools/player_x11/data_source_logger.h',
1702 'tools/player_x11/gl_video_renderer.cc',
1703 'tools/player_x11/gl_video_renderer.h',
1704 'tools/player_x11/player_x11.cc',
1705 'tools/player_x11/x11_video_renderer.cc',
1706 'tools/player_x11/x11_video_renderer.h',
1715 'target_name': 'media_unittests_apk',
1722 'test_suite_name': 'media_unittests',
1724 'includes': ['../build/apk_test.gypi'],
1728 'target_name': 'media_perftests_apk',
1735 'test_suite_name': 'media_perftests',
1737 'includes': ['../build/apk_test.gypi'],
1740 # GN: //media/base/android:media_android_jni_headers
1741 'target_name': 'media_android_jni_headers',
1744 'base/android/java/src/org/chromium/media/AudioManagerAndroid.java',
1745 'base/android/java/src/org/chromium/media/AudioRecordInput.java',
1746 'base/android/java/src/org/chromium/media/MediaCodecBridge.java',
1747 'base/android/java/src/org/chromium/media/MediaDrmBridge.java',
1748 'base/android/java/src/org/chromium/media/MediaPlayerBridge.java',
1749 'base/android/java/src/org/chromium/media/MediaPlayerListener.java',
1750 'base/android/java/src/org/chromium/media/UsbMidiDeviceAndroid.java',
1751 'base/android/java/src/org/chromium/media/UsbMidiDeviceFactoryAndroid.java',
1752 'base/android/java/src/org/chromium/media/WebAudioMediaCodecBridge.java',
1755 'jni_gen_package': 'media',
1757 'includes': ['../build/jni_generator.gypi'],
1760 # GN: //media/base/android:video_capture_android_jni_headers
1761 'target_name': 'video_capture_android_jni_headers',
1764 'base/android/java/src/org/chromium/media/VideoCapture.java',
1765 'base/android/java/src/org/chromium/media/VideoCaptureFactory.java',
1768 'jni_gen_package': 'media',
1770 'includes': ['../build/jni_generator.gypi'],
1773 # GN: //media/base/android:android
1774 'target_name': 'player_android',
1775 'type': 'static_library',
1777 'base/android/audio_decoder_job.cc',
1778 'base/android/audio_decoder_job.h',
1779 'base/android/browser_cdm_factory_android.cc',
1780 'base/android/demuxer_android.h',
1781 'base/android/demuxer_stream_player_params.cc',
1782 'base/android/demuxer_stream_player_params.h',
1783 'base/android/media_codec_bridge.cc',
1784 'base/android/media_codec_bridge.h',
1785 'base/android/media_common_android.h',
1786 'base/android/media_decoder_job.cc',
1787 'base/android/media_decoder_job.h',
1788 'base/android/media_drm_bridge.cc',
1789 'base/android/media_drm_bridge.h',
1790 'base/android/media_jni_registrar.cc',
1791 'base/android/media_jni_registrar.h',
1792 'base/android/media_player_android.cc',
1793 'base/android/media_player_android.h',
1794 'base/android/media_player_bridge.cc',
1795 'base/android/media_player_bridge.h',
1796 'base/android/media_player_listener.cc',
1797 'base/android/media_player_listener.h',
1798 'base/android/media_player_manager.h',
1799 'base/android/media_resource_getter.cc',
1800 'base/android/media_resource_getter.h',
1801 'base/android/media_source_player.cc',
1802 'base/android/media_source_player.h',
1803 'base/android/media_url_interceptor.h',
1804 'base/android/video_decoder_job.cc',
1805 'base/android/video_decoder_job.h',
1806 'base/android/webaudio_media_codec_bridge.cc',
1807 'base/android/webaudio_media_codec_bridge.h',
1808 'base/android/webaudio_media_codec_info.h',
1811 '../base/base.gyp:base',
1812 '../third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
1813 '../ui/gl/gl.gyp:gl',
1814 '../url/url.gyp:url_lib',
1815 'media_android_jni_headers',
1818 # Needed by media_drm_bridge.cc.
1819 '<(SHARED_INTERMEDIATE_DIR)',
1822 'MEDIA_IMPLEMENTATION',
1826 # GN: //media/base/android:media_java
1827 'target_name': 'media_java',
1830 '../base/base.gyp:base',
1831 'media_android_imageformat',
1833 'export_dependent_settings': [
1834 '../base/base.gyp:base',
1837 'java_in_dir': 'base/android/java',
1839 'includes': ['../build/java.gypi'],
1842 # GN: //media/base/android:media_android_imageformat
1843 'target_name': 'media_android_imageformat',
1846 'source_file': 'video/capture/android/video_capture_device_android.h',
1848 'includes': [ '../build/android/java_cpp_enum.gypi' ],
1852 ['media_use_ffmpeg==1', {
1855 # GN version: //media:ffmpeg_unittests
1856 'target_name': 'ffmpeg_unittests',
1857 'type': 'executable',
1859 '../base/base.gyp:base',
1860 '../base/base.gyp:base_i18n',
1861 '../base/base.gyp:test_support_base',
1862 '../testing/gtest.gyp:gtest',
1863 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
1865 'media_test_support',
1868 'ffmpeg/ffmpeg_unittest.cc',
1872 # GN version: //media:ffmpeg_regression_tests
1873 'target_name': 'ffmpeg_regression_tests',
1874 'type': 'executable',
1876 '../base/base.gyp:test_support_base',
1877 '../testing/gmock.gyp:gmock',
1878 '../testing/gtest.gyp:gtest',
1879 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
1880 '../ui/gfx/gfx.gyp:gfx_geometry',
1882 'media_test_support',
1885 'base/run_all_unittests.cc',
1886 'ffmpeg/ffmpeg_regression_tests.cc',
1887 'filters/pipeline_integration_test_base.cc',
1890 ['os_posix==1 and OS!="mac"', {
1892 ['use_allocator!="none"', {
1894 '../base/allocator/allocator.gyp:allocator',
1906 # Minimal media component for media/cast on iOS.
1907 # GN version: //media:media_for_cast_ios
1908 'target_name': 'media_for_cast_ios',
1909 'type': '<(component)',
1911 '../base/base.gyp:base',
1912 '../ui/gfx/gfx.gyp:gfx_geometry',
1913 'shared_memory_support',
1916 'MEDIA_IMPLEMENTATION',
1917 'MEDIA_FOR_CAST_IOS',
1919 'direct_dependent_settings': {
1928 'base/mac/coremedia_glue.h',
1929 'base/mac/coremedia_glue.mm',
1930 'base/mac/corevideo_glue.h',
1931 'base/mac/videotoolbox_glue.h',
1932 'base/mac/videotoolbox_glue.mm',
1933 'base/mac/video_frame_mac.h',
1934 'base/mac/video_frame_mac.cc',
1935 'base/video_frame.cc',
1936 'base/video_frame.h',
1940 '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework',
1950 'target_conditions': [
1951 ['OS == "ios" and _toolset != "host"', {
1953 # Pull in specific Mac files for iOS (which have been filtered
1954 # out by file name rules).
1955 ['include', '^base/mac/coremedia_glue\\.h$'],
1956 ['include', '^base/mac/coremedia_glue\\.mm$'],
1957 ['include', '^base/mac/corevideo_glue\\.h$'],
1958 ['include', '^base/mac/videotoolbox_glue\\.h$'],
1959 ['include', '^base/mac/videotoolbox_glue\\.mm$'],
1960 ['include', '^base/mac/video_frame_mac\\.h$'],
1961 ['include', '^base/mac/video_frame_mac\\.cc$'],
1964 ], # target_conditions
1968 ['test_isolation_mode != "noop" and archive_gpu_tests==1', {
1971 'target_name': 'media_unittests_run',
1977 '../build/isolate.gypi',
1980 'media_unittests.isolate',