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 PulseAudio library.
10 # Override to dynamically link the cras (ChromeOS audio) library.
15 'target_name': 'media',
16 'type': '<(component)',
19 '../base/base.gyp:base',
20 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
21 '../build/temp_gyp/googleurl.gyp:googleurl',
22 '../crypto/crypto.gyp:crypto',
23 '../third_party/openmax/openmax.gyp:il',
27 'MEDIA_IMPLEMENTATION',
33 'audio/android/audio_manager_android.cc',
34 'audio/android/audio_manager_android.h',
35 'audio/android/audio_track_output_android.cc',
36 'audio/android/audio_track_output_android.h',
37 'audio/android/opensles_input.cc',
38 'audio/android/opensles_input.h',
39 'audio/android/opensles_output.cc',
40 'audio/android/opensles_output.h',
41 'audio/async_socket_io_handler.h',
42 'audio/async_socket_io_handler_posix.cc',
43 'audio/async_socket_io_handler_win.cc',
44 'audio/audio_buffers_state.cc',
45 'audio/audio_buffers_state.h',
47 'audio/audio_input_controller.cc',
48 'audio/audio_input_controller.h',
49 'audio/audio_input_stream_impl.cc',
50 'audio/audio_input_stream_impl.h',
51 'audio/audio_device_name.cc',
52 'audio/audio_device_name.h',
53 'audio/audio_manager.cc',
54 'audio/audio_manager.h',
55 'audio/audio_manager_base.cc',
56 'audio/audio_manager_base.h',
57 'audio/audio_output_controller.cc',
58 'audio/audio_output_controller.h',
59 'audio/audio_output_dispatcher.cc',
60 'audio/audio_output_dispatcher.h',
61 'audio/audio_output_dispatcher_impl.cc',
62 'audio/audio_output_dispatcher_impl.h',
63 'audio/audio_output_mixer.cc',
64 'audio/audio_output_mixer.h',
65 'audio/audio_output_proxy.cc',
66 'audio/audio_output_proxy.h',
67 'audio/audio_parameters.cc',
68 'audio/audio_parameters.h',
69 'audio/audio_util.cc',
71 'audio/cross_process_notification.cc',
72 'audio/cross_process_notification.h',
73 'audio/cross_process_notification_win.cc',
74 'audio/cross_process_notification_posix.cc',
75 'audio/fake_audio_input_stream.cc',
76 'audio/fake_audio_input_stream.h',
77 'audio/fake_audio_output_stream.cc',
78 'audio/fake_audio_output_stream.h',
79 'audio/linux/audio_manager_linux.cc',
80 'audio/linux/audio_manager_linux.h',
81 'audio/linux/alsa_input.cc',
82 'audio/linux/alsa_input.h',
83 'audio/linux/alsa_output.cc',
84 'audio/linux/alsa_output.h',
85 'audio/linux/alsa_util.cc',
86 'audio/linux/alsa_util.h',
87 'audio/linux/alsa_wrapper.cc',
88 'audio/linux/alsa_wrapper.h',
89 'audio/linux/cras_input.cc',
90 'audio/linux/cras_input.h',
91 'audio/linux/cras_output.cc',
92 'audio/linux/cras_output.h',
93 'audio/openbsd/audio_manager_openbsd.cc',
94 'audio/openbsd/audio_manager_openbsd.h',
95 'audio/mac/audio_input_mac.cc',
96 'audio/mac/audio_input_mac.h',
97 'audio/mac/audio_low_latency_input_mac.cc',
98 'audio/mac/audio_low_latency_input_mac.h',
99 'audio/mac/audio_low_latency_output_mac.cc',
100 'audio/mac/audio_low_latency_output_mac.h',
101 'audio/mac/audio_manager_mac.cc',
102 'audio/mac/audio_manager_mac.h',
103 'audio/mac/audio_output_mac.cc',
104 'audio/mac/audio_output_mac.h',
105 'audio/null_audio_sink.cc',
106 'audio/null_audio_sink.h',
107 'audio/pulse/pulse_output.cc',
108 'audio/pulse/pulse_output.h',
109 'audio/sample_rates.cc',
110 'audio/sample_rates.h',
111 'audio/simple_sources.cc',
112 'audio/simple_sources.h',
113 'audio/win/audio_low_latency_input_win.cc',
114 'audio/win/audio_low_latency_input_win.h',
115 'audio/win/audio_low_latency_output_win.cc',
116 'audio/win/audio_low_latency_output_win.h',
117 'audio/win/audio_manager_win.cc',
118 'audio/win/audio_manager_win.h',
119 'audio/win/avrt_wrapper_win.cc',
120 'audio/win/avrt_wrapper_win.h',
121 'audio/win/device_enumeration_win.cc',
122 'audio/win/device_enumeration_win.h',
123 'audio/win/wavein_input_win.cc',
124 'audio/win/wavein_input_win.h',
125 'audio/win/waveout_output_win.cc',
126 'audio/win/waveout_output_win.h',
127 'base/android/media_jni_registrar.cc',
128 'base/android/media_jni_registrar.h',
129 'base/audio_decoder.cc',
130 'base/audio_decoder.h',
131 'base/audio_decoder_config.cc',
132 'base/audio_decoder_config.h',
133 'base/audio_renderer.h',
134 'base/audio_renderer_mixer.cc',
135 'base/audio_renderer_mixer.h',
136 'base/audio_renderer_mixer_input.cc',
137 'base/audio_renderer_mixer_input.h',
138 'base/bitstream_buffer.h',
141 'base/byte_queue.cc',
143 'base/channel_layout.cc',
144 'base/channel_layout.h',
147 'base/composite_filter.cc',
148 'base/composite_filter.h',
149 'base/data_buffer.cc',
150 'base/data_buffer.h',
151 'base/data_source.cc',
152 'base/data_source.h',
153 'base/decoder_buffer.cc',
154 'base/decoder_buffer.h',
155 'base/decrypt_config.cc',
156 'base/decrypt_config.h',
158 'base/decryptor_client.h',
161 'base/demuxer_stream.cc',
162 'base/demuxer_stream.h',
165 'base/filter_collection.cc',
166 'base/filter_collection.h',
167 'base/filter_host.h',
171 'base/media_android.cc',
172 'base/media_export.h',
175 'base/media_log_event.h',
176 'base/media_posix.cc',
177 'base/media_switches.cc',
178 'base/media_switches.h',
180 'base/message_loop_factory.cc',
181 'base/message_loop_factory.h',
182 'base/multi_channel_resampler.cc',
183 'base/multi_channel_resampler.h',
186 'base/pipeline_status.cc',
187 'base/pipeline_status.h',
190 'base/seekable_buffer.cc',
191 'base/seekable_buffer.h',
192 'base/sinc_resampler.cc',
193 'base/sinc_resampler.h',
194 'base/state_matrix.cc',
195 'base/state_matrix.h',
196 'base/stream_parser.cc',
197 'base/stream_parser.h',
198 'base/stream_parser_buffer.cc',
199 'base/stream_parser_buffer.h',
200 'base/video_decoder.cc',
201 'base/video_decoder.h',
202 'base/video_decoder_config.cc',
203 'base/video_decoder_config.h',
204 'base/video_frame.cc',
205 'base/video_frame.h',
206 'base/video_renderer.h',
207 'base/video_util.cc',
209 'crypto/aes_decryptor.cc',
210 'crypto/aes_decryptor.h',
211 'ffmpeg/ffmpeg_common.cc',
212 'ffmpeg/ffmpeg_common.h',
213 'ffmpeg/file_protocol.cc',
214 'ffmpeg/file_protocol.h',
215 'filters/audio_file_reader.cc',
216 'filters/audio_file_reader.h',
217 'filters/audio_renderer_algorithm.cc',
218 'filters/audio_renderer_algorithm.h',
219 'filters/audio_renderer_impl.cc',
220 'filters/audio_renderer_impl.h',
221 'filters/chunk_demuxer.cc',
222 'filters/chunk_demuxer.h',
223 'filters/chunk_demuxer_client.h',
224 'filters/dummy_demuxer.cc',
225 'filters/dummy_demuxer.h',
226 'filters/ffmpeg_audio_decoder.cc',
227 'filters/ffmpeg_audio_decoder.h',
228 'filters/ffmpeg_demuxer.cc',
229 'filters/ffmpeg_demuxer.h',
230 'filters/ffmpeg_glue.cc',
231 'filters/ffmpeg_glue.h',
232 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc',
233 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.h',
234 'filters/ffmpeg_video_decoder.cc',
235 'filters/ffmpeg_video_decoder.h',
236 'filters/file_data_source.cc',
237 'filters/file_data_source.h',
238 'filters/gpu_video_decoder.cc',
239 'filters/gpu_video_decoder.h',
240 'filters/h264_to_annex_b_bitstream_converter.cc',
241 'filters/h264_to_annex_b_bitstream_converter.h',
242 'filters/in_memory_url_protocol.cc',
243 'filters/in_memory_url_protocol.h',
244 'filters/source_buffer_stream.cc',
245 'filters/source_buffer_stream.h',
246 'filters/video_frame_generator.cc',
247 'filters/video_frame_generator.h',
248 'filters/video_renderer_base.cc',
249 'filters/video_renderer_base.h',
250 'video/capture/fake_video_capture_device.cc',
251 'video/capture/fake_video_capture_device.h',
252 'video/capture/linux/video_capture_device_linux.cc',
253 'video/capture/linux/video_capture_device_linux.h',
254 'video/capture/mac/video_capture_device_mac.h',
255 'video/capture/mac/video_capture_device_mac.mm',
256 'video/capture/mac/video_capture_device_qtkit_mac.h',
257 'video/capture/mac/video_capture_device_qtkit_mac.mm',
258 'video/capture/video_capture.h',
259 'video/capture/video_capture_device.h',
260 'video/capture/video_capture_device_dummy.cc',
261 'video/capture/video_capture_device_dummy.h',
262 'video/capture/video_capture_proxy.cc',
263 'video/capture/video_capture_proxy.h',
264 'video/capture/video_capture_types.h',
265 'video/capture/win/filter_base_win.cc',
266 'video/capture/win/filter_base_win.h',
267 'video/capture/win/pin_base_win.cc',
268 'video/capture/win/pin_base_win.h',
269 'video/capture/win/sink_filter_observer_win.h',
270 'video/capture/win/sink_filter_win.cc',
271 'video/capture/win/sink_filter_win.h',
272 'video/capture/win/sink_input_pin_win.cc',
273 'video/capture/win/sink_input_pin_win.h',
274 'video/capture/win/video_capture_device_win.cc',
275 'video/capture/win/video_capture_device_win.h',
278 'video/video_decode_accelerator.cc',
279 'video/video_decode_accelerator.h',
280 'webm/webm_constants.h',
281 'webm/webm_cluster_parser.cc',
282 'webm/webm_cluster_parser.h',
283 'webm/webm_content_encodings.cc',
284 'webm/webm_content_encodings.h',
285 'webm/webm_content_encodings_client.cc',
286 'webm/webm_content_encodings_client.h',
287 'webm/webm_info_parser.cc',
288 'webm/webm_info_parser.h',
289 'webm/webm_parser.cc',
290 'webm/webm_parser.h',
291 'webm/webm_stream_parser.cc',
292 'webm/webm_stream_parser.h',
293 'webm/webm_tracks_parser.cc',
294 'webm/webm_tracks_parser.h',
296 'direct_dependent_settings': {
302 # Android doesn't use ffmpeg, so make the dependency conditional
303 # and exclude the sources which depend on ffmpeg.
304 ['OS != "android"', {
306 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
309 ['OS == "android"', {
311 'base/media_posix.cc',
312 'ffmpeg/ffmpeg_common.cc',
313 'ffmpeg/ffmpeg_common.h',
314 'ffmpeg/file_protocol.cc',
315 'ffmpeg/file_protocol.h',
316 'filters/audio_file_reader.cc',
317 'filters/audio_file_reader.h',
318 'filters/chunk_demuxer.cc',
319 'filters/chunk_demuxer.h',
320 'filters/chunk_demuxer_client.h',
321 'filters/ffmpeg_audio_decoder.cc',
322 'filters/ffmpeg_audio_decoder.h',
323 'filters/ffmpeg_demuxer.cc',
324 'filters/ffmpeg_demuxer.h',
325 'filters/ffmpeg_glue.cc',
326 'filters/ffmpeg_glue.h',
327 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc',
328 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.h',
329 'filters/ffmpeg_video_decoder.cc',
330 'filters/ffmpeg_video_decoder.h',
331 'filters/gpu_video_decoder.cc',
332 'filters/gpu_video_decoder.h',
333 'webm/webm_cluster_parser.cc',
334 'webm/webm_cluster_parser.h',
335 'webm/webm_stream_parser.cc',
336 'webm/webm_stream_parser.h',
339 # The below 'android' condition were added temporarily and should be
340 # removed in downstream, because there is no Java environment setup in
342 ['OS == "android"', {
344 'audio/android/audio_track_output_android.cc',
347 'audio/android/audio_track_output_stub_android.cc',
355 ['OS=="linux" or OS=="freebsd" or OS=="solaris"', {
363 'sources/': [ ['exclude', '/alsa_' ],
364 ['exclude', '/audio_manager_linux' ] ],
372 'audio/openbsd/audio_manager_openbsd.cc',
373 'audio/openbsd/audio_manager_openbsd.h',
380 'pkg-config': '../build/linux/pkg-config-wrapper "<(sysroot)" "<(target_arch)"',
382 'pkg-config': 'pkg-config'
389 '<!@(<(pkg-config) --cflags libcras)',
393 '<!@(<(pkg-config) --libs libcras)',
399 }, { # else: use_cras == 0
401 'audio/linux/cras_input.cc',
402 'audio/linux/cras_input.h',
403 'audio/linux/cras_output.cc',
404 'audio/linux/cras_output.h',
411 ['use_pulseaudio == 1', {
413 '<!@(pkg-config --cflags libpulse)',
417 '<!@(pkg-config --libs-only-l libpulse)',
423 }, { # else: use_pulseaudio == 0
425 'audio/pulse/pulse_output.cc',
426 'audio/pulse/pulse_output.h',
431 ['os_posix == 1 and OS != "android"', {
432 # Video capture isn't supported in Android yet.
434 'video/capture/video_capture_device_dummy.cc',
435 'video/capture/video_capture_device_dummy.h',
441 '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework',
442 '$(SDKROOT)/System/Library/Frameworks/AudioToolbox.framework',
443 '$(SDKROOT)/System/Library/Frameworks/CoreAudio.framework',
444 '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework',
445 '$(SDKROOT)/System/Library/Frameworks/QTKit.framework',
451 'audio/pulse/pulse_output.cc',
452 'audio/pulse/pulse_output.h',
453 'video/capture/video_capture_device_dummy.cc',
454 'video/capture/video_capture_device_dummy.h',
457 ['proprietary_codecs==1 or branding=="Chrome"', {
461 'mp4/box_definitions.cc',
462 'mp4/box_definitions.h',
467 'mp4/mp4_stream_parser.cc',
468 'mp4/mp4_stream_parser.h',
469 'mp4/offset_byte_queue.cc',
470 'mp4/offset_byte_queue.h',
471 'mp4/track_run_iterator.cc',
472 'mp4/track_run_iterator.h',
478 'target_name': 'yuv_convert',
479 'type': 'static_library',
484 ['order_profiling != 0', {
485 'target_conditions' : [
486 ['_toolset=="target"', {
487 'cflags!': [ '-finstrument-functions' ],
491 [ 'target_arch == "ia32" or target_arch == "x64"', {
493 'yuv_convert_simd_x86',
496 [ 'target_arch == "arm"', {
498 'yuv_convert_simd_arm',
503 'base/yuv_convert.cc',
504 'base/yuv_convert.h',
508 'target_name': 'yuv_convert_simd_x86',
509 'type': 'static_library',
514 'base/simd/convert_rgb_to_yuv_c.cc',
515 'base/simd/convert_rgb_to_yuv_sse2.cc',
516 'base/simd/convert_rgb_to_yuv_ssse3.asm',
517 'base/simd/convert_rgb_to_yuv_ssse3.cc',
518 'base/simd/convert_rgb_to_yuv_ssse3.inc',
519 'base/simd/convert_yuv_to_rgb_c.cc',
520 'base/simd/convert_yuv_to_rgb_x86.cc',
521 'base/simd/convert_yuv_to_rgb_mmx.asm',
522 'base/simd/convert_yuv_to_rgb_mmx.inc',
523 'base/simd/convert_yuv_to_rgb_sse.asm',
524 'base/simd/filter_yuv.h',
525 'base/simd/filter_yuv_c.cc',
526 'base/simd/filter_yuv_mmx.cc',
527 'base/simd/filter_yuv_sse2.cc',
528 'base/simd/linear_scale_yuv_to_rgb_mmx.asm',
529 'base/simd/linear_scale_yuv_to_rgb_mmx.inc',
530 'base/simd/linear_scale_yuv_to_rgb_sse.asm',
531 'base/simd/scale_yuv_to_rgb_mmx.asm',
532 'base/simd/scale_yuv_to_rgb_mmx.inc',
533 'base/simd/scale_yuv_to_rgb_sse.asm',
534 'base/simd/yuv_to_rgb_table.cc',
535 'base/simd/yuv_to_rgb_table.h',
538 ['order_profiling != 0', {
539 'target_conditions' : [
540 ['_toolset=="target"', {
541 'cflags!': [ '-finstrument-functions' ],
545 [ 'target_arch == "x64"', {
546 # Source files optimized for X64 systems.
548 'base/simd/linear_scale_yuv_to_rgb_mmx_x64.asm',
549 'base/simd/scale_yuv_to_rgb_sse2_x64.asm',
552 [ 'os_posix == 1 and OS != "mac" and OS != "android"', {
561 # gcc on the mac builds horribly unoptimized sse code in debug
562 # mode. Since this is rarely going to be debugged, run with full
563 # optimizations in Debug as well as Release.
564 'GCC_OPTIMIZATION_LEVEL': '3', # -O3
589 [ 'os_posix==1 and OS!="mac"', {
592 [ 'target_arch=="ia32"', {
613 'yasm_output_path': '<(SHARED_INTERMEDIATE_DIR)/media',
615 'msvs_2010_disable_uldi_when_referenced': 1,
617 '../third_party/yasm/yasm_compile.gypi',
621 'target_name': 'yuv_convert_simd_arm',
622 'type': 'static_library',
627 'base/simd/convert_rgb_to_yuv_c.cc',
628 'base/simd/convert_rgb_to_yuv.h',
629 'base/simd/convert_yuv_to_rgb_c.cc',
630 'base/simd/convert_yuv_to_rgb.h',
631 'base/simd/filter_yuv.h',
632 'base/simd/filter_yuv_c.cc',
633 'base/simd/yuv_to_rgb_table.cc',
634 'base/simd/yuv_to_rgb_table.h',
638 'target_name': 'media_unittests',
639 'type': '<(gtest_target_type)',
642 'media_test_support',
644 '../base/base.gyp:base',
645 '../base/base.gyp:base_i18n',
646 '../base/base.gyp:test_support_base',
647 '../testing/gmock.gyp:gmock',
648 '../testing/gtest.gyp:gtest',
652 'audio/async_socket_io_handler_unittest.cc',
653 'audio/audio_input_controller_unittest.cc',
654 'audio/audio_input_device_unittest.cc',
655 'audio/audio_input_unittest.cc',
656 'audio/audio_input_volume_unittest.cc',
657 'audio/audio_low_latency_input_output_unittest.cc',
658 'audio/audio_output_controller_unittest.cc',
659 'audio/audio_output_proxy_unittest.cc',
660 'audio/audio_parameters_unittest.cc',
661 'audio/audio_util_unittest.cc',
662 'audio/cross_process_notification_unittest.cc',
663 'audio/linux/alsa_output_unittest.cc',
664 'audio/mac/audio_low_latency_input_mac_unittest.cc',
665 'audio/mac/audio_output_mac_unittest.cc',
666 'audio/simple_sources_unittest.cc',
667 'audio/win/audio_low_latency_input_win_unittest.cc',
668 'audio/win/audio_low_latency_output_win_unittest.cc',
669 'audio/win/audio_output_win_unittest.cc',
670 'base/audio_renderer_mixer_unittest.cc',
671 'base/audio_renderer_mixer_input_unittest.cc',
672 'base/buffers_unittest.cc',
673 'base/clock_unittest.cc',
674 'base/composite_filter_unittest.cc',
675 'base/data_buffer_unittest.cc',
676 'base/decoder_buffer_unittest.cc',
677 'base/djb2_unittest.cc',
678 'base/filter_collection_unittest.cc',
679 'base/multi_channel_resampler_unittest.cc',
680 'base/pipeline_unittest.cc',
681 'base/ranges_unittest.cc',
682 'base/run_all_unittests.cc',
683 'base/seekable_buffer_unittest.cc',
684 'base/sinc_resampler_unittest.cc',
685 'base/state_matrix_unittest.cc',
686 'base/test_data_util.cc',
687 'base/test_data_util.h',
688 'base/video_frame_unittest.cc',
689 'base/video_util_unittest.cc',
690 'base/yuv_convert_unittest.cc',
691 'crypto/aes_decryptor_unittest.cc',
692 'ffmpeg/ffmpeg_common_unittest.cc',
693 'filters/audio_renderer_algorithm_unittest.cc',
694 'filters/audio_renderer_impl_unittest.cc',
695 'filters/chunk_demuxer_unittest.cc',
696 'filters/ffmpeg_audio_decoder_unittest.cc',
697 'filters/ffmpeg_decoder_unittest.h',
698 'filters/ffmpeg_demuxer_unittest.cc',
699 'filters/ffmpeg_glue_unittest.cc',
700 'filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc',
701 'filters/ffmpeg_video_decoder_unittest.cc',
702 'filters/file_data_source_unittest.cc',
703 'filters/h264_to_annex_b_bitstream_converter_unittest.cc',
704 'filters/pipeline_integration_test.cc',
705 'filters/pipeline_integration_test_base.cc',
706 'filters/source_buffer_stream_unittest.cc',
707 'filters/video_renderer_base_unittest.cc',
708 'video/capture/video_capture_device_unittest.cc',
709 'webm/cluster_builder.cc',
710 'webm/cluster_builder.h',
711 'webm/webm_cluster_parser_unittest.cc',
712 'webm/webm_content_encodings_client_unittest.cc',
713 'webm/webm_parser_unittest.cc',
716 ['os_posix==1 and OS!="mac"', {
718 ['linux_use_tcmalloc==1', {
720 '../base/allocator/allocator.gyp:allocator',
727 'audio/audio_input_volume_unittest.cc',
728 'base/test_data_util.cc',
729 'base/test_data_util.h',
730 'ffmpeg/ffmpeg_common_unittest.cc',
731 'filters/ffmpeg_audio_decoder_unittest.cc',
732 'filters/chunk_demuxer_unittest.cc',
733 'filters/ffmpeg_demuxer_unittest.cc',
734 'filters/ffmpeg_glue_unittest.cc',
735 'filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc',
736 'filters/ffmpeg_video_decoder_unittest.cc',
737 'filters/pipeline_integration_test.cc',
738 'filters/pipeline_integration_test_base.cc',
739 'mp4/mp4_stream_parser_unittest.cc',
740 'webm/webm_cluster_parser_unittest.cc',
743 ['gtest_target_type == "shared_library"', {
745 '../testing/android/native_test.gyp:native_test_native_code',
751 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
758 'audio/linux/cras_input_unittest.cc',
759 'audio/linux/cras_output_unittest.cc',
767 [ 'target_arch=="ia32" or target_arch=="x64"', {
769 'base/simd/convert_rgb_to_yuv_unittest.cc',
772 ['proprietary_codecs==1 or branding=="Chrome"', {
774 'mp4/avc_unittest.cc',
775 'mp4/box_reader_unittest.cc',
776 'mp4/mp4_stream_parser_unittest.cc',
777 'mp4/offset_byte_queue_unittest.cc',
783 'target_name': 'media_test_support',
784 'type': 'static_library',
787 '../base/base.gyp:base',
788 '../testing/gmock.gyp:gmock',
789 '../testing/gtest.gyp:gtest',
792 'audio/mock_audio_manager.cc',
793 'audio/mock_audio_manager.h',
794 'audio/test_audio_input_controller_factory.cc',
795 'audio/test_audio_input_controller_factory.h',
796 'base/fake_audio_render_callback.cc',
797 'base/fake_audio_render_callback.h',
798 'base/mock_audio_renderer_sink.cc',
799 'base/mock_audio_renderer_sink.h',
800 'base/mock_callback.cc',
801 'base/mock_callback.h',
802 'base/mock_data_source_host.cc',
803 'base/mock_data_source_host.h',
804 'base/mock_demuxer_host.cc',
805 'base/mock_demuxer_host.h',
806 'base/mock_filter_host.cc',
807 'base/mock_filter_host.h',
808 'base/mock_filters.cc',
809 'base/mock_filters.h',
813 'target_name': 'scaler_bench',
814 'type': 'executable',
818 '../base/base.gyp:base',
819 '../skia/skia.gyp:skia',
822 'tools/scaler_bench/scaler_bench.cc',
826 'target_name': 'qt_faststart',
827 'type': 'executable',
829 'tools/qt_faststart/qt_faststart.c'
833 'target_name': 'seek_tester',
834 'type': 'executable',
837 '../base/base.gyp:base',
840 'tools/seek_tester/seek_tester.cc',
848 'target_name': 'player_wtl',
849 'type': 'executable',
853 '../base/base.gyp:base',
854 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
858 '<(DEPTH)/third_party/wtl/include',
861 'tools/player_wtl/list.h',
862 'tools/player_wtl/mainfrm.h',
863 'tools/player_wtl/movie.cc',
864 'tools/player_wtl/movie.h',
865 'tools/player_wtl/player_wtl.cc',
866 'tools/player_wtl/player_wtl.rc',
867 'tools/player_wtl/props.h',
868 'tools/player_wtl/seek.h',
869 'tools/player_wtl/resource.h',
870 'tools/player_wtl/view.h',
874 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
878 '_CRT_SECURE_NO_WARNINGS=1',
883 ['OS == "win" or toolkit_uses_gtk == 1', {
886 'target_name': 'shader_bench',
887 'type': 'executable',
891 '../base/base.gyp:base',
892 '../ui/gl/gl.gyp:gl',
895 'tools/shader_bench/shader_bench.cc',
896 'tools/shader_bench/cpu_color_painter.cc',
897 'tools/shader_bench/cpu_color_painter.h',
898 'tools/shader_bench/gpu_color_painter.cc',
899 'tools/shader_bench/gpu_color_painter.h',
900 'tools/shader_bench/gpu_painter.cc',
901 'tools/shader_bench/gpu_painter.h',
902 'tools/shader_bench/painter.cc',
903 'tools/shader_bench/painter.h',
904 'tools/shader_bench/window.cc',
905 'tools/shader_bench/window.h',
908 ['toolkit_uses_gtk == 1', {
910 '../build/linux/system.gyp:gtk',
913 'tools/shader_bench/window_linux.cc',
918 '../third_party/angle/src/build_angle.gyp:libEGL',
919 '../third_party/angle/src/build_angle.gyp:libGLESv2',
922 'tools/shader_bench/window_win.cc',
929 ['OS == "linux" and target_arch != "arm"', {
932 'target_name': 'tile_render_bench',
933 'type': 'executable',
935 '../base/base.gyp:base',
936 '../ui/gl/gl.gyp:gl',
943 'tools/tile_render_bench/tile_render_bench.cc',
948 ['os_posix == 1 and OS != "mac" and OS != "android"', {
951 'target_name': 'player_x11',
952 'type': 'executable',
956 '../base/base.gyp:base',
957 '../ui/gl/gl.gyp:gl',
968 'tools/player_x11/data_source_logger.cc',
969 'tools/player_x11/data_source_logger.h',
970 'tools/player_x11/gl_video_renderer.cc',
971 'tools/player_x11/gl_video_renderer.h',
972 'tools/player_x11/player_x11.cc',
973 'tools/player_x11/x11_video_renderer.cc',
974 'tools/player_x11/x11_video_renderer.h',
979 # Special target to wrap a gtest_target_type==shared_library
980 # media_unittests into an android apk for execution.
981 ['OS == "android" and gtest_target_type == "shared_library"', {
984 'target_name': 'media_unittests_apk',
987 '../base/base.gyp:base_java',
992 'test_suite_name': 'media_unittests',
993 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)media_unittests<(SHARED_LIB_SUFFIX)',
994 'input_jars_paths': [
995 '<(PRODUCT_DIR)/lib.java/chromium_base.jar',
996 '<(PRODUCT_DIR)/lib.java/chromium_media.jar',
999 'includes': [ '../build/apk_test.gypi' ],
1003 ['OS == "android"', {
1006 'target_name': 'player_android',
1007 'type': 'static_library',
1009 'base/android/media_player_bridge.cc',
1010 'base/android/media_player_bridge.h',
1013 '../base/base.gyp:base',
1016 '<(SHARED_INTERMEDIATE_DIR)/media',
1020 'action_name': 'generate-jni-headers',
1022 '../base/android/jni_generator/jni_generator.py',
1023 'base/android/java/src/org/chromium/media/MediaPlayerListener.java',
1026 '<(SHARED_INTERMEDIATE_DIR)/media/jni/media_player_listener_jni.h',
1030 '<(DEPTH)/base/android/jni_generator/jni_generator.py',
1039 'target_name': 'media_java',
1041 'dependencies': [ '../base/base.gyp:base_java' ],
1043 'package_name': 'media',
1044 'java_in_dir': 'base/android/java',
1046 'includes': [ '../build/java.gypi' ],
1050 }, { # OS != "android"'
1051 # Android does not use ffmpeg, so disable the targets which require it.
1054 'target_name': 'ffmpeg_unittests',
1055 'type': 'executable',
1058 'media_test_support',
1059 '../base/base.gyp:base',
1060 '../base/base.gyp:base_i18n',
1061 '../base/base.gyp:test_support_base',
1062 '../base/base.gyp:test_support_perf',
1063 '../testing/gtest.gyp:gtest',
1064 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
1067 'ffmpeg/ffmpeg_unittest.cc',
1070 ['toolkit_uses_gtk == 1', {
1072 # Needed for the following #include chain:
1073 # base/run_all_unittests.cc
1074 # ../base/test_suite.h
1076 '../build/linux/system.gyp:gtk',
1079 ['linux_use_tcmalloc==1', {
1081 '../base/allocator/allocator.gyp:allocator',
1089 'target_name': 'ffmpeg_regression_tests',
1090 'type': 'executable',
1093 'media_test_support',
1094 '../base/base.gyp:test_support_base',
1095 '../testing/gmock.gyp:gmock',
1096 '../testing/gtest.gyp:gtest',
1097 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
1100 'base/test_data_util.cc',
1101 'base/run_all_unittests.cc',
1102 'ffmpeg/ffmpeg_regression_tests.cc',
1103 'filters/pipeline_integration_test_base.cc',
1106 ['os_posix==1 and OS!="mac"', {
1108 ['linux_use_tcmalloc==1', {
1110 '../base/allocator/allocator.gyp:allocator',
1118 'target_name': 'ffmpeg_tests',
1119 'type': 'executable',
1122 '../base/base.gyp:base',
1123 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
1126 'test/ffmpeg_tests/ffmpeg_tests.cc',
1130 'target_name': 'media_bench',
1131 'type': 'executable',
1134 '../base/base.gyp:base',
1135 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
1138 'tools/media_bench/media_bench.cc',