Add --enable-av1 configure switch

This commit is contained in:
trav90 2018-10-15 21:48:14 -05:00 committed by Roy Tam
commit 55dd02194d
2 changed files with 17 additions and 0 deletions

View file

@ -33,6 +33,9 @@ if CONFIG['MOZ_WEBM_ENCODER']:
if not CONFIG['MOZ_SYSTEM_LIBVPX']:
external_dirs += ['media/libvpx']
if CONFIG['MOZ_AV1']:
external_dirs += ['media/libaom']
if not CONFIG['MOZ_SYSTEM_PNG']:
external_dirs += ['media/libpng']

View file

@ -358,6 +358,20 @@ set_config('MOZ_FMP4', fmp4)
set_define('MOZ_FMP4', fmp4)
add_old_configure_assignment('MOZ_FMP4', fmp4)
# Libaom AV1 Video Codec Support
# ==============================================================
option('--enable-av1',
help='Enable libaom for av1 video support')
@depends('--enable-av1')
def av1(value):
enabled = bool(value)
if enabled:
return True
set_config('MOZ_AV1', av1)
set_define('MOZ_AV1', av1)
# Miscellaneous
# ==============================================================
option(name='--enable-chrome-format',