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 import("//testing/libfuzzer/fuzzer_test.gni") | 7 import("//testing/libfuzzer/fuzzer_test.gni") |
8 | 8 |
9 declare_args() { | 9 declare_args() { |
10 # Allows distributions to link pulseaudio directly (DT_NEEDED) instead of | 10 # Allows distributions to link pulseaudio directly (DT_NEEDED) instead of |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 | 43 |
44 # Enable support for the 'cbcs' encryption scheme added by MPEG Common | 44 # Enable support for the 'cbcs' encryption scheme added by MPEG Common |
45 # Encryption 3rd Edition (ISO/IEC 23001-7), published 02/15/2016. | 45 # Encryption 3rd Edition (ISO/IEC 23001-7), published 02/15/2016. |
46 enable_cbcs_encryption_scheme = is_chromecast | 46 enable_cbcs_encryption_scheme = is_chromecast |
47 | 47 |
48 # Enable HEVC/H265 demuxing. Actual decoding must be provided by the | 48 # Enable HEVC/H265 demuxing. Actual decoding must be provided by the |
49 # platform. Enable by default for Chromecast. | 49 # platform. Enable by default for Chromecast. |
50 enable_hevc_demuxing = proprietary_codecs && is_chromecast | 50 enable_hevc_demuxing = proprietary_codecs && is_chromecast |
51 | 51 |
52 enable_webrtc = !is_ios | 52 enable_webrtc = !is_ios |
| 53 |
| 54 # Enable HLS with SAMPLE-AES decryption. |
| 55 # Enabled by default on the cast desktop implementation to allow unit tests of |
| 56 # MP2TS parsing support. |
| 57 enable_hls_sample_aes = proprietary_codecs && is_cast_desktop_build |
53 } | 58 } |
54 | 59 |
| 60 # enable_hls_sample_aes can only be true if enable_mse_mpeg2ts_stream_parser is. |
| 61 assert(enable_mse_mpeg2ts_stream_parser || !enable_hls_sample_aes) |
| 62 |
55 # Use a second declare_args() to pick up possible overrides of |use_cras|. | 63 # Use a second declare_args() to pick up possible overrides of |use_cras|. |
56 declare_args() { | 64 declare_args() { |
57 # Enables runtime selection of PulseAudio library. | 65 # Enables runtime selection of PulseAudio library. |
58 use_pulseaudio = false | 66 use_pulseaudio = false |
59 | 67 |
60 # Enables runtime selection of ALSA library for audio. | 68 # Enables runtime selection of ALSA library for audio. |
61 use_alsa = false | 69 use_alsa = false |
62 | 70 |
63 # Alsa should be used on non-Android, non-Mac POSIX systems. | 71 # Alsa should be used on non-Android, non-Mac POSIX systems. |
64 # Alsa should be used on desktop Chromecast and audio-only Chromecast builds. | 72 # Alsa should be used on desktop Chromecast and audio-only Chromecast builds. |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 } | 137 } |
130 } | 138 } |
131 } | 139 } |
132 | 140 |
133 declare_args() { | 141 declare_args() { |
134 # This switch defines whether the Media Remoting implementation will be built. | 142 # This switch defines whether the Media Remoting implementation will be built. |
135 # When enabled, media is allowed to be renderer and played back on remote | 143 # When enabled, media is allowed to be renderer and played back on remote |
136 # devices when the tab is being casted and other conditions are met. | 144 # devices when the tab is being casted and other conditions are met. |
137 enable_media_remoting = !is_chromecast && !is_ios && !is_android | 145 enable_media_remoting = !is_chromecast && !is_ios && !is_android |
138 } | 146 } |
OLD | NEW |