2016-03-11 22:04:59 +03:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
|
|
|
# vim: set filetype=python:
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
2018-01-01 01:40:33 +03:00
|
|
|
set_config('MOZ_SUITE', True)
|
|
|
|
set_define('MOZ_SUITE', True)
|
|
|
|
|
2018-01-01 01:37:40 +03:00
|
|
|
set_define('MOZ_SEPARATE_MANIFEST_FOR_THEME_OVERRIDES', True)
|
|
|
|
|
2016-05-14 17:16:05 +03:00
|
|
|
imply_option('MOZ_PLACES', True)
|
2018-02-04 22:41:30 +03:00
|
|
|
imply_option('MOZ_SERVICES_SYNC', False)
|
2017-11-17 23:36:20 +03:00
|
|
|
imply_option('MOZ_ALLOW_LEGACY_EXTENSIONS', True)
|
2016-05-14 17:16:05 +03:00
|
|
|
|
2017-10-17 22:33:35 +03:00
|
|
|
|
|
|
|
@depends(application)
|
|
|
|
def is_comm(app):
|
|
|
|
return app[0].startswith('comm/')
|
|
|
|
|
|
|
|
|
|
|
|
@depends(is_comm)
|
|
|
|
def toolkit_configure(is_comm):
|
|
|
|
if is_comm:
|
|
|
|
return '../../toolkit/moz.configure'
|
|
|
|
else:
|
|
|
|
return '../mozilla/toolkit/moz.configure'
|
|
|
|
|
2018-10-18 00:47:59 +03:00
|
|
|
# Building extensions is disabled by default.
|
|
|
|
# Bug 1231349 needs to be fixed first for l10n builds.
|
|
|
|
# Set desired defaults to True from False when the l10n bug is fixed.
|
|
|
|
|
|
|
|
# =========================================================
|
|
|
|
# = ChatZilla extension
|
|
|
|
# =========================================================
|
|
|
|
option('--enable-irc', default=False,
|
|
|
|
help='Enable building of the ChatZilla IRC extension')
|
|
|
|
|
|
|
|
@depends_if('--enable-irc')
|
|
|
|
def irc(arg):
|
|
|
|
return True
|
|
|
|
|
|
|
|
set_config('MOZ_IRC', irc)
|
|
|
|
|
|
|
|
# =========================================================
|
|
|
|
# = DOM Inspector extension
|
|
|
|
# =========================================================
|
|
|
|
option('--enable-dominspector', default=False,
|
|
|
|
help='Enable building of the DOM Inspector extension')
|
|
|
|
|
|
|
|
@depends_if('--enable-dominspector')
|
|
|
|
def dominspector(arg):
|
|
|
|
return True
|
|
|
|
|
|
|
|
set_config('MOZ_DOMINSPECTOR', dominspector)
|
|
|
|
|
|
|
|
# =========================================================
|
|
|
|
# = DebugQA extension
|
|
|
|
# =========================================================
|
|
|
|
option('--enable-debugqa', default=False,
|
|
|
|
help='Enable building of the DebugQA extension')
|
|
|
|
|
|
|
|
@depends_if('--enable-debugqa')
|
|
|
|
def debugqa(arg):
|
|
|
|
return True
|
|
|
|
|
|
|
|
set_config('MOZ_DEBUGQA', debugqa)
|
2017-11-18 20:24:42 +03:00
|
|
|
|
|
|
|
include('../mailnews/moz.configure')
|
2017-10-17 22:33:35 +03:00
|
|
|
include(toolkit_configure)
|