зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1295853 - Only enable Widevine on whitelisted Tier-1 build targets. r=glandium
MozReview-Commit-ID: 52lrV3aEEVe --HG-- extra : rebase_source : decbfdf108545127550ca82b4270100fa16b76a5
This commit is contained in:
Родитель
ebea3bef90
Коммит
6c020ca3d6
|
@ -356,6 +356,18 @@ option('--enable-eme',
|
|||
default=eme_default,
|
||||
help='Enable support for Encrypted Media Extensions')
|
||||
|
||||
@depends('--enable-eme', target)
|
||||
def enable_eme(value, target):
|
||||
# Widevine EME by default enabled on desktop Windows, MacOS and Linux,
|
||||
# x86 and x64 builds.
|
||||
if (target.kernel in ('Darwin', 'WINNT', 'Linux') and
|
||||
target.os not in ('Android', 'iOS') and
|
||||
target.cpu in ('x86', 'x86_64')):
|
||||
return value
|
||||
elif value and value.origin != 'default':
|
||||
die('%s is not supported on %s' % (value.format('--enable-eme'), target.alias))
|
||||
return value
|
||||
|
||||
@depends('--enable-eme', fmp4)
|
||||
def eme(value, fmp4):
|
||||
enabled = bool(value)
|
||||
|
|
Загрузка…
Ссылка в новой задаче