| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
| 6 import("//build/config/arm.gni") | 6 import("//build/config/arm.gni") |
| 7 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") |
| 8 import("//build/config/linux/pkg_config.gni") | 8 import("//build/config/linux/pkg_config.gni") |
| 9 | 9 import("//media/media_options.gni") |
| 10 # These variables need to be args. | |
| 11 | |
| 12 # Override to dynamically link the cras (ChromeOS audio) library. | |
| 13 use_cras = false | |
| 14 | |
| 15 # Option e.g. for Linux distributions to link pulseaudio directly | |
| 16 # (DT_NEEDED) instead of using dlopen. This helps with automated | |
| 17 # detection of ABI mismatches and prevents silent errors. | |
| 18 # | |
| 19 # TODO(ajwong): Why is this prefixed "linux_"? | |
| 20 linux_link_pulseaudio = false | |
| 21 | |
| 22 # TODO(ajwong): Enable libvpx once that's converted. | |
| 23 media_use_ffmpeg = true | |
| 24 media_use_libvpx = false | |
| 25 if (is_android) { | |
| 26 # Android doesn't use ffmpeg or libvpx. | |
| 27 media_use_ffmpeg = false | |
| 28 media_use_libvpx = false | |
| 29 } | |
| 30 | |
| 31 # TODO(ajwong): how to disable embedded? | |
| 32 # Original conditional: (OS=="linux" or OS=="freebsd" or OS=="solaris") and embe
dded!=1 | |
| 33 use_alsa = false | |
| 34 use_pulseaudio = false | |
| 35 if (is_posix && !is_android) { | |
| 36 use_alsa = true | |
| 37 if (!use_cras) { | |
| 38 use_pulseaudio = true | |
| 39 } | |
| 40 } | |
| 41 | |
| 42 # TODO(ajwong): is_openbsd should be a platform define. | |
| 43 is_openbsd = false | |
| 44 | |
| 45 # TODO(ajwong): This should be branding controlled? | |
| 46 proprietary_codecs = false | |
| 47 | |
| 48 # TODO(ajwong): Where are these coming from?jk | |
| 49 enable_mpeg2ts_stream_parser = false | |
| 50 enable_browser_cdms = is_android | |
| 51 | 10 |
| 52 # Common configuration for targets in the media directory. | 11 # Common configuration for targets in the media directory. |
| 53 # NOT for exporting. | 12 # NOT for exporting. |
| 54 config("media_config") { | 13 config("media_config") { |
| 55 defines = [ "MEDIA_IMPLEMENTATION" ] | 14 defines = [ "MEDIA_IMPLEMENTATION" ] |
| 56 if (cpu_arch == "arm" && arm_use_neon) { | 15 if (cpu_arch == "arm" && arm_use_neon) { |
| 57 defines += [ "USE_NEON" ] | 16 defines += [ "USE_NEON" ] |
| 58 } | 17 } |
| 59 if (!media_use_libvpx) { | 18 if (!media_use_libvpx) { |
| 60 defines += [ "MEDIA_DISABLE_LIBVPX" ] | 19 defines += [ "MEDIA_DISABLE_LIBVPX" ] |
| (...skipping 15 matching lines...) Expand all Loading... |
| 76 if (is_win) { | 35 if (is_win) { |
| 77 config("media_dependent_config") { | 36 config("media_dependent_config") { |
| 78 ldflags += [ | 37 ldflags += [ |
| 79 "/DELAYLOAD:mf.dll", | 38 "/DELAYLOAD:mf.dll", |
| 80 "/DELAYLOAD:mfplat.dll", | 39 "/DELAYLOAD:mfplat.dll", |
| 81 "/DELAYLOAD:mfreadwrite.dll", | 40 "/DELAYLOAD:mfreadwrite.dll", |
| 82 ] | 41 ] |
| 83 } | 42 } |
| 84 } | 43 } |
| 85 | 44 |
| 86 if (!linux_link_pulseaudio) { | |
| 87 # When libpulse is not directly linked, use stubs to allow for dlopening of | |
| 88 # the binary. | |
| 89 action("pulse_generate_stubs") { | |
| 90 extra_header = "audio/pulse/pulse_stub_header.fragment" | |
| 91 | |
| 92 script = "../tools/generate_stubs/generate_stubs.py" | |
| 93 sources = [ "audio/pulse/pulse.sigs" ] | |
| 94 source_prereqs = [ extra_header ] | |
| 95 stubs_filename_root = "pulse_stubs" | |
| 96 | |
| 97 # TODO(ajwong): these need to be included in the pulse build. | |
| 98 outputs = [ | |
| 99 "$target_gen_dir/audio/pulse/$stubs_filename_root.cc", | |
| 100 "$target_gen_dir/audio/pulse/$stubs_filename_root.h", | |
| 101 ] | |
| 102 args = [ | |
| 103 "-i", rebase_path("$target_gen_dir/audio/pulse", root_build_dir), | |
| 104 "-o", rebase_path("$target_gen_dir/audio/pulse", root_build_dir), | |
| 105 "-t", "posix_stubs", | |
| 106 "-e", rebase_path(extra_header, root_build_dir), | |
| 107 "-s", stubs_filename_root, | |
| 108 "-p", "media/audio/pulse", | |
| 109 ] | |
| 110 | |
| 111 args += rebase_path(sources, root_build_dir) | |
| 112 } | |
| 113 } | |
| 114 | |
| 115 component("media") { | 45 component("media") { |
| 116 sources = [ | 46 sources = [ |
| 117 "audio/agc_audio_stream.h", | 47 "base/audio_block_fifo.cc", |
| 118 "audio/audio_buffers_state.cc", | 48 "base/audio_block_fifo.h", |
| 119 "audio/audio_buffers_state.h", | |
| 120 "audio/audio_device_name.cc", | |
| 121 "audio/audio_device_name.h", | |
| 122 "audio/audio_device_thread.cc", | |
| 123 "audio/audio_device_thread.h", | |
| 124 "audio/audio_input_controller.cc", | |
| 125 "audio/audio_input_controller.h", | |
| 126 "audio/audio_input_device.cc", | |
| 127 "audio/audio_input_device.h", | |
| 128 "audio/audio_input_ipc.cc", | |
| 129 "audio/audio_input_ipc.h", | |
| 130 "audio/audio_io.h", | |
| 131 "audio/audio_manager.cc", | |
| 132 "audio/audio_manager.h", | |
| 133 "audio/audio_manager_base.cc", | |
| 134 "audio/audio_manager_base.h", | |
| 135 "audio/audio_output_controller.cc", | |
| 136 "audio/audio_output_controller.h", | |
| 137 "audio/audio_output_device.cc", | |
| 138 "audio/audio_output_device.h", | |
| 139 "audio/audio_output_dispatcher.cc", | |
| 140 "audio/audio_output_dispatcher.h", | |
| 141 "audio/audio_output_dispatcher_impl.cc", | |
| 142 "audio/audio_output_dispatcher_impl.h", | |
| 143 "audio/audio_output_ipc.cc", | |
| 144 "audio/audio_output_ipc.h", | |
| 145 "audio/audio_output_proxy.cc", | |
| 146 "audio/audio_output_proxy.h", | |
| 147 "audio/audio_output_resampler.cc", | |
| 148 "audio/audio_output_resampler.h", | |
| 149 "audio/audio_power_monitor.cc", | |
| 150 "audio/audio_power_monitor.h", | |
| 151 "audio/audio_source_diverter.h", | |
| 152 "audio/clockless_audio_sink.cc", | |
| 153 "audio/clockless_audio_sink.h", | |
| 154 "audio/fake_audio_consumer.cc", | |
| 155 "audio/fake_audio_consumer.h", | |
| 156 "audio/fake_audio_input_stream.cc", | |
| 157 "audio/fake_audio_input_stream.h", | |
| 158 "audio/fake_audio_log_factory.h", | |
| 159 "audio/fake_audio_log_factory.cc", | |
| 160 "audio/fake_audio_manager.cc", | |
| 161 "audio/fake_audio_manager.h", | |
| 162 "audio/fake_audio_output_stream.cc", | |
| 163 "audio/fake_audio_output_stream.h", | |
| 164 "audio/linux/audio_manager_linux.cc", | |
| 165 "audio/mac/audio_auhal_mac.cc", | |
| 166 "audio/mac/audio_auhal_mac.h", | |
| 167 "audio/mac/audio_device_listener_mac.cc", | |
| 168 "audio/mac/audio_device_listener_mac.h", | |
| 169 "audio/mac/audio_input_mac.cc", | |
| 170 "audio/mac/audio_input_mac.h", | |
| 171 "audio/mac/audio_low_latency_input_mac.cc", | |
| 172 "audio/mac/audio_low_latency_input_mac.h", | |
| 173 "audio/mac/audio_manager_mac.cc", | |
| 174 "audio/mac/audio_manager_mac.h", | |
| 175 "audio/null_audio_sink.cc", | |
| 176 "audio/null_audio_sink.h", | |
| 177 "audio/sample_rates.cc", | |
| 178 "audio/sample_rates.h", | |
| 179 "audio/scoped_task_runner_observer.cc", | |
| 180 "audio/scoped_task_runner_observer.h", | |
| 181 "audio/simple_sources.cc", | |
| 182 "audio/simple_sources.h", | |
| 183 "audio/sounds/audio_stream_handler.cc", | |
| 184 "audio/sounds/audio_stream_handler.h", | |
| 185 "audio/sounds/sounds_manager.cc", | |
| 186 "audio/sounds/sounds_manager.h", | |
| 187 "audio/sounds/wav_audio_handler.cc", | |
| 188 "audio/sounds/wav_audio_handler.h", | |
| 189 "audio/virtual_audio_input_stream.cc", | |
| 190 "audio/virtual_audio_input_stream.h", | |
| 191 "audio/virtual_audio_output_stream.cc", | |
| 192 "audio/virtual_audio_output_stream.h", | |
| 193 "audio/win/audio_device_listener_win.cc", | |
| 194 "audio/win/audio_device_listener_win.h", | |
| 195 "audio/win/audio_low_latency_input_win.cc", | |
| 196 "audio/win/audio_low_latency_input_win.h", | |
| 197 "audio/win/audio_low_latency_output_win.cc", | |
| 198 "audio/win/audio_low_latency_output_win.h", | |
| 199 "audio/win/audio_manager_win.cc", | |
| 200 "audio/win/audio_manager_win.h", | |
| 201 "audio/win/avrt_wrapper_win.cc", | |
| 202 "audio/win/avrt_wrapper_win.h", | |
| 203 "audio/win/core_audio_util_win.cc", | |
| 204 "audio/win/core_audio_util_win.h", | |
| 205 "audio/win/device_enumeration_win.cc", | |
| 206 "audio/win/device_enumeration_win.h", | |
| 207 "audio/win/wavein_input_win.cc", | |
| 208 "audio/win/wavein_input_win.h", | |
| 209 "audio/win/waveout_output_win.cc", | |
| 210 "audio/win/waveout_output_win.h", | |
| 211 "base/audio_buffer.cc", | 49 "base/audio_buffer.cc", |
| 212 "base/audio_buffer.h", | 50 "base/audio_buffer.h", |
| 213 "base/audio_buffer_queue.cc", | 51 "base/audio_buffer_queue.cc", |
| 214 "base/audio_buffer_queue.h", | 52 "base/audio_buffer_queue.h", |
| 215 "base/audio_capturer_source.h", | 53 "base/audio_capturer_source.h", |
| 216 "base/audio_buffer_converter.cc", | 54 "base/audio_buffer_converter.cc", |
| 217 "base/audio_buffer_converter.h", | 55 "base/audio_buffer_converter.h", |
| 218 "base/audio_converter.cc", | 56 "base/audio_converter.cc", |
| 219 "base/audio_converter.h", | 57 "base/audio_converter.h", |
| 220 "base/audio_decoder.cc", | 58 "base/audio_decoder.cc", |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 "base/text_cue.h", | 159 "base/text_cue.h", |
| 322 "base/text_ranges.cc", | 160 "base/text_ranges.cc", |
| 323 "base/text_ranges.h", | 161 "base/text_ranges.h", |
| 324 "base/text_renderer.cc", | 162 "base/text_renderer.cc", |
| 325 "base/text_renderer.h", | 163 "base/text_renderer.h", |
| 326 "base/text_track.h", | 164 "base/text_track.h", |
| 327 "base/text_track_config.cc", | 165 "base/text_track_config.cc", |
| 328 "base/text_track_config.h", | 166 "base/text_track_config.h", |
| 329 "base/time_delta_interpolator.cc", | 167 "base/time_delta_interpolator.cc", |
| 330 "base/time_delta_interpolator.h", | 168 "base/time_delta_interpolator.h", |
| 169 "base/time_source.h", |
| 331 "base/user_input_monitor.cc", | 170 "base/user_input_monitor.cc", |
| 332 "base/user_input_monitor.h", | 171 "base/user_input_monitor.h", |
| 333 "base/user_input_monitor_mac.cc", | 172 "base/user_input_monitor_mac.cc", |
| 334 "base/user_input_monitor_win.cc", | 173 "base/user_input_monitor_win.cc", |
| 335 "base/video_decoder.cc", | 174 "base/video_decoder.cc", |
| 336 "base/video_decoder.h", | 175 "base/video_decoder.h", |
| 337 "base/video_decoder_config.cc", | 176 "base/video_decoder_config.cc", |
| 338 "base/video_decoder_config.h", | 177 "base/video_decoder_config.h", |
| 339 "base/video_frame.cc", | 178 "base/video_frame.cc", |
| 340 "base/video_frame.h", | 179 "base/video_frame.h", |
| 341 "base/video_frame_pool.cc", | 180 "base/video_frame_pool.cc", |
| 342 "base/video_frame_pool.h", | 181 "base/video_frame_pool.h", |
| 343 "base/video_renderer.cc", | 182 "base/video_renderer.cc", |
| 344 "base/video_renderer.h", | 183 "base/video_renderer.h", |
| 345 "base/video_rotation.h", | 184 "base/video_rotation.h", |
| 346 "base/video_util.cc", | 185 "base/video_util.cc", |
| 347 "base/video_util.h", | 186 "base/video_util.h", |
| 187 "base/wall_clock_time_source.cc", |
| 188 "base/wall_clock_time_source.h", |
| 348 "base/yuv_convert.cc", | 189 "base/yuv_convert.cc", |
| 349 "base/yuv_convert.h", | 190 "base/yuv_convert.h", |
| 350 "cdm/aes_decryptor.cc", | 191 "cdm/aes_decryptor.cc", |
| 351 "cdm/aes_decryptor.h", | 192 "cdm/aes_decryptor.h", |
| 352 "cdm/json_web_key.cc", | 193 "cdm/json_web_key.cc", |
| 353 "cdm/json_web_key.h", | 194 "cdm/json_web_key.h", |
| 354 "cdm/key_system_names.cc", | 195 "cdm/key_system_names.cc", |
| 355 "cdm/key_system_names.h", | 196 "cdm/key_system_names.h", |
| 356 "cdm/player_tracker_impl.cc", | 197 "cdm/player_tracker_impl.cc", |
| 357 "cdm/player_tracker_impl.h", | 198 "cdm/player_tracker_impl.h", |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 574 ] | 415 ] |
| 575 } | 416 } |
| 576 | 417 |
| 577 if (!is_android) { | 418 if (!is_android) { |
| 578 sources += [ | 419 sources += [ |
| 579 "filters/opus_audio_decoder.cc", | 420 "filters/opus_audio_decoder.cc", |
| 580 "filters/opus_audio_decoder.h", | 421 "filters/opus_audio_decoder.h", |
| 581 ] | 422 ] |
| 582 } else { | 423 } else { |
| 583 sources += [ | 424 sources += [ |
| 584 "audio/android/audio_manager_android.cc", | |
| 585 "audio/android/audio_manager_android.h", | |
| 586 "audio/android/audio_record_input.cc", | |
| 587 "audio/android/audio_record_input.h", | |
| 588 "audio/android/opensles_input.cc", | |
| 589 "audio/android/opensles_input.h", | |
| 590 "audio/android/opensles_output.cc", | |
| 591 "audio/android/opensles_output.h", | |
| 592 "audio/android/opensles_wrapper.cc", | |
| 593 "base/android/demuxer_android.h", | 425 "base/android/demuxer_android.h", |
| 594 "base/android/demuxer_stream_player_params.cc", | 426 "base/android/demuxer_stream_player_params.cc", |
| 595 "base/android/demuxer_stream_player_params.h", | 427 "base/android/demuxer_stream_player_params.h", |
| 596 "base/android/media_player_manager.h", | 428 "base/android/media_player_manager.h", |
| 597 "base/android/media_resource_getter.cc", | 429 "base/android/media_resource_getter.cc", |
| 598 "base/android/media_resource_getter.h", | 430 "base/android/media_resource_getter.h", |
| 599 "base/media_stub.cc", | 431 "base/media_stub.cc", |
| 600 "midi/midi_manager_android.cc", | 432 "midi/midi_manager_android.cc", |
| 601 "midi/usb_midi_device_android.cc", | 433 "midi/usb_midi_device_android.cc", |
| 602 "midi/usb_midi_device_android.h", | 434 "midi/usb_midi_device_android.h", |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 640 } | 472 } |
| 641 | 473 |
| 642 if (!is_ios) { | 474 if (!is_ios) { |
| 643 deps += [ "//third_party/libyuv" ] | 475 deps += [ "//third_party/libyuv" ] |
| 644 } | 476 } |
| 645 | 477 |
| 646 if (use_alsa) { | 478 if (use_alsa) { |
| 647 libs += [ "asound" ] | 479 libs += [ "asound" ] |
| 648 defines += [ "USE_ALSA" ] | 480 defines += [ "USE_ALSA" ] |
| 649 sources += [ | 481 sources += [ |
| 650 "audio/alsa/alsa_input.cc", | |
| 651 "audio/alsa/alsa_input.h", | |
| 652 "audio/alsa/alsa_output.cc", | |
| 653 "audio/alsa/alsa_output.h", | |
| 654 "audio/alsa/alsa_util.cc", | |
| 655 "audio/alsa/alsa_util.h", | |
| 656 "audio/alsa/alsa_wrapper.cc", | |
| 657 "audio/alsa/alsa_wrapper.h", | |
| 658 "audio/alsa/audio_manager_alsa.cc", | |
| 659 "audio/alsa/audio_manager_alsa.h", | |
| 660 "midi/midi_manager_alsa.cc", | 482 "midi/midi_manager_alsa.cc", |
| 661 "midi/midi_manager_alsa.h", | 483 "midi/midi_manager_alsa.h", |
| 662 ] | 484 ] |
| 663 } | 485 } |
| 664 | 486 |
| 665 if (is_openbsd) { | |
| 666 sources += [ | |
| 667 "audio/openbsd/audio_manager_openbsd.cc", | |
| 668 "audio/openbsd/audio_manager_openbsd.h", | |
| 669 ] | |
| 670 } | |
| 671 | |
| 672 # A simple WebM encoder for animated avatars on ChromeOS. | 487 # A simple WebM encoder for animated avatars on ChromeOS. |
| 673 if (is_linux) { | 488 if (is_linux) { |
| 674 if (use_x11) { | 489 if (use_x11) { |
| 675 configs += [ | 490 configs += [ |
| 676 "//build/config/linux:x11", | 491 "//build/config/linux:x11", |
| 677 "//build/config/linux:xext", | 492 "//build/config/linux:xext", |
| 678 # TODO(ajwong): Why does xent get a separate thing in //build/config/linux:BUILD
.gn | 493 # TODO(ajwong): Why does xent get a separate thing in //build/config/linux:BUILD
.gn |
| 679 # "//build/config/linux:xdamage", | 494 # "//build/config/linux:xdamage", |
| 680 # "//build/config/linux:xfixes", | 495 # "//build/config/linux:xfixes", |
| 681 # "//build/config/linux:xtst", | 496 # "//build/config/linux:xtst", |
| 682 ] | 497 ] |
| 683 sources += [ | 498 sources += [ |
| 684 "base/user_input_monitor_linux.cc" | 499 "base/user_input_monitor_linux.cc" |
| 685 ] | 500 ] |
| 686 } else { | 501 } else { |
| 687 defines += [ "DISABLE_USER_INPUT_MONITOR" ] | 502 defines += [ "DISABLE_USER_INPUT_MONITOR" ] |
| 688 } | 503 } |
| 689 | |
| 690 if (use_cras) { | |
| 691 pkg_config("libcras") { | |
| 692 packages = [ "libcras" ] | |
| 693 } | |
| 694 configs += [ "libcras" ] | |
| 695 sources += [ | |
| 696 "audio/cras/audio_manager_cras.cc", | |
| 697 "audio/cras/audio_manager_cras.h", | |
| 698 "audio/cras/cras_input.cc", | |
| 699 "audio/cras/cras_input.h", | |
| 700 "audio/cras/cras_unified.cc", | |
| 701 "audio/cras/cras_unified.h", | |
| 702 ] | |
| 703 } | |
| 704 | |
| 705 } | 504 } |
| 706 | 505 |
| 707 if (use_ozone) { | 506 if (use_ozone) { |
| 708 platform_list_txt_file = "$target_gen_dir/ui/ozone/platform_list.txt" | 507 platform_list_txt_file = "$target_gen_dir/ui/ozone/platform_list.txt" |
| 709 constructor_list_cc_file = "$target_gen_dir/media/ozone/constructor_list.cc" | 508 constructor_list_cc_file = "$target_gen_dir/media/ozone/constructor_list.cc" |
| 710 | 509 |
| 711 # Used for the generated listing header (ui/ozone/platform_list.h) | 510 # Used for the generated listing header (ui/ozone/platform_list.h) |
| 712 include_dirs += [ target_gen_dir ] | 511 include_dirs += [ target_gen_dir ] |
| 713 | 512 |
| 714 sources += [ | 513 sources += [ |
| (...skipping 14 matching lines...) Expand all Loading... |
| 729 args += [ | 528 args += [ |
| 730 "--platform_list=$platform_list_txt_file", | 529 "--platform_list=$platform_list_txt_file", |
| 731 "--output_cc=$constructor_list_cc_file", | 530 "--output_cc=$constructor_list_cc_file", |
| 732 "--namespace=media", | 531 "--namespace=media", |
| 733 "--typename=MediaOzonePlatform", | 532 "--typename=MediaOzonePlatform", |
| 734 "--include=\"media/ozone/media_ozone_platform.h\"" | 533 "--include=\"media/ozone/media_ozone_platform.h\"" |
| 735 ] | 534 ] |
| 736 } | 535 } |
| 737 } | 536 } |
| 738 | 537 |
| 739 if (use_pulseaudio) { | |
| 740 if (linux_link_pulseaudio) { | |
| 741 pkg_config("libpulse") { | |
| 742 packages = [ "libpulse" ] | |
| 743 } | |
| 744 configs += [ ":libpulse" ] | |
| 745 } else { | |
| 746 # TODO(ajwong): Technically, this dl should go in the action. | |
| 747 libs += [ "dl" ] | |
| 748 deps += [ ":pulse_generate_stubs" ] | |
| 749 sources += get_target_outputs(":pulse_generate_stubs") | |
| 750 } | |
| 751 sources += [ | |
| 752 "audio/pulse/audio_manager_pulse.cc", | |
| 753 "audio/pulse/audio_manager_pulse.h", | |
| 754 "audio/pulse/pulse_input.cc", | |
| 755 "audio/pulse/pulse_input.h", | |
| 756 "audio/pulse/pulse_output.cc", | |
| 757 "audio/pulse/pulse_output.h", | |
| 758 "audio/pulse/pulse_util.cc", | |
| 759 "audio/pulse/pulse_util.h", | |
| 760 ] | |
| 761 } | |
| 762 | |
| 763 if (is_mac) { | 538 if (is_mac) { |
| 764 libs += [ | 539 libs += [ |
| 765 "AudioToolbox.framework", | |
| 766 "AudioUnit.framework", | |
| 767 "CoreAudio.framework", | |
| 768 "CoreMIDI.framework", | 540 "CoreMIDI.framework", |
| 769 "CoreVideo.framework", | 541 "CoreVideo.framework", |
| 770 "OpenGL.framework", | 542 "OpenGL.framework", |
| 771 "QTKit.framework", | 543 "QTKit.framework", |
| 772 ] | 544 ] |
| 773 } | 545 } |
| 774 | 546 |
| 775 if (is_win) { | 547 if (is_win) { |
| 776 libs += [ | 548 libs += [ |
| 777 "mf.lib", | 549 "mf.lib", |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 856 } | 628 } |
| 857 | 629 |
| 858 deps += [ | 630 deps += [ |
| 859 ":shared_memory_support", | 631 ":shared_memory_support", |
| 860 "//base", | 632 "//base", |
| 861 "//base:i18n", | 633 "//base:i18n", |
| 862 "//base/third_party/dynamic_annotations", | 634 "//base/third_party/dynamic_annotations", |
| 863 "//crypto", | 635 "//crypto", |
| 864 "//crypto:platform", # TODO(ajwong): This used to be provided by crypto.gyp
via export_dependent_settings | 636 "//crypto:platform", # TODO(ajwong): This used to be provided by crypto.gyp
via export_dependent_settings |
| 865 "//gpu/command_buffer/common", | 637 "//gpu/command_buffer/common", |
| 638 "//media/audio", |
| 866 "//skia", | 639 "//skia", |
| 867 "//third_party/opus", | 640 "//third_party/opus", |
| 868 "//ui/events:events_base", | 641 "//ui/events:events_base", |
| 869 "//ui/gfx", | 642 "//ui/gfx", |
| 870 "//ui/gfx/geometry", | 643 "//ui/gfx/geometry", |
| 871 "//url", | 644 "//url", |
| 872 ] | 645 ] |
| 873 } | 646 } |
| 874 | 647 |
| 875 test("media_unittests") { | 648 test("media_unittests") { |
| 876 sources = [ | 649 sources = [ |
| 877 "audio/android/audio_android_unittest.cc", | |
| 878 "audio/audio_input_controller_unittest.cc", | |
| 879 "audio/audio_input_unittest.cc", | |
| 880 "audio/audio_manager_unittest.cc", | |
| 881 "audio/audio_output_controller_unittest.cc", | |
| 882 "audio/audio_output_device_unittest.cc", | |
| 883 "audio/audio_output_proxy_unittest.cc", | |
| 884 "audio/audio_parameters_unittest.cc", | |
| 885 "audio/audio_power_monitor_unittest.cc", | |
| 886 "audio/fake_audio_consumer_unittest.cc", | |
| 887 "audio/mac/audio_auhal_mac_unittest.cc", | |
| 888 "audio/mac/audio_device_listener_mac_unittest.cc", | |
| 889 "audio/mac/audio_low_latency_input_mac_unittest.cc", | |
| 890 "audio/simple_sources_unittest.cc", | |
| 891 "audio/sounds/audio_stream_handler_unittest.cc", | |
| 892 "audio/sounds/sounds_manager_unittest.cc", | |
| 893 "audio/sounds/test_data.cc", | |
| 894 "audio/sounds/test_data.h", | |
| 895 "audio/sounds/wav_audio_handler_unittest.cc", | |
| 896 "audio/virtual_audio_input_stream_unittest.cc", | |
| 897 "audio/virtual_audio_output_stream_unittest.cc", | |
| 898 "audio/win/audio_device_listener_win_unittest.cc", | |
| 899 "audio/win/audio_low_latency_input_win_unittest.cc", | |
| 900 "audio/win/audio_low_latency_output_win_unittest.cc", | |
| 901 "audio/win/audio_output_win_unittest.cc", | |
| 902 "audio/win/core_audio_util_win_unittest.cc", | |
| 903 "base/android/media_codec_bridge_unittest.cc", | 650 "base/android/media_codec_bridge_unittest.cc", |
| 904 "base/android/media_drm_bridge_unittest.cc", | 651 "base/android/media_drm_bridge_unittest.cc", |
| 905 "base/android/media_source_player_unittest.cc", | 652 "base/android/media_source_player_unittest.cc", |
| 653 "base/audio_block_fifo_unittest.cc", |
| 906 "base/audio_buffer_converter_unittest.cc", | 654 "base/audio_buffer_converter_unittest.cc", |
| 907 "base/audio_buffer_unittest.cc", | 655 "base/audio_buffer_unittest.cc", |
| 908 "base/audio_buffer_queue_unittest.cc", | 656 "base/audio_buffer_queue_unittest.cc", |
| 909 "base/audio_bus_unittest.cc", | 657 "base/audio_bus_unittest.cc", |
| 910 "base/audio_converter_unittest.cc", | 658 "base/audio_converter_unittest.cc", |
| 911 "base/audio_discard_helper_unittest.cc", | 659 "base/audio_discard_helper_unittest.cc", |
| 912 "base/audio_fifo_unittest.cc", | 660 "base/audio_fifo_unittest.cc", |
| 913 "base/audio_hardware_config_unittest.cc", | 661 "base/audio_hardware_config_unittest.cc", |
| 914 "base/audio_hash_unittest.cc", | 662 "base/audio_hash_unittest.cc", |
| 915 "base/audio_pull_fifo_unittest.cc", | 663 "base/audio_pull_fifo_unittest.cc", |
| (...skipping 21 matching lines...) Expand all Loading... |
| 937 "base/sinc_resampler_unittest.cc", | 685 "base/sinc_resampler_unittest.cc", |
| 938 "base/stream_parser_unittest.cc", | 686 "base/stream_parser_unittest.cc", |
| 939 "base/text_ranges_unittest.cc", | 687 "base/text_ranges_unittest.cc", |
| 940 "base/text_renderer_unittest.cc", | 688 "base/text_renderer_unittest.cc", |
| 941 "base/user_input_monitor_unittest.cc", | 689 "base/user_input_monitor_unittest.cc", |
| 942 "base/vector_math_testing.h", | 690 "base/vector_math_testing.h", |
| 943 "base/vector_math_unittest.cc", | 691 "base/vector_math_unittest.cc", |
| 944 "base/video_frame_unittest.cc", | 692 "base/video_frame_unittest.cc", |
| 945 "base/video_frame_pool_unittest.cc", | 693 "base/video_frame_pool_unittest.cc", |
| 946 "base/video_util_unittest.cc", | 694 "base/video_util_unittest.cc", |
| 695 "base/wall_clock_time_source_unittest.cc", |
| 947 "base/yuv_convert_unittest.cc", | 696 "base/yuv_convert_unittest.cc", |
| 948 "cdm/aes_decryptor_unittest.cc", | 697 "cdm/aes_decryptor_unittest.cc", |
| 949 "cdm/json_web_key_unittest.cc", | 698 "cdm/json_web_key_unittest.cc", |
| 950 "filters/audio_clock_unittest.cc", | 699 "filters/audio_clock_unittest.cc", |
| 951 "filters/audio_decoder_selector_unittest.cc", | 700 "filters/audio_decoder_selector_unittest.cc", |
| 952 "filters/audio_renderer_algorithm_unittest.cc", | 701 "filters/audio_renderer_algorithm_unittest.cc", |
| 953 "filters/audio_renderer_impl_unittest.cc", | 702 "filters/audio_renderer_impl_unittest.cc", |
| 954 "filters/chunk_demuxer_unittest.cc", | 703 "filters/chunk_demuxer_unittest.cc", |
| 955 "filters/decrypting_audio_decoder_unittest.cc", | 704 "filters/decrypting_audio_decoder_unittest.cc", |
| 956 "filters/decrypting_demuxer_stream_unittest.cc", | 705 "filters/decrypting_demuxer_stream_unittest.cc", |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 995 | 744 |
| 996 if (media_use_ffmpeg) { | 745 if (media_use_ffmpeg) { |
| 997 sources += [ | 746 sources += [ |
| 998 "base/audio_video_metadata_extractor_unittest.cc", | 747 "base/audio_video_metadata_extractor_unittest.cc", |
| 999 "base/media_file_checker_unittest.cc", | 748 "base/media_file_checker_unittest.cc", |
| 1000 ] | 749 ] |
| 1001 } | 750 } |
| 1002 | 751 |
| 1003 if (!is_android) { | 752 if (!is_android) { |
| 1004 sources += [ | 753 sources += [ |
| 1005 "audio/audio_input_volume_unittest.cc", | 754 |
| 1006 "base/container_names_unittest.cc", | 755 "base/container_names_unittest.cc", |
| 1007 "ffmpeg/ffmpeg_common_unittest.cc", | 756 "ffmpeg/ffmpeg_common_unittest.cc", |
| 1008 "filters/audio_decoder_unittest.cc", | 757 "filters/audio_decoder_unittest.cc", |
| 1009 "filters/audio_file_reader_unittest.cc", | 758 "filters/audio_file_reader_unittest.cc", |
| 1010 "filters/blocking_url_protocol_unittest.cc", | 759 "filters/blocking_url_protocol_unittest.cc", |
| 1011 "filters/ffmpeg_demuxer_unittest.cc", | 760 "filters/ffmpeg_demuxer_unittest.cc", |
| 1012 "filters/ffmpeg_glue_unittest.cc", | 761 "filters/ffmpeg_glue_unittest.cc", |
| 1013 "filters/ffmpeg_video_decoder_unittest.cc", | 762 "filters/ffmpeg_video_decoder_unittest.cc", |
| 1014 "filters/in_memory_url_protocol_unittest.cc", | 763 "filters/in_memory_url_protocol_unittest.cc", |
| 1015 "filters/pipeline_integration_test.cc", | 764 "filters/pipeline_integration_test.cc", |
| 1016 "filters/pipeline_integration_test_base.cc", | 765 "filters/pipeline_integration_test_base.cc", |
| 1017 ] | 766 ] |
| 1018 } else { | 767 } else { |
| 1019 # TODO(ajwong): Blocked on android. | 768 # TODO(ajwong): Blocked on android. |
| 1020 # deps += [ | 769 # deps += [ |
| 1021 # ":player_android", | 770 # ":player_android", |
| 1022 # "//testing/android:native_test_native_code" | 771 # "//testing/android:native_test_native_code" |
| 1023 # ] | 772 # ] |
| 1024 } | 773 } |
| 1025 | 774 |
| 1026 if (is_linux && use_cras) { | |
| 1027 sources += [ | |
| 1028 "audio/cras/cras_input_unittest.cc", | |
| 1029 "audio/cras/cras_unified_unittest.cc", | |
| 1030 ] | |
| 1031 } | |
| 1032 | |
| 1033 if (cpu_arch != "arm" && is_chromeos && use_x11) { | 775 if (cpu_arch != "arm" && is_chromeos && use_x11) { |
| 1034 sources += [ "filters/h264_bitstream_buffer_unittest.cc" ] | 776 sources += [ "filters/h264_bitstream_buffer_unittest.cc" ] |
| 1035 } | 777 } |
| 1036 | 778 |
| 1037 if (use_alsa) { | |
| 1038 sources += [ | |
| 1039 "audio/alsa/alsa_output_unittest.cc", | |
| 1040 "audio/audio_low_latency_input_output_unittest.cc", | |
| 1041 ] | |
| 1042 } | |
| 1043 | |
| 1044 if (cpu_arch == "x86" || cpu_arch == "x64") { | 779 if (cpu_arch == "x86" || cpu_arch == "x64") { |
| 1045 sources += [ "base/simd/convert_rgb_to_yuv_unittest.cc" ] | 780 sources += [ "base/simd/convert_rgb_to_yuv_unittest.cc" ] |
| 1046 } | 781 } |
| 1047 | 782 |
| 1048 if (proprietary_codecs) { | 783 if (proprietary_codecs) { |
| 1049 sources += [ | 784 sources += [ |
| 1050 "filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc", | 785 "filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc", |
| 1051 "filters/h264_to_annex_b_bitstream_converter_unittest.cc", | 786 "filters/h264_to_annex_b_bitstream_converter_unittest.cc", |
| 1052 "formats/common/stream_parser_test_base.cc", | 787 "formats/common/stream_parser_test_base.cc", |
| 1053 "formats/common/stream_parser_test_base.h", | 788 "formats/common/stream_parser_test_base.h", |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1093 # 'dependencies': [ | 828 # 'dependencies': [ |
| 1094 # '../base/allocator/allocator.gyp:allocator', | 829 # '../base/allocator/allocator.gyp:allocator', |
| 1095 # ], | 830 # ], |
| 1096 # }], | 831 # }], |
| 1097 # ], | 832 # ], |
| 1098 # }], | 833 # }], |
| 1099 deps = [ | 834 deps = [ |
| 1100 ":media", | 835 ":media", |
| 1101 ":media_test_support", | 836 ":media_test_support", |
| 1102 "//base/test:test_support", | 837 "//base/test:test_support", |
| 838 "//media/audio:unittests", |
| 839 "//media/audio:test_support", |
| 1103 "//skia", # Direct dependency required to inherit config. | 840 "//skia", # Direct dependency required to inherit config. |
| 1104 "//testing/gmock", | 841 "//testing/gmock", |
| 1105 "//testing/gtest", | 842 "//testing/gtest", |
| 1106 # TODO(dalecurtis): Port the rest of Widevine stuff. | 843 # TODO(dalecurtis): Port the rest of Widevine stuff. |
| 1107 "//third_party/widevine/cdm:version_h", | 844 "//third_party/widevine/cdm:version_h", |
| 1108 "//ui/base", | 845 "//ui/base", |
| 1109 "//ui/gfx:gfx_test_support", | 846 "//ui/gfx:gfx_test_support", |
| 1110 ] | 847 ] |
| 1111 if (media_use_ffmpeg) { | 848 if (media_use_ffmpeg) { |
| 1112 deps += [ | 849 deps += [ |
| (...skipping 17 matching lines...) Expand all Loading... |
| 1130 "filters/pipeline_integration_perftest.cc", | 867 "filters/pipeline_integration_perftest.cc", |
| 1131 "filters/pipeline_integration_test_base.cc", | 868 "filters/pipeline_integration_test_base.cc", |
| 1132 ] | 869 ] |
| 1133 } | 870 } |
| 1134 configs += [ ":media_config" ] | 871 configs += [ ":media_config" ] |
| 1135 deps = [ | 872 deps = [ |
| 1136 ":media", | 873 ":media", |
| 1137 ":media_test_support", | 874 ":media_test_support", |
| 1138 ":shared_memory_support", | 875 ":shared_memory_support", |
| 1139 "//base/test:test_support", | 876 "//base/test:test_support", |
| 877 "//media/audio:test_support", |
| 1140 "//testing/gmock", | 878 "//testing/gmock", |
| 1141 "//testing/gtest", | 879 "//testing/gtest", |
| 1142 "//testing/perf", | 880 "//testing/perf", |
| 1143 "//third_party/widevine/cdm:version_h", | 881 "//third_party/widevine/cdm:version_h", |
| 1144 "//ui/gl", | 882 "//ui/gl", |
| 1145 "//ui/gfx:gfx_test_support", | 883 "//ui/gfx:gfx_test_support", |
| 1146 ] | 884 ] |
| 1147 if (media_use_ffmpeg) { | 885 if (media_use_ffmpeg) { |
| 1148 deps += [ | 886 deps += [ |
| 1149 "//third_party/ffmpeg", # Direct dependency required to inherit config. | 887 "//third_party/ffmpeg", # Direct dependency required to inherit config. |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1223 # TODO(ajwong): Why isn't this true in mac? | 961 # TODO(ajwong): Why isn't this true in mac? |
| 1224 yasm_flags += [ "-DPIC" ] | 962 yasm_flags += [ "-DPIC" ] |
| 1225 } | 963 } |
| 1226 } | 964 } |
| 1227 } | 965 } |
| 1228 } | 966 } |
| 1229 } | 967 } |
| 1230 | 968 |
| 1231 source_set("media_test_support") { | 969 source_set("media_test_support") { |
| 1232 sources = [ | 970 sources = [ |
| 1233 "audio/mock_audio_manager.cc", | |
| 1234 "audio/mock_audio_manager.h", | |
| 1235 "audio/mock_audio_source_callback.cc", | |
| 1236 "audio/mock_audio_source_callback.h", | |
| 1237 "audio/test_audio_input_controller_factory.cc", | |
| 1238 "audio/test_audio_input_controller_factory.h", | |
| 1239 "base/fake_audio_render_callback.cc", | 971 "base/fake_audio_render_callback.cc", |
| 1240 "base/fake_audio_render_callback.h", | 972 "base/fake_audio_render_callback.h", |
| 1241 "base/fake_audio_renderer_sink.cc", | 973 "base/fake_audio_renderer_sink.cc", |
| 1242 "base/fake_audio_renderer_sink.h", | 974 "base/fake_audio_renderer_sink.h", |
| 1243 "base/fake_text_track_stream.cc", | 975 "base/fake_text_track_stream.cc", |
| 1244 "base/fake_text_track_stream.h", | 976 "base/fake_text_track_stream.h", |
| 1245 "base/gmock_callback_support.h", | 977 "base/gmock_callback_support.h", |
| 1246 "base/mock_audio_renderer_sink.cc", | 978 "base/mock_audio_renderer_sink.cc", |
| 1247 "base/mock_audio_renderer_sink.h", | 979 "base/mock_audio_renderer_sink.h", |
| 1248 "base/mock_demuxer_host.cc", | 980 "base/mock_demuxer_host.cc", |
| (...skipping 16 matching lines...) Expand all Loading... |
| 1265 deps = [ | 997 deps = [ |
| 1266 ":media", | 998 ":media", |
| 1267 ":shared_memory_support", | 999 ":shared_memory_support", |
| 1268 "//base", | 1000 "//base", |
| 1269 "//skia", | 1001 "//skia", |
| 1270 "//testing/gmock", | 1002 "//testing/gmock", |
| 1271 "//testing/gtest", | 1003 "//testing/gtest", |
| 1272 ] | 1004 ] |
| 1273 } | 1005 } |
| 1274 | 1006 |
| 1007 # TODO(dalecurtis): How to split this across audio/base directories?? |
| 1275 component("shared_memory_support") { | 1008 component("shared_memory_support") { |
| 1276 sources = [ | 1009 sources = [ |
| 1277 "audio/audio_parameters.cc", | 1010 "audio/audio_parameters.cc", |
| 1278 "audio/audio_parameters.h", | 1011 "audio/audio_parameters.h", |
| 1279 "base/audio_bus.cc", | 1012 "base/audio_bus.cc", |
| 1280 "base/audio_bus.h", | 1013 "base/audio_bus.h", |
| 1281 "base/channel_layout.cc", | 1014 "base/channel_layout.cc", |
| 1282 "base/channel_layout.h", | 1015 "base/channel_layout.h", |
| 1283 "base/limits.h", | 1016 "base/limits.h", |
| 1284 "base/media_export.h", | 1017 "base/media_export.h", |
| (...skipping 24 matching lines...) Expand all Loading... |
| 1309 sources = [ | 1042 sources = [ |
| 1310 "base/run_all_unittests.cc", | 1043 "base/run_all_unittests.cc", |
| 1311 "ffmpeg/ffmpeg_regression_tests.cc", | 1044 "ffmpeg/ffmpeg_regression_tests.cc", |
| 1312 "filters/pipeline_integration_test_base.cc", | 1045 "filters/pipeline_integration_test_base.cc", |
| 1313 ] | 1046 ] |
| 1314 configs += [ ":media_config" ] | 1047 configs += [ ":media_config" ] |
| 1315 deps = [ | 1048 deps = [ |
| 1316 ":media", | 1049 ":media", |
| 1317 ":media_test_support", | 1050 ":media_test_support", |
| 1318 "//base/test:test_support", | 1051 "//base/test:test_support", |
| 1052 "//media/audio:test_support", |
| 1319 "//testing/gmock", | 1053 "//testing/gmock", |
| 1320 "//testing/gtest", | 1054 "//testing/gtest", |
| 1321 "//third_party/ffmpeg", | 1055 "//third_party/ffmpeg", |
| 1322 "//ui/gfx/geometry", | 1056 "//ui/gfx/geometry", |
| 1323 "//ui/gfx:gfx_test_support", | 1057 "//ui/gfx:gfx_test_support", |
| 1324 ] | 1058 ] |
| 1325 # TODO(ajwong): This was in the original gyp, but it seems silly. | 1059 # TODO(ajwong): This was in the original gyp, but it seems silly. |
| 1326 # ['os_posix==1 and OS!="mac"', { | 1060 # ['os_posix==1 and OS!="mac"', { |
| 1327 # 'conditions': [ | 1061 # 'conditions': [ |
| 1328 # ['use_allocator!="none"', { | 1062 # ['use_allocator!="none"', { |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1439 "base/android/java/src/org/chromium/media/ImageFormat.template", | 1173 "base/android/java/src/org/chromium/media/ImageFormat.template", |
| 1440 ] | 1174 ] |
| 1441 inputs = [ | 1175 inputs = [ |
| 1442 "video/capture/android/imageformat_list.h" | 1176 "video/capture/android/imageformat_list.h" |
| 1443 ] | 1177 ] |
| 1444 package_name = "org/chromium/media" | 1178 package_name = "org/chromium/media" |
| 1445 } | 1179 } |
| 1446 | 1180 |
| 1447 # TODO(dalecurtis): Finish media_unittests_apk and media_perftests_apk. | 1181 # TODO(dalecurtis): Finish media_unittests_apk and media_perftests_apk. |
| 1448 } | 1182 } |
| OLD | NEW |