| 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 import("//build/config/chromecast_build.gni") | 5 import("//build/config/chromecast_build.gni") |
| 6 import("//build/config/features.gni") | 6 import("//build/config/features.gni") |
| 7 | 7 |
| 8 declare_args() { | 8 declare_args() { |
| 9 # Allows distributions to link pulseaudio directly (DT_NEEDED) instead of | 9 # Allows distributions to link pulseaudio directly (DT_NEEDED) instead of |
| 10 # using dlopen. This helps with automated detection of ABI mismatches and | 10 # using dlopen. This helps with automated detection of ABI mismatches and |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 # it only provides demuxing, and is only useful for AC3/EAC3 audio | 36 # it only provides demuxing, and is only useful for AC3/EAC3 audio |
| 37 # pass-through to HDMI sink on Chromecast. | 37 # pass-through to HDMI sink on Chromecast. |
| 38 enable_ac3_eac3_audio_demuxing = proprietary_codecs && is_chromecast | 38 enable_ac3_eac3_audio_demuxing = proprietary_codecs && is_chromecast |
| 39 | 39 |
| 40 enable_mse_mpeg2ts_stream_parser = proprietary_codecs && is_chromecast | 40 enable_mse_mpeg2ts_stream_parser = proprietary_codecs && is_chromecast |
| 41 | 41 |
| 42 # Enable HEVC/H265 demuxing. Actual decoding must be provided by the | 42 # Enable HEVC/H265 demuxing. Actual decoding must be provided by the |
| 43 # platform. Enable by default for Chromecast. | 43 # platform. Enable by default for Chromecast. |
| 44 enable_hevc_demuxing = proprietary_codecs && is_chromecast | 44 enable_hevc_demuxing = proprietary_codecs && is_chromecast |
| 45 | 45 |
| 46 # Enable HLS with SAMPLE-AES decryption. |
| 47 # Enabled by default on the cast desktop implementation to allow unit tests of |
| 48 # MP2TS parsing support. |
| 49 enable_hls_sample_aes = proprietary_codecs && is_cast_desktop_build |
| 50 |
| 46 # TODO(GYP): This should be a platform define. | 51 # TODO(GYP): This should be a platform define. |
| 47 is_openbsd = false | 52 is_openbsd = false |
| 48 } | 53 } |
| 49 | 54 |
| 55 # enable_hls_sample_aes can only be true if enable_mse_mpeg2ts_stream_parser is. |
| 56 assert(enable_mse_mpeg2ts_stream_parser || !enable_hls_sample_aes) |
| 57 |
| 50 # Use a second declare_args() to pick up possible overrides of |use_cras|. | 58 # Use a second declare_args() to pick up possible overrides of |use_cras|. |
| 51 declare_args() { | 59 declare_args() { |
| 52 # Enables runtime selection of PulseAudio library. | 60 # Enables runtime selection of PulseAudio library. |
| 53 use_pulseaudio = false | 61 use_pulseaudio = false |
| 54 | 62 |
| 55 # Enables runtime selection of ALSA library for audio. | 63 # Enables runtime selection of ALSA library for audio. |
| 56 use_alsa = false | 64 use_alsa = false |
| 57 | 65 |
| 58 # Alsa should be used on non-Android, non-Mac POSIX systems. | 66 # Alsa should be used on non-Android, non-Mac POSIX systems. |
| 59 if (is_posix && !is_android && !is_mac) { | 67 if (is_posix && !is_android && !is_mac) { |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 "cdm", | 123 "cdm", |
| 116 "renderer", | 124 "renderer", |
| 117 ] | 125 ] |
| 118 mojo_media_host = "browser" | 126 mojo_media_host = "browser" |
| 119 } else { | 127 } else { |
| 120 mojo_media_services = [ "cdm" ] | 128 mojo_media_services = [ "cdm" ] |
| 121 mojo_media_host = "utility" | 129 mojo_media_host = "utility" |
| 122 } | 130 } |
| 123 } | 131 } |
| 124 } | 132 } |
| OLD | NEW |