OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'chromium_code': 1, | 7 'chromium_code': 1, |
8 # Override to dynamically link the cras (ChromeOS audio) library. | 8 # Override to dynamically link the cras (ChromeOS audio) library. |
9 'use_cras%': 0, | 9 'use_cras%': 0, |
10 # Option e.g. for Linux distributions to link pulseaudio directly | 10 # Option e.g. for Linux distributions to link pulseaudio directly |
11 # (DT_NEEDED) instead of using dlopen. This helps with automated | 11 # (DT_NEEDED) instead of using dlopen. This helps with automated |
12 # detection of ABI mismatches and prevents silent errors. | 12 # detection of ABI mismatches and prevents silent errors. |
13 'linux_link_pulseaudio%': 0, | 13 'linux_link_pulseaudio%': 0, |
14 'conditions': [ | 14 'conditions': [ |
15 ['OS=="android"', { | 15 ['OS=="android"', { |
16 # Android doesn't use ffmpeg. | 16 # Android doesn't use ffmpeg. |
17 'media_use_ffmpeg%': 0, | 17 'media_use_ffmpeg%': 0, |
18 # Android doesn't use libvpx. | 18 # Android doesn't use libvpx. |
19 'media_use_libvpx%': 0, | 19 'media_use_libvpx%': 0, |
20 }, { # 'OS!="android"' | 20 }, { # 'OS!="android"' |
21 'media_use_ffmpeg%': 1, | 21 'media_use_ffmpeg%': 1, |
22 'media_use_libvpx%': 1, | 22 'media_use_libvpx%': 1, |
23 }], | 23 }], |
24 # Enable ALSA and Pulse for runtime selection. | 24 # ALSA usage. |
25 ['(OS=="linux" or OS=="freebsd" or OS=="solaris") and embedded!=1 and use_
cras==0', { | 25 ['(OS=="linux" or OS=="freebsd" or OS=="solaris") and embedded!=1', { |
26 'use_alsa%': 1, | 26 'use_alsa%': 1, |
| 27 }, { |
| 28 'use_alsa%': 0, |
| 29 }], |
| 30 ['os_posix==1 and OS!="mac" and OS!="android" and chromeos!=1 and embedded
!=1', { |
27 'use_pulseaudio%': 1, | 31 'use_pulseaudio%': 1, |
28 }, { | 32 }, { |
29 'use_alsa%': 0, | |
30 'use_pulseaudio%': 0, | 33 'use_pulseaudio%': 0, |
31 }], | 34 }], |
32 ], | 35 ], |
33 }, | 36 }, |
34 'includes': [ | 37 'includes': [ |
35 'media_cdm.gypi', | 38 'media_cdm.gypi', |
36 ], | 39 ], |
37 'targets': [ | 40 'targets': [ |
38 { | 41 { |
39 'target_name': 'media', | 42 'target_name': 'media', |
(...skipping 1608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1648 ], | 1651 ], |
1649 }], | 1652 }], |
1650 ], | 1653 ], |
1651 }], | 1654 }], |
1652 ], | 1655 ], |
1653 }, | 1656 }, |
1654 ], | 1657 ], |
1655 }], | 1658 }], |
1656 ], | 1659 ], |
1657 } | 1660 } |
OLD | NEW |