mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-16 13:56:29 +00:00
Bug 1294864 - Move MOZ_PERMISSIONS to Python configure. r=glandium
MozReview-Commit-ID: AyaWOvm5cq
This commit is contained in:
parent
6c438265fc
commit
49a7faf599
@ -208,7 +208,6 @@ def old_configure_options(*options):
|
||||
'--enable-oom-breakpoint',
|
||||
'--enable-optimize',
|
||||
'--enable-parental-controls',
|
||||
'--enable-permissions',
|
||||
'--enable-pie',
|
||||
'--enable-png-arm-neon-support',
|
||||
'--enable-posix-nspr-emulation',
|
||||
|
@ -2344,7 +2344,6 @@ VPX_X86_ASM=
|
||||
VPX_ARM_ASM=
|
||||
LIBJPEG_TURBO_AS=
|
||||
LIBJPEG_TURBO_ASFLAGS=
|
||||
MOZ_PERMISSIONS=1
|
||||
MOZ_PREF_EXTENSIONS=1
|
||||
MOZ_REFLOW_PERF=
|
||||
MOZ_SAFE_BROWSING=
|
||||
@ -3336,20 +3335,6 @@ fi
|
||||
|
||||
AC_SUBST(MOZ_PULSEAUDIO)
|
||||
|
||||
dnl ========================================================
|
||||
dnl Permissions System
|
||||
dnl ========================================================
|
||||
MOZ_ARG_DISABLE_BOOL(permissions,
|
||||
[ --disable-permissions Disable permissions (popup and cookie blocking)],
|
||||
MOZ_PERMISSIONS=,
|
||||
MOZ_PERMISSIONS=1
|
||||
)
|
||||
|
||||
AC_SUBST(MOZ_PERMISSIONS)
|
||||
if test -n "$MOZ_PERMISSIONS"; then
|
||||
AC_DEFINE(MOZ_PERMISSIONS)
|
||||
fi
|
||||
|
||||
dnl ========================================================
|
||||
dnl NegotiateAuth
|
||||
dnl ========================================================
|
||||
|
@ -444,6 +444,16 @@ def check_places_and_android_history(places, android_history):
|
||||
if places and android_history:
|
||||
die('Cannot use MOZ_ANDROID_HISTORY alongside MOZ_PLACES.')
|
||||
|
||||
# Permissions system
|
||||
# ==============================================================
|
||||
option(name='--disable-permissions',
|
||||
help='Disable permissions (popup and cookie blocking)')
|
||||
|
||||
moz_permissions = depends_if('--disable-permissions')(lambda _: True)
|
||||
|
||||
set_config('MOZ_PERMISSIONS', moz_permissions)
|
||||
set_define('MOZ_PERMISSIONS', moz_permissions)
|
||||
|
||||
# gpsd support
|
||||
# ==============================================================
|
||||
option('--enable-gpsd', env='MOZ_GPSD',
|
||||
|
Loading…
x
Reference in New Issue
Block a user