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

Side by Side Diff: media/media_options.gni

Issue 609293004: Convert various media options into proper declare_args(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « media/audio/BUILD.gn ('k') | 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 # These variables need to be args. 5 declare_args() {
6 # Enables proprietary codecs and demuxers; e.g. H264, MOV, AAC, and MP3.
7 proprietary_codecs = false
6 8
7 # Override to dynamically link the cras (ChromeOS audio) library. 9 # Allows distributions to link pulseaudio directly (DT_NEEDED) instead of
8 use_cras = false 10 # using dlopen. This helps with automated detection of ABI mismatches and
11 # prevents silent errors.
12 link_pulseaudio = false
9 13
10 # Option e.g. for Linux distributions to link pulseaudio directly 14 # Enable usage of FFmpeg within the media library. Used for most software
11 # (DT_NEEDED) instead of using dlopen. This helps with automated 15 # based decoding, demuxing, and sometimes optimized FFTs. If disabled,
12 # detection of ABI mismatches and prevents silent errors. 16 # implementors must provide their own demuxers and decoders.
13 # 17 media_use_ffmpeg = true
14 # TODO(ajwong): Why is this prefixed "linux_"?
15 linux_link_pulseaudio = false
16 18
17 # TODO(ajwong): Enable libvpx once that's converted. 19 # Enable usage of libvpx within the media library. Used for software based
18 media_use_ffmpeg = true 20 # decoding of VP9 and VP8A type content.
19 media_use_libvpx = true 21 media_use_libvpx = true
20 if (is_android || is_ios) { 22
21 # Android and iOS don't use ffmpeg or libvpx. 23 # Neither Android nor iOS use ffmpeg or libvpx.
22 media_use_ffmpeg = false 24 if (is_android || is_ios) {
23 media_use_libvpx = false 25 media_use_ffmpeg = false
26 media_use_libvpx = false
27 }
28
29 # Override to dynamically link the cras (ChromeOS audio) library.
30 use_cras = false
31
32 # Enables runtime selection of PulseAudio library.
33 use_pulseaudio = false
34
35 # Enables runtime selection of ALSA library for audio.
36 use_alsa = false
37
38 # TODO(GYP): How to handled the "embedded" use case?
39 # Original conditional: (OS=="linux" or OS=="freebsd" or OS=="solaris") and em bedded!=1
40 if (is_posix && !is_android && !is_mac) {
41 use_alsa = true
42 if (!use_cras) {
43 use_pulseaudio = true
44 }
45 }
46
47 # Enables the MPEG2-TS stream parser for use with Media Source. Disabled by
48 # default since it's not available on the normal Web Platform and costs money.
49 enable_mpeg2ts_stream_parser = false
50
51 # Enables browser side Content Decryption Modules. Required for android where
52 # the typical PPAPI based CDM is not available.
53 enable_browser_cdms = is_android
54
55 # TODO(GYP): This should be a platform define.
56 is_openbsd = false
24 } 57 }
25
26 # TODO(ajwong): how to disable embedded?
27 # Original conditional: (OS=="linux" or OS=="freebsd" or OS=="solaris") and embe dded!=1
28 use_alsa = false
29 use_pulseaudio = false
30 if (is_posix && !is_android && !is_mac) {
31 use_alsa = true
32 if (!use_cras) {
33 use_pulseaudio = true
34 }
35 }
36
37 # TODO(ajwong): is_openbsd should be a platform define.
38 is_openbsd = false
39
40 # TODO(ajwong): This should be branding controlled?
41 proprietary_codecs = false
42
43 # TODO(ajwong): Where are these coming from?jk
44 enable_mpeg2ts_stream_parser = false
45 enable_browser_cdms = is_android
OLDNEW
« no previous file with comments | « media/audio/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698