Roll src/third_party/skia a365947:157f36d
[chromium-blink-merge.git] / media / media_options.gni
blobdfc653b987b70c2a3a9b30dbf7fc1a85695cad1d
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
3 # found in the LICENSE file.
5 declare_args() {
6   # Enables proprietary codecs and demuxers; e.g. H264, MOV, AAC, and MP3.
7   proprietary_codecs = false
9   # Allows distributions to link pulseaudio directly (DT_NEEDED) instead of
10   # using dlopen. This helps with automated detection of ABI mismatches and
11   # prevents silent errors.
12   link_pulseaudio = false
14   # Enable usage of FFmpeg within the media library. Used for most software
15   # based decoding, demuxing, and sometimes optimized FFTs. If disabled,
16   # implementors must provide their own demuxers and decoders.
17   media_use_ffmpeg = true
19   # Enable usage of libvpx within the media library. Used for software based
20   # decoding of VP9 and VP8A type content.
21   media_use_libvpx = true
23   # Neither Android nor iOS use ffmpeg or libvpx.
24   if (is_android || is_ios) {
25     media_use_ffmpeg = false
26     media_use_libvpx = false
27   }
29   # Override to dynamically link the cras (ChromeOS audio) library.
30   use_cras = false
32   # Enables runtime selection of PulseAudio library.
33   use_pulseaudio = false
35   # Enables runtime selection of ALSA library for audio.
36   use_alsa = false
38   # TODO(GYP): How to handled the "embedded" use case?
39   # Original conditional: (OS=="linux" or OS=="freebsd" or OS=="solaris") and embedded!=1
40   if (is_posix && !is_android && !is_mac) {
41     use_alsa = true
42     if (!use_cras) {
43       use_pulseaudio = true
44     }
45   }
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
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
55   # TODO(GYP): This should be a platform define.
56   is_openbsd = false