OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 # Common media variables. | 5 # Common media variables. |
6 { | 6 { |
7 'variables': { | 7 'variables': { |
8 'conditions': [ | 8 'conditions': [ |
9 ['OS == "android" or OS == "ios"', { | 9 ['OS == "android" or OS == "ios"', { |
10 # Android and iOS don't use FFmpeg, libvpx nor libwebm by default. | 10 # Android and iOS don't use libwebm by default. |
11 # Set media_use_ffmpeg=1 for Android builds to compile experimental | 11 'media_use_libwebm%': 0, |
12 # support for FFmpeg and the desktop media pipeline. | 12 }, { |
| 13 'media_use_libwebm%': 1, |
| 14 }], |
| 15 ['OS == "ios"', { |
| 16 # iOS doesn't use FFmpeg or libvpx by default. |
13 'media_use_ffmpeg%': 0, | 17 'media_use_ffmpeg%': 0, |
14 'media_use_libvpx%': 0, | 18 'media_use_libvpx%': 0, |
15 'media_use_libwebm%': 0, | |
16 }, { | 19 }, { |
17 'media_use_ffmpeg%': 1, | 20 'media_use_ffmpeg%': 1, |
18 'media_use_libvpx%': 1, | 21 'media_use_libvpx%': 1, |
19 'media_use_libwebm%': 1, | |
20 }], | 22 }], |
21 ], | 23 ], |
22 }, | 24 }, |
23 } | 25 } |
OLD | NEW |