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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 is_openbsd = false | 56 is_openbsd = false |
57 } | 57 } |
58 | 58 |
59 declare_args() { | 59 declare_args() { |
60 # Enables runtime selection of PulseAudio library. | 60 # Enables runtime selection of PulseAudio library. |
61 use_pulseaudio = false | 61 use_pulseaudio = false |
62 | 62 |
63 # Enables runtime selection of ALSA library for audio. | 63 # Enables runtime selection of ALSA library for audio. |
64 use_alsa = false | 64 use_alsa = false |
65 | 65 |
66 # Alsa should be used on non-Android, non-Mac POSIX systems, and Chromecast | 66 # Alsa should be used on non-Android, non-Mac POSIX systems. |
67 # builds for desktop Linux. | 67 if (is_posix && !is_headless && !is_android && !is_mac) { |
68 if (is_posix && !is_headless && !is_android && !is_mac && | |
69 (!is_chromecast || is_cast_desktop_build)) { | |
70 use_alsa = true | 68 use_alsa = true |
71 if (!use_cras) { | 69 |
| 70 # Pulse is not supported on Chromecast platforms. |
| 71 if (!use_cras && !is_chromecast) { |
72 use_pulseaudio = true | 72 use_pulseaudio = true |
73 } | 73 } |
74 } | 74 } |
75 } | 75 } |
OLD | NEW |