Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: media/media_options.gni

Issue 1678033002: Fix audio related GN args handling for Chrome OS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698