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.
38 # low memory buffer is used in non-Android based chromecast build due to hardware limitation.
39 ['chromecast==1 and OS!="android"', {
40 'use_low_memory_buffer%': 1,
42 'use_low_memory_buffer%': 0,
52 'target_name': 'media',
53 'type': '<(component)',
55 '../base/base.gyp:base',
56 '../base/base.gyp:base_i18n',
57 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
58 '../crypto/crypto.gyp:crypto',
59 '../gpu/gpu.gyp:command_buffer_common',
60 '../skia/skia.gyp:skia',
61 '../third_party/libyuv/libyuv.gyp:libyuv',
62 '../third_party/opus/opus.gyp:opus',
63 '../ui/events/events.gyp:events_base',
64 '../ui/gfx/gfx.gyp:gfx',
65 '../ui/gfx/gfx.gyp:gfx_geometry',
66 '../url/url.gyp:url_lib',
67 'shared_memory_support',
70 'MEDIA_IMPLEMENTATION',
76 'audio/agc_audio_stream.h',
77 'audio/alsa/alsa_input.cc',
78 'audio/alsa/alsa_input.h',
79 'audio/alsa/alsa_output.cc',
80 'audio/alsa/alsa_output.h',
81 'audio/alsa/alsa_util.cc',
82 'audio/alsa/alsa_util.h',
83 'audio/alsa/alsa_wrapper.cc',
84 'audio/alsa/alsa_wrapper.h',
85 'audio/alsa/audio_manager_alsa.cc',
86 'audio/alsa/audio_manager_alsa.h',
87 'audio/android/audio_manager_android.cc',
88 'audio/android/audio_manager_android.h',
89 'audio/android/audio_record_input.cc',
90 'audio/android/audio_record_input.h',
91 'audio/android/opensles_input.cc',
92 'audio/android/opensles_input.h',
93 'audio/android/opensles_output.cc',
94 'audio/android/opensles_output.h',
95 'audio/android/opensles_wrapper.cc',
96 'audio/audio_device_name.cc',
97 'audio/audio_device_name.h',
98 'audio/audio_device_thread.cc',
99 'audio/audio_device_thread.h',
100 'audio/audio_input_controller.cc',
101 'audio/audio_input_controller.h',
102 'audio/audio_input_device.cc',
103 'audio/audio_input_device.h',
104 'audio/audio_input_ipc.cc',
105 'audio/audio_input_ipc.h',
107 'audio/audio_manager.cc',
108 'audio/audio_manager.h',
109 'audio/audio_manager_base.cc',
110 'audio/audio_manager_base.h',
111 'audio/audio_output_controller.cc',
112 'audio/audio_output_controller.h',
113 'audio/audio_output_device.cc',
114 'audio/audio_output_device.h',
115 'audio/audio_output_dispatcher.cc',
116 'audio/audio_output_dispatcher.h',
117 'audio/audio_output_dispatcher_impl.cc',
118 'audio/audio_output_dispatcher_impl.h',
119 'audio/audio_output_ipc.cc',
120 'audio/audio_output_ipc.h',
121 'audio/audio_output_proxy.cc',
122 'audio/audio_output_proxy.h',
123 'audio/audio_output_resampler.cc',
124 'audio/audio_output_resampler.h',
125 'audio/audio_output_stream_sink.cc',
126 'audio/audio_output_stream_sink.h',
127 'audio/audio_power_monitor.cc',
128 'audio/audio_power_monitor.h',
129 'audio/audio_source_diverter.h',
130 'audio/clockless_audio_sink.cc',
131 'audio/clockless_audio_sink.h',
132 'audio/cras/audio_manager_cras.cc',
133 'audio/cras/audio_manager_cras.h',
134 'audio/cras/cras_input.cc',
135 'audio/cras/cras_input.h',
136 'audio/cras/cras_unified.cc',
137 'audio/cras/cras_unified.h',
138 'audio/fake_audio_input_stream.cc',
139 'audio/fake_audio_input_stream.h',
140 'audio/fake_audio_log_factory.cc',
141 'audio/fake_audio_log_factory.h',
142 'audio/fake_audio_manager.cc',
143 'audio/fake_audio_manager.h',
144 'audio/fake_audio_output_stream.cc',
145 'audio/fake_audio_output_stream.h',
146 'audio/fake_audio_worker.cc',
147 'audio/fake_audio_worker.h',
148 'audio/linux/audio_manager_linux.cc',
149 'audio/mac/audio_auhal_mac.cc',
150 'audio/mac/audio_auhal_mac.h',
151 'audio/mac/audio_device_listener_mac.cc',
152 'audio/mac/audio_device_listener_mac.h',
153 'audio/mac/audio_input_mac.cc',
154 'audio/mac/audio_input_mac.h',
155 'audio/mac/audio_low_latency_input_mac.cc',
156 'audio/mac/audio_low_latency_input_mac.h',
157 'audio/mac/audio_manager_mac.cc',
158 'audio/mac/audio_manager_mac.h',
159 'audio/null_audio_sink.cc',
160 'audio/null_audio_sink.h',
161 'audio/openbsd/audio_manager_openbsd.cc',
162 'audio/openbsd/audio_manager_openbsd.h',
163 'audio/pulse/audio_manager_pulse.cc',
164 'audio/pulse/audio_manager_pulse.h',
165 'audio/pulse/pulse_input.cc',
166 'audio/pulse/pulse_input.h',
167 'audio/pulse/pulse_output.cc',
168 'audio/pulse/pulse_output.h',
169 'audio/pulse/pulse_util.cc',
170 'audio/pulse/pulse_util.h',
171 'audio/sample_rates.cc',
172 'audio/sample_rates.h',
173 'audio/scoped_task_runner_observer.cc',
174 'audio/scoped_task_runner_observer.h',
175 'audio/simple_sources.cc',
176 'audio/simple_sources.h',
177 'audio/sounds/audio_stream_handler.cc',
178 'audio/sounds/audio_stream_handler.h',
179 'audio/sounds/sounds_manager.cc',
180 'audio/sounds/sounds_manager.h',
181 'audio/sounds/wav_audio_handler.cc',
182 'audio/sounds/wav_audio_handler.h',
183 'audio/virtual_audio_input_stream.cc',
184 'audio/virtual_audio_input_stream.h',
185 'audio/virtual_audio_output_stream.cc',
186 'audio/virtual_audio_output_stream.h',
187 'audio/win/audio_device_listener_win.cc',
188 'audio/win/audio_device_listener_win.h',
189 'audio/win/audio_low_latency_input_win.cc',
190 'audio/win/audio_low_latency_input_win.h',
191 'audio/win/audio_low_latency_output_win.cc',
192 'audio/win/audio_low_latency_output_win.h',
193 'audio/win/audio_manager_win.cc',
194 'audio/win/audio_manager_win.h',
195 'audio/win/avrt_wrapper_win.cc',
196 'audio/win/avrt_wrapper_win.h',
197 'audio/win/core_audio_util_win.cc',
198 'audio/win/core_audio_util_win.h',
199 'audio/win/device_enumeration_win.cc',
200 'audio/win/device_enumeration_win.h',
201 'audio/win/wavein_input_win.cc',
202 'audio/win/wavein_input_win.h',
203 'audio/win/waveout_output_win.cc',
204 'audio/win/waveout_output_win.h',
205 'base/audio_block_fifo.cc',
206 'base/audio_block_fifo.h',
207 'base/audio_buffer.cc',
208 'base/audio_buffer.h',
209 'base/audio_buffer_converter.cc',
210 'base/audio_buffer_converter.h',
211 'base/audio_buffer_queue.cc',
212 'base/audio_buffer_queue.h',
213 'base/audio_capturer_source.h',
214 'base/audio_converter.cc',
215 'base/audio_converter.h',
216 'base/audio_decoder.cc',
217 'base/audio_decoder.h',
218 'base/audio_decoder_config.cc',
219 'base/audio_decoder_config.h',
220 'base/audio_discard_helper.cc',
221 'base/audio_discard_helper.h',
222 'base/audio_fifo.cc',
224 'base/audio_hardware_config.cc',
225 'base/audio_hardware_config.h',
226 'base/audio_hash.cc',
228 'base/audio_pull_fifo.cc',
229 'base/audio_pull_fifo.h',
230 'base/audio_renderer.cc',
231 'base/audio_renderer.h',
232 'base/audio_renderer_mixer.cc',
233 'base/audio_renderer_mixer.h',
234 'base/audio_renderer_mixer_input.cc',
235 'base/audio_renderer_mixer_input.h',
236 'base/audio_renderer_sink.h',
237 'base/audio_shifter.cc',
238 'base/audio_shifter.h',
239 'base/audio_splicer.cc',
240 'base/audio_splicer.h',
241 'base/audio_timestamp_helper.cc',
242 'base/audio_timestamp_helper.h',
243 'base/audio_video_metadata_extractor.cc',
244 'base/audio_video_metadata_extractor.h',
245 'base/bind_to_current_loop.h',
246 'base/bit_reader.cc',
248 'base/bit_reader_core.cc',
249 'base/bit_reader_core.h',
250 'base/bitstream_buffer.h',
251 'base/buffering_state.h',
253 'base/byte_queue.cc',
255 'base/cdm_callback_promise.cc',
256 'base/cdm_callback_promise.h',
258 'base/cdm_context.cc',
259 'base/cdm_context.h',
260 'base/cdm_factory.cc',
261 'base/cdm_factory.h',
262 'base/cdm_key_information.cc',
263 'base/cdm_key_information.h',
264 'base/cdm_promise.cc',
265 'base/cdm_promise.h',
266 'base/cdm_promise_adapter.cc',
267 'base/cdm_promise_adapter.h',
268 'base/channel_mixer.cc',
269 'base/channel_mixer.h',
270 'base/channel_mixing_matrix.cc',
271 'base/channel_mixing_matrix.h',
272 'base/container_names.cc',
273 'base/container_names.h',
274 'base/data_buffer.cc',
275 'base/data_buffer.h',
276 'base/data_source.cc',
277 'base/data_source.h',
278 'base/decoder_buffer.cc',
279 'base/decoder_buffer.h',
280 'base/decoder_buffer_queue.cc',
281 'base/decoder_buffer_queue.h',
282 'base/decrypt_config.cc',
283 'base/decrypt_config.h',
288 'base/demuxer_stream.cc',
289 'base/demuxer_stream.h',
290 'base/demuxer_stream_provider.cc',
291 'base/demuxer_stream_provider.h',
294 'base/eme_constants.h',
295 'base/key_system_info.cc',
296 'base/key_system_info.h',
297 'base/key_systems.cc',
298 'base/key_systems.h',
299 'base/key_systems_support_uma.cc',
300 'base/key_systems_support_uma.h',
301 'base/keyboard_event_counter.cc',
302 'base/keyboard_event_counter.h',
303 'base/mac/avfoundation_glue.h',
304 'base/mac/avfoundation_glue.mm',
305 'base/mac/coremedia_glue.h',
306 'base/mac/coremedia_glue.mm',
307 'base/mac/corevideo_glue.h',
308 'base/mac/video_frame_mac.cc',
309 'base/mac/video_frame_mac.h',
310 'base/mac/videotoolbox_glue.h',
311 'base/mac/videotoolbox_glue.mm',
314 'base/media_client.cc',
315 'base/media_client.h',
316 'base/media_file_checker.cc',
317 'base/media_file_checker.h',
318 'base/media_keys.cc',
322 'base/media_log_event.h',
323 'base/media_permission.cc',
324 'base/media_permission.h',
325 'base/media_posix.cc',
326 'base/media_switches.cc',
327 'base/media_switches.h',
331 'base/moving_average.cc',
332 'base/moving_average.h',
333 'base/multi_channel_resampler.cc',
334 'base/multi_channel_resampler.h',
337 'base/pipeline_status.h',
338 'base/player_tracker.cc',
339 'base/player_tracker.h',
344 'base/renderer_factory.cc',
345 'base/renderer_factory.h',
346 'base/sample_format.cc',
347 'base/sample_format.h',
348 'base/seekable_buffer.cc',
349 'base/seekable_buffer.h',
350 'base/serial_runner.cc',
351 'base/serial_runner.h',
352 'base/simd/convert_rgb_to_yuv.h',
353 'base/simd/convert_rgb_to_yuv_c.cc',
354 'base/simd/convert_yuv_to_rgb.h',
355 'base/simd/convert_yuv_to_rgb_c.cc',
356 'base/simd/filter_yuv.h',
357 'base/simd/filter_yuv_c.cc',
358 'base/sinc_resampler.cc',
359 'base/sinc_resampler.h',
360 'base/stream_parser.cc',
361 'base/stream_parser.h',
362 'base/stream_parser_buffer.cc',
363 'base/stream_parser_buffer.h',
366 'base/text_ranges.cc',
367 'base/text_ranges.h',
368 'base/text_renderer.cc',
369 'base/text_renderer.h',
371 'base/text_track_config.cc',
372 'base/text_track_config.h',
373 'base/time_delta_interpolator.cc',
374 'base/time_delta_interpolator.h',
375 'base/time_source.h',
376 'base/user_input_monitor.cc',
377 'base/user_input_monitor.h',
378 'base/user_input_monitor_linux.cc',
379 'base/user_input_monitor_mac.cc',
380 'base/user_input_monitor_win.cc',
381 'base/video_capture_types.cc',
382 'base/video_capture_types.h',
383 'base/video_capturer_source.cc',
384 'base/video_capturer_source.h',
385 'base/video_decoder.cc',
386 'base/video_decoder.h',
387 'base/video_decoder_config.cc',
388 'base/video_decoder_config.h',
389 'base/video_frame.cc',
390 'base/video_frame.h',
391 'base/video_frame_metadata.cc',
392 'base/video_frame_metadata.h',
393 'base/video_frame_pool.cc',
394 'base/video_frame_pool.h',
395 'base/video_renderer.cc',
396 'base/video_renderer.h',
397 'base/video_rotation.h',
398 'base/video_util.cc',
400 'base/wall_clock_time_source.cc',
401 'base/wall_clock_time_source.h',
402 'base/win/mf_initializer.cc',
403 'base/win/mf_initializer.h',
404 'base/yuv_convert.cc',
405 'base/yuv_convert.h',
406 'blink/skcanvas_video_renderer.cc',
407 'blink/skcanvas_video_renderer.h',
408 'cdm/aes_decryptor.cc',
409 'cdm/aes_decryptor.h',
410 'cdm/default_cdm_factory.cc',
411 'cdm/default_cdm_factory.h',
412 'cdm/json_web_key.cc',
413 'cdm/json_web_key.h',
414 'cdm/key_system_names.cc',
415 'cdm/key_system_names.h',
416 'cdm/player_tracker_impl.cc',
417 'cdm/player_tracker_impl.h',
418 'cdm/proxy_decryptor.cc',
419 'cdm/proxy_decryptor.h',
420 'ffmpeg/ffmpeg_common.cc',
421 'ffmpeg/ffmpeg_common.h',
422 'ffmpeg/ffmpeg_deleters.h',
423 'filters/audio_clock.cc',
424 'filters/audio_clock.h',
425 'filters/audio_file_reader.cc',
426 'filters/audio_file_reader.h',
427 'filters/audio_renderer_algorithm.cc',
428 'filters/audio_renderer_algorithm.h',
429 'filters/blocking_url_protocol.cc',
430 'filters/blocking_url_protocol.h',
431 'filters/chunk_demuxer.cc',
432 'filters/chunk_demuxer.h',
433 'filters/context_3d.h',
434 'filters/decoder_selector.cc',
435 'filters/decoder_selector.h',
436 'filters/decoder_stream.cc',
437 'filters/decoder_stream.h',
438 'filters/decoder_stream_traits.cc',
439 'filters/decoder_stream_traits.h',
440 'filters/decrypting_audio_decoder.cc',
441 'filters/decrypting_audio_decoder.h',
442 'filters/decrypting_demuxer_stream.cc',
443 'filters/decrypting_demuxer_stream.h',
444 'filters/decrypting_video_decoder.cc',
445 'filters/decrypting_video_decoder.h',
446 'filters/default_media_permission.cc',
447 'filters/default_media_permission.h',
448 'filters/ffmpeg_audio_decoder.cc',
449 'filters/ffmpeg_audio_decoder.h',
450 'filters/ffmpeg_bitstream_converter.h',
451 'filters/ffmpeg_demuxer.cc',
452 'filters/ffmpeg_demuxer.h',
453 'filters/ffmpeg_glue.cc',
454 'filters/ffmpeg_glue.h',
455 'filters/ffmpeg_video_decoder.cc',
456 'filters/ffmpeg_video_decoder.h',
457 'filters/file_data_source.cc',
458 'filters/file_data_source.h',
459 'filters/frame_processor.cc',
460 'filters/frame_processor.h',
461 'filters/gpu_video_decoder.cc',
462 'filters/gpu_video_decoder.h',
463 'filters/h264_bit_reader.cc',
464 'filters/h264_bit_reader.h',
465 'filters/h264_parser.cc',
466 'filters/h264_parser.h',
467 'filters/in_memory_url_protocol.cc',
468 'filters/in_memory_url_protocol.h',
469 'filters/jpeg_parser.cc',
470 'filters/jpeg_parser.h',
471 'filters/opus_audio_decoder.cc',
472 'filters/opus_audio_decoder.h',
473 'filters/source_buffer_range.cc',
474 'filters/source_buffer_range.h',
475 'filters/source_buffer_stream.cc',
476 'filters/source_buffer_stream.h',
477 'filters/stream_parser_factory.cc',
478 'filters/stream_parser_factory.h',
479 'filters/video_cadence_estimator.cc',
480 'filters/video_cadence_estimator.h',
481 'filters/video_renderer_algorithm.cc',
482 'filters/video_renderer_algorithm.h',
483 'filters/vp8_bool_decoder.cc',
484 'filters/vp8_bool_decoder.h',
485 'filters/vp8_parser.cc',
486 'filters/vp8_parser.h',
487 'filters/vpx_video_decoder.cc',
488 'filters/vpx_video_decoder.h',
489 'filters/webvtt_util.h',
490 'filters/wsola_internals.cc',
491 'filters/wsola_internals.h',
492 'formats/common/offset_byte_queue.cc',
493 'formats/common/offset_byte_queue.h',
494 'formats/webm/webm_audio_client.cc',
495 'formats/webm/webm_audio_client.h',
496 'formats/webm/webm_cluster_parser.cc',
497 'formats/webm/webm_cluster_parser.h',
498 'formats/webm/webm_constants.cc',
499 'formats/webm/webm_constants.h',
500 'formats/webm/webm_content_encodings.cc',
501 'formats/webm/webm_content_encodings.h',
502 'formats/webm/webm_content_encodings_client.cc',
503 'formats/webm/webm_content_encodings_client.h',
504 'formats/webm/webm_crypto_helpers.cc',
505 'formats/webm/webm_crypto_helpers.h',
506 'formats/webm/webm_info_parser.cc',
507 'formats/webm/webm_info_parser.h',
508 'formats/webm/webm_parser.cc',
509 'formats/webm/webm_parser.h',
510 'formats/webm/webm_stream_parser.cc',
511 'formats/webm/webm_stream_parser.h',
512 'formats/webm/webm_tracks_parser.cc',
513 'formats/webm/webm_tracks_parser.h',
514 'formats/webm/webm_video_client.cc',
515 'formats/webm/webm_video_client.h',
516 'formats/webm/webm_webvtt_parser.cc',
517 'ozone/media_ozone_platform.cc',
518 'ozone/media_ozone_platform.h',
519 'renderers/audio_renderer_impl.cc',
520 'renderers/audio_renderer_impl.h',
521 'renderers/default_renderer_factory.cc',
522 'renderers/default_renderer_factory.h',
523 'renderers/gpu_video_accelerator_factories.h',
524 'renderers/renderer_impl.cc',
525 'renderers/renderer_impl.h',
526 'renderers/video_renderer_impl.cc',
527 'renderers/video_renderer_impl.h',
528 'video/capture/android/video_capture_device_android.cc',
529 'video/capture/android/video_capture_device_android.h',
530 'video/capture/android/video_capture_device_factory_android.cc',
531 'video/capture/android/video_capture_device_factory_android.h',
532 'video/capture/fake_video_capture_device.cc',
533 'video/capture/fake_video_capture_device.h',
534 'video/capture/fake_video_capture_device_factory.cc',
535 'video/capture/fake_video_capture_device_factory.h',
536 'video/capture/file_video_capture_device.cc',
537 'video/capture/file_video_capture_device.h',
538 'video/capture/file_video_capture_device_factory.cc',
539 'video/capture/file_video_capture_device_factory.h',
540 'video/capture/linux/v4l2_capture_delegate.cc',
541 'video/capture/linux/v4l2_capture_delegate.h',
542 'video/capture/linux/v4l2_capture_delegate_multi_plane.cc',
543 'video/capture/linux/v4l2_capture_delegate_multi_plane.h',
544 'video/capture/linux/v4l2_capture_delegate_single_plane.cc',
545 'video/capture/linux/v4l2_capture_delegate_single_plane.h',
546 'video/capture/linux/video_capture_device_chromeos.cc',
547 'video/capture/linux/video_capture_device_chromeos.h',
548 'video/capture/linux/video_capture_device_factory_linux.cc',
549 'video/capture/linux/video_capture_device_factory_linux.h',
550 'video/capture/linux/video_capture_device_linux.cc',
551 'video/capture/linux/video_capture_device_linux.h',
552 'video/capture/mac/platform_video_capturing_mac.h',
553 'video/capture/mac/video_capture_device_avfoundation_mac.h',
554 'video/capture/mac/video_capture_device_avfoundation_mac.mm',
555 'video/capture/mac/video_capture_device_decklink_mac.h',
556 'video/capture/mac/video_capture_device_decklink_mac.mm',
557 'video/capture/mac/video_capture_device_factory_mac.h',
558 'video/capture/mac/video_capture_device_factory_mac.mm',
559 'video/capture/mac/video_capture_device_mac.h',
560 'video/capture/mac/video_capture_device_mac.mm',
561 'video/capture/mac/video_capture_device_qtkit_mac.h',
562 'video/capture/mac/video_capture_device_qtkit_mac.mm',
563 'video/capture/video_capture_device.cc',
564 'video/capture/video_capture_device.h',
565 'video/capture/video_capture_device_factory.cc',
566 'video/capture/video_capture_device_factory.h',
567 'video/capture/video_capture_device_info.cc',
568 'video/capture/video_capture_device_info.h',
569 'video/capture/win/capability_list_win.cc',
570 'video/capture/win/capability_list_win.h',
571 'video/capture/win/filter_base_win.cc',
572 'video/capture/win/filter_base_win.h',
573 'video/capture/win/pin_base_win.cc',
574 'video/capture/win/pin_base_win.h',
575 'video/capture/win/sink_filter_observer_win.h',
576 'video/capture/win/sink_filter_win.cc',
577 'video/capture/win/sink_filter_win.h',
578 'video/capture/win/sink_input_pin_win.cc',
579 'video/capture/win/sink_input_pin_win.h',
580 'video/capture/win/video_capture_device_factory_win.cc',
581 'video/capture/win/video_capture_device_factory_win.h',
582 'video/capture/win/video_capture_device_mf_win.cc',
583 'video/capture/win/video_capture_device_mf_win.h',
584 'video/capture/win/video_capture_device_win.cc',
585 'video/capture/win/video_capture_device_win.h',
586 'video/fake_video_encode_accelerator.cc',
587 'video/fake_video_encode_accelerator.h',
588 'video/gpu_memory_buffer_video_frame_pool.cc',
589 'video/gpu_memory_buffer_video_frame_pool.h',
594 'video/video_decode_accelerator.cc',
595 'video/video_decode_accelerator.h',
596 'video/video_encode_accelerator.cc',
597 'video/video_encode_accelerator.h',
598 'formats/webm/webm_webvtt_parser.h'
600 'direct_dependent_settings': {
611 ['media_use_ffmpeg==1', {
613 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
615 }, { # media_use_ffmpeg==0
616 # Exclude the sources that depend on ffmpeg.
618 'base/audio_video_metadata_extractor.cc',
619 'base/audio_video_metadata_extractor.h',
620 'base/container_names.cc',
621 'base/container_names.h',
622 'base/media_file_checker.cc',
623 'base/media_file_checker.h',
624 'base/media_posix.cc',
625 'ffmpeg/ffmpeg_common.cc',
626 'ffmpeg/ffmpeg_common.h',
627 'filters/audio_file_reader.cc',
628 'filters/audio_file_reader.h',
629 'filters/blocking_url_protocol.cc',
630 'filters/blocking_url_protocol.h',
631 'filters/ffmpeg_aac_bitstream_converter.cc',
632 'filters/ffmpeg_aac_bitstream_converter.h',
633 'filters/ffmpeg_audio_decoder.cc',
634 'filters/ffmpeg_audio_decoder.h',
635 'filters/ffmpeg_bitstream_converter.h',
636 'filters/ffmpeg_demuxer.cc',
637 'filters/ffmpeg_demuxer.h',
638 'filters/ffmpeg_glue.cc',
639 'filters/ffmpeg_glue.h',
640 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc',
641 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.h',
642 'filters/ffmpeg_video_decoder.cc',
643 'filters/ffmpeg_video_decoder.h',
644 'filters/in_memory_url_protocol.cc',
645 'filters/in_memory_url_protocol.h',
648 'MEDIA_DISABLE_FFMPEG',
650 'direct_dependent_settings': {
652 'MEDIA_DISABLE_FFMPEG',
656 ['media_use_libvpx==1', {
658 '<(DEPTH)/third_party/libvpx/libvpx.gyp:libvpx',
660 }, { # media_use_libvpx==0
662 'MEDIA_DISABLE_LIBVPX',
664 'direct_dependent_settings': {
666 'MEDIA_DISABLE_LIBVPX',
669 # Exclude the sources that depend on libvpx.
671 'filters/vpx_video_decoder.cc',
672 'filters/vpx_video_decoder.h',
675 ['enable_browser_cdms==1', {
677 'base/browser_cdm.cc',
678 'base/browser_cdm.h',
679 'base/browser_cdm_factory.cc',
680 'base/browser_cdm_factory.h',
685 'media_android_jni_headers',
688 'video_capture_android_jni_headers',
693 'base/media_stub.cc',
696 'filters/opus_audio_decoder.cc',
697 'filters/opus_audio_decoder.h',
698 'renderers/default_renderer_factory.cc',
699 'renderers/default_renderer_factory.h',
702 'DISABLE_USER_INPUT_MONITOR',
705 # For VaapiVideoEncodeAccelerator.
706 ['target_arch != "arm" and chromeos == 1', {
708 'filters/h264_bitstream_buffer.cc',
709 'filters/h264_bitstream_buffer.h',
723 ['exclude', '(^|/)alsa/'],
724 ['exclude', '_alsa\\.(h|cc)$'],
729 'audio/openbsd/audio_manager_openbsd.cc',
730 'audio/openbsd/audio_manager_openbsd.h',
732 }, { # else: openbsd==1
734 'video/capture/linux/v4l2_capture_delegate_multi_plane.cc',
735 'video/capture/linux/v4l2_capture_delegate_multi_plane.h',
742 '../build/linux/system.gyp:x11',
743 '../build/linux/system.gyp:xdamage',
744 '../build/linux/system.gyp:xext',
745 '../build/linux/system.gyp:xfixes',
746 '../build/linux/system.gyp:xtst',
747 '../ui/gfx/x/gfx_x11.gyp:gfx_x11',
749 }, { # else: use_x11==0
751 'base/user_input_monitor_linux.cc',
754 'DISABLE_USER_INPUT_MONITOR',
759 '<!@(<(pkg-config) --cflags libcras)',
763 '<!@(<(pkg-config) --libs libcras)',
769 }, { # else: use_cras==0
771 'audio/cras/audio_manager_cras.cc',
772 'audio/cras/audio_manager_cras.h',
773 'audio/cras/cras_input.cc',
774 'audio/cras/cras_input.h',
775 'audio/cras/cras_unified.cc',
776 'audio/cras/cras_unified.h',
783 'platform_list_txt_file': '<(SHARED_INTERMEDIATE_DIR)/ui/ozone/platform_list.txt',
784 'constructor_list_cc_file': '<(INTERMEDIATE_DIR)/media/ozone/constructor_list.cc',
787 # Used for the generated listing header (ui/ozone/platform_list.h)
788 '<(SHARED_INTERMEDIATE_DIR)',
791 '<(constructor_list_cc_file)',
794 '../ui/ozone/ozone.gyp:ozone',
798 # Ozone platform objects are auto-generated using similar
799 # patterns for naming and classes constructors. Here we build the
800 # object MediaOzonePlatform.
801 'action_name': 'generate_constructor_list',
803 'generator_path': '../ui/ozone/generate_constructor_list.py',
807 '<(platform_list_txt_file)',
810 '<(constructor_list_cc_file)',
815 '--platform_list=<(platform_list_txt_file)',
816 '--output_cc=<(constructor_list_cc_file)',
818 '--typename=MediaOzonePlatform',
819 '--include="media/ozone/media_ozone_platform.h"'
825 'ozone/media_ozone_platform.cc',
826 'ozone/media_ozone_platform.h',
831 'audio/cras/audio_manager_cras.cc',
832 'audio/cras/audio_manager_cras.h',
833 'audio/cras/cras_input.cc',
834 'audio/cras/cras_input.h',
835 'audio/cras/cras_unified.cc',
836 'audio/cras/cras_unified.h',
839 ['use_pulseaudio==1', {
841 '<!@(<(pkg-config) --cflags libpulse)',
847 ['linux_link_pulseaudio==0', {
852 'generate_stubs_script': '../tools/generate_stubs/generate_stubs.py',
853 'extra_header': 'audio/pulse/pulse_stub_header.fragment',
854 'sig_files': ['audio/pulse/pulse.sigs'],
855 'outfile_type': 'posix_stubs',
856 'stubs_filename_root': 'pulse_stubs',
857 'project_path': 'media/audio/pulse',
858 'intermediate_dir': '<(INTERMEDIATE_DIR)',
859 'output_root': '<(SHARED_INTERMEDIATE_DIR)/pulse',
866 'action_name': 'generate_stubs',
868 '<(generate_stubs_script)',
873 '<(intermediate_dir)/<(stubs_filename_root).cc',
874 '<(output_root)/<(project_path)/<(stubs_filename_root).h',
877 '<(generate_stubs_script)',
878 '-i', '<(intermediate_dir)',
879 '-o', '<(output_root)/<(project_path)',
880 '-t', '<(outfile_type)',
881 '-e', '<(extra_header)',
882 '-s', '<(stubs_filename_root)',
883 '-p', '<(project_path)',
886 'process_outputs_as_sources': 1,
887 'message': 'Generating Pulse stubs for dynamic loading',
891 # Linux/Solaris need libdl for dlopen() and friends.
892 ['OS=="linux" or OS=="solaris"', {
900 }, { # else: linux_link_pulseaudio==0
903 '<!@(<(pkg-config) --libs-only-L --libs-only-other libpulse)',
906 '<!@(<(pkg-config) --libs-only-l libpulse)',
911 }, { # else: use_pulseaudio==0
913 'audio/pulse/audio_manager_pulse.cc',
914 'audio/pulse/audio_manager_pulse.h',
915 'audio/pulse/pulse_input.cc',
916 'audio/pulse/pulse_input.h',
917 'audio/pulse/pulse_output.cc',
918 'audio/pulse/pulse_output.h',
919 'audio/pulse/pulse_util.cc',
920 'audio/pulse/pulse_util.h',
925 '../third_party/decklink/decklink.gyp:decklink',
929 '$(SDKROOT)/System/Library/Frameworks/AudioToolbox.framework',
930 '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework',
931 '$(SDKROOT)/System/Library/Frameworks/CoreAudio.framework',
932 '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework',
933 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
934 '$(SDKROOT)/System/Library/Frameworks/QTKit.framework',
947 # Specify delayload for media.dll.
957 # Specify delayload for components that link with media.lib.
958 'all_dependent_settings': {
969 # TODO(wolenetz): Fix size_t to int truncations in win64. See
970 # http://crbug.com/171009
972 ['target_arch=="x64"', {
973 'msvs_disabled_warnings': [ 4267, ],
977 ['proprietary_codecs==1', {
981 'filters/ffmpeg_aac_bitstream_converter.cc',
982 'filters/ffmpeg_aac_bitstream_converter.h',
983 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc',
984 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.h',
985 'filters/h264_to_annex_b_bitstream_converter.cc',
986 'filters/h264_to_annex_b_bitstream_converter.h',
987 'formats/mp2t/es_adapter_video.cc',
988 'formats/mp2t/es_adapter_video.h',
989 'formats/mp2t/es_parser.cc',
990 'formats/mp2t/es_parser.h',
991 'formats/mp2t/es_parser_adts.cc',
992 'formats/mp2t/es_parser_adts.h',
993 'formats/mp2t/es_parser_h264.cc',
994 'formats/mp2t/es_parser_h264.h',
995 'formats/mp2t/es_parser_mpeg1audio.cc',
996 'formats/mp2t/es_parser_mpeg1audio.h',
997 'formats/mp2t/mp2t_common.h',
998 'formats/mp2t/mp2t_stream_parser.cc',
999 'formats/mp2t/mp2t_stream_parser.h',
1000 'formats/mp2t/timestamp_unroller.cc',
1001 'formats/mp2t/timestamp_unroller.h',
1002 'formats/mp2t/ts_packet.cc',
1003 'formats/mp2t/ts_packet.h',
1004 'formats/mp2t/ts_section.h',
1005 'formats/mp2t/ts_section_pat.cc',
1006 'formats/mp2t/ts_section_pat.h',
1007 'formats/mp2t/ts_section_pes.cc',
1008 'formats/mp2t/ts_section_pes.h',
1009 'formats/mp2t/ts_section_pmt.cc',
1010 'formats/mp2t/ts_section_pmt.h',
1011 'formats/mp2t/ts_section_psi.cc',
1012 'formats/mp2t/ts_section_psi.h',
1013 'formats/mp4/aac.cc',
1014 'formats/mp4/aac.h',
1015 'formats/mp4/avc.cc',
1016 'formats/mp4/avc.h',
1017 'formats/mp4/box_definitions.cc',
1018 'formats/mp4/box_definitions.h',
1019 'formats/mp4/box_reader.cc',
1020 'formats/mp4/box_reader.h',
1021 'formats/mp4/cenc.cc',
1022 'formats/mp4/cenc.h',
1023 'formats/mp4/es_descriptor.cc',
1024 'formats/mp4/es_descriptor.h',
1025 'formats/mp4/mp4_stream_parser.cc',
1026 'formats/mp4/mp4_stream_parser.h',
1027 'formats/mp4/sample_to_group_iterator.cc',
1028 'formats/mp4/sample_to_group_iterator.h',
1029 'formats/mp4/track_run_iterator.cc',
1030 'formats/mp4/track_run_iterator.h',
1031 'formats/mpeg/adts_constants.cc',
1032 'formats/mpeg/adts_constants.h',
1033 'formats/mpeg/adts_stream_parser.cc',
1034 'formats/mpeg/adts_stream_parser.h',
1035 'formats/mpeg/mpeg1_audio_stream_parser.cc',
1036 'formats/mpeg/mpeg1_audio_stream_parser.h',
1037 'formats/mpeg/mpeg_audio_stream_parser_base.cc',
1038 'formats/mpeg/mpeg_audio_stream_parser_base.h',
1041 ['target_arch=="ia32" or target_arch=="x64"', {
1047 'base/simd/convert_yuv_to_rgb_x86.cc',
1050 ['OS!="linux" and OS!="win"', {
1052 'base/keyboard_event_counter.cc',
1053 'base/keyboard_event_counter.h',
1056 ['use_low_memory_buffer==1', {
1058 'filters/source_buffer_platform.h',
1059 'filters/source_buffer_platform_lowmem.cc',
1061 }, { # 'use_low_memory_buffer==0'
1063 'filters/source_buffer_platform.cc',
1064 'filters/source_buffer_platform.h',
1068 'target_conditions': [
1069 ['OS == "ios" and _toolset != "host"', {
1071 # Pull in specific Mac files for iOS (which have been filtered out
1072 # by file name rules).
1073 ['include', '^base/mac/coremedia_glue\\.h$'],
1074 ['include', '^base/mac/coremedia_glue\\.mm$'],
1075 ['include', '^base/mac/corevideo_glue\\.h$'],
1076 ['include', '^base/mac/videotoolbox_glue\\.h$'],
1077 ['include', '^base/mac/videotoolbox_glue\\.mm$'],
1078 ['include', '^base/mac/video_frame_mac\\.h$'],
1079 ['include', '^base/mac/video_frame_mac\\.cc$'],
1082 ], # target_conditions
1085 # GN version: //media:media_unittests
1086 'target_name': 'media_unittests',
1087 'type': '<(gtest_target_type)',
1089 'audio_test_config',
1091 'media_test_support',
1092 'shared_memory_support',
1093 '../base/base.gyp:base',
1094 '../base/base.gyp:base_i18n',
1095 '../base/base.gyp:test_support_base',
1096 '../gpu/gpu.gyp:command_buffer_common',
1097 '../gpu/gpu.gyp:gpu_unittest_utils',
1098 '../skia/skia.gyp:skia',
1099 '../testing/gmock.gyp:gmock',
1100 '../testing/gtest.gyp:gtest',
1101 '../third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
1102 '../ui/gfx/gfx.gyp:gfx',
1103 '../ui/gfx/gfx.gyp:gfx_geometry',
1104 '../ui/gfx/gfx.gyp:gfx_test_support',
1105 '../url/url.gyp:url_lib',
1108 'base/android/media_codec_bridge_unittest.cc',
1109 'base/android/media_drm_bridge_unittest.cc',
1110 'base/android/media_source_player_unittest.cc',
1111 'base/audio_block_fifo_unittest.cc',
1112 'base/audio_buffer_converter_unittest.cc',
1113 'base/audio_buffer_queue_unittest.cc',
1114 'base/audio_buffer_unittest.cc',
1115 'base/audio_bus_unittest.cc',
1116 'base/audio_converter_unittest.cc',
1117 'base/audio_discard_helper_unittest.cc',
1118 'base/audio_fifo_unittest.cc',
1119 'base/audio_hardware_config_unittest.cc',
1120 'base/audio_hash_unittest.cc',
1121 'base/audio_pull_fifo_unittest.cc',
1122 'base/audio_renderer_mixer_input_unittest.cc',
1123 'base/audio_renderer_mixer_unittest.cc',
1124 'base/audio_shifter_unittest.cc',
1125 'base/audio_splicer_unittest.cc',
1126 'base/audio_timestamp_helper_unittest.cc',
1127 'base/audio_video_metadata_extractor_unittest.cc',
1128 'base/bind_to_current_loop_unittest.cc',
1129 'base/bit_reader_unittest.cc',
1130 'base/callback_holder.h',
1131 'base/callback_holder_unittest.cc',
1132 'base/channel_mixer_unittest.cc',
1133 'base/channel_mixing_matrix_unittest.cc',
1134 'base/container_names_unittest.cc',
1135 'base/data_buffer_unittest.cc',
1136 'base/decoder_buffer_queue_unittest.cc',
1137 'base/decoder_buffer_unittest.cc',
1138 'base/djb2_unittest.cc',
1139 'base/fake_demuxer_stream_unittest.cc',
1140 'base/gmock_callback_support_unittest.cc',
1141 'base/key_systems_unittest.cc',
1142 'base/mac/video_frame_mac_unittests.cc',
1143 'base/media_file_checker_unittest.cc',
1144 'base/mime_util_unittest.cc',
1145 'base/moving_average_unittest.cc',
1146 'base/multi_channel_resampler_unittest.cc',
1147 'base/null_video_sink_unittest.cc',
1148 'base/pipeline_unittest.cc',
1149 'base/ranges_unittest.cc',
1150 'base/run_all_unittests.cc',
1151 'base/seekable_buffer_unittest.cc',
1152 'base/serial_runner_unittest.cc',
1153 'base/sinc_resampler_unittest.cc',
1154 'base/stream_parser_unittest.cc',
1155 'base/text_ranges_unittest.cc',
1156 'base/text_renderer_unittest.cc',
1157 'base/time_delta_interpolator_unittest.cc',
1158 'base/user_input_monitor_unittest.cc',
1159 'base/vector_math_testing.h',
1160 'base/vector_math_unittest.cc',
1161 'base/video_frame_pool_unittest.cc',
1162 'base/video_frame_unittest.cc',
1163 'base/video_util_unittest.cc',
1164 'base/wall_clock_time_source_unittest.cc',
1165 'base/yuv_convert_unittest.cc',
1166 'blink/skcanvas_video_renderer_unittest.cc',
1167 'cdm/aes_decryptor_unittest.cc',
1168 'cdm/json_web_key_unittest.cc',
1169 'ffmpeg/ffmpeg_common_unittest.cc',
1170 'filters/audio_clock_unittest.cc',
1171 'filters/audio_decoder_selector_unittest.cc',
1172 'filters/audio_decoder_unittest.cc',
1173 'filters/audio_file_reader_unittest.cc',
1174 'filters/audio_renderer_algorithm_unittest.cc',
1175 'filters/blocking_url_protocol_unittest.cc',
1176 'filters/chunk_demuxer_unittest.cc',
1177 'filters/decrypting_audio_decoder_unittest.cc',
1178 'filters/decrypting_demuxer_stream_unittest.cc',
1179 'filters/decrypting_video_decoder_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/jpeg_parser_unittest.cc',
1192 'filters/source_buffer_stream_unittest.cc',
1193 'filters/video_cadence_estimator_unittest.cc',
1194 'filters/video_decoder_selector_unittest.cc',
1195 'filters/video_frame_stream_unittest.cc',
1196 'filters/video_renderer_algorithm_unittest.cc',
1197 'filters/vp8_bool_decoder_unittest.cc',
1198 'filters/vp8_parser_unittest.cc',
1199 'formats/common/offset_byte_queue_unittest.cc',
1200 'formats/webm/cluster_builder.cc',
1201 'formats/webm/cluster_builder.h',
1202 'formats/webm/opus_packet_builder.cc',
1203 'formats/webm/opus_packet_builder.h',
1204 'formats/webm/tracks_builder.cc',
1205 'formats/webm/tracks_builder.h',
1206 'formats/webm/webm_cluster_parser_unittest.cc',
1207 'formats/webm/webm_content_encodings_client_unittest.cc',
1208 'formats/webm/webm_parser_unittest.cc',
1209 'formats/webm/webm_tracks_parser_unittest.cc',
1210 'formats/webm/webm_webvtt_parser_unittest.cc',
1211 'renderers/audio_renderer_impl_unittest.cc',
1212 'renderers/renderer_impl_unittest.cc',
1213 'renderers/video_renderer_impl_unittest.cc',
1214 'test/pipeline_integration_test.cc',
1215 'test/pipeline_integration_test_base.cc',
1216 'video/capture/fake_video_capture_device_unittest.cc',
1217 'video/capture/video_capture_device_unittest.cc',
1218 'video/h264_poc_unittest.cc',
1219 'video/gpu_memory_buffer_video_frame_pool_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/container_names_unittest.cc',
1239 'base/media_file_checker_unittest.cc',
1240 'ffmpeg/ffmpeg_common_unittest.cc',
1241 'filters/audio_decoder_unittest.cc',
1242 'filters/audio_file_reader_unittest.cc',
1243 'filters/blocking_url_protocol_unittest.cc',
1244 'filters/ffmpeg_aac_bitstream_converter_unittest.cc',
1245 'filters/ffmpeg_demuxer_unittest.cc',
1246 'filters/ffmpeg_glue_unittest.cc',
1247 'filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc',
1248 'filters/ffmpeg_video_decoder_unittest.cc',
1249 'filters/in_memory_url_protocol_unittest.cc',
1250 'test/pipeline_integration_test.cc',
1251 'test/pipeline_integration_test_base.cc',
1254 ['os_posix==1 and OS!="mac"', {
1256 ['use_allocator!="none"', {
1258 '../base/allocator/allocator.gyp:allocator',
1265 '../testing/android/native_test.gyp:native_test_native_code',
1269 ['target_arch != "arm" and chromeos == 1 and use_x11 == 1', {
1271 'filters/h264_bitstream_buffer_unittest.cc',
1274 ['target_arch=="ia32" or target_arch=="x64"', {
1276 'base/simd/convert_rgb_to_yuv_unittest.cc',
1279 ['proprietary_codecs==1', {
1281 'cdm/cenc_utils_unittest.cc',
1282 'filters/ffmpeg_aac_bitstream_converter_unittest.cc',
1283 'filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc',
1284 'filters/h264_to_annex_b_bitstream_converter_unittest.cc',
1285 'formats/common/stream_parser_test_base.cc',
1286 'formats/common/stream_parser_test_base.h',
1287 'formats/mp2t/es_adapter_video_unittest.cc',
1288 'formats/mp2t/es_parser_adts_unittest.cc',
1289 'formats/mp2t/es_parser_h264_unittest.cc',
1290 'formats/mp2t/es_parser_mpeg1audio_unittest.cc',
1291 'formats/mp2t/es_parser_test_base.cc',
1292 'formats/mp2t/es_parser_test_base.h',
1293 'formats/mp2t/mp2t_stream_parser_unittest.cc',
1294 'formats/mp2t/timestamp_unroller_unittest.cc',
1295 'formats/mp4/aac_unittest.cc',
1296 'formats/mp4/avc_unittest.cc',
1297 'formats/mp4/box_reader_unittest.cc',
1298 'formats/mp4/es_descriptor_unittest.cc',
1299 'formats/mp4/mp4_stream_parser_unittest.cc',
1300 'formats/mp4/sample_to_group_iterator_unittest.cc',
1301 'formats/mp4/track_run_iterator_unittest.cc',
1302 'formats/mpeg/adts_stream_parser_unittest.cc',
1303 'formats/mpeg/mpeg1_audio_stream_parser_unittest.cc',
1308 'video/capture/mac/video_capture_device_factory_mac_unittest.mm',
1313 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
1319 # GN version: //media:media_perftests
1320 'target_name': 'media_perftests',
1321 'type': '<(gtest_target_type)',
1323 '../base/base.gyp:test_support_base',
1324 '../testing/gmock.gyp:gmock',
1325 '../testing/gtest.gyp:gtest',
1326 '../testing/perf/perf_test.gyp:perf_test',
1327 '../ui/gfx/gfx.gyp:gfx',
1328 '../ui/gfx/gfx.gyp:gfx_test_support',
1329 '../ui/gfx/gfx.gyp:gfx_geometry',
1331 'media_test_support',
1332 'shared_memory_support',
1335 'base/audio_bus_perftest.cc',
1336 'base/audio_converter_perftest.cc',
1337 'base/demuxer_perftest.cc',
1338 'base/run_all_perftests.cc',
1339 'base/sinc_resampler_perftest.cc',
1340 'base/vector_math_perftest.cc',
1341 'base/yuv_convert_perftest.cc',
1342 'test/pipeline_integration_perftest.cc',
1343 'test/pipeline_integration_test_base.cc',
1353 '../testing/android/native_test.gyp:native_test_native_code',
1354 '../ui/gl/gl.gyp:gl',
1357 ['media_use_ffmpeg==1', {
1359 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
1361 }, { # media_use_ffmpeg==0
1363 'base/demuxer_perftest.cc',
1364 'test/pipeline_integration_perftest.cc',
1365 'test/pipeline_integration_test_base.cc',
1371 # GN version: //media/audio:unittests
1372 # For including the sources and configs in multiple test targets.
1373 'target_name': 'audio_test_config',
1375 'direct_dependent_settings': {
1377 'audio/audio_input_controller_unittest.cc',
1378 'audio/audio_input_unittest.cc',
1379 'audio/audio_manager_factory_unittest.cc',
1380 'audio/audio_manager_unittest.cc',
1381 'audio/audio_output_controller_unittest.cc',
1382 'audio/audio_output_device_unittest.cc',
1383 'audio/audio_output_proxy_unittest.cc',
1384 'audio/audio_parameters_unittest.cc',
1385 'audio/audio_power_monitor_unittest.cc',
1386 'audio/fake_audio_worker_unittest.cc',
1387 'audio/simple_sources_unittest.cc',
1388 'audio/virtual_audio_input_stream_unittest.cc',
1389 'audio/virtual_audio_output_stream_unittest.cc',
1392 # TODO(wolenetz): Fix size_t to int truncations in win64. See
1393 # http://crbug.com/171009
1394 ['OS=="win" and target_arch=="x64"', {
1395 'msvs_disabled_warnings': [ 4267, ],
1399 'audio/android/audio_android_unittest.cc',
1403 'audio/audio_input_volume_unittest.cc',
1408 'audio/mac/audio_auhal_mac_unittest.cc',
1409 'audio/mac/audio_device_listener_mac_unittest.cc',
1410 'audio/mac/audio_low_latency_input_mac_unittest.cc',
1415 'audio/sounds/audio_stream_handler_unittest.cc',
1416 'audio/sounds/sounds_manager_unittest.cc',
1417 'audio/sounds/test_data.cc',
1418 'audio/sounds/test_data.h',
1419 'audio/sounds/wav_audio_handler_unittest.cc',
1424 'audio/win/audio_device_listener_win_unittest.cc',
1425 'audio/win/audio_low_latency_input_win_unittest.cc',
1426 'audio/win/audio_low_latency_output_win_unittest.cc',
1427 'audio/win/audio_output_win_unittest.cc',
1428 'audio/win/core_audio_util_win_unittest.cc',
1433 'audio/alsa/alsa_output_unittest.cc',
1434 'audio/audio_low_latency_input_output_unittest.cc',
1440 ['use_pulseaudio==1', {
1447 'audio/cras/cras_input_unittest.cc',
1448 'audio/cras/cras_unified_unittest.cc',
1458 # GN version: //media:audio_unittests
1459 # For running the subset of media_unittests that might require audio
1460 # hardware separately on GPU bots. media_unittests includes these too.
1461 'target_name': 'audio_unittests',
1462 'type': '<(gtest_target_type)',
1464 'audio_test_config',
1465 'media_test_support',
1466 '../base/base.gyp:test_support_base',
1467 '../testing/gmock.gyp:gmock',
1468 '../testing/gtest.gyp:gtest',
1469 '../ui/gfx/gfx.gyp:gfx_test_support',
1472 'base/run_all_unittests.cc',
1476 # GN versions (it is split apart): //media:test_support,
1477 # //media/base:test_support, and //media/audio:test_support
1478 'target_name': 'media_test_support',
1479 'type': 'static_library',
1482 'shared_memory_support',
1483 '../base/base.gyp:base',
1484 '../skia/skia.gyp:skia',
1485 '../testing/gmock.gyp:gmock',
1486 '../testing/gtest.gyp:gtest',
1489 'audio/audio_unittest_util.cc',
1490 'audio/audio_unittest_util.h',
1491 'audio/mock_audio_manager.cc',
1492 'audio/mock_audio_manager.h',
1493 'audio/mock_audio_source_callback.cc',
1494 'audio/mock_audio_source_callback.h',
1495 'audio/test_audio_input_controller_factory.cc',
1496 'audio/test_audio_input_controller_factory.h',
1497 'base/fake_audio_render_callback.cc',
1498 'base/fake_audio_render_callback.h',
1499 'base/fake_audio_renderer_sink.cc',
1500 'base/fake_audio_renderer_sink.h',
1501 'base/fake_demuxer_stream.cc',
1502 'base/fake_demuxer_stream.h',
1503 'base/fake_text_track_stream.cc',
1504 'base/fake_text_track_stream.h',
1505 'base/gmock_callback_support.h',
1506 'base/mock_audio_renderer_sink.cc',
1507 'base/mock_audio_renderer_sink.h',
1508 'base/mock_demuxer_host.cc',
1509 'base/mock_demuxer_host.h',
1510 'base/mock_filters.cc',
1511 'base/mock_filters.h',
1512 'base/null_video_sink.cc',
1513 'base/null_video_sink.h',
1514 'base/test_data_util.cc',
1515 'base/test_data_util.h',
1516 'base/test_helpers.cc',
1517 'base/test_helpers.h',
1518 'renderers/mock_gpu_video_accelerator_factories.cc',
1519 'renderers/mock_gpu_video_accelerator_factories.h',
1520 'video/mock_video_decode_accelerator.cc',
1521 'video/mock_video_decode_accelerator.h',
1525 # Minimal target for NaCl and other renderer side media clients which
1526 # only need to send audio data across the shared memory to the browser
1528 # GN version: //media:shared_memory_support
1529 'target_name': 'shared_memory_support',
1530 'type': '<(component)',
1532 '../base/base.gyp:base',
1535 'MEDIA_IMPLEMENTATION',
1541 'shared_memory_support.gypi',
1544 '<@(shared_memory_support_sources)',
1556 ['target_arch!="arm"', {
1559 'target_name': 'media_asm',
1560 'type': 'static_library',
1562 'base/simd/convert_rgb_to_yuv_ssse3.asm',
1563 'base/simd/convert_yuv_to_rgb_sse.asm',
1564 'base/simd/convert_yuva_to_argb_mmx.asm',
1565 'base/simd/empty_register_state_mmx.asm',
1566 'base/simd/linear_scale_yuv_to_rgb_mmx.asm',
1567 'base/simd/linear_scale_yuv_to_rgb_sse.asm',
1568 'base/simd/scale_yuv_to_rgb_mmx.asm',
1569 'base/simd/scale_yuv_to_rgb_sse.asm',
1572 ['component=="shared_library"', {
1574 'yasm_flags': ['-DEXPORT_SYMBOLS'],
1577 ['target_arch=="x64"', {
1578 # Source files optimized for X64 systems.
1580 'base/simd/linear_scale_yuv_to_rgb_mmx_x64.asm',
1581 'base/simd/scale_yuv_to_rgb_sse2_x64.asm',
1584 'yasm_flags': ['-DARCH_X86_64'],
1587 ['OS=="mac" or OS=="ios"', {
1595 # XCode doesn't want to link a pure assembly target and will
1596 # fail to link when it creates an empty file list. So add a
1597 # dummy file keep the linker happy. See http://crbug.com/157073
1598 'base/simd/xcode_hack.c',
1601 ['os_posix==1 and OS!="mac"', {
1604 ['target_arch=="ia32"', {
1609 }, { # target_arch=="x64"
1621 'yasm_output_path': '<(SHARED_INTERMEDIATE_DIR)/media',
1624 # In addition to the same path as source asm, let yasm %include
1625 # search path be relative to src/ per Chromium policy.
1629 '../third_party/x86inc/x86inc.asm',
1630 'base/simd/convert_rgb_to_yuv_ssse3.inc',
1631 'base/simd/convert_yuv_to_rgb_mmx.inc',
1632 'base/simd/convert_yuva_to_argb_mmx.inc',
1633 'base/simd/linear_scale_yuv_to_rgb_mmx.inc',
1634 'base/simd/media_export.asm',
1635 'base/simd/scale_yuv_to_rgb_mmx.inc',
1638 'msvs_2010_disable_uldi_when_referenced': 1,
1640 '../third_party/yasm/yasm_compile.gypi',
1644 # GN version: //media/base:media_sse2
1645 'target_name': 'media_sse2',
1646 'type': 'static_library',
1651 'MEDIA_IMPLEMENTATION',
1657 'base/simd/convert_rgb_to_yuv_sse2.cc',
1658 'base/simd/convert_rgb_to_yuv_ssse3.cc',
1659 'base/simd/filter_yuv_sse2.cc',
1668 'target_name': 'media_unittests_apk',
1675 'test_suite_name': 'media_unittests',
1676 'isolate_file': 'media_unittests.isolate',
1678 'includes': ['../build/apk_test.gypi'],
1682 'target_name': 'media_perftests_apk',
1689 'test_suite_name': 'media_perftests',
1690 'isolate_file': 'media_perftests.isolate',
1692 'includes': ['../build/apk_test.gypi'],
1695 # GN: //media/base/android:media_android_jni_headers
1696 'target_name': 'media_android_jni_headers',
1699 'base/android/java/src/org/chromium/media/AudioManagerAndroid.java',
1700 'base/android/java/src/org/chromium/media/AudioRecordInput.java',
1701 'base/android/java/src/org/chromium/media/MediaCodecBridge.java',
1702 'base/android/java/src/org/chromium/media/MediaDrmBridge.java',
1703 'base/android/java/src/org/chromium/media/MediaPlayerBridge.java',
1704 'base/android/java/src/org/chromium/media/MediaPlayerListener.java',
1705 'base/android/java/src/org/chromium/media/WebAudioMediaCodecBridge.java',
1708 'jni_gen_package': 'media',
1710 'includes': ['../build/jni_generator.gypi'],
1713 # GN: //media/base/android:video_capture_android_jni_headers
1714 'target_name': 'video_capture_android_jni_headers',
1717 'base/android/java/src/org/chromium/media/VideoCapture.java',
1718 'base/android/java/src/org/chromium/media/VideoCaptureFactory.java',
1721 'jni_gen_package': 'media',
1723 'includes': ['../build/jni_generator.gypi'],
1726 # GN: //media/base/android:android
1727 'target_name': 'player_android',
1728 'type': 'static_library',
1730 'base/android/audio_decoder_job.cc',
1731 'base/android/audio_decoder_job.h',
1732 'base/android/browser_cdm_factory_android.cc',
1733 'base/android/browser_cdm_factory_android.h',
1734 'base/android/demuxer_android.h',
1735 'base/android/demuxer_stream_player_params.cc',
1736 'base/android/demuxer_stream_player_params.h',
1737 'base/android/media_client_android.cc',
1738 'base/android/media_client_android.h',
1739 'base/android/media_codec_bridge.cc',
1740 'base/android/media_codec_bridge.h',
1741 'base/android/media_codec_player.cc',
1742 'base/android/media_codec_player.h',
1743 'base/android/media_common_android.h',
1744 'base/android/media_decoder_job.cc',
1745 'base/android/media_decoder_job.h',
1746 'base/android/media_drm_bridge.cc',
1747 'base/android/media_drm_bridge.h',
1748 'base/android/media_drm_bridge_delegate.cc',
1749 'base/android/media_drm_bridge_delegate.h',
1750 'base/android/media_jni_registrar.cc',
1751 'base/android/media_jni_registrar.h',
1752 'base/android/media_player_android.cc',
1753 'base/android/media_player_android.h',
1754 'base/android/media_player_bridge.cc',
1755 'base/android/media_player_bridge.h',
1756 'base/android/media_player_listener.cc',
1757 'base/android/media_player_listener.h',
1758 'base/android/media_player_manager.h',
1759 'base/android/media_resource_getter.cc',
1760 'base/android/media_resource_getter.h',
1761 'base/android/media_source_player.cc',
1762 'base/android/media_source_player.h',
1763 'base/android/media_url_interceptor.h',
1764 'base/android/video_decoder_job.cc',
1765 'base/android/video_decoder_job.h',
1766 'base/android/webaudio_media_codec_bridge.cc',
1767 'base/android/webaudio_media_codec_bridge.h',
1768 'base/android/webaudio_media_codec_info.h',
1771 '../base/base.gyp:base',
1772 '../third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
1773 '../ui/gl/gl.gyp:gl',
1774 '../url/url.gyp:url_lib',
1775 'media_android_jni_headers',
1778 # Needed by media_drm_bridge.cc.
1779 '<(SHARED_INTERMEDIATE_DIR)',
1782 'MEDIA_IMPLEMENTATION',
1786 # GN: //media/base/android:media_java
1787 'target_name': 'media_java',
1790 '../base/base.gyp:base',
1791 'media_android_captureapitype',
1792 'media_android_imageformat',
1794 'export_dependent_settings': [
1795 '../base/base.gyp:base',
1798 'java_in_dir': 'base/android/java',
1800 'includes': ['../build/java.gypi'],
1803 # GN: //media/base/android:media_android_captureapitype
1804 'target_name': 'media_android_captureapitype',
1807 'source_file': 'video/capture/video_capture_device.h',
1809 'includes': [ '../build/android/java_cpp_enum.gypi' ],
1812 # GN: //media/base/android:media_android_imageformat
1813 'target_name': 'media_android_imageformat',
1816 'source_file': 'video/capture/android/video_capture_device_android.h',
1818 'includes': [ '../build/android/java_cpp_enum.gypi' ],
1822 ['media_use_ffmpeg==1', {
1825 # GN version: //media:ffmpeg_regression_tests
1826 'target_name': 'ffmpeg_regression_tests',
1827 'type': 'executable',
1829 '../base/base.gyp:test_support_base',
1830 '../testing/gmock.gyp:gmock',
1831 '../testing/gtest.gyp:gtest',
1832 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
1833 '../ui/gfx/gfx.gyp:gfx_geometry',
1835 'media_test_support',
1838 'base/run_all_unittests.cc',
1839 'ffmpeg/ffmpeg_regression_tests.cc',
1840 'test/pipeline_integration_test_base.cc',
1843 ['os_posix==1 and OS!="mac"', {
1845 ['use_allocator!="none"', {
1847 '../base/allocator/allocator.gyp:allocator',
1859 # Minimal media component for media/cast on iOS.
1860 # GN version: //media:media_for_cast_ios
1861 'target_name': 'media_for_cast_ios',
1862 'type': '<(component)',
1864 '../base/base.gyp:base',
1865 '../gpu/gpu.gyp:command_buffer_common',
1866 '../ui/gfx/gfx.gyp:gfx_geometry',
1867 'shared_memory_support',
1870 'MEDIA_DISABLE_FFMPEG',
1871 'MEDIA_DISABLE_LIBVPX',
1872 'MEDIA_FOR_CAST_IOS',
1873 'MEDIA_IMPLEMENTATION',
1875 'direct_dependent_settings': {
1877 'MEDIA_DISABLE_FFMPEG',
1878 'MEDIA_DISABLE_LIBVPX',
1888 'base/mac/coremedia_glue.h',
1889 'base/mac/coremedia_glue.mm',
1890 'base/mac/corevideo_glue.h',
1891 'base/mac/video_frame_mac.cc',
1892 'base/mac/video_frame_mac.h',
1893 'base/mac/videotoolbox_glue.h',
1894 'base/mac/videotoolbox_glue.mm',
1895 'base/simd/convert_rgb_to_yuv.h',
1896 'base/simd/convert_rgb_to_yuv_c.cc',
1897 'base/simd/convert_yuv_to_rgb.h',
1898 'base/simd/convert_yuv_to_rgb_c.cc',
1899 'base/simd/filter_yuv.h',
1900 'base/simd/filter_yuv_c.cc',
1901 'base/video_frame.cc',
1902 'base/video_frame.h',
1903 'base/video_frame_metadata.cc',
1904 'base/video_frame_metadata.h',
1905 'base/video_util.cc',
1906 'base/video_util.h',
1907 'base/yuv_convert.cc',
1908 'base/yuv_convert.h',
1912 '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework',
1922 'target_conditions': [
1923 ['OS == "ios" and _toolset != "host"', {
1925 # Pull in specific Mac files for iOS (which have been filtered
1926 # out by file name rules).
1927 ['include', '^base/mac/coremedia_glue\\.h$'],
1928 ['include', '^base/mac/coremedia_glue\\.mm$'],
1929 ['include', '^base/mac/corevideo_glue\\.h$'],
1930 ['include', '^base/mac/videotoolbox_glue\\.h$'],
1931 ['include', '^base/mac/videotoolbox_glue\\.mm$'],
1932 ['include', '^base/mac/video_frame_mac\\.h$'],
1933 ['include', '^base/mac/video_frame_mac\\.cc$'],
1936 ], # target_conditions
1940 ['test_isolation_mode != "noop"', {
1943 'target_name': 'media_unittests_run',
1949 '../build/isolate.gypi',
1952 'media_unittests.isolate',
1956 'target_name': 'audio_unittests_run',
1962 '../build/isolate.gypi',
1965 'audio_unittests.isolate',
1970 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',