Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 # Copyright 2014 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 import("//build/config/arm.gni") | |
| 6 | |
| 7 # These variasbels need tob e args. | |
| 8 use_cras = false | |
| 9 linux_link_pulseaudio = false | |
| 10 if (is_posix) { | |
| 11 use_alsa = true | |
| 12 if (use_cras) { | |
| 13 use_pulseaudio = false | |
| 14 } else { | |
| 15 use_pulseaudio = true | |
| 16 } | |
| 17 } else { | |
| 18 use_alsa = false | |
| 19 use_pulseaudio = false | |
| 20 } | |
| 21 | |
| 22 if (is_android) { | |
| 23 media_use_ffmpeg = false | |
| 24 media_use_libvpx = false | |
| 25 } else { | |
| 26 media_use_ffmpeg = true | |
| 27 # TODO(ajwong): Enable libvpx once that's converted. | |
| 28 media_use_libvpx = false | |
| 29 } | |
| 30 | |
| 31 # TODO(ajwong): These variables need set appropriately. | |
|
brettw
2014/05/05 19:38:03
Which variables?
awong
2014/05/05 20:47:47
Uploaded much newer version of CL. Comment is now
| |
| 32 | |
| 33 component("media") { | |
| 34 sources = [ | |
| 35 "audio/agc_audio_stream.h", | |
| 36 "audio/alsa/alsa_input.cc", | |
| 37 "audio/alsa/alsa_input.h", | |
| 38 "audio/alsa/alsa_output.cc", | |
| 39 "audio/alsa/alsa_output.h", | |
| 40 "audio/alsa/alsa_util.cc", | |
| 41 "audio/alsa/alsa_util.h", | |
| 42 "audio/alsa/alsa_wrapper.cc", | |
| 43 "audio/alsa/alsa_wrapper.h", | |
| 44 "audio/alsa/audio_manager_alsa.cc", | |
| 45 "audio/alsa/audio_manager_alsa.h", | |
| 46 "audio/android/audio_manager_android.cc", | |
| 47 "audio/android/audio_manager_android.h", | |
| 48 "audio/android/audio_record_input.cc", | |
| 49 "audio/android/audio_record_input.h", | |
| 50 "audio/android/opensles_input.cc", | |
| 51 "audio/android/opensles_input.h", | |
| 52 "audio/android/opensles_output.cc", | |
| 53 "audio/android/opensles_output.h", | |
| 54 "audio/android/opensles_wrapper.cc", | |
| 55 "audio/audio_buffers_state.cc", | |
| 56 "audio/audio_buffers_state.h", | |
| 57 "audio/audio_device_name.cc", | |
| 58 "audio/audio_device_name.h", | |
| 59 "audio/audio_device_thread.cc", | |
| 60 "audio/audio_device_thread.h", | |
| 61 "audio/audio_input_controller.cc", | |
| 62 "audio/audio_input_controller.h", | |
| 63 "audio/audio_input_device.cc", | |
| 64 "audio/audio_input_device.h", | |
| 65 "audio/audio_input_ipc.cc", | |
| 66 "audio/audio_input_ipc.h", | |
| 67 "audio/audio_io.h", | |
| 68 "audio/audio_manager.cc", | |
| 69 "audio/audio_manager.h", | |
| 70 "audio/audio_manager_base.cc", | |
| 71 "audio/audio_manager_base.h", | |
| 72 "audio/audio_output_controller.cc", | |
| 73 "audio/audio_output_controller.h", | |
| 74 "audio/audio_output_device.cc", | |
| 75 "audio/audio_output_device.h", | |
| 76 "audio/audio_output_dispatcher.cc", | |
| 77 "audio/audio_output_dispatcher.h", | |
| 78 "audio/audio_output_dispatcher_impl.cc", | |
| 79 "audio/audio_output_dispatcher_impl.h", | |
| 80 "audio/audio_output_ipc.cc", | |
| 81 "audio/audio_output_ipc.h", | |
| 82 "audio/audio_output_proxy.cc", | |
| 83 "audio/audio_output_proxy.h", | |
| 84 "audio/audio_output_resampler.cc", | |
| 85 "audio/audio_output_resampler.h", | |
| 86 "audio/audio_power_monitor.cc", | |
| 87 "audio/audio_power_monitor.h", | |
| 88 "audio/audio_source_diverter.h", | |
| 89 "audio/clockless_audio_sink.cc", | |
| 90 "audio/clockless_audio_sink.h", | |
| 91 "audio/fake_audio_consumer.cc", | |
| 92 "audio/fake_audio_consumer.h", | |
| 93 "audio/fake_audio_input_stream.cc", | |
| 94 "audio/fake_audio_input_stream.h", | |
| 95 "audio/fake_audio_log_factory.h", | |
| 96 "audio/fake_audio_log_factory.cc", | |
| 97 "audio/fake_audio_manager.cc", | |
| 98 "audio/fake_audio_manager.h", | |
| 99 "audio/fake_audio_output_stream.cc", | |
| 100 "audio/fake_audio_output_stream.h", | |
| 101 "audio/linux/audio_manager_linux.cc", | |
| 102 "audio/mac/audio_auhal_mac.cc", | |
| 103 "audio/mac/audio_auhal_mac.h", | |
| 104 "audio/mac/audio_device_listener_mac.cc", | |
| 105 "audio/mac/audio_device_listener_mac.h", | |
| 106 "audio/mac/audio_input_mac.cc", | |
| 107 "audio/mac/audio_input_mac.h", | |
| 108 "audio/mac/audio_low_latency_input_mac.cc", | |
| 109 "audio/mac/audio_low_latency_input_mac.h", | |
| 110 "audio/mac/audio_manager_mac.cc", | |
| 111 "audio/mac/audio_manager_mac.h", | |
| 112 "audio/null_audio_sink.cc", | |
| 113 "audio/null_audio_sink.h", | |
| 114 "audio/pulse/audio_manager_pulse.cc", | |
| 115 "audio/pulse/audio_manager_pulse.h", | |
| 116 "audio/pulse/pulse_input.cc", | |
| 117 "audio/pulse/pulse_input.h", | |
| 118 "audio/pulse/pulse_output.cc", | |
| 119 "audio/pulse/pulse_output.h", | |
| 120 "audio/pulse/pulse_util.cc", | |
| 121 "audio/pulse/pulse_util.h", | |
| 122 "audio/sample_rates.cc", | |
| 123 "audio/sample_rates.h", | |
| 124 "audio/scoped_task_runner_observer.cc", | |
| 125 "audio/scoped_task_runner_observer.h", | |
| 126 "audio/simple_sources.cc", | |
| 127 "audio/simple_sources.h", | |
| 128 "audio/sounds/audio_stream_handler.cc", | |
| 129 "audio/sounds/audio_stream_handler.h", | |
| 130 "audio/sounds/sounds_manager.cc", | |
| 131 "audio/sounds/sounds_manager.h", | |
| 132 "audio/sounds/wav_audio_handler.cc", | |
| 133 "audio/sounds/wav_audio_handler.h", | |
| 134 "audio/virtual_audio_input_stream.cc", | |
| 135 "audio/virtual_audio_input_stream.h", | |
| 136 "audio/virtual_audio_output_stream.cc", | |
| 137 "audio/virtual_audio_output_stream.h", | |
| 138 "audio/win/audio_device_listener_win.cc", | |
| 139 "audio/win/audio_device_listener_win.h", | |
| 140 "audio/win/audio_low_latency_input_win.cc", | |
| 141 "audio/win/audio_low_latency_input_win.h", | |
| 142 "audio/win/audio_low_latency_output_win.cc", | |
| 143 "audio/win/audio_low_latency_output_win.h", | |
| 144 "audio/win/audio_manager_win.cc", | |
| 145 "audio/win/audio_manager_win.h", | |
| 146 "audio/win/avrt_wrapper_win.cc", | |
| 147 "audio/win/avrt_wrapper_win.h", | |
| 148 "audio/win/core_audio_util_win.cc", | |
| 149 "audio/win/core_audio_util_win.h", | |
| 150 "audio/win/device_enumeration_win.cc", | |
| 151 "audio/win/device_enumeration_win.h", | |
| 152 "audio/win/wavein_input_win.cc", | |
| 153 "audio/win/wavein_input_win.h", | |
| 154 "audio/win/waveout_output_win.cc", | |
| 155 "audio/win/waveout_output_win.h", | |
| 156 "base/android/demuxer_android.h", | |
| 157 "base/android/demuxer_stream_player_params.cc", | |
| 158 "base/android/demuxer_stream_player_params.h", | |
| 159 "base/android/media_player_manager.h", | |
| 160 "base/android/media_resource_getter.cc", | |
| 161 "base/android/media_resource_getter.h", | |
| 162 "base/audio_buffer.cc", | |
| 163 "base/audio_buffer.h", | |
| 164 "base/audio_buffer_queue.cc", | |
| 165 "base/audio_buffer_queue.h", | |
| 166 "base/audio_capturer_source.h", | |
| 167 "base/audio_buffer_converter.cc", | |
| 168 "base/audio_buffer_converter.h", | |
| 169 "base/audio_converter.cc", | |
| 170 "base/audio_converter.h", | |
| 171 "base/audio_decoder.cc", | |
| 172 "base/audio_decoder.h", | |
| 173 "base/audio_decoder_config.cc", | |
| 174 "base/audio_decoder_config.h", | |
| 175 "base/audio_discard_helper.cc", | |
| 176 "base/audio_discard_helper.h", | |
| 177 "base/audio_fifo.cc", | |
| 178 "base/audio_fifo.h", | |
| 179 "base/audio_hardware_config.cc", | |
| 180 "base/audio_hardware_config.h", | |
| 181 "base/audio_hash.cc", | |
| 182 "base/audio_hash.h", | |
| 183 "base/audio_pull_fifo.cc", | |
| 184 "base/audio_pull_fifo.h", | |
| 185 "base/audio_renderer.cc", | |
| 186 "base/audio_renderer.h", | |
| 187 "base/audio_renderer_mixer.cc", | |
| 188 "base/audio_renderer_mixer.h", | |
| 189 "base/audio_renderer_mixer_input.cc", | |
| 190 "base/audio_renderer_mixer_input.h", | |
| 191 "base/audio_renderer_sink.h", | |
| 192 "base/audio_splicer.cc", | |
| 193 "base/audio_splicer.h", | |
| 194 "base/audio_timestamp_helper.cc", | |
| 195 "base/audio_timestamp_helper.h", | |
| 196 "base/bind_to_current_loop.h", | |
| 197 "base/bit_reader.cc", | |
| 198 "base/bit_reader.h", | |
| 199 "base/bit_reader_core.cc", | |
| 200 "base/bit_reader_core.h", | |
| 201 "base/bitstream_buffer.h", | |
| 202 "base/buffers.h", | |
| 203 "base/byte_queue.cc", | |
| 204 "base/byte_queue.h", | |
| 205 "base/channel_mixer.cc", | |
| 206 "base/channel_mixer.h", | |
| 207 "base/clock.cc", | |
| 208 "base/clock.h", | |
| 209 "base/data_buffer.cc", | |
| 210 "base/data_buffer.h", | |
| 211 "base/data_source.cc", | |
| 212 "base/data_source.h", | |
| 213 "base/decoder_buffer.cc", | |
| 214 "base/decoder_buffer.h", | |
| 215 "base/decoder_buffer_queue.cc", | |
| 216 "base/decoder_buffer_queue.h", | |
| 217 "base/decrypt_config.cc", | |
| 218 "base/decrypt_config.h", | |
| 219 "base/decryptor.cc", | |
| 220 "base/decryptor.h", | |
| 221 "base/demuxer.cc", | |
| 222 "base/demuxer.h", | |
| 223 "base/demuxer_stream.cc", | |
| 224 "base/demuxer_stream.h", | |
| 225 "base/djb2.cc", | |
| 226 "base/djb2.h", | |
| 227 "base/filter_collection.cc", | |
| 228 "base/filter_collection.h", | |
| 229 "base/keyboard_event_counter.cc", | |
| 230 "base/keyboard_event_counter.h", | |
| 231 "base/media.cc", | |
| 232 "base/media.h", | |
| 233 "base/media_keys.cc", | |
| 234 "base/media_keys.h", | |
| 235 "base/media_log.cc", | |
| 236 "base/media_log.h", | |
| 237 "base/media_log_event.h", | |
| 238 "base/media_switches.cc", | |
| 239 "base/media_switches.h", | |
| 240 "base/media_win.cc", | |
| 241 "base/multi_channel_resampler.cc", | |
| 242 "base/multi_channel_resampler.h", | |
| 243 "base/pipeline.cc", | |
| 244 "base/pipeline.h", | |
| 245 "base/pipeline_status.h", | |
| 246 "base/ranges.cc", | |
| 247 "base/ranges.h", | |
| 248 "base/sample_format.cc", | |
| 249 "base/sample_format.h", | |
| 250 "base/scoped_histogram_timer.h", | |
| 251 "base/seekable_buffer.cc", | |
| 252 "base/seekable_buffer.h", | |
| 253 "base/serial_runner.cc", | |
| 254 "base/serial_runner.h", | |
| 255 "base/simd/convert_rgb_to_yuv.h", | |
| 256 "base/simd/convert_rgb_to_yuv_c.cc", | |
| 257 "base/simd/convert_yuv_to_rgb.h", | |
| 258 "base/simd/convert_yuv_to_rgb_c.cc", | |
| 259 "base/simd/filter_yuv.h", | |
| 260 "base/simd/filter_yuv_c.cc", | |
| 261 "base/simd/yuv_to_rgb_table.cc", | |
| 262 "base/simd/yuv_to_rgb_table.h", | |
| 263 "base/sinc_resampler.cc", | |
| 264 "base/sinc_resampler.h", | |
| 265 "base/stream_parser.cc", | |
| 266 "base/stream_parser.h", | |
| 267 "base/stream_parser_buffer.cc", | |
| 268 "base/stream_parser_buffer.h", | |
| 269 "base/text_cue.cc", | |
| 270 "base/text_cue.h", | |
| 271 "base/text_ranges.cc", | |
| 272 "base/text_ranges.h", | |
| 273 "base/text_renderer.cc", | |
| 274 "base/text_renderer.h", | |
| 275 "base/text_track.h", | |
| 276 "base/text_track_config.cc", | |
| 277 "base/text_track_config.h", | |
| 278 "base/user_input_monitor.cc", | |
| 279 "base/user_input_monitor.h", | |
| 280 "base/user_input_monitor_linux.cc", | |
| 281 "base/user_input_monitor_mac.cc", | |
| 282 "base/user_input_monitor_win.cc", | |
| 283 "base/video_decoder.cc", | |
| 284 "base/video_decoder.h", | |
| 285 "base/video_decoder_config.cc", | |
| 286 "base/video_decoder_config.h", | |
| 287 "base/video_frame.cc", | |
| 288 "base/video_frame.h", | |
| 289 "base/video_frame_pool.cc", | |
| 290 "base/video_frame_pool.h", | |
| 291 "base/video_renderer.cc", | |
| 292 "base/video_renderer.h", | |
| 293 "base/video_util.cc", | |
| 294 "base/video_util.h", | |
| 295 "base/yuv_convert.cc", | |
| 296 "base/yuv_convert.h", | |
| 297 "cdm/aes_decryptor.cc", | |
| 298 "cdm/aes_decryptor.h", | |
| 299 "cdm/json_web_key.cc", | |
| 300 "cdm/json_web_key.h", | |
| 301 "cdm/key_system_names.cc", | |
| 302 "cdm/key_system_names.h", | |
| 303 "ffmpeg/ffmpeg_deleters.h", | |
| 304 "filters/audio_renderer_algorithm.cc", | |
| 305 "filters/audio_renderer_algorithm.h", | |
| 306 "filters/audio_renderer_impl.cc", | |
| 307 "filters/audio_renderer_impl.h", | |
| 308 "filters/chunk_demuxer.cc", | |
| 309 "filters/chunk_demuxer.h", | |
| 310 "filters/decoder_selector.cc", | |
| 311 "filters/decoder_selector.h", | |
| 312 "filters/decoder_stream.cc", | |
| 313 "filters/decoder_stream.h", | |
| 314 "filters/decoder_stream_traits.cc", | |
| 315 "filters/decoder_stream_traits.h", | |
| 316 "filters/decrypting_audio_decoder.cc", | |
| 317 "filters/decrypting_audio_decoder.h", | |
| 318 "filters/decrypting_demuxer_stream.cc", | |
| 319 "filters/decrypting_demuxer_stream.h", | |
| 320 "filters/decrypting_video_decoder.cc", | |
| 321 "filters/decrypting_video_decoder.h", | |
| 322 "filters/file_data_source.cc", | |
| 323 "filters/file_data_source.h", | |
| 324 "filters/frame_processor_base.cc", | |
| 325 "filters/frame_processor_base.h", | |
| 326 "filters/gpu_video_accelerator_factories.cc", | |
| 327 "filters/gpu_video_accelerator_factories.h", | |
| 328 "filters/gpu_video_decoder.cc", | |
| 329 "filters/gpu_video_decoder.h", | |
| 330 "filters/h264_bit_reader.cc", | |
| 331 "filters/h264_bit_reader.h", | |
| 332 "filters/h264_parser.cc", | |
| 333 "filters/h264_parser.h", | |
| 334 "filters/h264_to_annex_b_bitstream_converter.cc", | |
| 335 "filters/h264_to_annex_b_bitstream_converter.h", | |
| 336 "filters/legacy_frame_processor.cc", | |
| 337 "filters/legacy_frame_processor.h", | |
| 338 "filters/opus_audio_decoder.cc", | |
| 339 "filters/opus_audio_decoder.h", | |
| 340 "filters/skcanvas_video_renderer.cc", | |
| 341 "filters/skcanvas_video_renderer.h", | |
| 342 "filters/source_buffer_stream.cc", | |
| 343 "filters/source_buffer_stream.h", | |
| 344 "filters/stream_parser_factory.cc", | |
| 345 "filters/stream_parser_factory.h", | |
| 346 "filters/video_frame_scheduler.h", | |
| 347 "filters/video_frame_scheduler_impl.cc", | |
| 348 "filters/video_frame_scheduler_impl.h", | |
| 349 "filters/video_frame_scheduler_proxy.cc", | |
| 350 "filters/video_frame_scheduler_proxy.h", | |
| 351 "filters/video_renderer_impl.cc", | |
| 352 "filters/video_renderer_impl.h", | |
| 353 "filters/vpx_video_decoder.cc", | |
| 354 "filters/vpx_video_decoder.h", | |
| 355 "filters/webvtt_util.h", | |
| 356 "filters/wsola_internals.cc", | |
| 357 "filters/wsola_internals.h", | |
| 358 "midi/midi_manager.cc", | |
| 359 "midi/midi_manager.h", | |
| 360 "midi/midi_manager_alsa.cc", | |
| 361 "midi/midi_manager_alsa.h", | |
| 362 "midi/midi_manager_android.cc", | |
| 363 "midi/midi_manager_mac.cc", | |
| 364 "midi/midi_manager_mac.h", | |
| 365 "midi/midi_manager_usb.cc", | |
| 366 "midi/midi_manager_usb.h", | |
| 367 "midi/midi_manager_win.cc", | |
| 368 "midi/midi_manager_win.h", | |
| 369 "midi/midi_message_queue.cc", | |
| 370 "midi/midi_message_queue.h", | |
| 371 "midi/midi_message_util.cc", | |
| 372 "midi/midi_message_util.h", | |
| 373 "midi/midi_port_info.cc", | |
| 374 "midi/midi_port_info.h", | |
| 375 "midi/usb_midi_descriptor_parser.cc", | |
| 376 "midi/usb_midi_descriptor_parser.h", | |
| 377 "midi/usb_midi_device.h", | |
| 378 "midi/usb_midi_device_android.cc", | |
| 379 "midi/usb_midi_device_android.h", | |
| 380 "midi/usb_midi_device_factory_android.cc", | |
| 381 "midi/usb_midi_device_factory_android.h", | |
| 382 "midi/usb_midi_input_stream.cc", | |
| 383 "midi/usb_midi_input_stream.h", | |
| 384 "midi/usb_midi_jack.h", | |
| 385 "midi/usb_midi_output_stream.cc", | |
| 386 "midi/usb_midi_output_stream.h", | |
| 387 "video/capture/android/video_capture_device_android.cc", | |
| 388 "video/capture/android/video_capture_device_android.h", | |
| 389 "video/capture/android/video_capture_device_factory_android.cc", | |
| 390 "video/capture/android/video_capture_device_factory_android.h", | |
| 391 "video/capture/fake_video_capture_device.cc", | |
| 392 "video/capture/fake_video_capture_device.h", | |
| 393 "video/capture/fake_video_capture_device_factory.h", | |
| 394 "video/capture/fake_video_capture_device_factory.cc", | |
| 395 "video/capture/file_video_capture_device.cc", | |
| 396 "video/capture/file_video_capture_device.h", | |
| 397 "video/capture/file_video_capture_device_factory.h", | |
| 398 "video/capture/file_video_capture_device_factory.cc", | |
| 399 "video/capture/linux/video_capture_device_linux.cc", | |
| 400 "video/capture/linux/video_capture_device_linux.h", | |
| 401 "video/capture/mac/avfoundation_glue.h", | |
| 402 "video/capture/mac/avfoundation_glue.mm", | |
| 403 "video/capture/mac/coremedia_glue.h", | |
| 404 "video/capture/mac/coremedia_glue.mm", | |
| 405 "video/capture/mac/platform_video_capturing_mac.h", | |
| 406 "video/capture/mac/video_capture_device_avfoundation_mac.h", | |
| 407 "video/capture/mac/video_capture_device_avfoundation_mac.mm", | |
| 408 "video/capture/mac/video_capture_device_mac.h", | |
| 409 "video/capture/mac/video_capture_device_mac.mm", | |
| 410 "video/capture/mac/video_capture_device_qtkit_mac.h", | |
| 411 "video/capture/mac/video_capture_device_qtkit_mac.mm", | |
| 412 "video/capture/video_capture_device.cc", | |
| 413 "video/capture/video_capture_device.h", | |
| 414 "video/capture/video_capture_device_factory.cc", | |
| 415 "video/capture/video_capture_device_factory.h", | |
| 416 "video/capture/video_capture_types.cc", | |
| 417 "video/capture/video_capture_types.h", | |
| 418 "video/capture/win/capability_list_win.cc", | |
| 419 "video/capture/win/capability_list_win.h", | |
| 420 "video/capture/win/filter_base_win.cc", | |
| 421 "video/capture/win/filter_base_win.h", | |
| 422 "video/capture/win/pin_base_win.cc", | |
| 423 "video/capture/win/pin_base_win.h", | |
| 424 "video/capture/win/sink_filter_observer_win.h", | |
| 425 "video/capture/win/sink_filter_win.cc", | |
| 426 "video/capture/win/sink_filter_win.h", | |
| 427 "video/capture/win/sink_input_pin_win.cc", | |
| 428 "video/capture/win/sink_input_pin_win.h", | |
| 429 "video/capture/win/video_capture_device_mf_win.cc", | |
| 430 "video/capture/win/video_capture_device_mf_win.h", | |
| 431 "video/capture/win/video_capture_device_win.cc", | |
| 432 "video/capture/win/video_capture_device_win.h", | |
| 433 "video/picture.cc", | |
| 434 "video/picture.h", | |
| 435 "video/video_decode_accelerator.cc", | |
| 436 "video/video_decode_accelerator.h", | |
| 437 "video/video_encode_accelerator.cc", | |
| 438 "video/video_encode_accelerator.h", | |
| 439 "formats/common/offset_byte_queue.cc", | |
| 440 "formats/common/offset_byte_queue.h", | |
| 441 "formats/webm/webm_audio_client.cc", | |
| 442 "formats/webm/webm_audio_client.h", | |
| 443 "formats/webm/webm_cluster_parser.cc", | |
| 444 "formats/webm/webm_cluster_parser.h", | |
| 445 "formats/webm/webm_constants.cc", | |
| 446 "formats/webm/webm_constants.h", | |
| 447 "formats/webm/webm_content_encodings.cc", | |
| 448 "formats/webm/webm_content_encodings.h", | |
| 449 "formats/webm/webm_content_encodings_client.cc", | |
| 450 "formats/webm/webm_content_encodings_client.h", | |
| 451 "formats/webm/webm_crypto_helpers.cc", | |
| 452 "formats/webm/webm_crypto_helpers.h", | |
| 453 "formats/webm/webm_info_parser.cc", | |
| 454 "formats/webm/webm_info_parser.h", | |
| 455 "formats/webm/webm_parser.cc", | |
| 456 "formats/webm/webm_parser.h", | |
| 457 "formats/webm/webm_stream_parser.cc", | |
| 458 "formats/webm/webm_stream_parser.h", | |
| 459 "formats/webm/webm_tracks_parser.cc", | |
| 460 "formats/webm/webm_tracks_parser.h", | |
| 461 "formats/webm/webm_video_client.cc", | |
| 462 "formats/webm/webm_video_client.h", | |
| 463 "formats/webm/webm_webvtt_parser.cc", | |
| 464 "formats/webm/webm_webvtt_parser.h" | |
| 465 ] | |
| 466 | |
| 467 libs = [] | |
| 468 defines = [ "MEDIA_IMPLEMENTATION" ] | |
| 469 deps = [] | |
| 470 include_dirs = [ "." ] | |
| 471 if (media_use_ffmpeg) { | |
| 472 deps += [ "//third_party/ffmpeg" ] | |
| 473 sources += [ | |
| 474 "base/audio_video_metadata_extractor.cc", | |
| 475 "base/audio_video_metadata_extractor.h", | |
| 476 "base/container_names.cc", | |
| 477 "base/container_names.h", | |
| 478 "base/media_file_checker.cc", | |
| 479 "base/media_file_checker.h", | |
| 480 "base/media_posix.cc", | |
| 481 "ffmpeg/ffmpeg_common.cc", | |
| 482 "ffmpeg/ffmpeg_common.h", | |
| 483 "filters/audio_file_reader.cc", | |
| 484 "filters/audio_file_reader.h", | |
| 485 "filters/blocking_url_protocol.cc", | |
| 486 "filters/blocking_url_protocol.h", | |
| 487 "filters/ffmpeg_audio_decoder.cc", | |
| 488 "filters/ffmpeg_audio_decoder.h", | |
| 489 "filters/ffmpeg_demuxer.cc", | |
| 490 "filters/ffmpeg_demuxer.h", | |
| 491 "filters/ffmpeg_glue.cc", | |
| 492 "filters/ffmpeg_glue.h", | |
| 493 "filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc", | |
| 494 "filters/ffmpeg_h264_to_annex_b_bitstream_converter.h", | |
| 495 "filters/ffmpeg_video_decoder.cc", | |
| 496 "filters/ffmpeg_video_decoder.h", | |
| 497 "filters/in_memory_url_protocol.cc", | |
| 498 "filters/in_memory_url_protocol.h", | |
| 499 ] | |
| 500 } | |
| 501 | |
| 502 if (cpu_arch == "arm" && arm_use_neon) { | |
| 503 defines += [ "USE_NEON" ] | |
| 504 } | |
| 505 | |
| 506 if (media_use_libvpx) { | |
| 507 sources += [ | |
| 508 "filters/vpx_video_decoder.cc", | |
| 509 "filters/vpx_video_decoder.h", | |
| 510 ] | |
| 511 # TODO(ajwong): vpx needs something. | |
| 512 # deps += [ "//third_party/libvpx" ] | |
| 513 } else { | |
| 514 defines += [ "MEDIA_DISABLE_LIBVPX" ] | |
| 515 } | |
| 516 | |
| 517 if (is_android) { | |
| 518 sources += [ | |
| 519 "base/media.cc", | |
| 520 "base/media.h", | |
| 521 "base/media_stub.cc", | |
| 522 ] | |
| 523 sources -= [ | |
| 524 "filters/opus_audio_decoder.cc", | |
| 525 "filters/opus_audio_decoder.h", | |
| 526 ] | |
| 527 # deps += [ | |
| 528 # "media_android_jni_headers", | |
| 529 # "player_android", | |
| 530 # "video_capture_android_jni_headers", | |
| 531 # ] | |
| 532 # if (android_webview_build) { | |
| 533 # deps += [ ":media_java" ] | |
| 534 # defines = [ "DISABLE_USER_INPUT_MONITOR" ] | |
| 535 # } | |
| 536 } | |
| 537 if (is_chromeos) { | |
| 538 sources += [ | |
| 539 "formats/webm/chromeos/ebml_writer.cc", | |
| 540 "formats/webm/chromeos/ebml_writer.h", | |
| 541 "formats/webm/chromeos/webm_encoder.cc", | |
| 542 "formats/webm/chromeos/webm_encoder.h", | |
| 543 ] | |
| 544 deps += [ | |
| 545 "//third_party/libvpx", | |
| 546 "//third_party/libyuv" | |
| 547 ] | |
| 548 } | |
| 549 if (use_alsa) { | |
| 550 libs += [ "asound" ] | |
| 551 defines += [ "USE_ALSA" ] | |
| 552 } else { | |
| 553 # | |
| 554 # 'sources/': [ | |
| 555 # ['exclude', '(^|/)alsa/'], | |
| 556 # ['exclude', '_alsa\\.(h|cc)$'], | |
| 557 # ], | |
| 558 } | |
| 559 | |
| 560 # if (is_openbsd) { | |
| 561 # sources += [ | |
| 562 # "audio/openbsd/audio_manager_openbsd.cc", | |
| 563 # "audio/openbsd/audio_manager_openbsd.h", | |
| 564 # ], | |
| 565 # } | |
| 566 | |
| 567 # # A simple WebM encoder for animated avatars on ChromeOS. | |
| 568 # ['OS=="linux"', { | |
| 569 # 'conditions': [ | |
| 570 # ['use_x11==1', { | |
| 571 # 'dependencies': [ | |
| 572 # '../build/linux/system.gyp:x11', | |
| 573 # '../build/linux/system.gyp:xdamage', | |
| 574 # '../build/linux/system.gyp:xext', | |
| 575 # '../build/linux/system.gyp:xfixes', | |
| 576 # '../build/linux/system.gyp:xtst', | |
| 577 # ], | |
| 578 # }, { # else: use_x11==0 | |
| 579 # 'sources!': [ | |
| 580 # 'base/user_input_monitor_linux.cc', | |
| 581 # ], | |
| 582 # 'defines': [ | |
| 583 # 'DISABLE_USER_INPUT_MONITOR', | |
| 584 # ], | |
| 585 # }], | |
| 586 if (use_cras) { | |
| 587 # 'cflags': [ | |
| 588 # '<!@(<(pkg-config) --cflags libcras)', | |
| 589 # ], | |
| 590 # 'libraries': [ | |
| 591 # '<!@(<(pkg-config) --libs libcras)', | |
| 592 # ], | |
| 593 defines += [ "USE_CRAS" ] | |
| 594 sources += [ | |
| 595 "audio/cras/audio_manager_cras.cc", | |
| 596 "audio/cras/audio_manager_cras.h", | |
| 597 "audio/cras/cras_input.cc", | |
| 598 "audio/cras/cras_input.h", | |
| 599 "audio/cras/cras_unified.cc", | |
| 600 "audio/cras/cras_unified.h", | |
| 601 ] | |
| 602 } | |
| 603 # ], | |
| 604 # }], | |
| 605 # ['OS!="linux"', { | |
| 606 # 'sources!': [ | |
| 607 # 'audio/cras/audio_manager_cras.cc', | |
| 608 # 'audio/cras/audio_manager_cras.h', | |
| 609 # 'audio/cras/cras_input.cc', | |
| 610 # 'audio/cras/cras_input.h', | |
| 611 # 'audio/cras/cras_unified.cc', | |
| 612 # 'audio/cras/cras_unified.h', | |
| 613 # ], | |
| 614 # }], | |
| 615 # ['use_pulseaudio==1', { | |
| 616 # 'cflags': [ | |
| 617 # '<!@(<(pkg-config) --cflags libpulse)', | |
| 618 # ], | |
| 619 # 'defines': [ | |
| 620 # 'USE_PULSEAUDIO', | |
| 621 # ], | |
| 622 # 'conditions': [ | |
| 623 # ['linux_link_pulseaudio==0', { | |
| 624 # 'defines': [ | |
| 625 # 'DLOPEN_PULSEAUDIO', | |
| 626 # ], | |
| 627 # 'variables': { | |
| 628 # 'generate_stubs_script': '../tools/generate_stubs/generate_stubs.py ', | |
| 629 # 'extra_header': 'audio/pulse/pulse_stub_header.fragment', | |
| 630 # 'sig_files': ['audio/pulse/pulse.sigs'], | |
| 631 # 'outfile_type': 'posix_stubs', | |
| 632 # 'stubs_filename_root': 'pulse_stubs', | |
| 633 # 'project_path': 'media/audio/pulse', | |
| 634 # 'intermediate_dir': '<(INTERMEDIATE_DIR)', | |
| 635 # 'output_root': '<(SHARED_INTERMEDIATE_DIR)/pulse', | |
| 636 # }, | |
| 637 # 'include_dirs': [ | |
| 638 # '<(output_root)', | |
| 639 # ], | |
| 640 # 'actions': [ | |
| 641 # { | |
| 642 # 'action_name': 'generate_stubs', | |
| 643 # 'inputs': [ | |
| 644 # '<(generate_stubs_script)', | |
| 645 # '<(extra_header)', | |
| 646 # '<@(sig_files)', | |
| 647 # ], | |
| 648 # 'outputs': [ | |
| 649 # '<(intermediate_dir)/<(stubs_filename_root).cc', | |
| 650 # '<(output_root)/<(project_path)/<(stubs_filename_root).h', | |
| 651 # ], | |
| 652 # 'action': ['python', | |
| 653 # '<(generate_stubs_script)', | |
| 654 # '-i', '<(intermediate_dir)', | |
| 655 # '-o', '<(output_root)/<(project_path)', | |
| 656 # '-t', '<(outfile_type)', | |
| 657 # '-e', '<(extra_header)', | |
| 658 # '-s', '<(stubs_filename_root)', | |
| 659 # '-p', '<(project_path)', | |
| 660 # '<@(_inputs)', | |
| 661 # ], | |
| 662 # 'process_outputs_as_sources': 1, | |
| 663 # 'message': 'Generating Pulse stubs for dynamic loading', | |
| 664 # }, | |
| 665 # ], | |
| 666 # 'conditions': [ | |
| 667 # # Linux/Solaris need libdl for dlopen() and friends. | |
| 668 # ['OS=="linux" or OS=="solaris"', { | |
| 669 # 'link_settings': { | |
| 670 # 'libraries': [ | |
| 671 # '-ldl', | |
| 672 # ], | |
| 673 # }, | |
| 674 # }], | |
| 675 # ], | |
| 676 # }, { # else: linux_link_pulseaudio==0 | |
| 677 # 'link_settings': { | |
| 678 # 'ldflags': [ | |
| 679 # '<!@(<(pkg-config) --libs-only-L --libs-only-other libpulse)', | |
| 680 # ], | |
| 681 # 'libraries': [ | |
| 682 # '<!@(<(pkg-config) --libs-only-l libpulse)', | |
| 683 # ], | |
| 684 # }, | |
| 685 # }], | |
| 686 # ], | |
| 687 # }, { # else: use_pulseaudio==0 | |
| 688 # 'sources!': [ | |
| 689 # 'audio/pulse/audio_manager_pulse.cc', | |
| 690 # 'audio/pulse/audio_manager_pulse.h', | |
| 691 # 'audio/pulse/pulse_input.cc', | |
| 692 # 'audio/pulse/pulse_input.h', | |
| 693 # 'audio/pulse/pulse_output.cc', | |
| 694 # 'audio/pulse/pulse_output.h', | |
| 695 # 'audio/pulse/pulse_util.cc', | |
| 696 # 'audio/pulse/pulse_util.h', | |
| 697 # ], | |
| 698 # }], | |
| 699 # ['OS=="mac"', { | |
| 700 # 'link_settings': { | |
| 701 # 'libraries': [ | |
| 702 # '$(SDKROOT)/System/Library/Frameworks/AudioToolbox.framework', | |
| 703 # '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework', | |
| 704 # '$(SDKROOT)/System/Library/Frameworks/CoreAudio.framework', | |
| 705 # '$(SDKROOT)/System/Library/Frameworks/CoreMIDI.framework', | |
| 706 # '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework', | |
| 707 # '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework', | |
| 708 # '$(SDKROOT)/System/Library/Frameworks/QTKit.framework', | |
| 709 # ], | |
| 710 # }, | |
| 711 # }], | |
| 712 # ['OS=="win"', { | |
| 713 # 'link_settings': { | |
| 714 # 'libraries': [ | |
| 715 # '-lmf.lib', | |
| 716 # '-lmfplat.lib', | |
| 717 # '-lmfreadwrite.lib', | |
| 718 # '-lmfuuid.lib', | |
| 719 # ], | |
| 720 # }, | |
| 721 # # Specify delayload for media.dll. | |
| 722 # 'msvs_settings': { | |
| 723 # 'VCLinkerTool': { | |
| 724 # 'DelayLoadDLLs': [ | |
| 725 # 'mf.dll', | |
| 726 # 'mfplat.dll', | |
| 727 # 'mfreadwrite.dll', | |
| 728 # ], | |
| 729 # }, | |
| 730 # }, | |
| 731 # # Specify delayload for components that link with media.lib. | |
| 732 # 'all_dependent_settings': { | |
| 733 # 'msvs_settings': { | |
| 734 # 'VCLinkerTool': { | |
| 735 # 'DelayLoadDLLs': [ | |
| 736 # 'mf.dll', | |
| 737 # 'mfplat.dll', | |
| 738 # 'mfreadwrite.dll', | |
| 739 # ], | |
| 740 # }, | |
| 741 # }, | |
| 742 # }, | |
| 743 # # TODO(wolenetz): Fix size_t to int truncations in win64. See | |
| 744 # # http://crbug.com/171009 | |
| 745 # 'conditions': [ | |
| 746 # ['target_arch=="x64"', { | |
| 747 # 'msvs_disabled_warnings': [ 4267, ], | |
| 748 # }], | |
| 749 # ], | |
| 750 # }], | |
| 751 # ['proprietary_codecs==1', { | |
| 752 # 'sources': [ | |
| 753 # 'formats/mp2t/es_parser.h', | |
| 754 # 'formats/mp2t/es_parser_adts.cc', | |
| 755 # 'formats/mp2t/es_parser_adts.h', | |
| 756 # 'formats/mp2t/es_parser_h264.cc', | |
| 757 # 'formats/mp2t/es_parser_h264.h', | |
| 758 # 'formats/mp2t/mp2t_common.h', | |
| 759 # 'formats/mp2t/mp2t_stream_parser.cc', | |
| 760 # 'formats/mp2t/mp2t_stream_parser.h', | |
| 761 # 'formats/mp2t/ts_packet.cc', | |
| 762 # 'formats/mp2t/ts_packet.h', | |
| 763 # 'formats/mp2t/ts_section.h', | |
| 764 # 'formats/mp2t/ts_section_pat.cc', | |
| 765 # 'formats/mp2t/ts_section_pat.h', | |
| 766 # 'formats/mp2t/ts_section_pes.cc', | |
| 767 # 'formats/mp2t/ts_section_pes.h', | |
| 768 # 'formats/mp2t/ts_section_pmt.cc', | |
| 769 # 'formats/mp2t/ts_section_pmt.h', | |
| 770 # 'formats/mp2t/ts_section_psi.cc', | |
| 771 # 'formats/mp2t/ts_section_psi.h', | |
| 772 # 'formats/mp4/aac.cc', | |
| 773 # 'formats/mp4/aac.h', | |
| 774 # 'formats/mp4/avc.cc', | |
| 775 # 'formats/mp4/avc.h', | |
| 776 # 'formats/mp4/box_definitions.cc', | |
| 777 # 'formats/mp4/box_definitions.h', | |
| 778 # 'formats/mp4/box_reader.cc', | |
| 779 # 'formats/mp4/box_reader.h', | |
| 780 # 'formats/mp4/cenc.cc', | |
| 781 # 'formats/mp4/cenc.h', | |
| 782 # 'formats/mp4/es_descriptor.cc', | |
| 783 # 'formats/mp4/es_descriptor.h', | |
| 784 # 'formats/mp4/mp4_stream_parser.cc', | |
| 785 # 'formats/mp4/mp4_stream_parser.h', | |
| 786 # 'formats/mp4/track_run_iterator.cc', | |
| 787 # 'formats/mp4/track_run_iterator.h', | |
| 788 # 'formats/mpeg/adts_constants.cc', | |
| 789 # 'formats/mpeg/adts_constants.h', | |
| 790 # 'formats/mpeg/adts_stream_parser.cc', | |
| 791 # 'formats/mpeg/adts_stream_parser.h', | |
| 792 # 'formats/mpeg/mp3_stream_parser.cc', | |
| 793 # 'formats/mpeg/mp3_stream_parser.h', | |
| 794 # 'formats/mpeg/mpeg_audio_stream_parser_base.cc', | |
| 795 # 'formats/mpeg/mpeg_audio_stream_parser_base.h', | |
| 796 # ], | |
| 797 # 'conditions': [ | |
| 798 # ['enable_mpeg2ts_stream_parser==1', { | |
| 799 # 'defines': [ | |
| 800 # 'ENABLE_MPEG2TS_STREAM_PARSER', | |
| 801 # ], | |
| 802 # }], | |
| 803 # ], | |
| 804 # }], | |
| 805 # ['target_arch=="ia32" or target_arch=="x64"', { | |
| 806 # 'dependencies': [ | |
| 807 # 'media_asm', | |
| 808 # 'media_mmx', | |
| 809 # 'media_sse', | |
| 810 # 'media_sse2', | |
| 811 # ], | |
| 812 # 'sources': [ | |
| 813 # 'base/simd/convert_yuv_to_rgb_x86.cc', | |
| 814 # ], | |
| 815 # }], | |
| 816 # ['OS!="linux" and OS!="win"', { | |
| 817 # 'sources!': [ | |
| 818 # 'base/keyboard_event_counter.cc', | |
| 819 # 'base/keyboard_event_counter.h', | |
| 820 # ], | |
| 821 # }], | |
| 822 # ], | |
| 823 | |
| 824 deps += [ | |
| 825 # ":shared_memory_support", | |
| 826 "//base", | |
| 827 "//base:i18n", | |
| 828 "//base/third_party/dynamic_annotations", | |
| 829 "//crypto", | |
| 830 "//crypto:platform", # TODO(ajwong): This used to be provided by crypto.gyp via export_dependent_settings # TODO(ajwong): This used to be provided by cryp to.gyp via export_dependent_settings. | |
| 831 # "../gpu/gpu.gyp:command_buffer_common", | |
| 832 "//skia", | |
| 833 # "../third_party/opus/opus.gyp:opus", | |
| 834 "//ui/events:events_base", | |
| 835 "//ui/gfx:gfx", | |
| 836 "//ui/gfx:gfx_geometry", | |
| 837 "//url", | |
| 838 ] | |
| 839 } | |
| 840 | |
| 841 source_set("media_test_support") { | |
| 842 } | |
| 843 | |
| 844 test("ffmpeg_unittests") { | |
| 845 sources = [ "ffmpeg/ffmpeg_unittest.cc" ] | |
| 846 | |
| 847 deps = [ | |
| 848 ":media", | |
| 849 ":media_test_support", | |
| 850 "//base", | |
| 851 "//base:i18n", | |
| 852 "//base/test:test_support", | |
| 853 "//base/test:test_support_perf", | |
| 854 "//testing/gtest", | |
| 855 "//third_party/ffmpeg", | |
| 856 ] | |
| 857 } | |
| OLD | NEW |