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_buffers_state.cc',
96 'audio/audio_buffers_state.h',
97 'audio/audio_device_name.cc',
98 'audio/audio_device_name.h',
99 'audio/audio_device_thread.cc',
100 'audio/audio_device_thread.h',
101 'audio/audio_input_controller.cc',
102 'audio/audio_input_controller.h',
103 'audio/audio_input_device.cc',
104 'audio/audio_input_device.h',
105 'audio/audio_input_ipc.cc',
106 'audio/audio_input_ipc.h',
108 'audio/audio_manager.cc',
109 'audio/audio_manager.h',
110 'audio/audio_manager_base.cc',
111 'audio/audio_manager_base.h',
112 'audio/audio_output_controller.cc',
113 'audio/audio_output_controller.h',
114 'audio/audio_output_device.cc',
115 'audio/audio_output_device.h',
116 'audio/audio_output_dispatcher.cc',
117 'audio/audio_output_dispatcher.h',
118 'audio/audio_output_dispatcher_impl.cc',
119 'audio/audio_output_dispatcher_impl.h',
120 'audio/audio_output_ipc.cc',
121 'audio/audio_output_ipc.h',
122 'audio/audio_output_proxy.cc',
123 'audio/audio_output_proxy.h',
124 'audio/audio_output_resampler.cc',
125 'audio/audio_output_resampler.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/android/demuxer_android.h',
205 'base/android/demuxer_stream_player_params.cc',
206 'base/android/demuxer_stream_player_params.h',
207 'base/android/media_player_manager.h',
208 'base/android/media_resource_getter.cc',
209 'base/android/media_resource_getter.h',
210 'base/audio_block_fifo.cc',
211 'base/audio_block_fifo.h',
212 'base/audio_buffer.cc',
213 'base/audio_buffer.h',
214 'base/audio_buffer_queue.cc',
215 'base/audio_buffer_queue.h',
216 'base/audio_buffer_converter.cc',
217 'base/audio_buffer_converter.h',
218 'base/audio_capturer_source.h',
219 'base/audio_converter.cc',
220 'base/audio_converter.h',
221 'base/audio_decoder.cc',
222 'base/audio_decoder.h',
223 'base/audio_decoder_config.cc',
224 'base/audio_decoder_config.h',
225 'base/audio_discard_helper.cc',
226 'base/audio_discard_helper.h',
227 'base/audio_fifo.cc',
229 'base/audio_hardware_config.cc',
230 'base/audio_hardware_config.h',
231 'base/audio_hash.cc',
233 'base/audio_pull_fifo.cc',
234 'base/audio_pull_fifo.h',
235 'base/audio_renderer.cc',
236 'base/audio_renderer.h',
237 'base/audio_renderer_mixer.cc',
238 'base/audio_renderer_mixer.h',
239 'base/audio_renderer_mixer_input.cc',
240 'base/audio_renderer_mixer_input.h',
241 'base/audio_renderer_sink.h',
242 'base/audio_splicer.cc',
243 'base/audio_splicer.h',
244 'base/audio_timestamp_helper.cc',
245 'base/audio_timestamp_helper.h',
246 'base/audio_video_metadata_extractor.cc',
247 'base/audio_video_metadata_extractor.h',
248 'base/bind_to_current_loop.h',
249 'base/bit_reader.cc',
251 'base/bit_reader_core.cc',
252 'base/bit_reader_core.h',
253 'base/bitstream_buffer.h',
254 'base/buffering_state.h',
256 'base/byte_queue.cc',
258 'base/cdm_promise.cc',
259 'base/cdm_promise.h',
260 'base/channel_mixer.cc',
261 'base/channel_mixer.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',
282 'base/keyboard_event_counter.cc',
283 'base/keyboard_event_counter.h',
284 'base/mac/avfoundation_glue.h',
285 'base/mac/avfoundation_glue.mm',
286 'base/mac/coremedia_glue.h',
287 'base/mac/coremedia_glue.mm',
290 'base/media_file_checker.cc',
291 'base/media_file_checker.h',
292 'base/media_keys.cc',
296 'base/media_log_event.h',
297 'base/media_posix.cc',
298 'base/media_switches.cc',
299 'base/media_switches.h',
301 'base/multi_channel_resampler.cc',
302 'base/multi_channel_resampler.h',
305 'base/pipeline_status.h',
306 'base/player_tracker.cc',
307 'base/player_tracker.h',
312 'base/sample_format.cc',
313 'base/sample_format.h',
314 'base/scoped_histogram_timer.h',
315 'base/seekable_buffer.cc',
316 'base/seekable_buffer.h',
317 'base/serial_runner.cc',
318 'base/serial_runner.h',
319 'base/simd/convert_rgb_to_yuv.h',
320 'base/simd/convert_rgb_to_yuv_c.cc',
321 'base/simd/convert_yuv_to_rgb.h',
322 'base/simd/convert_yuv_to_rgb_c.cc',
323 'base/simd/filter_yuv.h',
324 'base/simd/filter_yuv_c.cc',
325 'base/simd/yuv_to_rgb_table.cc',
326 'base/simd/yuv_to_rgb_table.h',
327 'base/sinc_resampler.cc',
328 'base/sinc_resampler.h',
329 'base/stream_parser.cc',
330 'base/stream_parser.h',
331 'base/stream_parser_buffer.cc',
332 'base/stream_parser_buffer.h',
335 'base/text_ranges.cc',
336 'base/text_ranges.h',
337 'base/text_renderer.cc',
338 'base/text_renderer.h',
340 'base/text_track_config.cc',
341 'base/text_track_config.h',
342 'base/time_delta_interpolator.cc',
343 'base/time_delta_interpolator.h',
344 'base/time_source.h',
345 'base/user_input_monitor.cc',
346 'base/user_input_monitor.h',
347 'base/user_input_monitor_linux.cc',
348 'base/user_input_monitor_mac.cc',
349 'base/user_input_monitor_win.cc',
350 'base/video_decoder.cc',
351 'base/video_decoder.h',
352 'base/video_decoder_config.cc',
353 'base/video_decoder_config.h',
354 'base/video_frame.cc',
355 'base/video_frame.h',
356 'base/video_frame_pool.cc',
357 'base/video_frame_pool.h',
358 'base/video_renderer.cc',
359 'base/video_renderer.h',
360 'base/video_rotation.h',
361 'base/video_util.cc',
363 'base/yuv_convert.cc',
364 'base/yuv_convert.h',
365 'base/wall_clock_time_source.cc',
366 'base/wall_clock_time_source.h',
367 'cdm/aes_decryptor.cc',
368 'cdm/aes_decryptor.h',
369 'cdm/json_web_key.cc',
370 'cdm/json_web_key.h',
371 'cdm/key_system_names.cc',
372 'cdm/key_system_names.h',
373 'cdm/player_tracker_impl.cc',
374 'cdm/player_tracker_impl.h',
375 'ffmpeg/ffmpeg_common.cc',
376 'ffmpeg/ffmpeg_common.h',
377 'ffmpeg/ffmpeg_deleters.h',
378 'filters/audio_clock.cc',
379 'filters/audio_clock.h',
380 'filters/audio_file_reader.cc',
381 'filters/audio_file_reader.h',
382 'filters/audio_renderer_algorithm.cc',
383 'filters/audio_renderer_algorithm.h',
384 'filters/audio_renderer_impl.cc',
385 'filters/audio_renderer_impl.h',
386 'filters/blocking_url_protocol.cc',
387 'filters/blocking_url_protocol.h',
388 'filters/chunk_demuxer.cc',
389 'filters/chunk_demuxer.h',
390 'filters/decoder_selector.cc',
391 'filters/decoder_selector.h',
392 'filters/decoder_stream.cc',
393 'filters/decoder_stream.h',
394 'filters/decoder_stream_traits.cc',
395 'filters/decoder_stream_traits.h',
396 'filters/decrypting_audio_decoder.cc',
397 'filters/decrypting_audio_decoder.h',
398 'filters/decrypting_demuxer_stream.cc',
399 'filters/decrypting_demuxer_stream.h',
400 'filters/decrypting_video_decoder.cc',
401 'filters/decrypting_video_decoder.h',
402 'filters/ffmpeg_audio_decoder.cc',
403 'filters/ffmpeg_audio_decoder.h',
404 'filters/ffmpeg_demuxer.cc',
405 'filters/ffmpeg_demuxer.h',
406 'filters/ffmpeg_glue.cc',
407 'filters/ffmpeg_glue.h',
408 'filters/ffmpeg_video_decoder.cc',
409 'filters/ffmpeg_video_decoder.h',
410 'filters/file_data_source.cc',
411 'filters/file_data_source.h',
412 'filters/frame_processor.cc',
413 'filters/frame_processor.h',
414 'filters/gpu_video_accelerator_factories.cc',
415 'filters/gpu_video_accelerator_factories.h',
416 'filters/gpu_video_decoder.cc',
417 'filters/gpu_video_decoder.h',
418 'filters/h264_bit_reader.cc',
419 'filters/h264_bit_reader.h',
420 'filters/h264_parser.cc',
421 'filters/h264_parser.h',
422 'filters/in_memory_url_protocol.cc',
423 'filters/in_memory_url_protocol.h',
424 'filters/opus_audio_decoder.cc',
425 'filters/opus_audio_decoder.h',
426 'filters/renderer_impl.cc',
427 'filters/renderer_impl.h',
428 'filters/skcanvas_video_renderer.cc',
429 'filters/skcanvas_video_renderer.h',
430 'filters/source_buffer_platform.cc',
431 'filters/source_buffer_platform.h',
432 'filters/source_buffer_stream.cc',
433 'filters/source_buffer_stream.h',
434 'filters/stream_parser_factory.cc',
435 'filters/stream_parser_factory.h',
436 'filters/video_frame_scheduler.h',
437 'filters/video_frame_scheduler_impl.cc',
438 'filters/video_frame_scheduler_impl.h',
439 'filters/video_frame_scheduler_proxy.cc',
440 'filters/video_frame_scheduler_proxy.h',
441 'filters/video_renderer_impl.cc',
442 'filters/video_renderer_impl.h',
443 'filters/vpx_video_decoder.cc',
444 'filters/vpx_video_decoder.h',
445 'filters/webvtt_util.h',
446 'filters/wsola_internals.cc',
447 'filters/wsola_internals.h',
448 'midi/midi_manager.cc',
449 'midi/midi_manager.h',
450 'midi/midi_manager_alsa.cc',
451 'midi/midi_manager_alsa.h',
452 'midi/midi_manager_android.cc',
453 'midi/midi_manager_mac.cc',
454 'midi/midi_manager_mac.h',
455 'midi/midi_manager_usb.cc',
456 'midi/midi_manager_usb.h',
457 'midi/midi_manager_win.cc',
458 'midi/midi_manager_win.h',
459 'midi/midi_message_queue.cc',
460 'midi/midi_message_queue.h',
461 'midi/midi_message_util.cc',
462 'midi/midi_message_util.h',
463 'midi/midi_port_info.cc',
464 'midi/midi_port_info.h',
465 'midi/usb_midi_descriptor_parser.cc',
466 'midi/usb_midi_descriptor_parser.h',
467 'midi/usb_midi_device.h',
468 'midi/usb_midi_device_android.cc',
469 'midi/usb_midi_device_android.h',
470 'midi/usb_midi_device_factory_android.cc',
471 'midi/usb_midi_device_factory_android.h',
472 'midi/usb_midi_input_stream.cc',
473 'midi/usb_midi_input_stream.h',
474 'midi/usb_midi_jack.h',
475 'midi/usb_midi_output_stream.cc',
476 'midi/usb_midi_output_stream.h',
477 'ozone/media_ozone_platform.cc',
478 'ozone/media_ozone_platform.h',
479 'video/capture/android/video_capture_device_android.cc',
480 'video/capture/android/video_capture_device_android.h',
481 'video/capture/android/video_capture_device_factory_android.cc',
482 'video/capture/android/video_capture_device_factory_android.h',
483 'video/capture/fake_video_capture_device.cc',
484 'video/capture/fake_video_capture_device.h',
485 'video/capture/fake_video_capture_device_factory.h',
486 'video/capture/fake_video_capture_device_factory.cc',
487 'video/capture/file_video_capture_device.cc',
488 'video/capture/file_video_capture_device.h',
489 'video/capture/file_video_capture_device_factory.h',
490 'video/capture/file_video_capture_device_factory.cc',
491 'video/capture/linux/video_capture_device_factory_linux.cc',
492 'video/capture/linux/video_capture_device_factory_linux.h',
493 'video/capture/linux/video_capture_device_linux.cc',
494 'video/capture/linux/video_capture_device_linux.h',
495 'video/capture/linux/video_capture_device_chromeos.cc',
496 'video/capture/linux/video_capture_device_chromeos.h',
497 'video/capture/mac/platform_video_capturing_mac.h',
498 'video/capture/mac/video_capture_device_avfoundation_mac.h',
499 'video/capture/mac/video_capture_device_avfoundation_mac.mm',
500 'video/capture/mac/video_capture_device_factory_mac.h',
501 'video/capture/mac/video_capture_device_factory_mac.mm',
502 'video/capture/mac/video_capture_device_mac.h',
503 'video/capture/mac/video_capture_device_mac.mm',
504 'video/capture/mac/video_capture_device_qtkit_mac.h',
505 'video/capture/mac/video_capture_device_qtkit_mac.mm',
506 'video/capture/video_capture_device.cc',
507 'video/capture/video_capture_device.h',
508 'video/capture/video_capture_device_factory.cc',
509 'video/capture/video_capture_device_factory.h',
510 'video/capture/video_capture_types.cc',
511 'video/capture/video_capture_types.h',
512 'video/capture/win/capability_list_win.cc',
513 'video/capture/win/capability_list_win.h',
514 'video/capture/win/filter_base_win.cc',
515 'video/capture/win/filter_base_win.h',
516 'video/capture/win/pin_base_win.cc',
517 'video/capture/win/pin_base_win.h',
518 'video/capture/win/sink_filter_observer_win.h',
519 'video/capture/win/sink_filter_win.cc',
520 'video/capture/win/sink_filter_win.h',
521 'video/capture/win/sink_input_pin_win.cc',
522 'video/capture/win/sink_input_pin_win.h',
523 'video/capture/win/video_capture_device_factory_win.cc',
524 'video/capture/win/video_capture_device_factory_win.h',
525 'video/capture/win/video_capture_device_mf_win.cc',
526 'video/capture/win/video_capture_device_mf_win.h',
527 'video/capture/win/video_capture_device_win.cc',
528 'video/capture/win/video_capture_device_win.h',
531 'video/video_decode_accelerator.cc',
532 'video/video_decode_accelerator.h',
533 'video/video_encode_accelerator.cc',
534 'video/video_encode_accelerator.h',
535 'formats/common/offset_byte_queue.cc',
536 'formats/common/offset_byte_queue.h',
537 'formats/webm/webm_audio_client.cc',
538 'formats/webm/webm_audio_client.h',
539 'formats/webm/webm_cluster_parser.cc',
540 'formats/webm/webm_cluster_parser.h',
541 'formats/webm/webm_constants.cc',
542 'formats/webm/webm_constants.h',
543 'formats/webm/webm_content_encodings.cc',
544 'formats/webm/webm_content_encodings.h',
545 'formats/webm/webm_content_encodings_client.cc',
546 'formats/webm/webm_content_encodings_client.h',
547 'formats/webm/webm_crypto_helpers.cc',
548 'formats/webm/webm_crypto_helpers.h',
549 'formats/webm/webm_info_parser.cc',
550 'formats/webm/webm_info_parser.h',
551 'formats/webm/webm_parser.cc',
552 'formats/webm/webm_parser.h',
553 'formats/webm/webm_stream_parser.cc',
554 'formats/webm/webm_stream_parser.h',
555 'formats/webm/webm_tracks_parser.cc',
556 'formats/webm/webm_tracks_parser.h',
557 'formats/webm/webm_video_client.cc',
558 'formats/webm/webm_video_client.h',
559 'formats/webm/webm_webvtt_parser.cc',
560 'formats/webm/webm_webvtt_parser.h'
562 'direct_dependent_settings': {
573 ['media_use_ffmpeg==1', {
575 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
577 }, { # media_use_ffmpeg==0
578 # Exclude the sources that depend on ffmpeg.
580 'base/audio_video_metadata_extractor.cc',
581 'base/audio_video_metadata_extractor.h',
582 'base/container_names.cc',
583 'base/container_names.h',
584 'base/media_file_checker.cc',
585 'base/media_file_checker.h',
586 'base/media_posix.cc',
587 'ffmpeg/ffmpeg_common.cc',
588 'ffmpeg/ffmpeg_common.h',
589 'filters/audio_file_reader.cc',
590 'filters/audio_file_reader.h',
591 'filters/blocking_url_protocol.cc',
592 'filters/blocking_url_protocol.h',
593 'filters/ffmpeg_audio_decoder.cc',
594 'filters/ffmpeg_audio_decoder.h',
595 'filters/ffmpeg_demuxer.cc',
596 'filters/ffmpeg_demuxer.h',
597 'filters/ffmpeg_glue.cc',
598 'filters/ffmpeg_glue.h',
599 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc',
600 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.h',
601 'filters/ffmpeg_video_decoder.cc',
602 'filters/ffmpeg_video_decoder.h',
603 'filters/in_memory_url_protocol.cc',
604 'filters/in_memory_url_protocol.h',
607 ['media_use_libvpx==1', {
609 '<(DEPTH)/third_party/libvpx/libvpx.gyp:libvpx',
611 }, { # media_use_libvpx==0
612 'direct_dependent_settings': {
614 'MEDIA_DISABLE_LIBVPX',
617 # Exclude the sources that depend on libvpx.
619 'filters/vpx_video_decoder.cc',
620 'filters/vpx_video_decoder.h',
623 ['enable_browser_cdms==1', {
625 'base/browser_cdm.cc',
626 'base/browser_cdm.h',
627 'base/browser_cdm_factory.h',
632 'media_android_jni_headers',
634 'video_capture_android_jni_headers',
639 'base/media_stub.cc',
642 'filters/opus_audio_decoder.cc',
643 'filters/opus_audio_decoder.h',
646 ['android_webview_build==0', {
653 'DISABLE_USER_INPUT_MONITOR',
656 # For VaapiVideoEncodeAccelerator.
657 ['target_arch != "arm" and chromeos == 1 and use_x11 == 1', {
659 'filters/h264_bitstream_buffer.cc',
660 'filters/h264_bitstream_buffer.h',
674 ['exclude', '(^|/)alsa/'],
675 ['exclude', '_alsa\\.(h|cc)$'],
680 'audio/openbsd/audio_manager_openbsd.cc',
681 'audio/openbsd/audio_manager_openbsd.h',
688 '../build/linux/system.gyp:x11',
689 '../build/linux/system.gyp:xdamage',
690 '../build/linux/system.gyp:xext',
691 '../build/linux/system.gyp:xfixes',
692 '../build/linux/system.gyp:xtst',
694 }, { # else: use_x11==0
696 'base/user_input_monitor_linux.cc',
699 'DISABLE_USER_INPUT_MONITOR',
704 '<!@(<(pkg-config) --cflags libcras)',
708 '<!@(<(pkg-config) --libs libcras)',
714 }, { # else: use_cras==0
716 'audio/cras/audio_manager_cras.cc',
717 'audio/cras/audio_manager_cras.h',
718 'audio/cras/cras_input.cc',
719 'audio/cras/cras_input.h',
720 'audio/cras/cras_unified.cc',
721 'audio/cras/cras_unified.h',
728 'platform_list_txt_file': '<(SHARED_INTERMEDIATE_DIR)/ui/ozone/platform_list.txt',
729 'constructor_list_cc_file': '<(INTERMEDIATE_DIR)/media/ozone/constructor_list.cc',
732 # Used for the generated listing header (ui/ozone/platform_list.h)
733 '<(SHARED_INTERMEDIATE_DIR)',
736 '<(constructor_list_cc_file)',
739 '../ui/ozone/ozone.gyp:ozone',
743 # Ozone platform objects are auto-generated using similar
744 # patterns for naming and classes constructors. Here we build the
745 # object MediaOzonePlatform.
746 'action_name': 'generate_constructor_list',
748 'generator_path': '../ui/ozone/generate_constructor_list.py',
752 '<(platform_list_txt_file)',
755 '<(constructor_list_cc_file)',
760 '--platform_list=<(platform_list_txt_file)',
761 '--output_cc=<(constructor_list_cc_file)',
763 '--typename=MediaOzonePlatform',
764 '--include="media/ozone/media_ozone_platform.h"'
770 'ozone/media_ozone_platform.cc',
771 'ozone/media_ozone_platform.h',
776 'audio/cras/audio_manager_cras.cc',
777 'audio/cras/audio_manager_cras.h',
778 'audio/cras/cras_input.cc',
779 'audio/cras/cras_input.h',
780 'audio/cras/cras_unified.cc',
781 'audio/cras/cras_unified.h',
784 ['use_pulseaudio==1', {
786 '<!@(<(pkg-config) --cflags libpulse)',
792 ['linux_link_pulseaudio==0', {
797 'generate_stubs_script': '../tools/generate_stubs/generate_stubs.py',
798 'extra_header': 'audio/pulse/pulse_stub_header.fragment',
799 'sig_files': ['audio/pulse/pulse.sigs'],
800 'outfile_type': 'posix_stubs',
801 'stubs_filename_root': 'pulse_stubs',
802 'project_path': 'media/audio/pulse',
803 'intermediate_dir': '<(INTERMEDIATE_DIR)',
804 'output_root': '<(SHARED_INTERMEDIATE_DIR)/pulse',
811 'action_name': 'generate_stubs',
813 '<(generate_stubs_script)',
818 '<(intermediate_dir)/<(stubs_filename_root).cc',
819 '<(output_root)/<(project_path)/<(stubs_filename_root).h',
822 '<(generate_stubs_script)',
823 '-i', '<(intermediate_dir)',
824 '-o', '<(output_root)/<(project_path)',
825 '-t', '<(outfile_type)',
826 '-e', '<(extra_header)',
827 '-s', '<(stubs_filename_root)',
828 '-p', '<(project_path)',
831 'process_outputs_as_sources': 1,
832 'message': 'Generating Pulse stubs for dynamic loading',
836 # Linux/Solaris need libdl for dlopen() and friends.
837 ['OS=="linux" or OS=="solaris"', {
845 }, { # else: linux_link_pulseaudio==0
848 '<!@(<(pkg-config) --libs-only-L --libs-only-other libpulse)',
851 '<!@(<(pkg-config) --libs-only-l libpulse)',
856 }, { # else: use_pulseaudio==0
858 'audio/pulse/audio_manager_pulse.cc',
859 'audio/pulse/audio_manager_pulse.h',
860 'audio/pulse/pulse_input.cc',
861 'audio/pulse/pulse_input.h',
862 'audio/pulse/pulse_output.cc',
863 'audio/pulse/pulse_output.h',
864 'audio/pulse/pulse_util.cc',
865 'audio/pulse/pulse_util.h',
871 '$(SDKROOT)/System/Library/Frameworks/AudioToolbox.framework',
872 '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework',
873 '$(SDKROOT)/System/Library/Frameworks/CoreAudio.framework',
874 '$(SDKROOT)/System/Library/Frameworks/CoreMIDI.framework',
875 '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework',
876 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
877 '$(SDKROOT)/System/Library/Frameworks/QTKit.framework',
890 # Specify delayload for media.dll.
900 # Specify delayload for components that link with media.lib.
901 'all_dependent_settings': {
912 # TODO(wolenetz): Fix size_t to int truncations in win64. See
913 # http://crbug.com/171009
915 ['target_arch=="x64"', {
916 'msvs_disabled_warnings': [ 4267, ],
920 ['proprietary_codecs==1', {
922 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc',
923 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.h',
924 'filters/h264_to_annex_b_bitstream_converter.cc',
925 'filters/h264_to_annex_b_bitstream_converter.h',
926 'formats/mp2t/es_adapter_video.cc',
927 'formats/mp2t/es_adapter_video.h',
928 'formats/mp2t/es_parser.cc',
929 'formats/mp2t/es_parser.h',
930 'formats/mp2t/es_parser_adts.cc',
931 'formats/mp2t/es_parser_adts.h',
932 'formats/mp2t/es_parser_h264.cc',
933 'formats/mp2t/es_parser_h264.h',
934 'formats/mp2t/mp2t_common.h',
935 'formats/mp2t/mp2t_stream_parser.cc',
936 'formats/mp2t/mp2t_stream_parser.h',
937 'formats/mp2t/ts_packet.cc',
938 'formats/mp2t/ts_packet.h',
939 'formats/mp2t/ts_section.h',
940 'formats/mp2t/ts_section_pat.cc',
941 'formats/mp2t/ts_section_pat.h',
942 'formats/mp2t/ts_section_pes.cc',
943 'formats/mp2t/ts_section_pes.h',
944 'formats/mp2t/ts_section_pmt.cc',
945 'formats/mp2t/ts_section_pmt.h',
946 'formats/mp2t/ts_section_psi.cc',
947 'formats/mp2t/ts_section_psi.h',
948 'formats/mp4/aac.cc',
950 'formats/mp4/avc.cc',
952 'formats/mp4/box_definitions.cc',
953 'formats/mp4/box_definitions.h',
954 'formats/mp4/box_reader.cc',
955 'formats/mp4/box_reader.h',
956 'formats/mp4/cenc.cc',
957 'formats/mp4/cenc.h',
958 'formats/mp4/es_descriptor.cc',
959 'formats/mp4/es_descriptor.h',
960 'formats/mp4/mp4_stream_parser.cc',
961 'formats/mp4/mp4_stream_parser.h',
962 'formats/mp4/sample_to_group_iterator.cc',
963 'formats/mp4/sample_to_group_iterator.h',
964 'formats/mp4/track_run_iterator.cc',
965 'formats/mp4/track_run_iterator.h',
966 'formats/mpeg/adts_constants.cc',
967 'formats/mpeg/adts_constants.h',
968 'formats/mpeg/adts_stream_parser.cc',
969 'formats/mpeg/adts_stream_parser.h',
970 'formats/mpeg/mp3_stream_parser.cc',
971 'formats/mpeg/mp3_stream_parser.h',
972 'formats/mpeg/mpeg_audio_stream_parser_base.cc',
973 'formats/mpeg/mpeg_audio_stream_parser_base.h',
976 ['target_arch=="ia32" or target_arch=="x64"', {
982 'base/simd/convert_yuv_to_rgb_x86.cc',
985 ['OS!="linux" and OS!="win"', {
987 'base/keyboard_event_counter.cc',
988 'base/keyboard_event_counter.h',
992 'target_conditions': [
993 ['OS == "ios" and _toolset != "host"', {
995 # Pull in specific Mac files for iOS (which have been filtered out
996 # by file name rules).
997 ['include', '^base/mac/avfoundation_glue\\.h$'],
998 ['include', '^base/mac/avfoundation_glue\\.mm$'],
999 ['include', '^base/mac/coremedia_glue\\.h$'],
1000 ['include', '^base/mac/coremedia_glue\\.mm$'],
1003 ], # target_conditions
1006 # GN version: //media/mojo/interfaces
1007 'target_name': 'mojo_media_bindings',
1008 'type': 'static_library',
1010 'mojo/interfaces/media_types.mojom',
1011 'mojo/interfaces/media_renderer.mojom',
1014 '../mojo/public/tools/bindings/mojom_bindings_generator.gypi'
1016 'export_dependent_settings': [
1017 '../mojo/mojo_base.gyp:mojo_cpp_bindings',
1020 '../mojo/mojo_base.gyp:mojo_cpp_bindings',
1024 'target_name': 'mojo_media_lib',
1025 'type': 'static_library',
1027 '../mojo/mojo_variables.gypi',
1031 'mojo_media_bindings',
1032 '../base/base.gyp:base',
1033 '../mojo/mojo_base.gyp:mojo_environment_chromium',
1034 '<(mojo_system_for_component)',
1036 'export_dependent_settings': [
1037 'mojo_media_bindings',
1040 'mojo/services/media_type_converters.cc',
1041 'mojo/services/media_type_converters.h',
1045 'target_name': 'mojo_media_lib_unittests',
1046 'type': '<(gtest_target_type)',
1049 'mojo_media_bindings',
1051 '../base/base.gyp:base',
1052 '../base/base.gyp:test_support_base',
1053 '../testing/gtest.gyp:gtest',
1054 '../mojo/mojo_base.gyp:mojo_environment_chromium',
1055 '../mojo/mojo_base.gyp:mojo_run_all_unittests',
1058 'mojo/services/media_type_converters_unittest.cc',
1062 # GN version: //media:media_unittests
1063 'target_name': 'media_unittests',
1064 'type': '<(gtest_target_type)',
1067 'media_test_support',
1068 'shared_memory_support',
1069 '../base/base.gyp:base',
1070 '../base/base.gyp:base_i18n',
1071 '../base/base.gyp:test_support_base',
1072 '../gpu/gpu.gyp:command_buffer_common',
1073 '../skia/skia.gyp:skia',
1074 '../testing/gmock.gyp:gmock',
1075 '../testing/gtest.gyp:gtest',
1076 '../third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
1077 '../ui/gfx/gfx.gyp:gfx',
1078 '../ui/gfx/gfx.gyp:gfx_geometry',
1079 '../ui/gfx/gfx.gyp:gfx_test_support',
1080 '../url/url.gyp:url_lib',
1083 'audio/android/audio_android_unittest.cc',
1084 'audio/alsa/alsa_output_unittest.cc',
1085 'audio/audio_input_controller_unittest.cc',
1086 'audio/audio_input_unittest.cc',
1087 'audio/audio_input_volume_unittest.cc',
1088 'audio/audio_low_latency_input_output_unittest.cc',
1089 'audio/audio_manager_unittest.cc',
1090 'audio/audio_output_controller_unittest.cc',
1091 'audio/audio_output_device_unittest.cc',
1092 'audio/audio_output_proxy_unittest.cc',
1093 'audio/audio_parameters_unittest.cc',
1094 'audio/audio_power_monitor_unittest.cc',
1095 'audio/fake_audio_consumer_unittest.cc',
1096 'audio/mac/audio_auhal_mac_unittest.cc',
1097 'audio/mac/audio_device_listener_mac_unittest.cc',
1098 'audio/mac/audio_low_latency_input_mac_unittest.cc',
1099 'audio/simple_sources_unittest.cc',
1100 'audio/sounds/audio_stream_handler_unittest.cc',
1101 'audio/sounds/sounds_manager_unittest.cc',
1102 'audio/sounds/test_data.cc',
1103 'audio/sounds/test_data.h',
1104 'audio/sounds/wav_audio_handler_unittest.cc',
1105 'audio/virtual_audio_input_stream_unittest.cc',
1106 'audio/virtual_audio_output_stream_unittest.cc',
1107 'audio/win/audio_device_listener_win_unittest.cc',
1108 'audio/win/audio_low_latency_input_win_unittest.cc',
1109 'audio/win/audio_low_latency_output_win_unittest.cc',
1110 'audio/win/audio_output_win_unittest.cc',
1111 'audio/win/core_audio_util_win_unittest.cc',
1112 'base/android/media_codec_bridge_unittest.cc',
1113 'base/android/media_drm_bridge_unittest.cc',
1114 'base/android/media_source_player_unittest.cc',
1115 'base/audio_block_fifo_unittest.cc',
1116 'base/audio_buffer_converter_unittest.cc',
1117 'base/audio_buffer_unittest.cc',
1118 'base/audio_buffer_queue_unittest.cc',
1119 'base/audio_bus_unittest.cc',
1120 'base/audio_converter_unittest.cc',
1121 'base/audio_discard_helper_unittest.cc',
1122 'base/audio_fifo_unittest.cc',
1123 'base/audio_hardware_config_unittest.cc',
1124 'base/audio_hash_unittest.cc',
1125 'base/audio_pull_fifo_unittest.cc',
1126 'base/audio_renderer_mixer_input_unittest.cc',
1127 'base/audio_renderer_mixer_unittest.cc',
1128 'base/audio_splicer_unittest.cc',
1129 'base/audio_timestamp_helper_unittest.cc',
1130 'base/audio_video_metadata_extractor_unittest.cc',
1131 'base/bind_to_current_loop_unittest.cc',
1132 'base/bit_reader_unittest.cc',
1133 'base/callback_holder.h',
1134 'base/callback_holder_unittest.cc',
1135 'base/channel_mixer_unittest.cc',
1136 'base/container_names_unittest.cc',
1137 'base/data_buffer_unittest.cc',
1138 'base/decoder_buffer_queue_unittest.cc',
1139 'base/decoder_buffer_unittest.cc',
1140 'base/djb2_unittest.cc',
1141 'base/gmock_callback_support_unittest.cc',
1142 'base/media_file_checker_unittest.cc',
1143 'base/multi_channel_resampler_unittest.cc',
1144 'base/pipeline_unittest.cc',
1145 'base/ranges_unittest.cc',
1146 'base/run_all_unittests.cc',
1147 'base/scoped_histogram_timer_unittest.cc',
1148 'base/serial_runner_unittest.cc',
1149 'base/seekable_buffer_unittest.cc',
1150 'base/sinc_resampler_unittest.cc',
1151 'base/stream_parser_unittest.cc',
1152 'base/text_ranges_unittest.cc',
1153 'base/text_renderer_unittest.cc',
1154 'base/time_delta_interpolator_unittest.cc',
1155 'base/user_input_monitor_unittest.cc',
1156 'base/vector_math_testing.h',
1157 'base/vector_math_unittest.cc',
1158 'base/video_frame_unittest.cc',
1159 'base/video_frame_pool_unittest.cc',
1160 'base/video_util_unittest.cc',
1161 'base/wall_clock_time_source_unittest.cc',
1162 'base/yuv_convert_unittest.cc',
1163 'cdm/aes_decryptor_unittest.cc',
1164 'cdm/json_web_key_unittest.cc',
1165 'ffmpeg/ffmpeg_common_unittest.cc',
1166 'filters/audio_clock_unittest.cc',
1167 'filters/audio_decoder_unittest.cc',
1168 'filters/audio_decoder_selector_unittest.cc',
1169 'filters/audio_file_reader_unittest.cc',
1170 'filters/audio_renderer_algorithm_unittest.cc',
1171 'filters/audio_renderer_impl_unittest.cc',
1172 'filters/blocking_url_protocol_unittest.cc',
1173 'filters/chunk_demuxer_unittest.cc',
1174 'filters/decrypting_audio_decoder_unittest.cc',
1175 'filters/decrypting_demuxer_stream_unittest.cc',
1176 'filters/decrypting_video_decoder_unittest.cc',
1177 'filters/fake_demuxer_stream.cc',
1178 'filters/fake_demuxer_stream.h',
1179 'filters/fake_demuxer_stream_unittest.cc',
1180 'filters/fake_video_decoder.cc',
1181 'filters/fake_video_decoder.h',
1182 'filters/fake_video_decoder_unittest.cc',
1183 'filters/ffmpeg_demuxer_unittest.cc',
1184 'filters/ffmpeg_glue_unittest.cc',
1185 'filters/ffmpeg_video_decoder_unittest.cc',
1186 'filters/file_data_source_unittest.cc',
1187 'filters/frame_processor_unittest.cc',
1188 'filters/h264_bit_reader_unittest.cc',
1189 'filters/h264_parser_unittest.cc',
1190 'filters/in_memory_url_protocol_unittest.cc',
1191 'filters/pipeline_integration_test.cc',
1192 'filters/pipeline_integration_test_base.cc',
1193 'filters/renderer_impl_unittest.cc',
1194 'filters/skcanvas_video_renderer_unittest.cc',
1195 'filters/source_buffer_stream_unittest.cc',
1196 'filters/video_decoder_selector_unittest.cc',
1197 'filters/video_frame_scheduler_impl_unittest.cc',
1198 'filters/video_frame_scheduler_unittest.cc',
1199 'filters/video_frame_stream_unittest.cc',
1200 'filters/video_renderer_impl_unittest.cc',
1201 'midi/midi_manager_unittest.cc',
1202 'midi/midi_manager_usb_unittest.cc',
1203 'midi/midi_message_queue_unittest.cc',
1204 'midi/midi_message_util_unittest.cc',
1205 'midi/usb_midi_descriptor_parser_unittest.cc',
1206 'midi/usb_midi_input_stream_unittest.cc',
1207 'midi/usb_midi_output_stream_unittest.cc',
1208 'video/capture/fake_video_capture_device_unittest.cc',
1209 'video/capture/video_capture_device_unittest.cc',
1210 'formats/common/offset_byte_queue_unittest.cc',
1211 'formats/webm/cluster_builder.cc',
1212 'formats/webm/cluster_builder.h',
1213 'formats/webm/tracks_builder.cc',
1214 'formats/webm/tracks_builder.h',
1215 'formats/webm/webm_cluster_parser_unittest.cc',
1216 'formats/webm/webm_content_encodings_client_unittest.cc',
1217 'formats/webm/webm_parser_unittest.cc',
1218 'formats/webm/webm_tracks_parser_unittest.cc',
1219 'formats/webm/webm_webvtt_parser_unittest.cc',
1222 # Needed by media_drm_bridge.cc.
1223 '<(SHARED_INTERMEDIATE_DIR)',
1231 ['media_use_ffmpeg==1', {
1233 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
1235 }, { # media_use_ffmpeg== 0
1237 'base/audio_video_metadata_extractor_unittest.cc',
1238 'base/media_file_checker_unittest.cc',
1246 ['use_pulseaudio==1', {
1251 ['os_posix==1 and OS!="mac"', {
1253 ['use_allocator!="none"', {
1255 '../base/allocator/allocator.gyp:allocator',
1262 'audio/audio_input_volume_unittest.cc',
1263 'base/container_names_unittest.cc',
1264 'ffmpeg/ffmpeg_common_unittest.cc',
1265 'filters/audio_decoder_unittest.cc',
1266 'filters/audio_file_reader_unittest.cc',
1267 'filters/blocking_url_protocol_unittest.cc',
1268 'filters/ffmpeg_demuxer_unittest.cc',
1269 'filters/ffmpeg_glue_unittest.cc',
1270 'filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc',
1271 'filters/ffmpeg_video_decoder_unittest.cc',
1272 'filters/in_memory_url_protocol_unittest.cc',
1273 'filters/pipeline_integration_test.cc',
1274 'filters/pipeline_integration_test_base.cc',
1277 '../testing/android/native_test.gyp:native_test_native_code',
1285 'audio/cras/cras_input_unittest.cc',
1286 'audio/cras/cras_unified_unittest.cc',
1294 ['target_arch != "arm" and chromeos == 1 and use_x11 == 1', {
1296 'filters/h264_bitstream_buffer_unittest.cc',
1301 'audio/alsa/alsa_output_unittest.cc',
1302 'audio/audio_low_latency_input_output_unittest.cc',
1305 ['target_arch=="ia32" or target_arch=="x64"', {
1307 'base/simd/convert_rgb_to_yuv_unittest.cc',
1310 ['proprietary_codecs==1', {
1312 'filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc',
1313 'filters/h264_to_annex_b_bitstream_converter_unittest.cc',
1314 'formats/common/stream_parser_test_base.cc',
1315 'formats/common/stream_parser_test_base.h',
1316 'formats/mp2t/es_adapter_video_unittest.cc',
1317 'formats/mp2t/es_parser_adts_unittest.cc',
1318 'formats/mp2t/es_parser_h264_unittest.cc',
1319 'formats/mp2t/es_parser_test_base.cc',
1320 'formats/mp2t/es_parser_test_base.h',
1321 'formats/mp2t/mp2t_stream_parser_unittest.cc',
1322 'formats/mp4/aac_unittest.cc',
1323 'formats/mp4/avc_unittest.cc',
1324 'formats/mp4/box_reader_unittest.cc',
1325 'formats/mp4/es_descriptor_unittest.cc',
1326 'formats/mp4/mp4_stream_parser_unittest.cc',
1327 'formats/mp4/sample_to_group_iterator_unittest.cc',
1328 'formats/mp4/track_run_iterator_unittest.cc',
1329 'formats/mpeg/adts_stream_parser_unittest.cc',
1330 'formats/mpeg/mp3_stream_parser_unittest.cc',
1333 # TODO(wolenetz): Fix size_t to int truncations in win64. See
1334 # http://crbug.com/171009
1335 ['OS=="win" and target_arch=="x64"', {
1336 'msvs_disabled_warnings': [ 4267, ],
1340 'video/capture/mac/video_capture_device_factory_mac_unittest.mm',
1346 # GN version: //media:media_perftests
1347 'target_name': 'media_perftests',
1348 'type': '<(gtest_target_type)',
1350 '../base/base.gyp:test_support_base',
1351 '../testing/gmock.gyp:gmock',
1352 '../testing/gtest.gyp:gtest',
1353 '../testing/perf/perf_test.gyp:perf_test',
1354 '../ui/gfx/gfx.gyp:gfx',
1355 '../ui/gfx/gfx.gyp:gfx_test_support',
1356 '../ui/gfx/gfx.gyp:gfx_geometry',
1358 'media_test_support',
1359 'shared_memory_support',
1362 'base/audio_bus_perftest.cc',
1363 'base/audio_converter_perftest.cc',
1364 'base/demuxer_perftest.cc',
1365 'base/run_all_perftests.cc',
1366 'base/sinc_resampler_perftest.cc',
1367 'base/vector_math_perftest.cc',
1368 'base/yuv_convert_perftest.cc',
1369 'filters/pipeline_integration_perftest.cc',
1370 'filters/pipeline_integration_test_base.cc',
1380 '../testing/android/native_test.gyp:native_test_native_code',
1381 '../ui/gl/gl.gyp:gl',
1384 ['media_use_ffmpeg==1', {
1386 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
1388 }, { # media_use_ffmpeg==0
1390 'base/demuxer_perftest.cc',
1391 'filters/pipeline_integration_perftest.cc',
1392 'filters/pipeline_integration_test_base.cc',
1398 # GN version: //media:test_support
1399 'target_name': 'media_test_support',
1400 'type': 'static_library',
1403 'shared_memory_support',
1404 '../base/base.gyp:base',
1405 '../skia/skia.gyp:skia',
1406 '../testing/gmock.gyp:gmock',
1407 '../testing/gtest.gyp:gtest',
1410 'audio/mock_audio_manager.cc',
1411 'audio/mock_audio_manager.h',
1412 'audio/mock_audio_source_callback.cc',
1413 'audio/mock_audio_source_callback.h',
1414 'audio/test_audio_input_controller_factory.cc',
1415 'audio/test_audio_input_controller_factory.h',
1416 'base/fake_audio_render_callback.cc',
1417 'base/fake_audio_render_callback.h',
1418 'base/fake_audio_renderer_sink.cc',
1419 'base/fake_audio_renderer_sink.h',
1420 'base/fake_text_track_stream.cc',
1421 'base/fake_text_track_stream.h',
1422 'base/gmock_callback_support.h',
1423 'base/mock_audio_renderer_sink.cc',
1424 'base/mock_audio_renderer_sink.h',
1425 'base/mock_demuxer_host.cc',
1426 'base/mock_demuxer_host.h',
1427 'base/mock_filters.cc',
1428 'base/mock_filters.h',
1429 'base/test_data_util.cc',
1430 'base/test_data_util.h',
1431 'base/test_helpers.cc',
1432 'base/test_helpers.h',
1433 'filters/clockless_video_frame_scheduler.cc',
1434 'filters/clockless_video_frame_scheduler.h',
1435 'filters/mock_gpu_video_accelerator_factories.cc',
1436 'filters/mock_gpu_video_accelerator_factories.h',
1437 'filters/test_video_frame_scheduler.cc',
1438 'filters/test_video_frame_scheduler.h',
1439 'video/mock_video_decode_accelerator.cc',
1440 'video/mock_video_decode_accelerator.h',
1444 # Minimal target for NaCl and other renderer side media clients which
1445 # only need to send audio data across the shared memory to the browser
1447 # GN version: //media:shared_memory_support
1448 'target_name': 'shared_memory_support',
1449 'type': '<(component)',
1451 '../base/base.gyp:base',
1454 'MEDIA_IMPLEMENTATION',
1460 'shared_memory_support.gypi',
1463 '<@(shared_memory_support_sources)',
1475 ['target_arch!="arm"', {
1478 'target_name': 'media_asm',
1479 'type': 'static_library',
1481 'base/simd/convert_rgb_to_yuv_ssse3.asm',
1482 'base/simd/convert_yuv_to_rgb_sse.asm',
1483 'base/simd/convert_yuva_to_argb_mmx.asm',
1484 'base/simd/empty_register_state_mmx.asm',
1485 'base/simd/linear_scale_yuv_to_rgb_mmx.asm',
1486 'base/simd/linear_scale_yuv_to_rgb_sse.asm',
1487 'base/simd/scale_yuv_to_rgb_mmx.asm',
1488 'base/simd/scale_yuv_to_rgb_sse.asm',
1491 ['component=="shared_library"', {
1493 'yasm_flags': ['-DEXPORT_SYMBOLS'],
1496 ['target_arch=="x64"', {
1497 # Source files optimized for X64 systems.
1499 'base/simd/linear_scale_yuv_to_rgb_mmx_x64.asm',
1500 'base/simd/scale_yuv_to_rgb_sse2_x64.asm',
1503 'yasm_flags': ['-DARCH_X86_64'],
1506 ['OS=="mac" or OS=="ios"', {
1514 # XCode doesn't want to link a pure assembly target and will
1515 # fail to link when it creates an empty file list. So add a
1516 # dummy file keep the linker happy. See http://crbug.com/157073
1517 'base/simd/xcode_hack.c',
1520 ['os_posix==1 and OS!="mac"', {
1523 ['target_arch=="ia32"', {
1528 }, { # target_arch=="x64"
1540 'yasm_output_path': '<(SHARED_INTERMEDIATE_DIR)/media',
1543 # In addition to the same path as source asm, let yasm %include
1544 # search path be relative to src/ per Chromium policy.
1548 '../third_party/x86inc/x86inc.asm',
1549 'base/simd/convert_rgb_to_yuv_ssse3.inc',
1550 'base/simd/convert_yuv_to_rgb_mmx.inc',
1551 'base/simd/convert_yuva_to_argb_mmx.inc',
1552 'base/simd/linear_scale_yuv_to_rgb_mmx.inc',
1553 'base/simd/media_export.asm',
1554 'base/simd/scale_yuv_to_rgb_mmx.inc',
1557 'msvs_2010_disable_uldi_when_referenced': 1,
1559 '../third_party/yasm/yasm_compile.gypi',
1563 'target_name': 'media_sse2',
1564 'type': 'static_library',
1569 'MEDIA_IMPLEMENTATION',
1575 'base/simd/convert_rgb_to_yuv_sse2.cc',
1576 'base/simd/convert_rgb_to_yuv_ssse3.cc',
1577 'base/simd/filter_yuv_sse2.cc',
1585 'target_name': 'player_x11',
1586 'type': 'executable',
1589 'shared_memory_support',
1590 '../base/base.gyp:base',
1591 '../ui/gl/gl.gyp:gl',
1592 '../ui/gfx/gfx.gyp:gfx',
1593 '../ui/gfx/gfx.gyp:gfx_geometry',
1594 '../build/linux/system.gyp:x11',
1595 '../build/linux/system.gyp:xext',
1596 '../build/linux/system.gyp:xrender',
1599 # Linux/Solaris need libdl for dlopen() and friends.
1600 ['OS=="linux" or OS=="solaris"', {
1609 'tools/player_x11/data_source_logger.cc',
1610 'tools/player_x11/data_source_logger.h',
1611 'tools/player_x11/gl_video_renderer.cc',
1612 'tools/player_x11/gl_video_renderer.h',
1613 'tools/player_x11/player_x11.cc',
1614 'tools/player_x11/x11_video_renderer.cc',
1615 'tools/player_x11/x11_video_renderer.h',
1624 'target_name': 'media_unittests_apk',
1631 'test_suite_name': 'media_unittests',
1633 'includes': ['../build/apk_test.gypi'],
1637 'target_name': 'media_perftests_apk',
1644 'test_suite_name': 'media_perftests',
1646 'includes': ['../build/apk_test.gypi'],
1649 # GN: //media/base/android:media_android_jni_headers
1650 'target_name': 'media_android_jni_headers',
1653 'base/android/java/src/org/chromium/media/AudioManagerAndroid.java',
1654 'base/android/java/src/org/chromium/media/AudioRecordInput.java',
1655 'base/android/java/src/org/chromium/media/MediaCodecBridge.java',
1656 'base/android/java/src/org/chromium/media/MediaDrmBridge.java',
1657 'base/android/java/src/org/chromium/media/MediaPlayerBridge.java',
1658 'base/android/java/src/org/chromium/media/MediaPlayerListener.java',
1659 'base/android/java/src/org/chromium/media/UsbMidiDeviceAndroid.java',
1660 'base/android/java/src/org/chromium/media/UsbMidiDeviceFactoryAndroid.java',
1661 'base/android/java/src/org/chromium/media/WebAudioMediaCodecBridge.java',
1664 'jni_gen_package': 'media',
1666 'includes': ['../build/jni_generator.gypi'],
1669 # GN: //media/base/android:video_capture_android_jni_headers
1670 'target_name': 'video_capture_android_jni_headers',
1673 'base/android/java/src/org/chromium/media/VideoCapture.java',
1674 'base/android/java/src/org/chromium/media/VideoCaptureFactory.java',
1677 'jni_gen_package': 'media',
1679 'includes': ['../build/jni_generator.gypi'],
1682 # GN: //media/base/android:android
1683 'target_name': 'player_android',
1684 'type': 'static_library',
1686 'base/android/audio_decoder_job.cc',
1687 'base/android/audio_decoder_job.h',
1688 'base/android/browser_cdm_factory_android.cc',
1689 'base/android/media_codec_bridge.cc',
1690 'base/android/media_codec_bridge.h',
1691 'base/android/media_decoder_job.cc',
1692 'base/android/media_decoder_job.h',
1693 'base/android/media_drm_bridge.cc',
1694 'base/android/media_drm_bridge.h',
1695 'base/android/media_jni_registrar.cc',
1696 'base/android/media_jni_registrar.h',
1697 'base/android/media_player_android.cc',
1698 'base/android/media_player_android.h',
1699 'base/android/media_player_bridge.cc',
1700 'base/android/media_player_bridge.h',
1701 'base/android/media_player_listener.cc',
1702 'base/android/media_player_listener.h',
1703 'base/android/media_source_player.cc',
1704 'base/android/media_source_player.h',
1705 'base/android/media_url_interceptor.h',
1706 'base/android/video_decoder_job.cc',
1707 'base/android/video_decoder_job.h',
1708 'base/android/webaudio_media_codec_bridge.cc',
1709 'base/android/webaudio_media_codec_bridge.h',
1710 'base/android/webaudio_media_codec_info.h',
1713 '../base/base.gyp:base',
1714 '../third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
1715 '../ui/gl/gl.gyp:gl',
1716 '../url/url.gyp:url_lib',
1717 'media_android_jni_headers',
1720 # Needed by media_drm_bridge.cc.
1721 '<(SHARED_INTERMEDIATE_DIR)',
1724 'MEDIA_IMPLEMENTATION',
1728 # GN: //media/base/android:media_java
1729 'target_name': 'media_java',
1732 '../base/base.gyp:base',
1733 'media_android_imageformat_list',
1735 'export_dependent_settings': [
1736 '../base/base.gyp:base',
1739 'java_in_dir': 'base/android/java',
1741 'includes': ['../build/java.gypi'],
1744 # GN: //media/base/android:media_android_imageformat_list
1745 'target_name': 'media_android_imageformat_list',
1748 'base/android/java/src/org/chromium/media/ImageFormat.template',
1751 'package_name': 'org/chromium/media',
1752 'template_deps': ['video/capture/android/imageformat_list.h'],
1754 'includes': [ '../build/android/java_cpp_template.gypi' ],
1758 ['media_use_ffmpeg==1', {
1761 # GN version: //media:ffmpeg_unittests
1762 'target_name': 'ffmpeg_unittests',
1763 'type': 'executable',
1765 '../base/base.gyp:base',
1766 '../base/base.gyp:base_i18n',
1767 '../base/base.gyp:test_support_base',
1768 '../testing/gtest.gyp:gtest',
1769 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
1771 'media_test_support',
1774 'ffmpeg/ffmpeg_unittest.cc',
1778 # GN version: //media:ffmpeg_regression_tests
1779 'target_name': 'ffmpeg_regression_tests',
1780 'type': 'executable',
1782 '../base/base.gyp:test_support_base',
1783 '../testing/gmock.gyp:gmock',
1784 '../testing/gtest.gyp:gtest',
1785 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
1786 '../ui/gfx/gfx.gyp:gfx_geometry',
1788 'media_test_support',
1791 'base/run_all_unittests.cc',
1792 'ffmpeg/ffmpeg_regression_tests.cc',
1793 'filters/pipeline_integration_test_base.cc',
1796 ['os_posix==1 and OS!="mac"', {
1798 ['use_allocator!="none"', {
1800 '../base/allocator/allocator.gyp:allocator',