зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1746539 - Move --enable-libproxy to python configure. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D134098
This commit is contained in:
Родитель
e6e627c61f
Коммит
0dbb1da5a9
|
@ -91,7 +91,6 @@ def old_configure_options(*options):
|
|||
@old_configure_options(
|
||||
"--cache-file",
|
||||
"--datadir",
|
||||
"--enable-libproxy",
|
||||
"--enable-logrefcnt",
|
||||
"--enable-negotiateauth",
|
||||
"--enable-official-branding",
|
||||
|
|
|
@ -1369,27 +1369,6 @@ fi
|
|||
AC_DEFINE_UNQUOTED(MOZ_DISTRIBUTION_ID,"$MOZ_DISTRIBUTION_ID")
|
||||
AC_SUBST(MOZ_DISTRIBUTION_ID)
|
||||
|
||||
dnl ========================================================
|
||||
dnl = libproxy support
|
||||
dnl ========================================================
|
||||
|
||||
if test "$MOZ_ENABLE_GTK"
|
||||
then
|
||||
MOZ_ENABLE_LIBPROXY=
|
||||
|
||||
MOZ_ARG_ENABLE_BOOL(libproxy,
|
||||
[ --enable-libproxy Enable libproxy support ],
|
||||
MOZ_ENABLE_LIBPROXY=1,
|
||||
MOZ_ENABLE_LIBPROXY=)
|
||||
|
||||
if test "$MOZ_ENABLE_LIBPROXY"
|
||||
then
|
||||
PKG_CHECK_MODULES(MOZ_LIBPROXY, libproxy-1.0)
|
||||
AC_DEFINE(MOZ_ENABLE_LIBPROXY)
|
||||
fi
|
||||
fi
|
||||
AC_SUBST(MOZ_ENABLE_LIBPROXY)
|
||||
|
||||
AC_TRY_COMPILE([#include <linux/ethtool.h>],
|
||||
[ struct ethtool_cmd cmd; cmd.speed_hi = 0; ],
|
||||
MOZ_WEBRTC_HAVE_ETHTOOL_SPEED_HI=1)
|
||||
|
|
|
@ -2734,3 +2734,15 @@ set_define(
|
|||
),
|
||||
)
|
||||
set_define("MOZ_LAYERS_HAVE_LOG", True, when="--enable-dump-painting")
|
||||
|
||||
|
||||
# libproxy support
|
||||
# ==============================================================
|
||||
with only_when(toolkit_gtk):
|
||||
system_lib_option("--enable-libproxy", help="Enable libproxy support")
|
||||
|
||||
with only_when("--enable-libproxy"):
|
||||
pkg_check_modules("MOZ_LIBPROXY", "libproxy-1.0")
|
||||
|
||||
set_config("MOZ_ENABLE_LIBPROXY", True)
|
||||
set_define("MOZ_ENABLE_LIBPROXY", True)
|
||||
|
|
Загрузка…
Ссылка в новой задаче