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

Side by Side Diff: media/media_options.gni

Issue 1528533002: [Chromecast] Replace architecure-based conditionals with flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Add remaining instances Created 5 years 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
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 import("//build/config/headless_build.gni")
7 7
8 declare_args() { 8 declare_args() {
9 # Allows distributions to link pulseaudio directly (DT_NEEDED) instead of 9 # Allows distributions to link pulseaudio directly (DT_NEEDED) instead of
10 # using dlopen. This helps with automated detection of ABI mismatches and 10 # using dlopen. This helps with automated detection of ABI mismatches and
(...skipping 19 matching lines...) Expand all
30 use_cras = false 30 use_cras = false
31 31
32 # Enables runtime selection of PulseAudio library. 32 # Enables runtime selection of PulseAudio library.
33 use_pulseaudio = false 33 use_pulseaudio = false
34 34
35 # Enables runtime selection of ALSA library for audio. 35 # Enables runtime selection of ALSA library for audio.
36 use_alsa = false 36 use_alsa = false
37 37
38 # Alsa should be used on non-Android, non-Mac POSIX systems, and Chromecast 38 # Alsa should be used on non-Android, non-Mac POSIX systems, and Chromecast
39 # builds for desktop Linux. 39 # builds for desktop Linux.
40 if (is_posix && !is_headless && !is_android && !is_mac && 40 if ((is_posix && !is_headless && !is_android && !is_mac) ||
41 (!is_chromecast || target_cpu != "arm")) { 41 is_cast_dekstop_build) {
halliwell 2015/12/15 02:18:46 fix "dekstop"
slan 2015/12/15 03:11:11 Good catch... turns out the logic wasn't correct e
42 use_alsa = true 42 use_alsa = true
43 if (!use_cras) { 43 if (!use_cras) {
44 use_pulseaudio = true 44 use_pulseaudio = true
45 } 45 }
46 } 46 }
47 47
48 # Use low-memory buffers on non-Android builds of Chromecast. 48 # Use low-memory buffers on non-Android builds of Chromecast.
49 use_low_memory_buffer = is_chromecast && !is_android 49 use_low_memory_buffer = is_chromecast && !is_android
50 50
51 # Enables the MPEG2-TS stream parser for use with Media Source. Disabled by 51 # Enables the MPEG2-TS stream parser for use with Media Source. Disabled by
52 # default (except on Chromecast) since it's not available on the normal Web 52 # default (except on Chromecast) since it's not available on the normal Web
53 # Platform and costs money. 53 # Platform and costs money.
54 enable_mpeg2ts_stream_parser = is_chromecast 54 enable_mpeg2ts_stream_parser = is_chromecast
55 55
56 # Enable HEVC/H265 demuxing. Actual decoding must be provided by the 56 # Enable HEVC/H265 demuxing. Actual decoding must be provided by the
57 # platform. Enable by default for Chromecast. 57 # platform. Enable by default for Chromecast.
58 enable_hevc_demuxing = is_chromecast 58 enable_hevc_demuxing = is_chromecast
59 59
60 # Experiment to enable mojo media application: http://crbug.com/431776 60 # Experiment to enable mojo media application: http://crbug.com/431776
61 # Valid options are: 61 # Valid options are:
62 # - "none": Do not use mojo media application. 62 # - "none": Do not use mojo media application.
63 # - "browser": Use mojo media application hosted in the browser process. 63 # - "browser": Use mojo media application hosted in the browser process.
64 # - "gpu": Use mojo media application hosted in the gpu process. 64 # - "gpu": Use mojo media application hosted in the gpu process.
65 # - "utility": Use mojo media application hosted in the utility process. 65 # - "utility": Use mojo media application hosted in the utility process.
66 enable_mojo_media = "none" 66 enable_mojo_media = "none"
67 67
68 # TODO(GYP): This should be a platform define. 68 # TODO(GYP): This should be a platform define.
69 is_openbsd = false 69 is_openbsd = false
70 } 70 }
OLDNEW
« no previous file with comments | « chromecast/chromecast.gni ('k') | ui/ozone/ozone.gni » ('j') | ui/ozone/ozone.gni » ('J')

Powered by Google App Engine
This is Rietveld 408576698