зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1257104 - Move --disable-ffmpeg to moz.configure. r=ted
This commit is contained in:
Родитель
0a286dbf9a
Коммит
294a1dd5b6
|
@ -200,7 +200,6 @@ def old_configure_options(*options):
|
|||
'--enable-extensions',
|
||||
'--enable-faststripe',
|
||||
'--enable-feeds',
|
||||
'--enable-ffmpeg',
|
||||
'--enable-fmp4',
|
||||
'--enable-gamepad',
|
||||
'--enable-gc-trace',
|
||||
|
|
|
@ -3071,7 +3071,6 @@ if test -n "$MOZ_FMP4"; then
|
|||
else
|
||||
MOZ_FMP4=
|
||||
fi
|
||||
MOZ_FFMPEG=
|
||||
MOZ_WEBRTC=1
|
||||
MOZ_PEERCONNECTION=
|
||||
MOZ_SRTP=
|
||||
|
@ -4352,27 +4351,6 @@ if test -n "$MOZ_DIRECTSHOW"; then
|
|||
AC_DEFINE(MOZ_DIRECTSHOW)
|
||||
fi;
|
||||
|
||||
dnl ========================================================
|
||||
dnl FFmpeg H264/AAC Decoding Support
|
||||
dnl ========================================================
|
||||
case "$OS_TARGET" in
|
||||
WINNT|Android)
|
||||
;;
|
||||
*)
|
||||
MOZ_FFMPEG=1
|
||||
;;
|
||||
esac
|
||||
|
||||
MOZ_ARG_DISABLE_BOOL(ffmpeg,
|
||||
[ --disable-ffmpeg Disable FFmpeg for fragmented H264/AAC decoding],
|
||||
MOZ_FFMPEG=,
|
||||
MOZ_FFMPEG=1
|
||||
)
|
||||
|
||||
if test -n "$MOZ_FFMPEG"; then
|
||||
AC_DEFINE(MOZ_FFMPEG)
|
||||
fi;
|
||||
|
||||
dnl ========================================================
|
||||
dnl = Built-in fragmented MP4 support.
|
||||
dnl ========================================================
|
||||
|
@ -7991,7 +7969,6 @@ AC_SUBST(WIN32_GUI_EXE_LDFLAGS)
|
|||
|
||||
AC_SUBST(MOZ_VORBIS)
|
||||
AC_SUBST(MOZ_TREMOR)
|
||||
AC_SUBST(MOZ_FFMPEG)
|
||||
AC_SUBST(MOZ_FFVPX)
|
||||
AC_SUBST_LIST(FFVPX_ASFLAGS)
|
||||
AC_SUBST(MOZ_FMP4)
|
||||
|
|
|
@ -180,3 +180,20 @@ def wmf(value, target):
|
|||
set_define('MOZ_WMF', '1')
|
||||
add_old_configure_assignment('MOZ_WMF', '1')
|
||||
return enabled
|
||||
|
||||
|
||||
# FFmpeg H264/AAC Decoding Support
|
||||
# ==============================================================
|
||||
option('--disable-ffmpeg',
|
||||
help='Disable FFmpeg for fragmented H264/AAC decoding')
|
||||
|
||||
@depends('--disable-ffmpeg', target)
|
||||
def ffmpeg(value, target):
|
||||
enabled = bool(value)
|
||||
if value.origin == 'default':
|
||||
enabled = target.os not in ('Android', 'WINNT')
|
||||
if enabled:
|
||||
set_define('MOZ_FFMPEG', '1')
|
||||
set_config('MOZ_FFMPEG', '1')
|
||||
add_old_configure_assignment('MOZ_FFMPEG', '1')
|
||||
return enabled
|
||||
|
|
Загрузка…
Ссылка в новой задаче