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.
11 ['OS == "android" or OS == "ios"', {
12 # Android and iOS don't use ffmpeg.
13 'media_use_ffmpeg%': 0,
14 # Android and iOS don't use libvpx.
15 'media_use_libvpx%': 0,
16 }, { # 'OS != "android" and OS != "ios"'
17 'media_use_ffmpeg%': 1,
18 'media_use_libvpx%': 1,
20 # Screen capturer works only on Windows, OSX and Linux (with X11).
21 ['OS=="win" or OS=="mac" or (OS=="linux" and use_x11==1)', {
22 'screen_capture_supported%': 1,
24 'screen_capture_supported%': 0,
27 ['OS=="linux" or OS=="freebsd" or OS=="solaris"', {
32 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android" and chromeos != 1', {
41 'target_name': 'media',
42 'type': '<(component)',
44 '../base/base.gyp:base',
45 '../build/temp_gyp/googleurl.gyp:googleurl',
46 '../crypto/crypto.gyp:crypto',
47 '../skia/skia.gyp:skia',
48 '../third_party/opus/opus.gyp:opus',
52 'MEDIA_IMPLEMENTATION',
58 'audio/android/audio_manager_android.cc',
59 'audio/android/audio_manager_android.h',
60 'audio/android/opensles_input.cc',
61 'audio/android/opensles_input.h',
62 'audio/android/opensles_output.cc',
63 'audio/android/opensles_output.h',
64 'audio/async_socket_io_handler.h',
65 'audio/async_socket_io_handler_posix.cc',
66 'audio/async_socket_io_handler_win.cc',
67 'audio/audio_buffers_state.cc',
68 'audio/audio_buffers_state.h',
69 'audio/audio_device_name.cc',
70 'audio/audio_device_name.h',
71 'audio/audio_device_thread.cc',
72 'audio/audio_device_thread.h',
73 'audio/audio_input_controller.cc',
74 'audio/audio_input_controller.h',
75 'audio/audio_input_device.cc',
76 'audio/audio_input_device.h',
77 'audio/audio_input_ipc.cc',
78 'audio/audio_input_ipc.h',
79 'audio/audio_input_stream_impl.cc',
80 'audio/audio_input_stream_impl.h',
82 'audio/audio_manager.cc',
83 'audio/audio_manager.h',
84 'audio/audio_manager_base.cc',
85 'audio/audio_manager_base.h',
86 'audio/audio_output_controller.cc',
87 'audio/audio_output_controller.h',
88 'audio/audio_output_device.cc',
89 'audio/audio_output_device.h',
90 'audio/audio_output_dispatcher.cc',
91 'audio/audio_output_dispatcher.h',
92 'audio/audio_output_dispatcher_impl.cc',
93 'audio/audio_output_dispatcher_impl.h',
94 'audio/audio_output_ipc.cc',
95 'audio/audio_output_ipc.h',
96 'audio/audio_output_proxy.cc',
97 'audio/audio_output_proxy.h',
98 'audio/audio_output_resampler.cc',
99 'audio/audio_output_resampler.h',
100 'audio/audio_source_diverter.h',
101 'audio/audio_util.cc',
102 'audio/audio_util.h',
103 'audio/cras/audio_manager_cras.cc',
104 'audio/cras/audio_manager_cras.h',
105 'audio/cras/cras_input.cc',
106 'audio/cras/cras_input.h',
107 'audio/cras/cras_output.cc',
108 'audio/cras/cras_output.h',
109 'audio/cross_process_notification.cc',
110 'audio/cross_process_notification.h',
111 'audio/cross_process_notification_posix.cc',
112 'audio/cross_process_notification_win.cc',
113 'audio/fake_audio_consumer.cc',
114 'audio/fake_audio_consumer.h',
115 'audio/fake_audio_input_stream.cc',
116 'audio/fake_audio_input_stream.h',
117 'audio/fake_audio_output_stream.cc',
118 'audio/fake_audio_output_stream.h',
119 'audio/ios/audio_manager_ios.h',
120 'audio/ios/audio_manager_ios.mm',
121 'audio/ios/audio_session_util_ios.h',
122 'audio/ios/audio_session_util_ios.mm',
123 'audio/linux/alsa_input.cc',
124 'audio/linux/alsa_input.h',
125 'audio/linux/alsa_output.cc',
126 'audio/linux/alsa_output.h',
127 'audio/linux/alsa_util.cc',
128 'audio/linux/alsa_util.h',
129 'audio/linux/alsa_wrapper.cc',
130 'audio/linux/alsa_wrapper.h',
131 'audio/linux/audio_manager_linux.cc',
132 'audio/linux/audio_manager_linux.h',
133 'audio/mac/audio_device_listener_mac.cc',
134 'audio/mac/audio_device_listener_mac.h',
135 'audio/mac/audio_input_mac.cc',
136 'audio/mac/audio_input_mac.h',
137 'audio/mac/audio_low_latency_input_mac.cc',
138 'audio/mac/audio_low_latency_input_mac.h',
139 'audio/mac/audio_low_latency_output_mac.cc',
140 'audio/mac/audio_low_latency_output_mac.h',
141 'audio/mac/audio_manager_mac.cc',
142 'audio/mac/audio_manager_mac.h',
143 'audio/mac/audio_synchronized_mac.cc',
144 'audio/mac/audio_synchronized_mac.h',
145 'audio/mac/audio_unified_mac.cc',
146 'audio/mac/audio_unified_mac.h',
147 'audio/null_audio_sink.cc',
148 'audio/null_audio_sink.h',
149 'audio/openbsd/audio_manager_openbsd.cc',
150 'audio/openbsd/audio_manager_openbsd.h',
151 'audio/pulse/audio_manager_pulse.cc',
152 'audio/pulse/audio_manager_pulse.h',
153 'audio/pulse/pulse_output.cc',
154 'audio/pulse/pulse_output.h',
155 'audio/pulse/pulse_input.cc',
156 'audio/pulse/pulse_input.h',
157 'audio/pulse/pulse_util.cc',
158 'audio/pulse/pulse_util.h',
159 'audio/sample_rates.cc',
160 'audio/sample_rates.h',
161 'audio/scoped_loop_observer.cc',
162 'audio/scoped_loop_observer.h',
163 'audio/simple_sources.cc',
164 'audio/simple_sources.h',
165 'audio/virtual_audio_input_stream.cc',
166 'audio/virtual_audio_input_stream.h',
167 'audio/virtual_audio_output_stream.cc',
168 'audio/virtual_audio_output_stream.h',
169 'audio/win/audio_device_listener_win.cc',
170 'audio/win/audio_device_listener_win.h',
171 'audio/win/audio_low_latency_input_win.cc',
172 'audio/win/audio_low_latency_input_win.h',
173 'audio/win/audio_low_latency_output_win.cc',
174 'audio/win/audio_low_latency_output_win.h',
175 'audio/win/audio_manager_win.cc',
176 'audio/win/audio_manager_win.h',
177 'audio/win/audio_unified_win.cc',
178 'audio/win/audio_unified_win.h',
179 'audio/win/avrt_wrapper_win.cc',
180 'audio/win/avrt_wrapper_win.h',
181 'audio/win/device_enumeration_win.cc',
182 'audio/win/device_enumeration_win.h',
183 'audio/win/core_audio_util_win.cc',
184 'audio/win/core_audio_util_win.h',
185 'audio/win/wavein_input_win.cc',
186 'audio/win/wavein_input_win.h',
187 'audio/win/waveout_output_win.cc',
188 'audio/win/waveout_output_win.h',
189 'base/android/media_player_bridge_manager.cc',
190 'base/android/media_player_bridge_manager.h',
191 'base/android/media_resource_getter.cc',
192 'base/android/media_resource_getter.h',
193 'base/audio_capturer_source.h',
194 'base/audio_converter.cc',
195 'base/audio_converter.h',
196 'base/audio_decoder.cc',
197 'base/audio_decoder.h',
198 'base/audio_decoder_config.cc',
199 'base/audio_decoder_config.h',
200 'base/audio_fifo.cc',
202 'base/audio_hardware_config.cc',
203 'base/audio_hardware_config.h',
204 'base/audio_hash.cc',
206 'base/audio_pull_fifo.cc',
207 'base/audio_pull_fifo.h',
208 'base/audio_renderer.cc',
209 'base/audio_renderer.h',
210 'base/audio_renderer_sink.h',
211 'base/audio_renderer_mixer.cc',
212 'base/audio_renderer_mixer.h',
213 'base/audio_renderer_mixer_input.cc',
214 'base/audio_renderer_mixer_input.h',
215 'base/audio_splicer.cc',
216 'base/audio_splicer.h',
217 'base/audio_timestamp_helper.cc',
218 'base/audio_timestamp_helper.h',
219 'base/bind_to_loop.h',
220 'base/bitstream_buffer.h',
221 'base/bit_reader.cc',
224 'base/byte_queue.cc',
226 'base/channel_mixer.cc',
227 'base/channel_mixer.h',
230 'base/data_buffer.cc',
231 'base/data_buffer.h',
232 'base/data_source.cc',
233 'base/data_source.h',
234 'base/decoder_buffer.cc',
235 'base/decoder_buffer.h',
236 'base/decoder_buffer_queue.cc',
237 'base/decoder_buffer_queue.h',
240 'base/decrypt_config.cc',
241 'base/decrypt_config.h',
244 'base/demuxer_stream.cc',
245 'base/demuxer_stream.h',
248 'base/filter_collection.cc',
249 'base/filter_collection.h',
253 'base/media_log_event.h',
254 'base/media_posix.cc',
255 'base/media_switches.cc',
256 'base/media_switches.h',
258 'base/multi_channel_resampler.cc',
259 'base/multi_channel_resampler.h',
262 'base/pipeline_status.cc',
263 'base/pipeline_status.h',
266 'base/seekable_buffer.cc',
267 'base/seekable_buffer.h',
268 'base/serial_runner.cc',
269 'base/serial_runner.h',
270 'base/sinc_resampler.cc',
271 'base/sinc_resampler.h',
272 'base/stream_parser.cc',
273 'base/stream_parser.h',
274 'base/stream_parser_buffer.cc',
275 'base/stream_parser_buffer.h',
276 'base/vector_math.cc',
277 'base/vector_math.h',
278 'base/video_decoder.cc',
279 'base/video_decoder.h',
280 'base/video_decoder_config.cc',
281 'base/video_decoder_config.h',
282 'base/video_frame.cc',
283 'base/video_frame.h',
284 'base/video_renderer.cc',
285 'base/video_renderer.h',
286 'base/video_util.cc',
288 'crypto/aes_decryptor.cc',
289 'crypto/aes_decryptor.h',
290 'ffmpeg/ffmpeg_common.cc',
291 'ffmpeg/ffmpeg_common.h',
292 'filters/audio_decoder_selector.cc',
293 'filters/audio_decoder_selector.h',
294 'filters/audio_file_reader.cc',
295 'filters/audio_file_reader.h',
296 'filters/audio_renderer_algorithm.cc',
297 'filters/audio_renderer_algorithm.h',
298 'filters/audio_renderer_impl.cc',
299 'filters/audio_renderer_impl.h',
300 'filters/blocking_url_protocol.cc',
301 'filters/blocking_url_protocol.h',
302 'filters/chunk_demuxer.cc',
303 'filters/chunk_demuxer.h',
304 'filters/decrypting_audio_decoder.cc',
305 'filters/decrypting_audio_decoder.h',
306 'filters/decrypting_demuxer_stream.cc',
307 'filters/decrypting_demuxer_stream.h',
308 'filters/decrypting_video_decoder.cc',
309 'filters/decrypting_video_decoder.h',
310 'filters/ffmpeg_audio_decoder.cc',
311 'filters/ffmpeg_audio_decoder.h',
312 'filters/ffmpeg_demuxer.cc',
313 'filters/ffmpeg_demuxer.h',
314 'filters/ffmpeg_glue.cc',
315 'filters/ffmpeg_glue.h',
316 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc',
317 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.h',
318 'filters/ffmpeg_video_decoder.cc',
319 'filters/ffmpeg_video_decoder.h',
320 'filters/file_data_source.cc',
321 'filters/file_data_source.h',
322 'filters/gpu_video_decoder.cc',
323 'filters/gpu_video_decoder.h',
324 'filters/h264_to_annex_b_bitstream_converter.cc',
325 'filters/h264_to_annex_b_bitstream_converter.h',
326 'filters/in_memory_url_protocol.cc',
327 'filters/in_memory_url_protocol.h',
328 'filters/opus_audio_decoder.cc',
329 'filters/opus_audio_decoder.h',
330 'filters/skcanvas_video_renderer.cc',
331 'filters/skcanvas_video_renderer.h',
332 'filters/source_buffer_stream.cc',
333 'filters/source_buffer_stream.h',
334 'filters/stream_parser_factory.cc',
335 'filters/stream_parser_factory.h',
336 'filters/video_decoder_selector.cc',
337 'filters/video_decoder_selector.h',
338 'filters/video_renderer_base.cc',
339 'filters/video_renderer_base.h',
340 'filters/vpx_video_decoder.cc',
341 'filters/vpx_video_decoder.h',
342 'video/capture/android/video_capture_device_android.cc',
343 'video/capture/android/video_capture_device_android.h',
344 'video/capture/fake_video_capture_device.cc',
345 'video/capture/fake_video_capture_device.h',
346 'video/capture/linux/video_capture_device_linux.cc',
347 'video/capture/linux/video_capture_device_linux.h',
348 'video/capture/mac/video_capture_device_mac.h',
349 'video/capture/mac/video_capture_device_mac.mm',
350 'video/capture/mac/video_capture_device_qtkit_mac.h',
351 'video/capture/mac/video_capture_device_qtkit_mac.mm',
352 'video/capture/screen/differ.cc',
353 'video/capture/screen/differ.h',
354 'video/capture/screen/differ_block.cc',
355 'video/capture/screen/differ_block.h',
356 'video/capture/screen/x11/x_server_pixel_buffer.cc',
357 'video/capture/screen/x11/x_server_pixel_buffer.h',
358 'video/capture/screen/mac/desktop_configuration.mm',
359 'video/capture/screen/mac/desktop_configuration.h',
360 'video/capture/screen/mac/scoped_pixel_buffer_object.cc',
361 'video/capture/screen/mac/scoped_pixel_buffer_object.h',
362 'video/capture/screen/mouse_cursor_shape.cc',
363 'video/capture/screen/mouse_cursor_shape.h',
364 'video/capture/screen/screen_capture_data.cc',
365 'video/capture/screen/screen_capture_data.h',
366 'video/capture/screen/screen_capture_device.cc',
367 'video/capture/screen/screen_capture_device.h',
368 'video/capture/screen/screen_capture_frame.cc',
369 'video/capture/screen/screen_capture_frame.h',
370 'video/capture/screen/screen_capture_frame_queue.cc',
371 'video/capture/screen/screen_capture_frame_queue.h',
372 'video/capture/screen/screen_capturer.h',
373 'video/capture/screen/screen_capturer_fake.cc',
374 'video/capture/screen/screen_capturer_fake.h',
375 'video/capture/screen/screen_capturer_helper.cc',
376 'video/capture/screen/screen_capturer_helper.h',
377 'video/capture/screen/screen_capturer_x11.cc',
378 'video/capture/screen/screen_capturer_mac.mm',
379 'video/capture/screen/screen_capturer_null.cc',
380 'video/capture/screen/screen_capturer_win.cc',
381 'video/capture/screen/shared_buffer.cc',
382 'video/capture/screen/shared_buffer.h',
383 'video/capture/screen/win/desktop.cc',
384 'video/capture/screen/win/desktop.h',
385 'video/capture/screen/win/scoped_thread_desktop.cc',
386 'video/capture/screen/win/scoped_thread_desktop.h',
387 'video/capture/video_capture.h',
388 'video/capture/video_capture_device.h',
389 'video/capture/video_capture_device_dummy.cc',
390 'video/capture/video_capture_device_dummy.h',
391 'video/capture/video_capture_proxy.cc',
392 'video/capture/video_capture_proxy.h',
393 'video/capture/video_capture_types.h',
394 'video/capture/win/capability_list_win.cc',
395 'video/capture/win/capability_list_win.h',
396 'video/capture/win/filter_base_win.cc',
397 'video/capture/win/filter_base_win.h',
398 'video/capture/win/pin_base_win.cc',
399 'video/capture/win/pin_base_win.h',
400 'video/capture/win/sink_filter_observer_win.h',
401 'video/capture/win/sink_filter_win.cc',
402 'video/capture/win/sink_filter_win.h',
403 'video/capture/win/sink_input_pin_win.cc',
404 'video/capture/win/sink_input_pin_win.h',
405 'video/capture/win/video_capture_device_mf_win.cc',
406 'video/capture/win/video_capture_device_mf_win.h',
407 'video/capture/win/video_capture_device_win.cc',
408 'video/capture/win/video_capture_device_win.h',
411 'video/video_decode_accelerator.cc',
412 'video/video_decode_accelerator.h',
413 'webm/webm_audio_client.cc',
414 'webm/webm_audio_client.h',
415 'webm/webm_cluster_parser.cc',
416 'webm/webm_cluster_parser.h',
417 'webm/webm_constants.h',
418 'webm/webm_content_encodings.cc',
419 'webm/webm_content_encodings.h',
420 'webm/webm_content_encodings_client.cc',
421 'webm/webm_content_encodings_client.h',
422 'webm/webm_crypto_helpers.cc',
423 'webm/webm_crypto_helpers.h',
424 'webm/webm_info_parser.cc',
425 'webm/webm_info_parser.h',
426 'webm/webm_parser.cc',
427 'webm/webm_parser.h',
428 'webm/webm_stream_parser.cc',
429 'webm/webm_stream_parser.h',
430 'webm/webm_tracks_parser.cc',
431 'webm/webm_tracks_parser.h',
432 'webm/webm_video_client.cc',
433 'webm/webm_video_client.h',
435 'direct_dependent_settings': {
446 ['OS != "linux" or use_x11 == 1', {
448 'video/capture/screen/screen_capturer_null.cc',
453 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
454 'shared_memory_support',
458 ['media_use_ffmpeg == 1', {
460 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
462 }, { # media_use_ffmpeg == 0
463 # Exclude the sources that depend on ffmpeg.
465 'base/media_posix.cc',
466 'ffmpeg/ffmpeg_common.cc',
467 'ffmpeg/ffmpeg_common.h',
468 'filters/audio_file_reader.cc',
469 'filters/audio_file_reader.h',
470 'filters/blocking_url_protocol.cc',
471 'filters/blocking_url_protocol.h',
472 'filters/ffmpeg_audio_decoder.cc',
473 'filters/ffmpeg_audio_decoder.h',
474 'filters/ffmpeg_demuxer.cc',
475 'filters/ffmpeg_demuxer.h',
476 'filters/ffmpeg_glue.cc',
477 'filters/ffmpeg_glue.h',
478 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc',
479 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.h',
480 'filters/ffmpeg_video_decoder.cc',
481 'filters/ffmpeg_video_decoder.h',
484 ['media_use_libvpx == 1', {
486 '<(DEPTH)/third_party/libvpx/libvpx.gyp:libvpx',
488 }, { # media_use_libvpx == 0
489 'direct_dependent_settings': {
491 'MEDIA_DISABLE_LIBVPX',
494 # Exclude the sources that depend on libvpx.
496 'filters/vpx_video_decoder.cc',
497 'filters/vpx_video_decoder.h',
500 ['use_system_ffmpeg == 1', {
502 '<!(python <(DEPTH)/tools/compile_test/compile_test.py '
503 '--code "#include <libavcodec/avcodec.h>\n'
504 'int test() { return CODEC_ID_OPUS; }" '
505 '--on-failure CHROMIUM_OMIT_CODEC_ID_OPUS)',
506 '<!(python <(DEPTH)/tools/compile_test/compile_test.py '
507 '--code "#include <libavcodec/avcodec.h>\n'
508 'int test() { return AV_CODEC_ID_VP9; }" '
509 '--on-failure CHROMIUM_OMIT_AV_CODEC_ID_VP9)',
514 # For shared_memory_support_sources variable.
515 'shared_memory_support.gypi',
518 'base/media_stub.cc',
519 # These sources are normally built via a dependency on the
520 # shared_memory_support target, but that target is not built on iOS.
521 # Instead, directly build only the files that are needed for iOS.
522 '<@(shared_memory_support_sources)',
525 # Exclude everything but iOS-specific files.
526 ['exclude', '\\.(cc|mm)$'],
527 ['include', '_ios\\.(cc|mm)$'],
528 ['include', '(^|/)ios/'],
529 # Re-include specific pieces.
530 # iOS support is limited to audio input only.
531 ['include', '^audio/audio_buffers_state\\.'],
532 ['include', '^audio/audio_input_controller\\.'],
533 ['include', '^audio/audio_manager\\.'],
534 ['include', '^audio/audio_manager_base\\.'],
535 ['include', '^audio/audio_parameters\\.'],
536 ['include', '^audio/fake_audio_consumer\\.'],
537 ['include', '^audio/fake_audio_input_stream\\.'],
538 ['include', '^audio/fake_audio_output_stream\\.'],
539 ['include', '^base/audio_bus\\.'],
540 ['include', '^base/channel_layout\\.'],
541 ['include', '^base/media_stub\\.cc$'],
545 '$(SDKROOT)/System/Library/Frameworks/AudioToolbox.framework',
546 '$(SDKROOT)/System/Library/Frameworks/AVFoundation.framework',
547 '$(SDKROOT)/System/Library/Frameworks/CoreAudio.framework',
551 ['OS == "android"', {
553 'base/media_stub.cc',
561 '<(SHARED_INTERMEDIATE_DIR)/media',
564 'media_android_jni_headers',
565 'video_capture_android_jni_headers',
568 # A simple WebM encoder for animated avatars on ChromeOS.
571 '../third_party/libvpx/libvpx.gyp:libvpx',
572 '../third_party/libyuv/libyuv.gyp:libyuv',
575 'webm/chromeos/ebml_writer.cc',
576 'webm/chromeos/ebml_writer.h',
577 'webm/chromeos/webm_encoder.cc',
578 'webm/chromeos/webm_encoder.h',
588 'sources/': [ ['exclude', '/alsa_' ],
589 ['exclude', '/audio_manager_linux' ] ],
593 'audio/openbsd/audio_manager_openbsd.cc',
594 'audio/openbsd/audio_manager_openbsd.h',
601 'pkg-config': '../build/linux/pkg-config-wrapper "<(sysroot)" "<(target_arch)"',
603 'pkg-config': 'pkg-config'
620 '<!@(<(pkg-config) --cflags libcras)',
624 '<!@(<(pkg-config) --libs libcras)',
630 }, { # else: use_cras == 0
632 'audio/cras/audio_manager_cras.cc',
633 'audio/cras/audio_manager_cras.h',
634 'audio/cras/cras_input.cc',
635 'audio/cras/cras_input.h',
636 'audio/cras/cras_output.cc',
637 'audio/cras/cras_output.h',
644 'audio/cras/audio_manager_cras.cc',
645 'audio/cras/audio_manager_cras.h',
646 'audio/cras/cras_input.cc',
647 'audio/cras/cras_input.h',
648 'audio/cras/cras_output.cc',
649 'audio/cras/cras_output.h',
652 ['use_pulseaudio==1', {
657 'generate_stubs_script': '../tools/generate_stubs/generate_stubs.py',
658 'extra_header': 'audio/pulse/pulse_stub_header.fragment',
659 'sig_files': ['audio/pulse/pulse.sigs'],
660 'outfile_type': 'posix_stubs',
661 'stubs_filename_root': 'pulse_stubs',
662 'project_path': 'media/audio/pulse',
663 'intermediate_dir': '<(INTERMEDIATE_DIR)',
664 'output_root': '<(SHARED_INTERMEDIATE_DIR)/pulse',
674 'action_name': 'generate_stubs',
676 '<(generate_stubs_script)',
681 '<(intermediate_dir)/<(stubs_filename_root).cc',
682 '<(output_root)/<(project_path)/<(stubs_filename_root).h',
685 '<(generate_stubs_script)',
686 '-i', '<(intermediate_dir)',
687 '-o', '<(output_root)/<(project_path)',
688 '-t', '<(outfile_type)',
689 '-e', '<(extra_header)',
690 '-s', '<(stubs_filename_root)',
691 '-p', '<(project_path)',
694 'process_outputs_as_sources': 1,
695 'message': 'Generating Pulse stubs for dynamic loading.',
699 # Linux/Solaris need libdl for dlopen() and friends.
700 ['OS == "linux" or OS == "solaris"', {
708 }, { # else: use_pulseaudio==1
710 'audio/pulse/audio_manager_pulse.cc',
711 'audio/pulse/audio_manager_pulse.h',
712 'audio/pulse/pulse_input.cc',
713 'audio/pulse/pulse_input.h',
714 'audio/pulse/pulse_output.cc',
715 'audio/pulse/pulse_output.h',
716 'audio/pulse/pulse_util.cc',
717 'audio/pulse/pulse_util.h',
722 'video/capture/video_capture_device_dummy.cc',
723 'video/capture/video_capture_device_dummy.h',
729 '$(SDKROOT)/System/Library/Frameworks/AudioToolbox.framework',
730 '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework',
731 '$(SDKROOT)/System/Library/Frameworks/CoreAudio.framework',
732 '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework',
733 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
734 '$(SDKROOT)/System/Library/Frameworks/QTKit.framework',
740 'video/capture/video_capture_device_dummy.cc',
741 'video/capture/video_capture_device_dummy.h',
751 # Specify delayload for media.dll.
761 # Specify delayload for components that link with media.lib.
762 'all_dependent_settings': {
773 # TODO(wolenetz): Fix size_t to int truncations in win64. See
774 # http://crbug.com/171009
776 ['target_arch == "x64"', {
777 'msvs_disabled_warnings': [ 4267, ],
781 ['proprietary_codecs==1 or branding=="Chrome"', {
787 'mp4/box_definitions.cc',
788 'mp4/box_definitions.h',
793 'mp4/es_descriptor.cc',
794 'mp4/es_descriptor.h',
795 'mp4/mp4_stream_parser.cc',
796 'mp4/mp4_stream_parser.h',
797 'mp4/offset_byte_queue.cc',
798 'mp4/offset_byte_queue.h',
799 'mp4/track_run_iterator.cc',
800 'mp4/track_run_iterator.h',
803 [ 'screen_capture_supported==0', {
805 ['exclude', '^video/capture/screen/'],
808 [ 'screen_capture_supported==1 and (target_arch=="ia32" or target_arch=="x64")', {
813 ['toolkit_uses_gtk==1', {
815 '../build/linux/system.gyp:gtk',
818 # ios check is necessary due to http://crbug.com/172682.
819 ['OS != "ios" and (target_arch == "ia32" or target_arch == "x64")', {
825 'target_conditions': [
828 # Pull in specific Mac files for iOS (which have been filtered out
829 # by file name rules).
830 ['include', '^audio/mac/audio_input_mac\\.'],
836 'target_name': 'media_unittests',
837 'type': '<(gtest_target_type)',
840 'media_test_support',
841 '../base/base.gyp:base',
842 '../base/base.gyp:base_i18n',
843 '../base/base.gyp:test_support_base',
844 '../skia/skia.gyp:skia',
845 '../testing/gmock.gyp:gmock',
846 '../testing/gtest.gyp:gtest',
850 'audio/async_socket_io_handler_unittest.cc',
851 'audio/audio_input_controller_unittest.cc',
852 'audio/audio_input_device_unittest.cc',
853 'audio/audio_input_unittest.cc',
854 'audio/audio_input_volume_unittest.cc',
855 'audio/audio_low_latency_input_output_unittest.cc',
856 'audio/audio_output_controller_unittest.cc',
857 'audio/audio_output_device_unittest.cc',
858 'audio/audio_output_proxy_unittest.cc',
859 'audio/audio_parameters_unittest.cc',
860 'audio/audio_util_unittest.cc',
861 'audio/cross_process_notification_unittest.cc',
862 'audio/fake_audio_consumer_unittest.cc',
863 'audio/ios/audio_manager_ios_unittest.cc',
864 'audio/linux/alsa_output_unittest.cc',
865 'audio/mac/audio_device_listener_mac_unittest.cc',
866 'audio/mac/audio_low_latency_input_mac_unittest.cc',
867 'audio/simple_sources_unittest.cc',
868 'audio/virtual_audio_input_stream_unittest.cc',
869 'audio/virtual_audio_output_stream_unittest.cc',
870 'audio/win/audio_device_listener_win_unittest.cc',
871 'audio/win/audio_low_latency_input_win_unittest.cc',
872 'audio/win/audio_low_latency_output_win_unittest.cc',
873 'audio/win/audio_output_win_unittest.cc',
874 'audio/win/audio_unified_win_unittest.cc',
875 'audio/win/core_audio_util_win_unittest.cc',
876 'base/android/media_codec_bridge_unittest.cc',
877 'base/audio_bus_unittest.cc',
878 'base/audio_converter_unittest.cc',
879 'base/audio_fifo_unittest.cc',
880 'base/audio_hardware_config_unittest.cc',
881 'base/audio_hash_unittest.cc',
882 'base/audio_pull_fifo_unittest.cc',
883 'base/audio_renderer_mixer_input_unittest.cc',
884 'base/audio_renderer_mixer_unittest.cc',
885 'base/audio_splicer_unittest.cc',
886 'base/audio_timestamp_helper_unittest.cc',
887 'base/bind_to_loop_unittest.cc',
888 'base/bit_reader_unittest.cc',
889 'base/channel_mixer_unittest.cc',
890 'base/clock_unittest.cc',
891 'base/data_buffer_unittest.cc',
892 'base/decoder_buffer_queue_unittest.cc',
893 'base/decoder_buffer_unittest.cc',
894 'base/djb2_unittest.cc',
895 'base/gmock_callback_support_unittest.cc',
896 'base/multi_channel_resampler_unittest.cc',
897 'base/pipeline_unittest.cc',
898 'base/ranges_unittest.cc',
899 'base/run_all_unittests.cc',
900 'base/seekable_buffer_unittest.cc',
901 'base/sinc_resampler_unittest.cc',
902 'base/test_data_util.cc',
903 'base/test_data_util.h',
904 'base/vector_math_testing.h',
905 'base/vector_math_unittest.cc',
906 'base/video_frame_unittest.cc',
907 'base/video_util_unittest.cc',
908 'base/yuv_convert_unittest.cc',
909 'crypto/aes_decryptor_unittest.cc',
910 'ffmpeg/ffmpeg_common_unittest.cc',
911 'filters/audio_decoder_selector_unittest.cc',
912 'filters/audio_file_reader_unittest.cc',
913 'filters/audio_renderer_algorithm_unittest.cc',
914 'filters/audio_renderer_impl_unittest.cc',
915 'filters/blocking_url_protocol_unittest.cc',
916 'filters/chunk_demuxer_unittest.cc',
917 'filters/decrypting_audio_decoder_unittest.cc',
918 'filters/decrypting_demuxer_stream_unittest.cc',
919 'filters/decrypting_video_decoder_unittest.cc',
920 'filters/ffmpeg_audio_decoder_unittest.cc',
921 'filters/ffmpeg_demuxer_unittest.cc',
922 'filters/ffmpeg_glue_unittest.cc',
923 'filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc',
924 'filters/ffmpeg_video_decoder_unittest.cc',
925 'filters/file_data_source_unittest.cc',
926 'filters/h264_to_annex_b_bitstream_converter_unittest.cc',
927 'filters/pipeline_integration_test.cc',
928 'filters/pipeline_integration_test_base.cc',
929 'filters/skcanvas_video_renderer_unittest.cc',
930 'filters/source_buffer_stream_unittest.cc',
931 'filters/video_decoder_selector_unittest.cc',
932 'filters/video_renderer_base_unittest.cc',
933 'video/capture/screen/differ_block_unittest.cc',
934 'video/capture/screen/differ_unittest.cc',
935 'video/capture/screen/shared_buffer_unittest.cc',
936 'video/capture/screen/screen_capture_device_unittest.cc',
937 'video/capture/screen/screen_capturer_helper_unittest.cc',
938 'video/capture/screen/screen_capturer_mac_unittest.cc',
939 'video/capture/screen/screen_capturer_unittest.cc',
940 'video/capture/video_capture_device_unittest.cc',
941 'webm/cluster_builder.cc',
942 'webm/cluster_builder.h',
943 'webm/webm_cluster_parser_unittest.cc',
944 'webm/webm_content_encodings_client_unittest.cc',
945 'webm/webm_parser_unittest.cc',
955 'shared_memory_support',
959 ['media_use_ffmpeg == 1', {
961 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
964 ['os_posix==1 and OS!="mac" and OS!="ios"', {
966 ['linux_use_tcmalloc==1', {
968 '../base/allocator/allocator.gyp:allocator',
976 ['include', '^audio/audio_input_controller_unittest\\.cc$'],
977 ['include', '^audio/audio_input_unittest\\.cc$'],
978 ['include', '^audio/audio_parameters_unittest\\.cc$'],
979 ['include', '^audio/ios/audio_manager_ios_unittest\\.cc$'],
980 ['include', '^base/mock_reader\\.h$'],
981 ['include', '^base/run_all_unittests\\.cc$'],
986 'audio/audio_input_volume_unittest.cc',
987 'base/test_data_util.cc',
988 'base/test_data_util.h',
989 'ffmpeg/ffmpeg_common_unittest.cc',
990 'filters/audio_file_reader_unittest.cc',
991 'filters/blocking_url_protocol_unittest.cc',
992 'filters/chunk_demuxer_unittest.cc',
993 'filters/ffmpeg_audio_decoder_unittest.cc',
994 'filters/ffmpeg_demuxer_unittest.cc',
995 'filters/ffmpeg_glue_unittest.cc',
996 'filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc',
997 'filters/ffmpeg_video_decoder_unittest.cc',
998 'filters/pipeline_integration_test.cc',
999 'filters/pipeline_integration_test_base.cc',
1000 'mp4/mp4_stream_parser_unittest.cc',
1001 'webm/webm_cluster_parser_unittest.cc',
1004 ['gtest_target_type == "shared_library"', {
1006 '../testing/android/native_test.gyp:native_test_native_code',
1016 'audio/cras/cras_input_unittest.cc',
1017 'audio/cras/cras_output_unittest.cc',
1027 'audio/linux/alsa_output_unittest.cc',
1028 'audio/audio_low_latency_input_output_unittest.cc',
1031 ['OS != "ios" and (target_arch=="ia32" or target_arch=="x64")', {
1033 'base/simd/convert_rgb_to_yuv_unittest.cc',
1039 ['screen_capture_supported == 0', {
1041 ['exclude', '^video/capture/screen/'],
1044 ['proprietary_codecs==1 or branding=="Chrome"', {
1046 'mp4/aac_unittest.cc',
1047 'mp4/avc_unittest.cc',
1048 'mp4/box_reader_unittest.cc',
1049 'mp4/es_descriptor_unittest.cc',
1050 'mp4/mp4_stream_parser_unittest.cc',
1051 'mp4/offset_byte_queue_unittest.cc',
1052 'mp4/track_run_iterator_unittest.cc',
1055 # TODO(wolenetz): Fix size_t to int truncations in win64. See
1056 # http://crbug.com/171009
1057 ['OS=="win" and target_arch=="x64"', {
1058 'msvs_disabled_warnings': [ 4267, ],
1063 'target_name': 'media_test_support',
1064 'type': 'static_library',
1067 '../base/base.gyp:base',
1068 '../skia/skia.gyp:skia',
1069 '../testing/gmock.gyp:gmock',
1070 '../testing/gtest.gyp:gtest',
1073 'audio/mock_audio_manager.cc',
1074 'audio/mock_audio_manager.h',
1075 'audio/test_audio_input_controller_factory.cc',
1076 'audio/test_audio_input_controller_factory.h',
1077 'base/fake_audio_render_callback.cc',
1078 'base/fake_audio_render_callback.h',
1079 'base/gmock_callback_support.h',
1080 'base/mock_audio_renderer_sink.cc',
1081 'base/mock_audio_renderer_sink.h',
1082 'base/mock_data_source_host.cc',
1083 'base/mock_data_source_host.h',
1084 'base/mock_demuxer_host.cc',
1085 'base/mock_demuxer_host.h',
1086 'base/mock_filters.cc',
1087 'base/mock_filters.h',
1088 'base/test_helpers.cc',
1089 'base/test_helpers.h',
1090 'video/capture/screen/screen_capturer_mock_objects.cc',
1091 'video/capture/screen/screen_capturer_mock_objects.h',
1094 [ 'screen_capture_supported == 0', {
1096 ['exclude', '^video/capture/screen/'],
1103 ['OS != "ios" and target_arch != "arm"', {
1106 'target_name': 'yuv_convert_simd_x86',
1107 'type': 'static_library',
1112 'base/simd/convert_rgb_to_yuv_c.cc',
1113 'base/simd/convert_rgb_to_yuv_sse2.cc',
1114 'base/simd/convert_rgb_to_yuv_ssse3.asm',
1115 'base/simd/convert_rgb_to_yuv_ssse3.cc',
1116 'base/simd/convert_rgb_to_yuv_ssse3.inc',
1117 'base/simd/convert_yuv_to_rgb_c.cc',
1118 'base/simd/convert_yuv_to_rgb_mmx.asm',
1119 'base/simd/convert_yuv_to_rgb_mmx.inc',
1120 'base/simd/convert_yuv_to_rgb_sse.asm',
1121 'base/simd/convert_yuv_to_rgb_x86.cc',
1122 'base/simd/empty_register_state_mmx.asm',
1123 'base/simd/filter_yuv.h',
1124 'base/simd/filter_yuv_c.cc',
1125 'base/simd/filter_yuv_sse2.cc',
1126 'base/simd/linear_scale_yuv_to_rgb_mmx.asm',
1127 'base/simd/linear_scale_yuv_to_rgb_mmx.inc',
1128 'base/simd/linear_scale_yuv_to_rgb_sse.asm',
1129 'base/simd/scale_yuv_to_rgb_mmx.asm',
1130 'base/simd/scale_yuv_to_rgb_mmx.inc',
1131 'base/simd/scale_yuv_to_rgb_sse.asm',
1132 'base/simd/yuv_to_rgb_table.cc',
1133 'base/simd/yuv_to_rgb_table.h',
1136 # TODO(jschuh): Get MMX enabled on Win64. crbug.com/179657
1137 [ 'OS!="win" or target_arch=="ia32"', {
1139 'base/simd/filter_yuv_mmx.cc',
1142 [ 'target_arch == "x64"', {
1143 # Source files optimized for X64 systems.
1145 'base/simd/linear_scale_yuv_to_rgb_mmx_x64.asm',
1146 'base/simd/scale_yuv_to_rgb_sse2_x64.asm',
1154 [ 'os_posix == 1 and OS != "mac" and OS != "android"', {
1163 # gcc on the mac builds horribly unoptimized sse code in
1164 # debug mode. Since this is rarely going to be debugged,
1165 # run with full optimizations in Debug as well as Release.
1166 'GCC_OPTIMIZATION_LEVEL': '3', # -O3
1177 [ 'os_posix==1 and OS!="mac"', {
1180 [ 'target_arch=="ia32"', {
1196 'yasm_output_path': '<(SHARED_INTERMEDIATE_DIR)/media',
1199 # In addition to the same path as source asm, let yasm %include
1200 # search path be relative to src/ per Chromium policy.
1204 'msvs_2010_disable_uldi_when_referenced': 1,
1206 '../third_party/yasm/yasm_compile.gypi',
1214 # Minimal target for NaCl and other renderer side media clients which
1215 # only need to send audio data across the shared memory to the browser
1217 'target_name': 'shared_memory_support',
1218 'type': '<(component)',
1220 '../base/base.gyp:base',
1223 'MEDIA_IMPLEMENTATION',
1229 'shared_memory_support.gypi',
1232 '<@(shared_memory_support_sources)',
1236 'target_name': 'yuv_convert',
1237 'type': 'static_library',
1242 [ 'target_arch == "ia32" or target_arch == "x64"', {
1244 'yuv_convert_simd_x86',
1247 [ 'target_arch == "arm" or target_arch == "mipsel"', {
1249 'yuv_convert_simd_c',
1254 'base/yuv_convert.cc',
1255 'base/yuv_convert.h',
1259 'target_name': 'yuv_convert_simd_c',
1260 'type': 'static_library',
1265 'base/simd/convert_rgb_to_yuv.h',
1266 'base/simd/convert_rgb_to_yuv_c.cc',
1267 'base/simd/convert_yuv_to_rgb.h',
1268 'base/simd/convert_yuv_to_rgb_c.cc',
1269 'base/simd/filter_yuv.h',
1270 'base/simd/filter_yuv_c.cc',
1271 'base/simd/yuv_to_rgb_table.cc',
1272 'base/simd/yuv_to_rgb_table.h',
1276 'target_name': 'seek_tester',
1277 'type': 'executable',
1280 '../base/base.gyp:base',
1283 'tools/seek_tester/seek_tester.cc',
1287 'target_name': 'demuxer_bench',
1288 'type': 'executable',
1291 '../base/base.gyp:base',
1294 'tools/demuxer_bench/demuxer_bench.cc',
1296 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1297 'msvs_disabled_warnings': [ 4267, ],
1301 ['(OS == "win" or toolkit_uses_gtk == 1) and use_aura != 1', {
1304 'target_name': 'shader_bench',
1305 'type': 'executable',
1309 '../base/base.gyp:base',
1310 '../ui/gl/gl.gyp:gl',
1314 'tools/shader_bench/cpu_color_painter.cc',
1315 'tools/shader_bench/cpu_color_painter.h',
1316 'tools/shader_bench/gpu_color_painter.cc',
1317 'tools/shader_bench/gpu_color_painter.h',
1318 'tools/shader_bench/gpu_painter.cc',
1319 'tools/shader_bench/gpu_painter.h',
1320 'tools/shader_bench/painter.cc',
1321 'tools/shader_bench/painter.h',
1322 'tools/shader_bench/shader_bench.cc',
1323 'tools/shader_bench/window.cc',
1324 'tools/shader_bench/window.h',
1327 ['toolkit_uses_gtk == 1', {
1329 '../build/linux/system.gyp:gtk',
1332 'tools/shader_bench/window_linux.cc',
1337 '../third_party/angle/src/build_angle.gyp:libEGL',
1338 '../third_party/angle/src/build_angle.gyp:libGLESv2',
1341 'tools/shader_bench/window_win.cc',
1345 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1346 'msvs_disabled_warnings': [ 4267, ],
1353 'target_name': 'player_x11',
1354 'type': 'executable',
1358 '../base/base.gyp:base',
1359 '../ui/gl/gl.gyp:gl',
1371 'tools/player_x11/data_source_logger.cc',
1372 'tools/player_x11/data_source_logger.h',
1373 'tools/player_x11/gl_video_renderer.cc',
1374 'tools/player_x11/gl_video_renderer.h',
1375 'tools/player_x11/player_x11.cc',
1376 'tools/player_x11/x11_video_renderer.cc',
1377 'tools/player_x11/x11_video_renderer.h',
1382 # Special target to wrap a gtest_target_type==shared_library
1383 # media_unittests into an android apk for execution.
1384 ['OS == "android" and gtest_target_type == "shared_library"', {
1387 'target_name': 'media_unittests_apk',
1394 'test_suite_name': 'media_unittests',
1395 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)media_unittests<(SHARED_LIB_SUFFIX)',
1397 'includes': [ '../build/apk_test.gypi' ],
1401 ['OS == "android"', {
1404 'target_name': 'media_player_jni_headers',
1407 'jni_gen_package': 'media',
1408 'input_java_class': 'android/media/MediaPlayer.class',
1410 'includes': [ '../build/jar_file_jni_generator.gypi' ],
1413 'target_name': 'media_android_jni_headers',
1416 'media_player_jni_headers',
1419 'base/android/java/src/org/chromium/media/AudioManagerAndroid.java',
1420 'base/android/java/src/org/chromium/media/MediaPlayerBridge.java',
1421 'base/android/java/src/org/chromium/media/MediaPlayerListener.java',
1424 'jni_gen_package': 'media',
1426 'includes': [ '../build/jni_generator.gypi' ],
1429 'target_name': 'video_capture_android_jni_headers',
1432 'base/android/java/src/org/chromium/media/VideoCapture.java',
1435 'jni_gen_package': 'media',
1437 'includes': [ '../build/jni_generator.gypi' ],
1440 'target_name': 'media_codec_jni_headers',
1443 'jni_gen_package': 'media',
1444 'input_java_class': 'android/media/MediaCodec.class',
1446 'includes': [ '../build/jar_file_jni_generator.gypi' ],
1449 'target_name': 'media_format_jni_headers',
1452 'jni_gen_package': 'media',
1453 'input_java_class': 'android/media/MediaFormat.class',
1455 'includes': [ '../build/jar_file_jni_generator.gypi' ],
1458 'target_name': 'player_android',
1459 'type': 'static_library',
1461 'base/android/media_codec_bridge.cc',
1462 'base/android/media_codec_bridge.h',
1463 'base/android/media_jni_registrar.cc',
1464 'base/android/media_jni_registrar.h',
1465 'base/android/media_player_bridge.cc',
1466 'base/android/media_player_bridge.h',
1467 'base/android/media_player_listener.cc',
1468 'base/android/media_player_listener.h',
1471 '../base/base.gyp:base',
1472 'media_android_jni_headers',
1473 'media_codec_jni_headers',
1474 'media_format_jni_headers',
1477 '<(SHARED_INTERMEDIATE_DIR)/media',
1481 'target_name': 'media_java',
1484 '../base/base.gyp:base',
1486 'export_dependent_settings': [
1487 '../base/base.gyp:base',
1490 'java_in_dir': 'base/android/java',
1492 'includes': [ '../build/java.gypi' ],
1497 ['media_use_ffmpeg == 1', {
1500 'target_name': 'ffmpeg_unittests',
1501 'type': 'executable',
1503 '../base/base.gyp:base',
1504 '../base/base.gyp:base_i18n',
1505 '../base/base.gyp:test_support_base',
1506 '../base/base.gyp:test_support_perf',
1507 '../testing/gtest.gyp:gtest',
1508 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
1510 'media_test_support',
1513 'ffmpeg/ffmpeg_unittest.cc',
1516 ['toolkit_uses_gtk == 1', {
1518 # Needed for the following #include chain:
1519 # base/run_all_unittests.cc
1520 # ../base/test_suite.h
1522 '../build/linux/system.gyp:gtk',
1525 ['linux_use_tcmalloc==1', {
1527 '../base/allocator/allocator.gyp:allocator',
1535 'target_name': 'ffmpeg_regression_tests',
1536 'type': 'executable',
1538 '../base/base.gyp:test_support_base',
1539 '../testing/gmock.gyp:gmock',
1540 '../testing/gtest.gyp:gtest',
1541 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
1543 'media_test_support',
1546 'base/run_all_unittests.cc',
1547 'base/test_data_util.cc',
1548 'ffmpeg/ffmpeg_regression_tests.cc',
1549 'filters/pipeline_integration_test_base.cc',
1552 ['os_posix==1 and OS!="mac"', {
1554 ['linux_use_tcmalloc==1', {
1556 '../base/allocator/allocator.gyp:allocator',
1564 'target_name': 'ffmpeg_tests',
1565 'type': 'executable',
1567 '../base/base.gyp:base',
1568 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
1572 'test/ffmpeg_tests/ffmpeg_tests.cc',
1574 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1575 'msvs_disabled_warnings': [ 4267, ],
1578 'target_name': 'media_bench',
1579 'type': 'executable',
1581 '../base/base.gyp:base',
1582 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
1586 'tools/media_bench/media_bench.cc',
1588 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1589 'msvs_disabled_warnings': [ 4267, ],
1593 [ 'screen_capture_supported==1 and (target_arch=="ia32" or target_arch=="x64")', {
1596 'target_name': 'differ_block_sse2',
1597 'type': 'static_library',
1599 [ 'os_posix == 1 and OS != "mac"', {
1609 'video/capture/screen/differ_block_sse2.cc',
1610 'video/capture/screen/differ_block_sse2.h',
1612 }, # end of target differ_block_sse2
1615 # ios check is necessary due to http://crbug.com/172682.
1616 ['OS != "ios" and (target_arch=="ia32" or target_arch=="x64")', {
1619 'target_name': 'media_sse',
1620 'type': 'static_library',
1628 'MEDIA_IMPLEMENTATION',
1631 'base/simd/sinc_resampler_sse.cc',
1632 'base/simd/vector_math_sse.cc',
1634 }, # end of target media_sse