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 # Enable ALSA and Pulse for runtime selection. | 15 # Enable ALSA and Pulse for runtime selection. |
16 ['(OS=="linux" or OS=="freebsd" or OS=="solaris") and ((embedded!=1 and ch romecast==0) or is_cast_desktop_build==1)', { | 16 ['(OS=="linux" or OS=="freebsd" or OS=="solaris") and (embedded==0 or chro mecast==1)', { |
alokp
2016/02/10 06:03:13
I am curious about the difference between gyp and
slan
2016/02/10 16:05:23
I *thought* that |embedded| was not used by builds
| |
17 # ALSA is always needed for Web MIDI even if the cras is enabled. | 17 # ALSA is always needed for Web MIDI even if the cras is enabled. |
18 'use_alsa%': 1, | 18 'use_alsa%': 1, |
19 'conditions': [ | 19 'conditions': [ |
20 ['use_cras==1', { | 20 ['use_cras==1 or chromecast==1', { |
21 'use_pulseaudio%': 0, | 21 'use_pulseaudio%': 0, |
22 }, { | 22 }, { |
23 'use_pulseaudio%': 1, | 23 'use_pulseaudio%': 1, |
24 }], | 24 }], |
25 ], | 25 ], |
26 }, { | 26 }, { |
27 'use_alsa%': 0, | 27 'use_alsa%': 0, |
28 'use_pulseaudio%': 0, | 28 'use_pulseaudio%': 0, |
29 }], | 29 }], |
30 # low memory buffer is used in non-Android based chromecast build due to h ardware limitation. | 30 # low memory buffer is used in non-Android based chromecast build due to h ardware limitation. |
(...skipping 2112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2143 'dependencies': [ | 2143 'dependencies': [ |
2144 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', | 2144 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', |
2145 ], | 2145 ], |
2146 }], | 2146 }], |
2147 ], | 2147 ], |
2148 }, | 2148 }, |
2149 ], | 2149 ], |
2150 }], | 2150 }], |
2151 ], | 2151 ], |
2152 } | 2152 } |
OLD | NEW |