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") |
| 6 |
5 declare_args() { | 7 declare_args() { |
6 # Allows distributions to link pulseaudio directly (DT_NEEDED) instead of | 8 # Allows distributions to link pulseaudio directly (DT_NEEDED) instead of |
7 # using dlopen. This helps with automated detection of ABI mismatches and | 9 # using dlopen. This helps with automated detection of ABI mismatches and |
8 # prevents silent errors. | 10 # prevents silent errors. |
9 link_pulseaudio = false | 11 link_pulseaudio = false |
10 | 12 |
11 # Enable usage of FFmpeg within the media library. Used for most software | 13 # Enable usage of FFmpeg within the media library. Used for most software |
12 # based decoding, demuxing, and sometimes optimized FFTs. If disabled, | 14 # based decoding, demuxing, and sometimes optimized FFTs. If disabled, |
13 # implementors must provide their own demuxers and decoders. | 15 # implementors must provide their own demuxers and decoders. |
14 media_use_ffmpeg = true | 16 media_use_ffmpeg = true |
(...skipping 14 matching lines...) Expand all Loading... |
29 | 31 |
30 # Override to dynamically link the cras (ChromeOS audio) library. | 32 # Override to dynamically link the cras (ChromeOS audio) library. |
31 use_cras = false | 33 use_cras = false |
32 | 34 |
33 # Enables runtime selection of PulseAudio library. | 35 # Enables runtime selection of PulseAudio library. |
34 use_pulseaudio = false | 36 use_pulseaudio = false |
35 | 37 |
36 # Enables runtime selection of ALSA library for audio. | 38 # Enables runtime selection of ALSA library for audio. |
37 use_alsa = false | 39 use_alsa = false |
38 | 40 |
39 # TODO(GYP): How to handled the "embedded" use case? | 41 # Alsa should be used on non-Android, non-Mac POSIX systems, and Chromecast |
40 # Original conditional: (OS=="linux" or OS=="freebsd" or OS=="solaris") and em
bedded!=1 | 42 # builds for desktop Linux. |
41 if (is_posix && !is_android && !is_mac) { | 43 if ((is_posix && !is_android && !is_mac) || |
| 44 (is_chromecast && target_cpu != "arm" && is_linux)) { |
42 use_alsa = true | 45 use_alsa = true |
43 if (!use_cras) { | 46 if (!use_cras) { |
44 use_pulseaudio = true | 47 use_pulseaudio = true |
45 } | 48 } |
46 } | 49 } |
47 | 50 |
| 51 # Use low-memory buffers on non-Android builds of Chromecast. |
| 52 use_low_memory_buffer = is_chromecast && !is_android |
| 53 |
48 # Enables the MPEG2-TS stream parser for use with Media Source. Disabled by | 54 # Enables the MPEG2-TS stream parser for use with Media Source. Disabled by |
49 # default since it's not available on the normal Web Platform and costs money. | 55 # default (except on Chromecast) since it's not available on the normal Web |
50 enable_mpeg2ts_stream_parser = false | 56 # Platform and costs money. |
| 57 enable_mpeg2ts_stream_parser = is_chromecast |
51 | 58 |
52 # Enable HEVC/H265 demuxing. Actual decoding must be provided by the | 59 # Enable HEVC/H265 demuxing. Actual decoding must be provided by the |
53 # platform. | 60 # platform. Enable by default for Chromecast. |
54 enable_hevc_demuxing = false | 61 enable_hevc_demuxing = is_chromecast |
55 | 62 |
56 # Experiment to enable mojo media application: http://crbug.com/431776 | 63 # Experiment to enable mojo media application: http://crbug.com/431776 |
57 # Valid options are: | 64 # Valid options are: |
58 # - "none": Do not use mojo media application. | 65 # - "none": Do not use mojo media application. |
59 # - "browser": Use mojo media application hosted in the browser process. | 66 # - "browser": Use mojo media application hosted in the browser process. |
60 # - "utility": Use mojo media application hosted in the utility process. | 67 # - "utility": Use mojo media application hosted in the utility process. |
61 enable_mojo_media = "none" | 68 enable_mojo_media = "none" |
62 | 69 |
63 # TODO(GYP): This should be a platform define. | 70 # TODO(GYP): This should be a platform define. |
64 is_openbsd = false | 71 is_openbsd = false |
65 } | 72 } |
OLD | NEW |