Bug 1510785 - Add build option for disabling XBL. r=chmanchester

Defaults XBL to disabled on android, but still enabled for desktop.

Differential Revision: https://phabricator.services.mozilla.com/D45612

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Brendan Dahl 2019-10-08 23:52:07 +00:00
parent eb2ce4c505
commit 8f5cb3d17d

View File

@ -1335,6 +1335,21 @@ option('--enable-bundled-fonts', default=bundled_fonts_default,
set_define('MOZ_BUNDLED_FONTS',
depends_if('--enable-bundled-fonts', when=allow_bundled_fonts)(lambda _: True))
# XBL
# ==============================================================
@depends(build_project)
def xbl_default(project):
return project != 'mobile/android'
option('--enable-xbl', default=xbl_default,
when='--enable-compile-environment',
help='{Enable|Disable} support for XBL (XML Binding Language)')
set_define('MOZ_XBL',
depends_if('--enable-xbl', when='--enable-compile-environment')(lambda _: True))
set_config('MOZ_XBL',
depends_if('--enable-xbl', when='--enable-compile-environment')(lambda _: True))
# Verify MAR signatures
# ==============================================================