| 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") | |
| 8 | 7 |
| 9 declare_args() { | 8 declare_args() { |
| 10 # Allows distributions to link pulseaudio directly (DT_NEEDED) instead of | 9 # Allows distributions to link pulseaudio directly (DT_NEEDED) instead of |
| 11 # using dlopen. This helps with automated detection of ABI mismatches and | 10 # using dlopen. This helps with automated detection of ABI mismatches and |
| 12 # prevents silent errors. | 11 # prevents silent errors. |
| 13 link_pulseaudio = false | 12 link_pulseaudio = false |
| 14 | 13 |
| 15 # Enable usage of FFmpeg within the media library. Used for most software | 14 # Enable usage of FFmpeg within the media library. Used for most software |
| 16 # based decoding, demuxing, and sometimes optimized FFTs. If disabled, | 15 # based decoding, demuxing, and sometimes optimized FFTs. If disabled, |
| 17 # implementors must provide their own demuxers and decoders. | 16 # implementors must provide their own demuxers and decoders. |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 | 49 |
| 51 # Use a second declare_args() to pick up possible overrides of |use_cras|. | 50 # Use a second declare_args() to pick up possible overrides of |use_cras|. |
| 52 declare_args() { | 51 declare_args() { |
| 53 # Enables runtime selection of PulseAudio library. | 52 # Enables runtime selection of PulseAudio library. |
| 54 use_pulseaudio = false | 53 use_pulseaudio = false |
| 55 | 54 |
| 56 # Enables runtime selection of ALSA library for audio. | 55 # Enables runtime selection of ALSA library for audio. |
| 57 use_alsa = false | 56 use_alsa = false |
| 58 | 57 |
| 59 # Alsa should be used on non-Android, non-Mac POSIX systems. | 58 # Alsa should be used on non-Android, non-Mac POSIX systems. |
| 60 if (is_posix && !is_headless && !is_android && !is_mac) { | 59 if (is_posix && !is_android && !is_mac) { |
| 61 use_alsa = true | 60 use_alsa = true |
| 62 | 61 |
| 63 # Pulse is not supported on Chromecast platforms. | 62 # Pulse is not supported on Chromecast platforms. |
| 64 if (!use_cras && !is_chromecast) { | 63 if (!use_cras && !is_chromecast) { |
| 65 use_pulseaudio = true | 64 use_pulseaudio = true |
| 66 } | 65 } |
| 67 } | 66 } |
| 68 } | 67 } |
| 69 | 68 |
| 70 declare_args() { | 69 declare_args() { |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 "cdm", | 115 "cdm", |
| 117 "renderer", | 116 "renderer", |
| 118 ] | 117 ] |
| 119 mojo_media_host = "browser" | 118 mojo_media_host = "browser" |
| 120 } else { | 119 } else { |
| 121 mojo_media_services = [ "cdm" ] | 120 mojo_media_services = [ "cdm" ] |
| 122 mojo_media_host = "utility" | 121 mojo_media_host = "utility" |
| 123 } | 122 } |
| 124 } | 123 } |
| 125 } | 124 } |
| OLD | NEW |