| OLD | NEW |
| 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 # These variables need to be args. |
| 6 | 6 |
| 7 # Override to dynamically link the cras (ChromeOS audio) library. | 7 # Override to dynamically link the cras (ChromeOS audio) library. |
| 8 use_cras = false | 8 use_cras = false |
| 9 | 9 |
| 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 # | 13 # |
| 14 # TODO(ajwong): Why is this prefixed "linux_"? | 14 # TODO(ajwong): Why is this prefixed "linux_"? |
| 15 linux_link_pulseaudio = false | 15 linux_link_pulseaudio = false |
| 16 | 16 |
| 17 # TODO(ajwong): Enable libvpx once that's converted. | 17 # TODO(ajwong): Enable libvpx once that's converted. |
| 18 media_use_ffmpeg = true | 18 media_use_ffmpeg = true |
| 19 media_use_libvpx = false | 19 media_use_libvpx = false |
| 20 if (is_android) { | 20 if (is_android) { |
| 21 # Android doesn't use ffmpeg or libvpx. | 21 # Android doesn't use ffmpeg or libvpx. |
| 22 media_use_ffmpeg = false | 22 media_use_ffmpeg = false |
| 23 media_use_libvpx = false | 23 media_use_libvpx = false |
| 24 } | 24 } |
| 25 | 25 |
| 26 # TODO(ajwong): how to disable embedded? | 26 # TODO(ajwong): how to disable embedded? |
| 27 # Original conditional: (OS=="linux" or OS=="freebsd" or OS=="solaris") and embe
dded!=1 | 27 # Original conditional: (OS=="linux" or OS=="freebsd" or OS=="solaris") and embe
dded!=1 |
| 28 use_alsa = false | 28 use_alsa = false |
| 29 use_pulseaudio = false | 29 use_pulseaudio = false |
| 30 if (is_posix && !is_android) { | 30 if (is_posix && !is_android && !is_mac) { |
| 31 use_alsa = true | 31 use_alsa = true |
| 32 if (!use_cras) { | 32 if (!use_cras) { |
| 33 use_pulseaudio = true | 33 use_pulseaudio = true |
| 34 } | 34 } |
| 35 } | 35 } |
| 36 | 36 |
| 37 # TODO(ajwong): is_openbsd should be a platform define. | 37 # TODO(ajwong): is_openbsd should be a platform define. |
| 38 is_openbsd = false | 38 is_openbsd = false |
| 39 | 39 |
| 40 # TODO(ajwong): This should be branding controlled? | 40 # TODO(ajwong): This should be branding controlled? |
| 41 proprietary_codecs = false | 41 proprietary_codecs = false |
| 42 | 42 |
| 43 # TODO(ajwong): Where are these coming from?jk | 43 # TODO(ajwong): Where are these coming from?jk |
| 44 enable_mpeg2ts_stream_parser = false | 44 enable_mpeg2ts_stream_parser = false |
| 45 enable_browser_cdms = is_android | 45 enable_browser_cdms = is_android |
| OLD | NEW |