Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 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. |
| 4 | |
| 5 | { |
| 6 | 'variables': { |
| 7 | 'chromium_code': 1, |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 8 | # Override to dynamically link the cras (ChromeOS audio) library. |
| 9 | 'use_cras%': 0, |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 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, |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 14 | 'conditions': [ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 15 | ['OS=="android" or OS=="ios"', { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 16 | # Android and iOS don't use ffmpeg. |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 17 | 'media_use_ffmpeg%': 0, |
| 18 | # Android and iOS don't use libvpx. |
| 19 | 'media_use_libvpx%': 0, |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 20 | }, { # 'OS!="android" and OS!="ios"' |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 21 | 'media_use_ffmpeg%': 1, |
| 22 | 'media_use_libvpx%': 1, |
| 23 | }], |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 24 | # ALSA usage. |
| 25 | ['OS=="linux" or OS=="freebsd" or OS=="solaris"', { |
| 26 | 'use_alsa%': 1, |
| 27 | }, { |
| 28 | 'use_alsa%': 0, |
| 29 | }], |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 30 | ['os_posix==1 and OS!="mac" and OS!="ios" and OS!="android" and chromeos!=1', { |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 31 | 'use_pulseaudio%': 1, |
| 32 | }, { |
| 33 | 'use_pulseaudio%': 0, |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 34 | }], |
| 35 | ], |
| 36 | }, |
| 37 | 'targets': [ |
| 38 | { |
| 39 | 'target_name': 'media', |
| 40 | 'type': '<(component)', |
| 41 | 'dependencies': [ |
| 42 | '../base/base.gyp:base', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 43 | '../crypto/crypto.gyp:crypto', |
| 44 | '../skia/skia.gyp:skia', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 45 | '../third_party/opus/opus.gyp:opus', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 46 | '../ui/ui.gyp:ui', |
Torne (Richard Coles) | 868fa2f | 2013-06-11 10:57:03 +0100 | [diff] [blame] | 47 | '../url/url.gyp:url_lib', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 48 | ], |
| 49 | 'defines': [ |
| 50 | 'MEDIA_IMPLEMENTATION', |
| 51 | ], |
| 52 | 'include_dirs': [ |
| 53 | '..', |
| 54 | ], |
| 55 | 'sources': [ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 56 | 'audio/agc_audio_stream.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 57 | 'audio/android/audio_manager_android.cc', |
| 58 | 'audio/android/audio_manager_android.h', |
| 59 | 'audio/android/opensles_input.cc', |
| 60 | 'audio/android/opensles_input.h', |
| 61 | 'audio/android/opensles_output.cc', |
| 62 | 'audio/android/opensles_output.h', |
| 63 | 'audio/async_socket_io_handler.h', |
| 64 | 'audio/async_socket_io_handler_posix.cc', |
| 65 | 'audio/async_socket_io_handler_win.cc', |
| 66 | 'audio/audio_buffers_state.cc', |
| 67 | 'audio/audio_buffers_state.h', |
| 68 | 'audio/audio_device_name.cc', |
| 69 | 'audio/audio_device_name.h', |
| 70 | 'audio/audio_device_thread.cc', |
| 71 | 'audio/audio_device_thread.h', |
| 72 | 'audio/audio_input_controller.cc', |
| 73 | 'audio/audio_input_controller.h', |
| 74 | 'audio/audio_input_device.cc', |
| 75 | 'audio/audio_input_device.h', |
| 76 | 'audio/audio_input_ipc.cc', |
| 77 | 'audio/audio_input_ipc.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 78 | 'audio/audio_io.h', |
| 79 | 'audio/audio_manager.cc', |
| 80 | 'audio/audio_manager.h', |
| 81 | 'audio/audio_manager_base.cc', |
| 82 | 'audio/audio_manager_base.h', |
| 83 | 'audio/audio_output_controller.cc', |
| 84 | 'audio/audio_output_controller.h', |
| 85 | 'audio/audio_output_device.cc', |
| 86 | 'audio/audio_output_device.h', |
| 87 | 'audio/audio_output_dispatcher.cc', |
| 88 | 'audio/audio_output_dispatcher.h', |
| 89 | 'audio/audio_output_dispatcher_impl.cc', |
| 90 | 'audio/audio_output_dispatcher_impl.h', |
| 91 | 'audio/audio_output_ipc.cc', |
| 92 | 'audio/audio_output_ipc.h', |
| 93 | 'audio/audio_output_proxy.cc', |
| 94 | 'audio/audio_output_proxy.h', |
| 95 | 'audio/audio_output_resampler.cc', |
| 96 | 'audio/audio_output_resampler.h', |
Ben Murdoch | ca12bfa | 2013-07-23 11:17:05 +0100 | [diff] [blame] | 97 | 'audio/audio_power_monitor.cc', |
| 98 | 'audio/audio_power_monitor.h', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 99 | 'audio/audio_source_diverter.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 100 | 'audio/audio_util.cc', |
| 101 | 'audio/audio_util.h', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 102 | 'audio/cras/audio_manager_cras.cc', |
| 103 | 'audio/cras/audio_manager_cras.h', |
| 104 | 'audio/cras/cras_input.cc', |
| 105 | 'audio/cras/cras_input.h', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 106 | 'audio/cras/cras_unified.cc', |
| 107 | 'audio/cras/cras_unified.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 108 | 'audio/cross_process_notification.cc', |
| 109 | 'audio/cross_process_notification.h', |
| 110 | 'audio/cross_process_notification_posix.cc', |
| 111 | 'audio/cross_process_notification_win.cc', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 112 | 'audio/fake_audio_consumer.cc', |
| 113 | 'audio/fake_audio_consumer.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 114 | 'audio/fake_audio_input_stream.cc', |
| 115 | 'audio/fake_audio_input_stream.h', |
| 116 | 'audio/fake_audio_output_stream.cc', |
| 117 | 'audio/fake_audio_output_stream.h', |
| 118 | 'audio/ios/audio_manager_ios.h', |
| 119 | 'audio/ios/audio_manager_ios.mm', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 120 | 'audio/ios/audio_session_util_ios.h', |
| 121 | 'audio/ios/audio_session_util_ios.mm', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 122 | 'audio/linux/alsa_input.cc', |
| 123 | 'audio/linux/alsa_input.h', |
| 124 | 'audio/linux/alsa_output.cc', |
| 125 | 'audio/linux/alsa_output.h', |
| 126 | 'audio/linux/alsa_util.cc', |
| 127 | 'audio/linux/alsa_util.h', |
| 128 | 'audio/linux/alsa_wrapper.cc', |
| 129 | 'audio/linux/alsa_wrapper.h', |
| 130 | 'audio/linux/audio_manager_linux.cc', |
| 131 | 'audio/linux/audio_manager_linux.h', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 132 | 'audio/mac/aggregate_device_manager.cc', |
| 133 | 'audio/mac/aggregate_device_manager.h', |
| 134 | 'audio/mac/audio_auhal_mac.cc', |
| 135 | 'audio/mac/audio_auhal_mac.h', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 136 | 'audio/mac/audio_device_listener_mac.cc', |
| 137 | 'audio/mac/audio_device_listener_mac.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 138 | 'audio/mac/audio_input_mac.cc', |
| 139 | 'audio/mac/audio_input_mac.h', |
| 140 | 'audio/mac/audio_low_latency_input_mac.cc', |
| 141 | 'audio/mac/audio_low_latency_input_mac.h', |
| 142 | 'audio/mac/audio_low_latency_output_mac.cc', |
| 143 | 'audio/mac/audio_low_latency_output_mac.h', |
| 144 | 'audio/mac/audio_manager_mac.cc', |
| 145 | 'audio/mac/audio_manager_mac.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 146 | 'audio/mac/audio_synchronized_mac.cc', |
| 147 | 'audio/mac/audio_synchronized_mac.h', |
| 148 | 'audio/mac/audio_unified_mac.cc', |
| 149 | 'audio/mac/audio_unified_mac.h', |
| 150 | 'audio/null_audio_sink.cc', |
| 151 | 'audio/null_audio_sink.h', |
| 152 | 'audio/openbsd/audio_manager_openbsd.cc', |
| 153 | 'audio/openbsd/audio_manager_openbsd.h', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 154 | 'audio/pulse/audio_manager_pulse.cc', |
| 155 | 'audio/pulse/audio_manager_pulse.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 156 | 'audio/pulse/pulse_output.cc', |
| 157 | 'audio/pulse/pulse_output.h', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 158 | 'audio/pulse/pulse_input.cc', |
| 159 | 'audio/pulse/pulse_input.h', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 160 | 'audio/pulse/pulse_unified.cc', |
| 161 | 'audio/pulse/pulse_unified.h', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 162 | 'audio/pulse/pulse_util.cc', |
| 163 | 'audio/pulse/pulse_util.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 164 | 'audio/sample_rates.cc', |
| 165 | 'audio/sample_rates.h', |
| 166 | 'audio/scoped_loop_observer.cc', |
| 167 | 'audio/scoped_loop_observer.h', |
| 168 | 'audio/simple_sources.cc', |
| 169 | 'audio/simple_sources.h', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 170 | 'audio/virtual_audio_input_stream.cc', |
| 171 | 'audio/virtual_audio_input_stream.h', |
| 172 | 'audio/virtual_audio_output_stream.cc', |
| 173 | 'audio/virtual_audio_output_stream.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 174 | 'audio/win/audio_device_listener_win.cc', |
| 175 | 'audio/win/audio_device_listener_win.h', |
| 176 | 'audio/win/audio_low_latency_input_win.cc', |
| 177 | 'audio/win/audio_low_latency_input_win.h', |
| 178 | 'audio/win/audio_low_latency_output_win.cc', |
| 179 | 'audio/win/audio_low_latency_output_win.h', |
| 180 | 'audio/win/audio_manager_win.cc', |
| 181 | 'audio/win/audio_manager_win.h', |
| 182 | 'audio/win/audio_unified_win.cc', |
| 183 | 'audio/win/audio_unified_win.h', |
| 184 | 'audio/win/avrt_wrapper_win.cc', |
| 185 | 'audio/win/avrt_wrapper_win.h', |
| 186 | 'audio/win/device_enumeration_win.cc', |
| 187 | 'audio/win/device_enumeration_win.h', |
| 188 | 'audio/win/core_audio_util_win.cc', |
| 189 | 'audio/win/core_audio_util_win.h', |
| 190 | 'audio/win/wavein_input_win.cc', |
| 191 | 'audio/win/wavein_input_win.h', |
| 192 | 'audio/win/waveout_output_win.cc', |
| 193 | 'audio/win/waveout_output_win.h', |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 194 | 'base/android/demuxer_stream_player_params.cc', |
| 195 | 'base/android/demuxer_stream_player_params.h', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 196 | 'base/android/media_player_manager.h', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 197 | 'base/android/media_resource_getter.cc', |
| 198 | 'base/android/media_resource_getter.h', |
Torne (Richard Coles) | 7d4cd47 | 2013-06-19 11:58:07 +0100 | [diff] [blame] | 199 | 'base/audio_buffer.cc', |
| 200 | 'base/audio_buffer.h', |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 201 | 'base/audio_buffer_queue.cc', |
| 202 | 'base/audio_buffer_queue.h', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 203 | 'base/audio_capturer_source.h', |
| 204 | 'base/audio_converter.cc', |
| 205 | 'base/audio_converter.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 206 | 'base/audio_decoder.cc', |
| 207 | 'base/audio_decoder.h', |
| 208 | 'base/audio_decoder_config.cc', |
| 209 | 'base/audio_decoder_config.h', |
| 210 | 'base/audio_fifo.cc', |
| 211 | 'base/audio_fifo.h', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 212 | 'base/audio_hardware_config.cc', |
| 213 | 'base/audio_hardware_config.h', |
| 214 | 'base/audio_hash.cc', |
| 215 | 'base/audio_hash.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 216 | 'base/audio_pull_fifo.cc', |
| 217 | 'base/audio_pull_fifo.h', |
| 218 | 'base/audio_renderer.cc', |
| 219 | 'base/audio_renderer.h', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 220 | 'base/audio_renderer_sink.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 221 | 'base/audio_renderer_mixer.cc', |
| 222 | 'base/audio_renderer_mixer.h', |
| 223 | 'base/audio_renderer_mixer_input.cc', |
| 224 | 'base/audio_renderer_mixer_input.h', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 225 | 'base/audio_splicer.cc', |
| 226 | 'base/audio_splicer.h', |
| 227 | 'base/audio_timestamp_helper.cc', |
| 228 | 'base/audio_timestamp_helper.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 229 | 'base/bind_to_loop.h', |
| 230 | 'base/bitstream_buffer.h', |
| 231 | 'base/bit_reader.cc', |
| 232 | 'base/bit_reader.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 233 | 'base/buffers.h', |
| 234 | 'base/byte_queue.cc', |
| 235 | 'base/byte_queue.h', |
| 236 | 'base/channel_mixer.cc', |
| 237 | 'base/channel_mixer.h', |
| 238 | 'base/clock.cc', |
| 239 | 'base/clock.h', |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 240 | 'base/container_names.cc', |
| 241 | 'base/container_names.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 242 | 'base/data_buffer.cc', |
| 243 | 'base/data_buffer.h', |
| 244 | 'base/data_source.cc', |
| 245 | 'base/data_source.h', |
| 246 | 'base/decoder_buffer.cc', |
| 247 | 'base/decoder_buffer.h', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 248 | 'base/decoder_buffer_queue.cc', |
| 249 | 'base/decoder_buffer_queue.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 250 | 'base/decryptor.cc', |
| 251 | 'base/decryptor.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 252 | 'base/decrypt_config.cc', |
| 253 | 'base/decrypt_config.h', |
| 254 | 'base/demuxer.cc', |
| 255 | 'base/demuxer.h', |
| 256 | 'base/demuxer_stream.cc', |
| 257 | 'base/demuxer_stream.h', |
| 258 | 'base/djb2.cc', |
| 259 | 'base/djb2.h', |
| 260 | 'base/filter_collection.cc', |
| 261 | 'base/filter_collection.h', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 262 | 'base/media.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 263 | 'base/media.h', |
Torne (Richard Coles) | 868fa2f | 2013-06-11 10:57:03 +0100 | [diff] [blame] | 264 | 'base/media_keys.cc', |
| 265 | 'base/media_keys.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 266 | 'base/media_log.cc', |
| 267 | 'base/media_log.h', |
| 268 | 'base/media_log_event.h', |
| 269 | 'base/media_posix.cc', |
| 270 | 'base/media_switches.cc', |
| 271 | 'base/media_switches.h', |
| 272 | 'base/media_win.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 273 | 'base/multi_channel_resampler.cc', |
| 274 | 'base/multi_channel_resampler.h', |
| 275 | 'base/pipeline.cc', |
| 276 | 'base/pipeline.h', |
| 277 | 'base/pipeline_status.cc', |
| 278 | 'base/pipeline_status.h', |
| 279 | 'base/ranges.cc', |
| 280 | 'base/ranges.h', |
Torne (Richard Coles) | 7d4cd47 | 2013-06-19 11:58:07 +0100 | [diff] [blame] | 281 | 'base/sample_format.cc', |
| 282 | 'base/sample_format.h', |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 283 | 'base/scoped_histogram_timer.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 284 | 'base/seekable_buffer.cc', |
| 285 | 'base/seekable_buffer.h', |
| 286 | 'base/serial_runner.cc', |
| 287 | 'base/serial_runner.h', |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 288 | 'base/simd/convert_rgb_to_yuv.h', |
| 289 | 'base/simd/convert_rgb_to_yuv_c.cc', |
| 290 | 'base/simd/convert_yuv_to_rgb.h', |
| 291 | 'base/simd/convert_yuv_to_rgb_c.cc', |
| 292 | 'base/simd/filter_yuv.h', |
| 293 | 'base/simd/filter_yuv_c.cc', |
| 294 | 'base/simd/yuv_to_rgb_table.cc', |
| 295 | 'base/simd/yuv_to_rgb_table.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 296 | 'base/sinc_resampler.cc', |
| 297 | 'base/sinc_resampler.h', |
| 298 | 'base/stream_parser.cc', |
| 299 | 'base/stream_parser.h', |
| 300 | 'base/stream_parser_buffer.cc', |
| 301 | 'base/stream_parser_buffer.h', |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 302 | 'base/text_track.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 303 | 'base/video_decoder.cc', |
| 304 | 'base/video_decoder.h', |
| 305 | 'base/video_decoder_config.cc', |
| 306 | 'base/video_decoder_config.h', |
| 307 | 'base/video_frame.cc', |
| 308 | 'base/video_frame.h', |
| 309 | 'base/video_renderer.cc', |
| 310 | 'base/video_renderer.h', |
| 311 | 'base/video_util.cc', |
| 312 | 'base/video_util.h', |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 313 | 'base/yuv_convert.cc', |
| 314 | 'base/yuv_convert.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 315 | 'crypto/aes_decryptor.cc', |
| 316 | 'crypto/aes_decryptor.h', |
| 317 | 'ffmpeg/ffmpeg_common.cc', |
| 318 | 'ffmpeg/ffmpeg_common.h', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 319 | 'filters/audio_decoder_selector.cc', |
| 320 | 'filters/audio_decoder_selector.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 321 | 'filters/audio_file_reader.cc', |
| 322 | 'filters/audio_file_reader.h', |
| 323 | 'filters/audio_renderer_algorithm.cc', |
| 324 | 'filters/audio_renderer_algorithm.h', |
| 325 | 'filters/audio_renderer_impl.cc', |
| 326 | 'filters/audio_renderer_impl.h', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 327 | 'filters/blocking_url_protocol.cc', |
| 328 | 'filters/blocking_url_protocol.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 329 | 'filters/chunk_demuxer.cc', |
| 330 | 'filters/chunk_demuxer.h', |
| 331 | 'filters/decrypting_audio_decoder.cc', |
| 332 | 'filters/decrypting_audio_decoder.h', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 333 | 'filters/decrypting_demuxer_stream.cc', |
| 334 | 'filters/decrypting_demuxer_stream.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 335 | 'filters/decrypting_video_decoder.cc', |
| 336 | 'filters/decrypting_video_decoder.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 337 | 'filters/ffmpeg_audio_decoder.cc', |
| 338 | 'filters/ffmpeg_audio_decoder.h', |
| 339 | 'filters/ffmpeg_demuxer.cc', |
| 340 | 'filters/ffmpeg_demuxer.h', |
| 341 | 'filters/ffmpeg_glue.cc', |
| 342 | 'filters/ffmpeg_glue.h', |
| 343 | 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc', |
| 344 | 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.h', |
| 345 | 'filters/ffmpeg_video_decoder.cc', |
| 346 | 'filters/ffmpeg_video_decoder.h', |
| 347 | 'filters/file_data_source.cc', |
| 348 | 'filters/file_data_source.h', |
| 349 | 'filters/gpu_video_decoder.cc', |
| 350 | 'filters/gpu_video_decoder.h', |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 351 | 'filters/gpu_video_decoder_factories.cc', |
| 352 | 'filters/gpu_video_decoder_factories.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 353 | 'filters/h264_to_annex_b_bitstream_converter.cc', |
| 354 | 'filters/h264_to_annex_b_bitstream_converter.h', |
| 355 | 'filters/in_memory_url_protocol.cc', |
| 356 | 'filters/in_memory_url_protocol.h', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 357 | 'filters/opus_audio_decoder.cc', |
| 358 | 'filters/opus_audio_decoder.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 359 | 'filters/skcanvas_video_renderer.cc', |
| 360 | 'filters/skcanvas_video_renderer.h', |
| 361 | 'filters/source_buffer_stream.cc', |
| 362 | 'filters/source_buffer_stream.h', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 363 | 'filters/stream_parser_factory.cc', |
| 364 | 'filters/stream_parser_factory.h', |
| 365 | 'filters/video_decoder_selector.cc', |
| 366 | 'filters/video_decoder_selector.h', |
| 367 | 'filters/video_frame_stream.cc', |
| 368 | 'filters/video_frame_stream.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 369 | 'filters/video_renderer_base.cc', |
| 370 | 'filters/video_renderer_base.h', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 371 | 'filters/vpx_video_decoder.cc', |
| 372 | 'filters/vpx_video_decoder.h', |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 373 | 'midi/midi_manager.h', |
| 374 | 'midi/midi_manager.cc', |
| 375 | 'midi/midi_manager_mac.h', |
| 376 | 'midi/midi_manager_mac.cc', |
| 377 | 'midi/midi_port_info.h', |
| 378 | 'midi/midi_port_info.cc', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 379 | 'video/capture/android/video_capture_device_android.cc', |
| 380 | 'video/capture/android/video_capture_device_android.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 381 | 'video/capture/fake_video_capture_device.cc', |
| 382 | 'video/capture/fake_video_capture_device.h', |
| 383 | 'video/capture/linux/video_capture_device_linux.cc', |
| 384 | 'video/capture/linux/video_capture_device_linux.h', |
| 385 | 'video/capture/mac/video_capture_device_mac.h', |
| 386 | 'video/capture/mac/video_capture_device_mac.mm', |
| 387 | 'video/capture/mac/video_capture_device_qtkit_mac.h', |
| 388 | 'video/capture/mac/video_capture_device_qtkit_mac.mm', |
Torne (Richard Coles) | 868fa2f | 2013-06-11 10:57:03 +0100 | [diff] [blame] | 389 | |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 390 | 'video/capture/video_capture.h', |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 391 | 'video/capture/video_capture_device.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 392 | 'video/capture/video_capture_device.h', |
| 393 | 'video/capture/video_capture_device_dummy.cc', |
| 394 | 'video/capture/video_capture_device_dummy.h', |
| 395 | 'video/capture/video_capture_proxy.cc', |
| 396 | 'video/capture/video_capture_proxy.h', |
| 397 | 'video/capture/video_capture_types.h', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 398 | 'video/capture/win/capability_list_win.cc', |
| 399 | 'video/capture/win/capability_list_win.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 400 | 'video/capture/win/filter_base_win.cc', |
| 401 | 'video/capture/win/filter_base_win.h', |
| 402 | 'video/capture/win/pin_base_win.cc', |
| 403 | 'video/capture/win/pin_base_win.h', |
| 404 | 'video/capture/win/sink_filter_observer_win.h', |
| 405 | 'video/capture/win/sink_filter_win.cc', |
| 406 | 'video/capture/win/sink_filter_win.h', |
| 407 | 'video/capture/win/sink_input_pin_win.cc', |
| 408 | 'video/capture/win/sink_input_pin_win.h', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 409 | 'video/capture/win/video_capture_device_mf_win.cc', |
| 410 | 'video/capture/win/video_capture_device_mf_win.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 411 | 'video/capture/win/video_capture_device_win.cc', |
| 412 | 'video/capture/win/video_capture_device_win.h', |
| 413 | 'video/picture.cc', |
| 414 | 'video/picture.h', |
| 415 | 'video/video_decode_accelerator.cc', |
| 416 | 'video/video_decode_accelerator.h', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 417 | 'webm/webm_audio_client.cc', |
| 418 | 'webm/webm_audio_client.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 419 | 'webm/webm_cluster_parser.cc', |
| 420 | 'webm/webm_cluster_parser.h', |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 421 | 'webm/webm_constants.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 422 | 'webm/webm_constants.h', |
| 423 | 'webm/webm_content_encodings.cc', |
| 424 | 'webm/webm_content_encodings.h', |
| 425 | 'webm/webm_content_encodings_client.cc', |
| 426 | 'webm/webm_content_encodings_client.h', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 427 | 'webm/webm_crypto_helpers.cc', |
| 428 | 'webm/webm_crypto_helpers.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 429 | 'webm/webm_info_parser.cc', |
| 430 | 'webm/webm_info_parser.h', |
| 431 | 'webm/webm_parser.cc', |
| 432 | 'webm/webm_parser.h', |
| 433 | 'webm/webm_stream_parser.cc', |
| 434 | 'webm/webm_stream_parser.h', |
| 435 | 'webm/webm_tracks_parser.cc', |
| 436 | 'webm/webm_tracks_parser.h', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 437 | 'webm/webm_video_client.cc', |
| 438 | 'webm/webm_video_client.h', |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 439 | 'webm/webm_webvtt_parser.cc', |
| 440 | 'webm/webm_webvtt_parser.h' |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 441 | ], |
| 442 | 'direct_dependent_settings': { |
| 443 | 'include_dirs': [ |
| 444 | '..', |
| 445 | ], |
| 446 | }, |
| 447 | 'conditions': [ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 448 | ['arm_neon==1', { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 449 | 'defines': [ |
| 450 | 'USE_NEON' |
| 451 | ], |
| 452 | }], |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 453 | ['OS!="ios"', { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 454 | 'dependencies': [ |
| 455 | '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 456 | '../gpu/gpu.gyp:command_buffer_common', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 457 | 'shared_memory_support', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 458 | ], |
| 459 | }], |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 460 | ['media_use_ffmpeg==1', { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 461 | 'dependencies': [ |
| 462 | '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg', |
| 463 | ], |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 464 | }, { # media_use_ffmpeg==0 |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 465 | # Exclude the sources that depend on ffmpeg. |
| 466 | 'sources!': [ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 467 | 'base/container_names.cc', |
| 468 | 'base/container_names.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 469 | 'base/media_posix.cc', |
| 470 | 'ffmpeg/ffmpeg_common.cc', |
| 471 | 'ffmpeg/ffmpeg_common.h', |
| 472 | 'filters/audio_file_reader.cc', |
| 473 | 'filters/audio_file_reader.h', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 474 | 'filters/blocking_url_protocol.cc', |
| 475 | 'filters/blocking_url_protocol.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 476 | 'filters/ffmpeg_audio_decoder.cc', |
| 477 | 'filters/ffmpeg_audio_decoder.h', |
| 478 | 'filters/ffmpeg_demuxer.cc', |
| 479 | 'filters/ffmpeg_demuxer.h', |
| 480 | 'filters/ffmpeg_glue.cc', |
| 481 | 'filters/ffmpeg_glue.h', |
| 482 | 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc', |
| 483 | 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.h', |
| 484 | 'filters/ffmpeg_video_decoder.cc', |
| 485 | 'filters/ffmpeg_video_decoder.h', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 486 | ], |
| 487 | }], |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 488 | ['media_use_libvpx==1', { |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 489 | 'dependencies': [ |
| 490 | '<(DEPTH)/third_party/libvpx/libvpx.gyp:libvpx', |
| 491 | ], |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 492 | }, { # media_use_libvpx==0 |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 493 | 'direct_dependent_settings': { |
| 494 | 'defines': [ |
| 495 | 'MEDIA_DISABLE_LIBVPX', |
| 496 | ], |
| 497 | }, |
| 498 | # Exclude the sources that depend on libvpx. |
| 499 | 'sources!': [ |
| 500 | 'filters/vpx_video_decoder.cc', |
| 501 | 'filters/vpx_video_decoder.h', |
| 502 | ], |
| 503 | }], |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 504 | ['OS=="ios"', { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 505 | 'includes': [ |
| 506 | # For shared_memory_support_sources variable. |
| 507 | 'shared_memory_support.gypi', |
| 508 | ], |
| 509 | 'sources': [ |
| 510 | 'base/media_stub.cc', |
| 511 | # These sources are normally built via a dependency on the |
| 512 | # shared_memory_support target, but that target is not built on iOS. |
| 513 | # Instead, directly build only the files that are needed for iOS. |
| 514 | '<@(shared_memory_support_sources)', |
| 515 | ], |
| 516 | 'sources/': [ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 517 | # Exclude everything but iOS-specific files. |
| 518 | ['exclude', '\\.(cc|mm)$'], |
| 519 | ['include', '_ios\\.(cc|mm)$'], |
| 520 | ['include', '(^|/)ios/'], |
| 521 | # Re-include specific pieces. |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 522 | # iOS support is limited to audio input only. |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 523 | ['include', '^audio/audio_buffers_state\\.'], |
| 524 | ['include', '^audio/audio_input_controller\\.'], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 525 | ['include', '^audio/audio_manager\\.'], |
| 526 | ['include', '^audio/audio_manager_base\\.'], |
| 527 | ['include', '^audio/audio_parameters\\.'], |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 528 | ['include', '^audio/fake_audio_consumer\\.'], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 529 | ['include', '^audio/fake_audio_input_stream\\.'], |
| 530 | ['include', '^audio/fake_audio_output_stream\\.'], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 531 | ['include', '^base/audio_bus\\.'], |
| 532 | ['include', '^base/channel_layout\\.'], |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 533 | ['include', '^base/media\\.cc$'], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 534 | ['include', '^base/media_stub\\.cc$'], |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 535 | ['include', '^base/media_switches\\.'], |
| 536 | ['include', '^base/vector_math\\.'], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 537 | ], |
| 538 | 'link_settings': { |
| 539 | 'libraries': [ |
| 540 | '$(SDKROOT)/System/Library/Frameworks/AudioToolbox.framework', |
| 541 | '$(SDKROOT)/System/Library/Frameworks/AVFoundation.framework', |
| 542 | '$(SDKROOT)/System/Library/Frameworks/CoreAudio.framework', |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 543 | '$(SDKROOT)/System/Library/Frameworks/CoreMIDI.framework', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 544 | ], |
| 545 | }, |
| 546 | }], |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 547 | ['OS=="android"', { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 548 | 'link_settings': { |
| 549 | 'libraries': [ |
| 550 | '-lOpenSLES', |
| 551 | ], |
| 552 | }, |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 553 | 'include_dirs': [ |
| 554 | '<(SHARED_INTERMEDIATE_DIR)/media', |
| 555 | ], |
| 556 | 'dependencies': [ |
| 557 | 'media_android_jni_headers', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 558 | 'player_android', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 559 | 'video_capture_android_jni_headers', |
| 560 | ], |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 561 | 'sources': [ |
| 562 | 'base/media.cc', |
| 563 | 'base/media.h', |
Torne (Richard Coles) | 868fa2f | 2013-06-11 10:57:03 +0100 | [diff] [blame] | 564 | 'base/media_stub.cc', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 565 | ], |
| 566 | 'conditions': [ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 567 | ['android_webview_build==0', { |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 568 | 'dependencies': [ |
| 569 | 'media_java', |
| 570 | ], |
| 571 | }], |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 572 | ], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 573 | }], |
| 574 | # A simple WebM encoder for animated avatars on ChromeOS. |
| 575 | ['chromeos==1', { |
| 576 | 'dependencies': [ |
| 577 | '../third_party/libvpx/libvpx.gyp:libvpx', |
| 578 | '../third_party/libyuv/libyuv.gyp:libyuv', |
| 579 | ], |
| 580 | 'sources': [ |
| 581 | 'webm/chromeos/ebml_writer.cc', |
| 582 | 'webm/chromeos/ebml_writer.h', |
| 583 | 'webm/chromeos/webm_encoder.cc', |
| 584 | 'webm/chromeos/webm_encoder.h', |
| 585 | ], |
| 586 | }], |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 587 | ['use_alsa==1', { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 588 | 'link_settings': { |
| 589 | 'libraries': [ |
| 590 | '-lasound', |
| 591 | ], |
| 592 | }, |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 593 | }, { # use_alsa==0 |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 594 | 'sources/': [ ['exclude', '/alsa_'], |
| 595 | ['exclude', '/audio_manager_linux'] ], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 596 | }], |
| 597 | ['OS!="openbsd"', { |
| 598 | 'sources!': [ |
| 599 | 'audio/openbsd/audio_manager_openbsd.cc', |
| 600 | 'audio/openbsd/audio_manager_openbsd.h', |
| 601 | ], |
| 602 | }], |
| 603 | ['OS=="linux"', { |
| 604 | 'variables': { |
| 605 | 'conditions': [ |
| 606 | ['sysroot!=""', { |
| 607 | 'pkg-config': '../build/linux/pkg-config-wrapper "<(sysroot)" "<(target_arch)"', |
| 608 | }, { |
| 609 | 'pkg-config': 'pkg-config' |
| 610 | }], |
| 611 | ], |
| 612 | }, |
| 613 | 'conditions': [ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 614 | ['use_x11==1', { |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 615 | 'link_settings': { |
| 616 | 'libraries': [ |
| 617 | '-lX11', |
| 618 | '-lXdamage', |
| 619 | '-lXext', |
| 620 | '-lXfixes', |
| 621 | ], |
| 622 | }, |
| 623 | }], |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 624 | ['use_cras==1', { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 625 | 'cflags': [ |
| 626 | '<!@(<(pkg-config) --cflags libcras)', |
| 627 | ], |
| 628 | 'link_settings': { |
| 629 | 'libraries': [ |
| 630 | '<!@(<(pkg-config) --libs libcras)', |
| 631 | ], |
| 632 | }, |
| 633 | 'defines': [ |
| 634 | 'USE_CRAS', |
| 635 | ], |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 636 | }, { # else: use_cras==0 |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 637 | 'sources!': [ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 638 | 'audio/cras/audio_manager_cras.cc', |
| 639 | 'audio/cras/audio_manager_cras.h', |
| 640 | 'audio/cras/cras_input.cc', |
| 641 | 'audio/cras/cras_input.h', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 642 | 'audio/cras/cras_unified.cc', |
| 643 | 'audio/cras/cras_unified.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 644 | ], |
| 645 | }], |
| 646 | ], |
| 647 | }], |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 648 | ['OS!="linux"', { |
| 649 | 'sources!': [ |
| 650 | 'audio/cras/audio_manager_cras.cc', |
| 651 | 'audio/cras/audio_manager_cras.h', |
| 652 | 'audio/cras/cras_input.cc', |
| 653 | 'audio/cras/cras_input.h', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 654 | 'audio/cras/cras_unified.cc', |
| 655 | 'audio/cras/cras_unified.h', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 656 | ], |
| 657 | }], |
| 658 | ['use_pulseaudio==1', { |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 659 | 'cflags': [ |
| 660 | '<!@(pkg-config --cflags libpulse)', |
| 661 | ], |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 662 | 'defines': [ |
| 663 | 'USE_PULSEAUDIO', |
| 664 | ], |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 665 | 'conditions': [ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 666 | ['linux_link_pulseaudio==0', { |
| 667 | 'defines': [ |
| 668 | 'DLOPEN_PULSEAUDIO', |
| 669 | ], |
| 670 | 'variables': { |
| 671 | 'generate_stubs_script': '../tools/generate_stubs/generate_stubs.py', |
| 672 | 'extra_header': 'audio/pulse/pulse_stub_header.fragment', |
| 673 | 'sig_files': ['audio/pulse/pulse.sigs'], |
| 674 | 'outfile_type': 'posix_stubs', |
| 675 | 'stubs_filename_root': 'pulse_stubs', |
| 676 | 'project_path': 'media/audio/pulse', |
| 677 | 'intermediate_dir': '<(INTERMEDIATE_DIR)', |
| 678 | 'output_root': '<(SHARED_INTERMEDIATE_DIR)/pulse', |
| 679 | }, |
| 680 | 'include_dirs': [ |
| 681 | '<(output_root)', |
| 682 | ], |
| 683 | 'actions': [ |
| 684 | { |
| 685 | 'action_name': 'generate_stubs', |
| 686 | 'inputs': [ |
| 687 | '<(generate_stubs_script)', |
| 688 | '<(extra_header)', |
| 689 | '<@(sig_files)', |
| 690 | ], |
| 691 | 'outputs': [ |
| 692 | '<(intermediate_dir)/<(stubs_filename_root).cc', |
| 693 | '<(output_root)/<(project_path)/<(stubs_filename_root).h', |
| 694 | ], |
| 695 | 'action': ['python', |
| 696 | '<(generate_stubs_script)', |
| 697 | '-i', '<(intermediate_dir)', |
| 698 | '-o', '<(output_root)/<(project_path)', |
| 699 | '-t', '<(outfile_type)', |
| 700 | '-e', '<(extra_header)', |
| 701 | '-s', '<(stubs_filename_root)', |
| 702 | '-p', '<(project_path)', |
| 703 | '<@(_inputs)', |
| 704 | ], |
| 705 | 'process_outputs_as_sources': 1, |
| 706 | 'message': 'Generating Pulse stubs for dynamic loading.', |
| 707 | }, |
| 708 | ], |
| 709 | 'conditions': [ |
| 710 | # Linux/Solaris need libdl for dlopen() and friends. |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 711 | ['OS=="linux" or OS=="solaris"', { |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 712 | 'link_settings': { |
| 713 | 'libraries': [ |
| 714 | '-ldl', |
| 715 | ], |
| 716 | }, |
| 717 | }], |
| 718 | ], |
| 719 | }, { # else: linux_link_pulseaudio==0 |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 720 | 'link_settings': { |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 721 | 'ldflags': [ |
| 722 | '<!@(pkg-config --libs-only-L --libs-only-other libpulse)', |
| 723 | ], |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 724 | 'libraries': [ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 725 | '<!@(pkg-config --libs-only-l libpulse)', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 726 | ], |
| 727 | }, |
| 728 | }], |
| 729 | ], |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 730 | }, { # else: use_pulseaudio==0 |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 731 | 'sources!': [ |
| 732 | 'audio/pulse/audio_manager_pulse.cc', |
| 733 | 'audio/pulse/audio_manager_pulse.h', |
| 734 | 'audio/pulse/pulse_input.cc', |
| 735 | 'audio/pulse/pulse_input.h', |
| 736 | 'audio/pulse/pulse_output.cc', |
| 737 | 'audio/pulse/pulse_output.h', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 738 | 'audio/pulse/pulse_unified.cc', |
| 739 | 'audio/pulse/pulse_unified.h', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 740 | 'audio/pulse/pulse_util.cc', |
| 741 | 'audio/pulse/pulse_util.h', |
| 742 | ], |
| 743 | }], |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 744 | ['os_posix==1', { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 745 | 'sources!': [ |
| 746 | 'video/capture/video_capture_device_dummy.cc', |
| 747 | 'video/capture/video_capture_device_dummy.h', |
| 748 | ], |
| 749 | }], |
| 750 | ['OS=="mac"', { |
| 751 | 'link_settings': { |
| 752 | 'libraries': [ |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 753 | '$(SDKROOT)/System/Library/Frameworks/AudioToolbox.framework', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 754 | '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 755 | '$(SDKROOT)/System/Library/Frameworks/CoreAudio.framework', |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 756 | '$(SDKROOT)/System/Library/Frameworks/CoreMIDI.framework', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 757 | '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 758 | '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 759 | '$(SDKROOT)/System/Library/Frameworks/QTKit.framework', |
| 760 | ], |
| 761 | }, |
| 762 | }], |
| 763 | ['OS=="win"', { |
| 764 | 'sources!': [ |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 765 | 'video/capture/video_capture_device_dummy.cc', |
| 766 | 'video/capture/video_capture_device_dummy.h', |
| 767 | ], |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 768 | 'link_settings': { |
| 769 | 'libraries': [ |
| 770 | '-lmf.lib', |
| 771 | '-lmfplat.lib', |
| 772 | '-lmfreadwrite.lib', |
| 773 | '-lmfuuid.lib', |
| 774 | ], |
| 775 | }, |
| 776 | # Specify delayload for media.dll. |
| 777 | 'msvs_settings': { |
| 778 | 'VCLinkerTool': { |
| 779 | 'DelayLoadDLLs': [ |
| 780 | 'mf.dll', |
| 781 | 'mfplat.dll', |
| 782 | 'mfreadwrite.dll', |
| 783 | ], |
| 784 | }, |
| 785 | }, |
| 786 | # Specify delayload for components that link with media.lib. |
| 787 | 'all_dependent_settings': { |
| 788 | 'msvs_settings': { |
| 789 | 'VCLinkerTool': { |
| 790 | 'DelayLoadDLLs': [ |
| 791 | 'mf.dll', |
| 792 | 'mfplat.dll', |
| 793 | 'mfreadwrite.dll', |
| 794 | ], |
| 795 | }, |
| 796 | }, |
| 797 | }, |
| 798 | # TODO(wolenetz): Fix size_t to int truncations in win64. See |
| 799 | # http://crbug.com/171009 |
| 800 | 'conditions': [ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 801 | ['target_arch=="x64"', { |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 802 | 'msvs_disabled_warnings': [ 4267, ], |
| 803 | }], |
| 804 | ], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 805 | }], |
| 806 | ['proprietary_codecs==1 or branding=="Chrome"', { |
| 807 | 'sources': [ |
| 808 | 'mp4/aac.cc', |
| 809 | 'mp4/aac.h', |
| 810 | 'mp4/avc.cc', |
| 811 | 'mp4/avc.h', |
| 812 | 'mp4/box_definitions.cc', |
| 813 | 'mp4/box_definitions.h', |
| 814 | 'mp4/box_reader.cc', |
| 815 | 'mp4/box_reader.h', |
| 816 | 'mp4/cenc.cc', |
| 817 | 'mp4/cenc.h', |
| 818 | 'mp4/es_descriptor.cc', |
| 819 | 'mp4/es_descriptor.h', |
| 820 | 'mp4/mp4_stream_parser.cc', |
| 821 | 'mp4/mp4_stream_parser.h', |
| 822 | 'mp4/offset_byte_queue.cc', |
| 823 | 'mp4/offset_byte_queue.h', |
| 824 | 'mp4/track_run_iterator.cc', |
| 825 | 'mp4/track_run_iterator.h', |
| 826 | ], |
| 827 | }], |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 828 | ['toolkit_uses_gtk==1', { |
| 829 | 'dependencies': [ |
| 830 | '../build/linux/system.gyp:gtk', |
| 831 | ], |
| 832 | }], |
| 833 | # ios check is necessary due to http://crbug.com/172682. |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 834 | ['OS!="ios" and (target_arch=="ia32" or target_arch=="x64")', { |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 835 | 'dependencies': [ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 836 | 'media_asm', |
| 837 | 'media_mmx', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 838 | 'media_sse', |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 839 | 'media_sse2', |
| 840 | ], |
| 841 | 'sources': [ |
| 842 | 'base/simd/convert_yuv_to_rgb_x86.cc', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 843 | ], |
| 844 | }], |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 845 | ['google_tv==1', { |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 846 | 'defines': [ |
| 847 | 'ENABLE_EAC3_PLAYBACK', |
| 848 | ], |
| 849 | }], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 850 | ], |
| 851 | 'target_conditions': [ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 852 | ['OS=="ios"', { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 853 | 'sources/': [ |
| 854 | # Pull in specific Mac files for iOS (which have been filtered out |
| 855 | # by file name rules). |
| 856 | ['include', '^audio/mac/audio_input_mac\\.'], |
| 857 | ], |
| 858 | }], |
| 859 | ], |
| 860 | }, |
| 861 | { |
| 862 | 'target_name': 'media_unittests', |
| 863 | 'type': '<(gtest_target_type)', |
| 864 | 'dependencies': [ |
| 865 | 'media', |
| 866 | 'media_test_support', |
| 867 | '../base/base.gyp:base', |
| 868 | '../base/base.gyp:base_i18n', |
| 869 | '../base/base.gyp:test_support_base', |
| 870 | '../skia/skia.gyp:skia', |
| 871 | '../testing/gmock.gyp:gmock', |
| 872 | '../testing/gtest.gyp:gtest', |
| 873 | '../ui/ui.gyp:ui', |
| 874 | ], |
| 875 | 'sources': [ |
| 876 | 'audio/async_socket_io_handler_unittest.cc', |
| 877 | 'audio/audio_input_controller_unittest.cc', |
| 878 | 'audio/audio_input_device_unittest.cc', |
| 879 | 'audio/audio_input_unittest.cc', |
| 880 | 'audio/audio_input_volume_unittest.cc', |
| 881 | 'audio/audio_low_latency_input_output_unittest.cc', |
| 882 | 'audio/audio_output_controller_unittest.cc', |
| 883 | 'audio/audio_output_device_unittest.cc', |
| 884 | 'audio/audio_output_proxy_unittest.cc', |
| 885 | 'audio/audio_parameters_unittest.cc', |
Ben Murdoch | ca12bfa | 2013-07-23 11:17:05 +0100 | [diff] [blame] | 886 | 'audio/audio_power_monitor_unittest.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 887 | 'audio/cross_process_notification_unittest.cc', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 888 | 'audio/fake_audio_consumer_unittest.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 889 | 'audio/ios/audio_manager_ios_unittest.cc', |
| 890 | 'audio/linux/alsa_output_unittest.cc', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 891 | 'audio/mac/audio_auhal_mac_unittest.cc', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 892 | 'audio/mac/audio_device_listener_mac_unittest.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 893 | 'audio/mac/audio_low_latency_input_mac_unittest.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 894 | 'audio/simple_sources_unittest.cc', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 895 | 'audio/virtual_audio_input_stream_unittest.cc', |
| 896 | 'audio/virtual_audio_output_stream_unittest.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 897 | 'audio/win/audio_device_listener_win_unittest.cc', |
| 898 | 'audio/win/audio_low_latency_input_win_unittest.cc', |
| 899 | 'audio/win/audio_low_latency_output_win_unittest.cc', |
| 900 | 'audio/win/audio_output_win_unittest.cc', |
| 901 | 'audio/win/audio_unified_win_unittest.cc', |
| 902 | 'audio/win/core_audio_util_win_unittest.cc', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 903 | 'base/android/media_codec_bridge_unittest.cc', |
Torne (Richard Coles) | 7d4cd47 | 2013-06-19 11:58:07 +0100 | [diff] [blame] | 904 | 'base/android/media_source_player_unittest.cc', |
| 905 | 'base/audio_buffer_unittest.cc', |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 906 | 'base/audio_buffer_queue_unittest.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 907 | 'base/audio_bus_unittest.cc', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 908 | 'base/audio_converter_unittest.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 909 | 'base/audio_fifo_unittest.cc', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 910 | 'base/audio_hardware_config_unittest.cc', |
| 911 | 'base/audio_hash_unittest.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 912 | 'base/audio_pull_fifo_unittest.cc', |
| 913 | 'base/audio_renderer_mixer_input_unittest.cc', |
| 914 | 'base/audio_renderer_mixer_unittest.cc', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 915 | 'base/audio_splicer_unittest.cc', |
| 916 | 'base/audio_timestamp_helper_unittest.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 917 | 'base/bind_to_loop_unittest.cc', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 918 | 'base/bit_reader_unittest.cc', |
Ben Murdoch | 7dbb3d5 | 2013-07-17 14:55:54 +0100 | [diff] [blame] | 919 | 'base/callback_holder.h', |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 920 | 'base/callback_holder_unittest.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 921 | 'base/channel_mixer_unittest.cc', |
| 922 | 'base/clock_unittest.cc', |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 923 | 'base/container_names_unittest.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 924 | 'base/data_buffer_unittest.cc', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 925 | 'base/decoder_buffer_queue_unittest.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 926 | 'base/decoder_buffer_unittest.cc', |
| 927 | 'base/djb2_unittest.cc', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 928 | 'base/gmock_callback_support_unittest.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 929 | 'base/multi_channel_resampler_unittest.cc', |
| 930 | 'base/pipeline_unittest.cc', |
| 931 | 'base/ranges_unittest.cc', |
| 932 | 'base/run_all_unittests.cc', |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 933 | 'base/scoped_histogram_timer_unittest.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 934 | 'base/seekable_buffer_unittest.cc', |
| 935 | 'base/sinc_resampler_unittest.cc', |
| 936 | 'base/test_data_util.cc', |
| 937 | 'base/test_data_util.h', |
| 938 | 'base/vector_math_testing.h', |
| 939 | 'base/vector_math_unittest.cc', |
| 940 | 'base/video_frame_unittest.cc', |
| 941 | 'base/video_util_unittest.cc', |
| 942 | 'base/yuv_convert_unittest.cc', |
| 943 | 'crypto/aes_decryptor_unittest.cc', |
| 944 | 'ffmpeg/ffmpeg_common_unittest.cc', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 945 | 'filters/audio_decoder_selector_unittest.cc', |
| 946 | 'filters/audio_file_reader_unittest.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 947 | 'filters/audio_renderer_algorithm_unittest.cc', |
| 948 | 'filters/audio_renderer_impl_unittest.cc', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 949 | 'filters/blocking_url_protocol_unittest.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 950 | 'filters/chunk_demuxer_unittest.cc', |
| 951 | 'filters/decrypting_audio_decoder_unittest.cc', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 952 | 'filters/decrypting_demuxer_stream_unittest.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 953 | 'filters/decrypting_video_decoder_unittest.cc', |
Ben Murdoch | 7dbb3d5 | 2013-07-17 14:55:54 +0100 | [diff] [blame] | 954 | 'filters/fake_demuxer_stream.cc', |
| 955 | 'filters/fake_demuxer_stream.h', |
Torne (Richard Coles) | b2df76e | 2013-05-13 16:52:09 +0100 | [diff] [blame] | 956 | 'filters/fake_demuxer_stream_unittest.cc', |
Ben Murdoch | 7dbb3d5 | 2013-07-17 14:55:54 +0100 | [diff] [blame] | 957 | 'filters/fake_video_decoder.cc', |
| 958 | 'filters/fake_video_decoder.h', |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 959 | 'filters/fake_video_decoder_unittest.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 960 | 'filters/ffmpeg_audio_decoder_unittest.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 961 | 'filters/ffmpeg_demuxer_unittest.cc', |
| 962 | 'filters/ffmpeg_glue_unittest.cc', |
| 963 | 'filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc', |
| 964 | 'filters/ffmpeg_video_decoder_unittest.cc', |
| 965 | 'filters/file_data_source_unittest.cc', |
| 966 | 'filters/h264_to_annex_b_bitstream_converter_unittest.cc', |
| 967 | 'filters/pipeline_integration_test.cc', |
| 968 | 'filters/pipeline_integration_test_base.cc', |
| 969 | 'filters/skcanvas_video_renderer_unittest.cc', |
| 970 | 'filters/source_buffer_stream_unittest.cc', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 971 | 'filters/video_decoder_selector_unittest.cc', |
| 972 | 'filters/video_frame_stream_unittest.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 973 | 'filters/video_renderer_base_unittest.cc', |
| 974 | 'video/capture/video_capture_device_unittest.cc', |
| 975 | 'webm/cluster_builder.cc', |
| 976 | 'webm/cluster_builder.h', |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 977 | 'webm/tracks_builder.cc', |
| 978 | 'webm/tracks_builder.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 979 | 'webm/webm_cluster_parser_unittest.cc', |
| 980 | 'webm/webm_content_encodings_client_unittest.cc', |
| 981 | 'webm/webm_parser_unittest.cc', |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 982 | 'webm/webm_tracks_parser_unittest.cc', |
| 983 | 'webm/webm_webvtt_parser_unittest.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 984 | ], |
| 985 | 'conditions': [ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 986 | ['arm_neon==1', { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 987 | 'defines': [ |
| 988 | 'USE_NEON' |
| 989 | ], |
| 990 | }], |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 991 | ['OS!="ios"', { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 992 | 'dependencies': [ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 993 | '../gpu/gpu.gyp:command_buffer_common', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 994 | 'shared_memory_support', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 995 | ], |
| 996 | }], |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 997 | ['media_use_ffmpeg==1', { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 998 | 'dependencies': [ |
| 999 | '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg', |
| 1000 | ], |
| 1001 | }], |
| 1002 | ['os_posix==1 and OS!="mac" and OS!="ios"', { |
| 1003 | 'conditions': [ |
| 1004 | ['linux_use_tcmalloc==1', { |
| 1005 | 'dependencies': [ |
| 1006 | '../base/allocator/allocator.gyp:allocator', |
| 1007 | ], |
| 1008 | }], |
| 1009 | ], |
| 1010 | }], |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 1011 | ['OS=="ios"', { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1012 | 'sources/': [ |
| 1013 | ['exclude', '.*'], |
| 1014 | ['include', '^audio/audio_input_controller_unittest\\.cc$'], |
| 1015 | ['include', '^audio/audio_input_unittest\\.cc$'], |
| 1016 | ['include', '^audio/audio_parameters_unittest\\.cc$'], |
| 1017 | ['include', '^audio/ios/audio_manager_ios_unittest\\.cc$'], |
| 1018 | ['include', '^base/mock_reader\\.h$'], |
| 1019 | ['include', '^base/run_all_unittests\\.cc$'], |
| 1020 | ], |
| 1021 | }], |
| 1022 | ['OS=="android"', { |
| 1023 | 'sources!': [ |
| 1024 | 'audio/audio_input_volume_unittest.cc', |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 1025 | 'base/container_names_unittest.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1026 | 'ffmpeg/ffmpeg_common_unittest.cc', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1027 | 'filters/audio_file_reader_unittest.cc', |
| 1028 | 'filters/blocking_url_protocol_unittest.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1029 | 'filters/chunk_demuxer_unittest.cc', |
| 1030 | 'filters/ffmpeg_audio_decoder_unittest.cc', |
| 1031 | 'filters/ffmpeg_demuxer_unittest.cc', |
| 1032 | 'filters/ffmpeg_glue_unittest.cc', |
| 1033 | 'filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc', |
| 1034 | 'filters/ffmpeg_video_decoder_unittest.cc', |
| 1035 | 'filters/pipeline_integration_test.cc', |
| 1036 | 'filters/pipeline_integration_test_base.cc', |
| 1037 | 'mp4/mp4_stream_parser_unittest.cc', |
| 1038 | 'webm/webm_cluster_parser_unittest.cc', |
| 1039 | ], |
| 1040 | 'conditions': [ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 1041 | ['gtest_target_type=="shared_library"', { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1042 | 'dependencies': [ |
| 1043 | '../testing/android/native_test.gyp:native_test_native_code', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1044 | 'player_android', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1045 | ], |
| 1046 | }], |
| 1047 | ], |
| 1048 | }], |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 1049 | ['OS=="linux"', { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1050 | 'conditions': [ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 1051 | ['use_cras==1', { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1052 | 'sources': [ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1053 | 'audio/cras/cras_input_unittest.cc', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 1054 | 'audio/cras/cras_unified_unittest.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1055 | ], |
| 1056 | 'defines': [ |
| 1057 | 'USE_CRAS', |
| 1058 | ], |
| 1059 | }], |
| 1060 | ], |
| 1061 | }], |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1062 | ['use_alsa==0', { |
| 1063 | 'sources!': [ |
| 1064 | 'audio/linux/alsa_output_unittest.cc', |
| 1065 | 'audio/audio_low_latency_input_output_unittest.cc', |
| 1066 | ], |
| 1067 | }], |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 1068 | ['OS!="ios" and (target_arch=="ia32" or target_arch=="x64")', { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1069 | 'sources': [ |
| 1070 | 'base/simd/convert_rgb_to_yuv_unittest.cc', |
| 1071 | ], |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1072 | }], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1073 | ['proprietary_codecs==1 or branding=="Chrome"', { |
| 1074 | 'sources': [ |
| 1075 | 'mp4/aac_unittest.cc', |
| 1076 | 'mp4/avc_unittest.cc', |
| 1077 | 'mp4/box_reader_unittest.cc', |
| 1078 | 'mp4/es_descriptor_unittest.cc', |
| 1079 | 'mp4/mp4_stream_parser_unittest.cc', |
| 1080 | 'mp4/offset_byte_queue_unittest.cc', |
| 1081 | 'mp4/track_run_iterator_unittest.cc', |
| 1082 | ], |
| 1083 | }], |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1084 | # TODO(wolenetz): Fix size_t to int truncations in win64. See |
| 1085 | # http://crbug.com/171009 |
| 1086 | ['OS=="win" and target_arch=="x64"', { |
| 1087 | 'msvs_disabled_warnings': [ 4267, ], |
| 1088 | }], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1089 | ], |
| 1090 | }, |
| 1091 | { |
| 1092 | 'target_name': 'media_test_support', |
| 1093 | 'type': 'static_library', |
| 1094 | 'dependencies': [ |
| 1095 | 'media', |
| 1096 | '../base/base.gyp:base', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1097 | '../skia/skia.gyp:skia', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1098 | '../testing/gmock.gyp:gmock', |
| 1099 | '../testing/gtest.gyp:gtest', |
| 1100 | ], |
| 1101 | 'sources': [ |
| 1102 | 'audio/mock_audio_manager.cc', |
| 1103 | 'audio/mock_audio_manager.h', |
| 1104 | 'audio/test_audio_input_controller_factory.cc', |
| 1105 | 'audio/test_audio_input_controller_factory.h', |
| 1106 | 'base/fake_audio_render_callback.cc', |
| 1107 | 'base/fake_audio_render_callback.h', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1108 | 'base/gmock_callback_support.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1109 | 'base/mock_audio_renderer_sink.cc', |
| 1110 | 'base/mock_audio_renderer_sink.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1111 | 'base/mock_data_source_host.cc', |
| 1112 | 'base/mock_data_source_host.h', |
| 1113 | 'base/mock_demuxer_host.cc', |
| 1114 | 'base/mock_demuxer_host.h', |
| 1115 | 'base/mock_filters.cc', |
| 1116 | 'base/mock_filters.h', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1117 | 'base/test_helpers.cc', |
| 1118 | 'base/test_helpers.h', |
Ben Murdoch | 7dbb3d5 | 2013-07-17 14:55:54 +0100 | [diff] [blame] | 1119 | 'filters/mock_gpu_video_decoder_factories.cc', |
| 1120 | 'filters/mock_gpu_video_decoder_factories.h', |
| 1121 | 'video/mock_video_decode_accelerator.cc', |
| 1122 | 'video/mock_video_decode_accelerator.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1123 | ], |
| 1124 | }, |
| 1125 | ], |
| 1126 | 'conditions': [ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 1127 | ['OS!="ios" and target_arch!="arm"', { |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1128 | 'targets': [ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 1129 | { |
| 1130 | 'target_name': 'media_asm', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1131 | 'type': 'static_library', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1132 | 'sources': [ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1133 | 'base/simd/convert_rgb_to_yuv_ssse3.asm', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1134 | 'base/simd/convert_yuv_to_rgb_mmx.asm', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1135 | 'base/simd/convert_yuv_to_rgb_sse.asm', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 1136 | 'base/simd/convert_yuva_to_argb_mmx.asm', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1137 | 'base/simd/empty_register_state_mmx.asm', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1138 | 'base/simd/linear_scale_yuv_to_rgb_mmx.asm', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1139 | 'base/simd/linear_scale_yuv_to_rgb_sse.asm', |
| 1140 | 'base/simd/scale_yuv_to_rgb_mmx.asm', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1141 | 'base/simd/scale_yuv_to_rgb_sse.asm', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1142 | ], |
| 1143 | 'conditions': [ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 1144 | ['component=="shared_library"', { |
| 1145 | 'variables': { |
| 1146 | 'yasm_flags': ['-DEXPORT_SYMBOLS'], |
| 1147 | }, |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1148 | }], |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 1149 | ['target_arch=="x64"', { |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1150 | # Source files optimized for X64 systems. |
| 1151 | 'sources': [ |
| 1152 | 'base/simd/linear_scale_yuv_to_rgb_mmx_x64.asm', |
| 1153 | 'base/simd/scale_yuv_to_rgb_sse2_x64.asm', |
| 1154 | ], |
| 1155 | 'variables': { |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 1156 | 'yasm_flags': ['-DARCH_X86_64'], |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1157 | }, |
| 1158 | }], |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 1159 | ['OS=="mac"', { |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1160 | 'variables': { |
| 1161 | 'yasm_flags': [ |
| 1162 | '-DPREFIX', |
| 1163 | '-DMACHO', |
| 1164 | ], |
| 1165 | }, |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 1166 | 'sources': [ |
| 1167 | # XCode doesn't want to link a pure assembly target and will |
| 1168 | # fail to link when it creates an empty file list. So add a |
| 1169 | # dummy file keep the linker happy. See http://crbug.com/157073 |
| 1170 | 'base/simd/xcode_hack.c', |
| 1171 | ], |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1172 | }], |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 1173 | ['os_posix==1 and OS!="mac"', { |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1174 | 'variables': { |
| 1175 | 'conditions': [ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 1176 | ['target_arch=="ia32"', { |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1177 | 'yasm_flags': [ |
| 1178 | '-DX86_32', |
| 1179 | '-DELF', |
| 1180 | ], |
| 1181 | }, { |
| 1182 | 'yasm_flags': [ |
| 1183 | '-DELF', |
| 1184 | '-DPIC', |
| 1185 | ], |
| 1186 | }], |
| 1187 | ], |
| 1188 | }, |
| 1189 | }], |
| 1190 | ], |
| 1191 | 'variables': { |
| 1192 | 'yasm_output_path': '<(SHARED_INTERMEDIATE_DIR)/media', |
| 1193 | 'yasm_flags': [ |
| 1194 | '-DCHROMIUM', |
| 1195 | # In addition to the same path as source asm, let yasm %include |
| 1196 | # search path be relative to src/ per Chromium policy. |
| 1197 | '-I..', |
| 1198 | ], |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 1199 | 'yasm_includes': [ |
| 1200 | '../third_party/x86inc/x86inc.asm', |
| 1201 | 'base/simd/convert_rgb_to_yuv_ssse3.inc', |
| 1202 | 'base/simd/convert_yuv_to_rgb_mmx.inc', |
| 1203 | 'base/simd/convert_yuva_to_argb_mmx.inc', |
| 1204 | 'base/simd/linear_scale_yuv_to_rgb_mmx.inc', |
| 1205 | 'base/simd/media_export.asm', |
| 1206 | 'base/simd/scale_yuv_to_rgb_mmx.inc', |
| 1207 | ], |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1208 | }, |
| 1209 | 'msvs_2010_disable_uldi_when_referenced': 1, |
| 1210 | 'includes': [ |
| 1211 | '../third_party/yasm/yasm_compile.gypi', |
| 1212 | ], |
| 1213 | }, |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 1214 | { |
| 1215 | 'target_name': 'media_mmx', |
| 1216 | 'type': 'static_library', |
| 1217 | 'cflags': [ |
| 1218 | '-mmmx', |
| 1219 | ], |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 1220 | 'defines': [ |
| 1221 | 'MEDIA_IMPLEMENTATION', |
| 1222 | ], |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 1223 | 'include_dirs': [ |
| 1224 | '..', |
| 1225 | ], |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 1226 | 'conditions': [ |
| 1227 | # TODO(jschuh): Get MMX enabled on Win64. crbug.com/179657 |
| 1228 | ['OS!="win" or target_arch=="ia32"', { |
| 1229 | 'sources': [ |
| 1230 | 'base/simd/filter_yuv_mmx.cc', |
| 1231 | ], |
| 1232 | }], |
| 1233 | ], |
| 1234 | }, |
| 1235 | { |
| 1236 | 'target_name': 'media_sse', |
| 1237 | 'type': 'static_library', |
| 1238 | 'cflags': [ |
| 1239 | '-msse', |
| 1240 | ], |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 1241 | 'defines': [ |
| 1242 | 'MEDIA_IMPLEMENTATION', |
| 1243 | ], |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 1244 | 'include_dirs': [ |
| 1245 | '..', |
| 1246 | ], |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 1247 | 'sources': [ |
| 1248 | 'base/simd/sinc_resampler_sse.cc', |
| 1249 | ], |
| 1250 | }, |
| 1251 | { |
| 1252 | 'target_name': 'media_sse2', |
| 1253 | 'type': 'static_library', |
| 1254 | 'cflags': [ |
| 1255 | '-msse2', |
| 1256 | ], |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 1257 | 'defines': [ |
| 1258 | 'MEDIA_IMPLEMENTATION', |
| 1259 | ], |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 1260 | 'include_dirs': [ |
| 1261 | '..', |
| 1262 | ], |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 1263 | 'sources': [ |
| 1264 | 'base/simd/convert_rgb_to_yuv_sse2.cc', |
| 1265 | 'base/simd/convert_rgb_to_yuv_ssse3.cc', |
| 1266 | 'base/simd/filter_yuv_sse2.cc', |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 1267 | ], |
| 1268 | }, |
| 1269 | { |
| 1270 | 'target_name': 'shared_memory_support_sse', |
| 1271 | 'type': 'static_library', |
| 1272 | 'cflags': [ |
| 1273 | '-msse', |
| 1274 | ], |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 1275 | 'defines': [ |
| 1276 | 'MEDIA_IMPLEMENTATION', |
| 1277 | ], |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 1278 | 'include_dirs': [ |
| 1279 | '..', |
| 1280 | ], |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 1281 | 'sources': [ |
| 1282 | 'base/simd/vector_math_sse.cc', |
| 1283 | ], |
| 1284 | }, |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1285 | ], # targets |
| 1286 | }], |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 1287 | ['OS!="ios"', { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1288 | 'targets': [ |
| 1289 | { |
| 1290 | # Minimal target for NaCl and other renderer side media clients which |
| 1291 | # only need to send audio data across the shared memory to the browser |
| 1292 | # process. |
| 1293 | 'target_name': 'shared_memory_support', |
| 1294 | 'type': '<(component)', |
| 1295 | 'dependencies': [ |
| 1296 | '../base/base.gyp:base', |
| 1297 | ], |
| 1298 | 'defines': [ |
| 1299 | 'MEDIA_IMPLEMENTATION', |
| 1300 | ], |
| 1301 | 'include_dirs': [ |
| 1302 | '..', |
| 1303 | ], |
| 1304 | 'includes': [ |
| 1305 | 'shared_memory_support.gypi', |
| 1306 | ], |
| 1307 | 'sources': [ |
| 1308 | '<@(shared_memory_support_sources)', |
| 1309 | ], |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 1310 | 'conditions': [ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 1311 | ['arm_neon==1', { |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 1312 | 'defines': [ |
| 1313 | 'USE_NEON' |
| 1314 | ], |
| 1315 | }], |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 1316 | ['target_arch=="ia32" or target_arch=="x64"', { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1317 | 'dependencies': [ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 1318 | 'shared_memory_support_sse' |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1319 | ], |
| 1320 | }], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1321 | ], |
| 1322 | }, |
| 1323 | { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1324 | 'target_name': 'seek_tester', |
| 1325 | 'type': 'executable', |
| 1326 | 'dependencies': [ |
| 1327 | 'media', |
| 1328 | '../base/base.gyp:base', |
| 1329 | ], |
| 1330 | 'sources': [ |
| 1331 | 'tools/seek_tester/seek_tester.cc', |
| 1332 | ], |
| 1333 | }, |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1334 | { |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1335 | 'target_name': 'demuxer_bench', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1336 | 'type': 'executable', |
| 1337 | 'dependencies': [ |
| 1338 | 'media', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1339 | '../base/base.gyp:base', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1340 | ], |
| 1341 | 'sources': [ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1342 | 'tools/demuxer_bench/demuxer_bench.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1343 | ], |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1344 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1345 | 'msvs_disabled_warnings': [ 4267, ], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1346 | }, |
| 1347 | ], |
| 1348 | }], |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 1349 | ['(OS=="win" or toolkit_uses_gtk==1) and use_aura!=1', { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1350 | 'targets': [ |
| 1351 | { |
| 1352 | 'target_name': 'shader_bench', |
| 1353 | 'type': 'executable', |
| 1354 | 'dependencies': [ |
| 1355 | 'media', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1356 | '../base/base.gyp:base', |
| 1357 | '../ui/gl/gl.gyp:gl', |
| 1358 | '../ui/ui.gyp:ui', |
| 1359 | ], |
| 1360 | 'sources': [ |
| 1361 | 'tools/shader_bench/cpu_color_painter.cc', |
| 1362 | 'tools/shader_bench/cpu_color_painter.h', |
| 1363 | 'tools/shader_bench/gpu_color_painter.cc', |
| 1364 | 'tools/shader_bench/gpu_color_painter.h', |
| 1365 | 'tools/shader_bench/gpu_painter.cc', |
| 1366 | 'tools/shader_bench/gpu_painter.h', |
| 1367 | 'tools/shader_bench/painter.cc', |
| 1368 | 'tools/shader_bench/painter.h', |
| 1369 | 'tools/shader_bench/shader_bench.cc', |
| 1370 | 'tools/shader_bench/window.cc', |
| 1371 | 'tools/shader_bench/window.h', |
| 1372 | ], |
| 1373 | 'conditions': [ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 1374 | ['toolkit_uses_gtk==1', { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1375 | 'dependencies': [ |
| 1376 | '../build/linux/system.gyp:gtk', |
| 1377 | ], |
| 1378 | 'sources': [ |
| 1379 | 'tools/shader_bench/window_linux.cc', |
| 1380 | ], |
| 1381 | }], |
| 1382 | ['OS=="win"', { |
| 1383 | 'dependencies': [ |
Ben Murdoch | 7dbb3d5 | 2013-07-17 14:55:54 +0100 | [diff] [blame] | 1384 | '../third_party/angle_dx11/src/build_angle.gyp:libEGL', |
| 1385 | '../third_party/angle_dx11/src/build_angle.gyp:libGLESv2', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1386 | ], |
| 1387 | 'sources': [ |
| 1388 | 'tools/shader_bench/window_win.cc', |
| 1389 | ], |
| 1390 | }], |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 1391 | # See http://crbug.com/162998#c4 for why this is needed. |
| 1392 | ['OS=="linux" and linux_use_tcmalloc==1', { |
| 1393 | 'dependencies': [ |
| 1394 | '../base/allocator/allocator.gyp:allocator', |
| 1395 | ], |
| 1396 | }], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1397 | ], |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1398 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1399 | 'msvs_disabled_warnings': [ 4267, ], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1400 | }, |
| 1401 | ], |
| 1402 | }], |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 1403 | ['use_x11==1', { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1404 | 'targets': [ |
| 1405 | { |
| 1406 | 'target_name': 'player_x11', |
| 1407 | 'type': 'executable', |
| 1408 | 'dependencies': [ |
| 1409 | 'media', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1410 | '../base/base.gyp:base', |
| 1411 | '../ui/gl/gl.gyp:gl', |
| 1412 | '../ui/ui.gyp:ui', |
| 1413 | ], |
| 1414 | 'link_settings': { |
| 1415 | 'libraries': [ |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1416 | '-lX11', |
| 1417 | '-lXrender', |
| 1418 | '-lXext', |
| 1419 | ], |
| 1420 | }, |
Ben Murdoch | 7dbb3d5 | 2013-07-17 14:55:54 +0100 | [diff] [blame] | 1421 | 'conditions': [ |
| 1422 | # Linux/Solaris need libdl for dlopen() and friends. |
| 1423 | ['OS=="linux" or OS=="solaris"', { |
| 1424 | 'link_settings': { |
| 1425 | 'libraries': [ |
| 1426 | '-ldl', |
| 1427 | ], |
| 1428 | }, |
| 1429 | }], |
| 1430 | ], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1431 | 'sources': [ |
| 1432 | 'tools/player_x11/data_source_logger.cc', |
| 1433 | 'tools/player_x11/data_source_logger.h', |
| 1434 | 'tools/player_x11/gl_video_renderer.cc', |
| 1435 | 'tools/player_x11/gl_video_renderer.h', |
| 1436 | 'tools/player_x11/player_x11.cc', |
| 1437 | 'tools/player_x11/x11_video_renderer.cc', |
| 1438 | 'tools/player_x11/x11_video_renderer.h', |
| 1439 | ], |
| 1440 | }, |
| 1441 | ], |
| 1442 | }], |
| 1443 | # Special target to wrap a gtest_target_type==shared_library |
| 1444 | # media_unittests into an android apk for execution. |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 1445 | ['OS=="android" and gtest_target_type=="shared_library"', { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1446 | 'targets': [ |
| 1447 | { |
| 1448 | 'target_name': 'media_unittests_apk', |
| 1449 | 'type': 'none', |
| 1450 | 'dependencies': [ |
| 1451 | 'media_java', |
| 1452 | 'media_unittests', |
| 1453 | ], |
| 1454 | 'variables': { |
| 1455 | 'test_suite_name': 'media_unittests', |
| 1456 | 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)media_unittests<(SHARED_LIB_SUFFIX)', |
| 1457 | }, |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 1458 | 'includes': ['../build/apk_test.gypi'], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1459 | }, |
| 1460 | ], |
| 1461 | }], |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 1462 | ['OS=="android"', { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1463 | 'targets': [ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 1464 | { |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1465 | 'target_name': 'media_android_jni_headers', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1466 | 'type': 'none', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1467 | 'sources': [ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1468 | 'base/android/java/src/org/chromium/media/AudioManagerAndroid.java', |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 1469 | 'base/android/java/src/org/chromium/media/MediaCodecBridge.java', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1470 | 'base/android/java/src/org/chromium/media/MediaPlayerBridge.java', |
| 1471 | 'base/android/java/src/org/chromium/media/MediaPlayerListener.java', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 1472 | 'base/android/java/src/org/chromium/media/WebAudioMediaCodecBridge.java', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1473 | ], |
| 1474 | 'variables': { |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1475 | 'jni_gen_package': 'media', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1476 | }, |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 1477 | 'includes': ['../build/jni_generator.gypi'], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1478 | }, |
| 1479 | { |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1480 | 'target_name': 'video_capture_android_jni_headers', |
| 1481 | 'type': 'none', |
| 1482 | 'sources': [ |
| 1483 | 'base/android/java/src/org/chromium/media/VideoCapture.java', |
| 1484 | ], |
| 1485 | 'variables': { |
| 1486 | 'jni_gen_package': 'media', |
| 1487 | }, |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 1488 | 'includes': ['../build/jni_generator.gypi'], |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1489 | }, |
| 1490 | { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1491 | 'target_name': 'player_android', |
| 1492 | 'type': 'static_library', |
| 1493 | 'sources': [ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1494 | 'base/android/media_codec_bridge.cc', |
| 1495 | 'base/android/media_codec_bridge.h', |
Torne (Richard Coles) | 7d4cd47 | 2013-06-19 11:58:07 +0100 | [diff] [blame] | 1496 | 'base/android/media_drm_bridge.cc', |
| 1497 | 'base/android/media_drm_bridge.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1498 | 'base/android/media_jni_registrar.cc', |
| 1499 | 'base/android/media_jni_registrar.h', |
Torne (Richard Coles) | b2df76e | 2013-05-13 16:52:09 +0100 | [diff] [blame] | 1500 | 'base/android/media_player_android.cc', |
| 1501 | 'base/android/media_player_android.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1502 | 'base/android/media_player_bridge.cc', |
| 1503 | 'base/android/media_player_bridge.h', |
| 1504 | 'base/android/media_player_listener.cc', |
| 1505 | 'base/android/media_player_listener.h', |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 1506 | 'base/android/media_source_player.cc', |
| 1507 | 'base/android/media_source_player.h', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 1508 | 'base/android/webaudio_media_codec_bridge.cc', |
| 1509 | 'base/android/webaudio_media_codec_bridge.h', |
| 1510 | 'base/android/webaudio_media_codec_info.h', |
| 1511 | ], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1512 | 'dependencies': [ |
| 1513 | '../base/base.gyp:base', |
Torne (Richard Coles) | 7d4cd47 | 2013-06-19 11:58:07 +0100 | [diff] [blame] | 1514 | '../ui/gl/gl.gyp:gl', |
| 1515 | '../url/url.gyp:url_lib', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1516 | 'media_android_jni_headers', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1517 | ], |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 1518 | 'defines': [ |
| 1519 | 'MEDIA_IMPLEMENTATION', |
| 1520 | ], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1521 | 'include_dirs': [ |
| 1522 | '<(SHARED_INTERMEDIATE_DIR)/media', |
| 1523 | ], |
| 1524 | }, |
| 1525 | { |
| 1526 | 'target_name': 'media_java', |
| 1527 | 'type': 'none', |
| 1528 | 'dependencies': [ |
| 1529 | '../base/base.gyp:base', |
| 1530 | ], |
| 1531 | 'export_dependent_settings': [ |
| 1532 | '../base/base.gyp:base', |
| 1533 | ], |
| 1534 | 'variables': { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1535 | 'java_in_dir': 'base/android/java', |
| 1536 | }, |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 1537 | 'includes': ['../build/java.gypi'], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1538 | }, |
| 1539 | |
| 1540 | ], |
| 1541 | }], |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 1542 | ['media_use_ffmpeg==1', { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1543 | 'targets': [ |
| 1544 | { |
| 1545 | 'target_name': 'ffmpeg_unittests', |
| 1546 | 'type': 'executable', |
| 1547 | 'dependencies': [ |
| 1548 | '../base/base.gyp:base', |
| 1549 | '../base/base.gyp:base_i18n', |
| 1550 | '../base/base.gyp:test_support_base', |
| 1551 | '../base/base.gyp:test_support_perf', |
| 1552 | '../testing/gtest.gyp:gtest', |
| 1553 | '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg', |
| 1554 | 'media', |
| 1555 | 'media_test_support', |
| 1556 | ], |
| 1557 | 'sources': [ |
| 1558 | 'ffmpeg/ffmpeg_unittest.cc', |
| 1559 | ], |
| 1560 | 'conditions': [ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 1561 | ['toolkit_uses_gtk==1', { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1562 | 'dependencies': [ |
| 1563 | # Needed for the following #include chain: |
| 1564 | # base/run_all_unittests.cc |
| 1565 | # ../base/test_suite.h |
| 1566 | # gtk/gtk.h |
| 1567 | '../build/linux/system.gyp:gtk', |
| 1568 | ], |
| 1569 | 'conditions': [ |
| 1570 | ['linux_use_tcmalloc==1', { |
| 1571 | 'dependencies': [ |
| 1572 | '../base/allocator/allocator.gyp:allocator', |
| 1573 | ], |
| 1574 | }], |
| 1575 | ], |
| 1576 | }], |
| 1577 | ], |
| 1578 | }, |
| 1579 | { |
| 1580 | 'target_name': 'ffmpeg_regression_tests', |
| 1581 | 'type': 'executable', |
| 1582 | 'dependencies': [ |
| 1583 | '../base/base.gyp:test_support_base', |
| 1584 | '../testing/gmock.gyp:gmock', |
| 1585 | '../testing/gtest.gyp:gtest', |
| 1586 | '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg', |
| 1587 | 'media', |
| 1588 | 'media_test_support', |
| 1589 | ], |
| 1590 | 'sources': [ |
| 1591 | 'base/run_all_unittests.cc', |
| 1592 | 'base/test_data_util.cc', |
| 1593 | 'ffmpeg/ffmpeg_regression_tests.cc', |
| 1594 | 'filters/pipeline_integration_test_base.cc', |
| 1595 | ], |
| 1596 | 'conditions': [ |
| 1597 | ['os_posix==1 and OS!="mac"', { |
| 1598 | 'conditions': [ |
| 1599 | ['linux_use_tcmalloc==1', { |
| 1600 | 'dependencies': [ |
| 1601 | '../base/allocator/allocator.gyp:allocator', |
| 1602 | ], |
| 1603 | }], |
| 1604 | ], |
| 1605 | }], |
| 1606 | ], |
| 1607 | }, |
| 1608 | { |
| 1609 | 'target_name': 'ffmpeg_tests', |
| 1610 | 'type': 'executable', |
| 1611 | 'dependencies': [ |
| 1612 | '../base/base.gyp:base', |
| 1613 | '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg', |
| 1614 | 'media', |
| 1615 | ], |
| 1616 | 'sources': [ |
| 1617 | 'test/ffmpeg_tests/ffmpeg_tests.cc', |
| 1618 | ], |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1619 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1620 | 'msvs_disabled_warnings': [ 4267, ], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1621 | }, |
| 1622 | { |
| 1623 | 'target_name': 'media_bench', |
| 1624 | 'type': 'executable', |
| 1625 | 'dependencies': [ |
| 1626 | '../base/base.gyp:base', |
| 1627 | '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg', |
| 1628 | 'media', |
| 1629 | ], |
| 1630 | 'sources': [ |
| 1631 | 'tools/media_bench/media_bench.cc', |
| 1632 | ], |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1633 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1634 | 'msvs_disabled_warnings': [ 4267, ], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1635 | }, |
| 1636 | ], |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1637 | }], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1638 | ], |
| 1639 | } |