| 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/chromecast_build.gni") | 5 import("//build/config/chromecast_build.gni") |
| 6 import("//build/config/features.gni") | 6 import("//build/config/features.gni") |
| 7 import("//build/config/headless_build.gni") | 7 import("//build/config/headless_build.gni") |
| 8 | 8 |
| 9 declare_args() { | 9 declare_args() { |
| 10 # Allows distributions to link pulseaudio directly (DT_NEEDED) instead of | 10 # Allows distributions to link pulseaudio directly (DT_NEEDED) instead of |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 # iOS doesn't use ffmpeg, libvpx. | 24 # iOS doesn't use ffmpeg, libvpx. |
| 25 if (is_ios) { | 25 if (is_ios) { |
| 26 media_use_ffmpeg = false | 26 media_use_ffmpeg = false |
| 27 media_use_libvpx = false | 27 media_use_libvpx = false |
| 28 } | 28 } |
| 29 | 29 |
| 30 # Override to dynamically link the cras (ChromeOS audio) library. | 30 # Override to dynamically link the cras (ChromeOS audio) library. |
| 31 use_cras = false | 31 use_cras = false |
| 32 | 32 |
| 33 # Enables runtime selection of PulseAudio library. | |
| 34 use_pulseaudio = false | |
| 35 | |
| 36 # Enables runtime selection of ALSA library for audio. | |
| 37 use_alsa = false | |
| 38 | |
| 39 # Alsa should be used on non-Android, non-Mac POSIX systems, and Chromecast | |
| 40 # builds for desktop Linux. | |
| 41 if (is_posix && !is_headless && !is_android && !is_mac && | |
| 42 (!is_chromecast || is_cast_desktop_build)) { | |
| 43 use_alsa = true | |
| 44 if (!use_cras) { | |
| 45 use_pulseaudio = true | |
| 46 } | |
| 47 } | |
| 48 | |
| 49 # Use low-memory buffers on non-Android builds of Chromecast. | 33 # Use low-memory buffers on non-Android builds of Chromecast. |
| 50 use_low_memory_buffer = is_chromecast && !is_android | 34 use_low_memory_buffer = is_chromecast && !is_android |
| 51 | 35 |
| 52 # Enables AC3/EAC3 audio demuxing. This is enabled only on Chromecast, since | 36 # Enables AC3/EAC3 audio demuxing. This is enabled only on Chromecast, since |
| 53 # it only provides demuxing, and is only useful for AC3/EAC3 audio | 37 # it only provides demuxing, and is only useful for AC3/EAC3 audio |
| 54 # pass-through to HDMI sink on Chromecast. | 38 # pass-through to HDMI sink on Chromecast. |
| 55 enable_ac3_eac3_audio_demuxing = proprietary_codecs && is_chromecast | 39 enable_ac3_eac3_audio_demuxing = proprietary_codecs && is_chromecast |
| 56 | 40 |
| 57 enable_mse_mpeg2ts_stream_parser = proprietary_codecs && is_chromecast | 41 enable_mse_mpeg2ts_stream_parser = proprietary_codecs && is_chromecast |
| 58 | 42 |
| 59 # Enable HEVC/H265 demuxing. Actual decoding must be provided by the | 43 # Enable HEVC/H265 demuxing. Actual decoding must be provided by the |
| 60 # platform. Enable by default for Chromecast. | 44 # platform. Enable by default for Chromecast. |
| 61 enable_hevc_demuxing = proprietary_codecs && is_chromecast | 45 enable_hevc_demuxing = proprietary_codecs && is_chromecast |
| 62 | 46 |
| 63 # Experiment to enable mojo media application: http://crbug.com/431776 | 47 # Experiment to enable mojo media application: http://crbug.com/431776 |
| 64 # Valid options are: | 48 # Valid options are: |
| 65 # - "none": Do not use mojo media application. | 49 # - "none": Do not use mojo media application. |
| 66 # - "browser": Use mojo media application hosted in the browser process. | 50 # - "browser": Use mojo media application hosted in the browser process. |
| 67 # - "gpu": Use mojo media application hosted in the gpu process. | 51 # - "gpu": Use mojo media application hosted in the gpu process. |
| 68 # - "utility": Use mojo media application hosted in the utility process. | 52 # - "utility": Use mojo media application hosted in the utility process. |
| 69 enable_mojo_media = "none" | 53 enable_mojo_media = "none" |
| 70 | 54 |
| 71 # TODO(GYP): This should be a platform define. | 55 # TODO(GYP): This should be a platform define. |
| 72 is_openbsd = false | 56 is_openbsd = false |
| 73 } | 57 } |
| 58 |
| 59 declare_args() { |
| 60 # Enables runtime selection of PulseAudio library. |
| 61 use_pulseaudio = false |
| 62 |
| 63 # Enables runtime selection of ALSA library for audio. |
| 64 use_alsa = false |
| 65 |
| 66 # Alsa should be used on non-Android, non-Mac POSIX systems, and Chromecast |
| 67 # builds for desktop Linux. |
| 68 if (is_posix && !is_headless && !is_android && !is_mac && |
| 69 (!is_chromecast || is_cast_desktop_build)) { |
| 70 use_alsa = true |
| 71 if (!use_cras) { |
| 72 use_pulseaudio = true |
| 73 } |
| 74 } |
| 75 } |
| OLD | NEW |