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

Side by Side Diff: media/media_options.gni

Issue 1410883007: headless: Add gn settings for embedded build and headless mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Keep use_cups overridable. Created 5 years, 1 month 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 | « build/linux/BUILD.gn ('k') | net/BUILD.gn » ('j') | 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/headless_build.gni")
6 7
7 declare_args() { 8 declare_args() {
8 # Allows distributions to link pulseaudio directly (DT_NEEDED) instead of 9 # Allows distributions to link pulseaudio directly (DT_NEEDED) instead of
9 # using dlopen. This helps with automated detection of ABI mismatches and 10 # using dlopen. This helps with automated detection of ABI mismatches and
10 # prevents silent errors. 11 # prevents silent errors.
11 link_pulseaudio = false 12 link_pulseaudio = false
12 13
13 # 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
14 # based decoding, demuxing, and sometimes optimized FFTs. If disabled, 15 # based decoding, demuxing, and sometimes optimized FFTs. If disabled,
15 # implementors must provide their own demuxers and decoders. 16 # implementors must provide their own demuxers and decoders.
(...skipping 17 matching lines...) Expand all
33 use_cras = false 34 use_cras = false
34 35
35 # Enables runtime selection of PulseAudio library. 36 # Enables runtime selection of PulseAudio library.
36 use_pulseaudio = false 37 use_pulseaudio = false
37 38
38 # Enables runtime selection of ALSA library for audio. 39 # Enables runtime selection of ALSA library for audio.
39 use_alsa = false 40 use_alsa = false
40 41
41 # Alsa should be used on non-Android, non-Mac POSIX systems, and Chromecast 42 # Alsa should be used on non-Android, non-Mac POSIX systems, and Chromecast
42 # builds for desktop Linux. 43 # builds for desktop Linux.
43 if (is_posix && !is_android && !is_mac && 44 if (is_posix && !is_headless && !is_android && !is_mac &&
44 (!is_chromecast || target_cpu != "arm")) { 45 (!is_chromecast || target_cpu != "arm")) {
45 use_alsa = true 46 use_alsa = true
46 if (!use_cras) { 47 if (!use_cras) {
47 use_pulseaudio = true 48 use_pulseaudio = true
48 } 49 }
49 } 50 }
50 51
51 # Use low-memory buffers on non-Android builds of Chromecast. 52 # Use low-memory buffers on non-Android builds of Chromecast.
52 use_low_memory_buffer = is_chromecast && !is_android 53 use_low_memory_buffer = is_chromecast && !is_android
53 54
(...skipping 10 matching lines...) Expand all
64 # Valid options are: 65 # Valid options are:
65 # - "none": Do not use mojo media application. 66 # - "none": Do not use mojo media application.
66 # - "browser": Use mojo media application hosted in the browser process. 67 # - "browser": Use mojo media application hosted in the browser process.
67 # - "gpu": Use mojo media application hosted in the gpu process. 68 # - "gpu": Use mojo media application hosted in the gpu process.
68 # - "utility": Use mojo media application hosted in the utility process. 69 # - "utility": Use mojo media application hosted in the utility process.
69 enable_mojo_media = "none" 70 enable_mojo_media = "none"
70 71
71 # TODO(GYP): This should be a platform define. 72 # TODO(GYP): This should be a platform define.
72 is_openbsd = false 73 is_openbsd = false
73 } 74 }
OLDNEW
« no previous file with comments | « build/linux/BUILD.gn ('k') | net/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698