зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1491419 - move --enable-raw to moz.configure; r=nalexander
This commit is contained in:
Родитель
b318e37e44
Коммит
2048436656
|
@ -200,7 +200,6 @@ def old_configure_options(*options):
|
|||
'--enable-parental-controls',
|
||||
'--enable-posix-nspr-emulation',
|
||||
'--enable-pref-extensions',
|
||||
'--enable-raw',
|
||||
'--enable-readline',
|
||||
'--enable-reflow-perf',
|
||||
'--enable-sandbox',
|
||||
|
|
|
@ -1902,7 +1902,6 @@ MOZ_AUTH_EXTENSION=1
|
|||
if test "$MOZ_IOS"; then
|
||||
MOZ_AUTH_EXTENSION=
|
||||
fi
|
||||
MOZ_RAW=
|
||||
MOZ_WEBRTC_HARDWARE_AEC_NS=
|
||||
VPX_USE_YASM=
|
||||
VPX_ASFLAGS=
|
||||
|
@ -1936,13 +1935,6 @@ case "$target_os" in
|
|||
;;
|
||||
esac
|
||||
|
||||
case "${target}" in
|
||||
*-android*|*-linuxandroid*)
|
||||
MOZ_RAW=1
|
||||
;;
|
||||
|
||||
esac
|
||||
|
||||
# Optional Firefox for Android partner distribution directory.
|
||||
MOZ_ARG_WITH_STRING(android-distribution-directory,
|
||||
[ --with-android-distribution-directory=dir
|
||||
|
@ -2339,7 +2331,6 @@ AC_TRY_COMPILE([#include <linux/ethtool.h>],
|
|||
AC_SUBST(MOZ_WEBRTC_HAVE_ETHTOOL_SPEED_HI)
|
||||
|
||||
if test -n "$MOZ_WEBRTC"; then
|
||||
MOZ_RAW=1
|
||||
if test -n "$MOZ_X11"; then
|
||||
MOZ_WEBRTC_X11_LIBS="-lXext -lXdamage -lXfixes -lXcomposite"
|
||||
fi
|
||||
|
@ -2360,20 +2351,6 @@ fi
|
|||
AC_SUBST(MOZ_WEBRTC_HARDWARE_AEC_NS)
|
||||
AC_SUBST_LIST(MOZ_WEBRTC_X11_LIBS)
|
||||
|
||||
dnl ========================================================
|
||||
dnl = Enable Raw Codecs
|
||||
dnl ========================================================
|
||||
MOZ_ARG_ENABLE_BOOL(raw,
|
||||
[ --enable-raw Enable support for RAW media],
|
||||
MOZ_RAW=1,
|
||||
MOZ_RAW=)
|
||||
|
||||
if test -n "$MOZ_RAW"; then
|
||||
AC_DEFINE(MOZ_RAW)
|
||||
fi
|
||||
|
||||
AC_SUBST(MOZ_RAW)
|
||||
|
||||
dnl ========================================================
|
||||
dnl = Apple platform decoder support
|
||||
dnl ========================================================
|
||||
|
|
|
@ -983,6 +983,22 @@ set_define('MOZ_PEERCONNECTION', webrtc)
|
|||
set_config('MOZ_WEBRTC_ASSERT_ALWAYS', webrtc)
|
||||
set_define('MOZ_WEBRTC_ASSERT_ALWAYS', webrtc)
|
||||
|
||||
# RAW media
|
||||
# ==============================================================
|
||||
|
||||
@depends(target, webrtc)
|
||||
def raw_media_default(target, webrtc):
|
||||
if target.os == 'Android':
|
||||
return True
|
||||
if webrtc:
|
||||
return True
|
||||
|
||||
option('--enable-raw', help='Enable support for RAW media',
|
||||
default=raw_media_default)
|
||||
|
||||
set_config('MOZ_RAW', depends_if('--enable-raw')(lambda _: True))
|
||||
set_define('MOZ_RAW', depends_if('--enable-raw')(lambda _: True))
|
||||
|
||||
# ASan Reporter Addon
|
||||
# ==============================================================
|
||||
option('--enable-address-sanitizer-reporter',
|
||||
|
|
Загрузка…
Ссылка в новой задаче