Bug 1397263 - move --enable-accessibility to moz.configure; r=mshal

This commit is contained in:
Nathan Froyd 2018-10-03 20:29:29 -04:00
Родитель e2773ad4fd
Коммит e02e0b391b
3 изменённых файлов: 28 добавлений и 26 удалений

Просмотреть файл

@ -169,7 +169,6 @@ def old_configure_options(*options):
@old_configure_options(
'--cache-file',
'--datadir',
'--enable-accessibility',
'--enable-content-sandbox',
'--enable-cookies',
'--enable-cpp-rtti',

Просмотреть файл

@ -1884,7 +1884,6 @@ MOZ_NO_SMART_CARDS=
NECKO_COOKIES=1
MOZ_USE_NATIVE_POPUP_WINDOWS=
MOZ_EXCLUDE_HYPHENATION_DICTIONARIES=
ACCESSIBILITY=1
MOZ_CONTENT_SANDBOX=
MOZ_GMP_SANDBOX=
MOZ_SANDBOX=1
@ -2258,27 +2257,6 @@ if test -n "$MOZ_EXCLUDE_HYPHENATION_DICTIONARIES"; then
AC_DEFINE(MOZ_EXCLUDE_HYPHENATION_DICTIONARIES)
fi
dnl ========================================================
dnl accessibility support on by default on all platforms
dnl ========================================================
MOZ_ARG_DISABLE_BOOL(accessibility,
[ --disable-accessibility Disable accessibility support],
ACCESSIBILITY=,
ACCESSIBILITY=1 )
if test "$ACCESSIBILITY"; then
case "$target" in
*-mingw*)
if test -z "$MIDL"; then
if test "$GCC" != "yes"; then
AC_MSG_ERROR([MIDL could not be found. Building accessibility without MIDL is not supported.])
else
AC_MSG_ERROR([You have accessibility enabled, but widl could not be found. Add --disable-accessibility to your mozconfig or install widl. See https://developer.mozilla.org/en-US/docs/Cross_Compile_Mozilla_for_Mingw32 for details.])
fi
fi
esac
AC_DEFINE(ACCESSIBILITY)
fi
AC_TRY_COMPILE([#include <linux/ethtool.h>],
[ struct ethtool_cmd cmd; cmd.speed_hi = 0; ],
MOZ_WEBRTC_HAVE_ETHTOOL_SPEED_HI=1)
@ -3891,7 +3869,6 @@ AC_SUBST(MOZ_TOOLKIT_SEARCH)
AC_SUBST(MOZ_FEEDS)
AC_SUBST(MOZ_UNIVERSALCHARDET)
AC_SUBST(ACCESSIBILITY)
AC_SUBST(MOZ_SPELLCHECK)
AC_SUBST(MOZ_ANDROID_ANR_REPORTER)
AC_SUBST(MOZ_CRASHREPORTER)

Просмотреть файл

@ -1121,10 +1121,36 @@ def midl_flags(c_compiler, target):
}[target.cpu]
# Needed until we move --disable-accessibility from old-configure
add_old_configure_assignment('MIDL', midl)
set_config('MIDL_FLAGS', midl_flags)
# Accessibility
# ==============================================================
option('--disable-accessibility', help='Disable accessibility support')
@depends('--disable-accessibility', check_for_midl, midl, c_compiler)
def accessibility(value, check_for_midl, midl, c_compiler):
enabled = bool(value)
if not enabled:
return
if check_for_midl and not midl:
if c_compiler and c_compiler.type in ('gcc', 'clang'):
die('You have accessibility enabled, but widl could not be found. '
'Add --disable-accessibility to your mozconfig or install widl. '
'See https://developer.mozilla.org/en-US/docs/Cross_Compile_Mozilla_for_Mingw32 for details.')
else:
die('MIDL could not be found. '
'Building accessibility without MIDL is not supported.')
return enabled
set_config('ACCESSIBILITY', accessibility)
set_define('ACCESSIBILITY', accessibility)
add_old_configure_assignment('ACCESSIBILITY', accessibility)
# Addon signing
# ==============================================================