suite/moz.configure
author Mozilla Releng Treescript <release+treescript@mozilla.org>
Mon, 01 Jun 2020 21:06:52 +0000
changeset 38423 a72e4d7908e0d4da3cfb13e0db7eee2d478269d3
parent 37106 c1457ba6362cbc7a1cbd1318ea449c99c9a5f697
child 39707 a758fbce517a4db8338e8bfe726c484fb6aeda88
permissions -rw-r--r--
no bug - Bumping Thunderbird l10n changesets r=release a=l10n-bump CLOSED TREE af -> removed ar -> 13f4e5c63aed ast -> 06238bcd1d71 be -> 2a2c4bfa536c bg -> b066986baad7 br -> 77130fec77d1 ca -> 05263001b4fb cak -> 34cffcb6f7ca cs -> 7d6080744017 cy -> 74a71abffa27 da -> d79d59042826 de -> 23f2aa4ae3de dsb -> c7548879c855 el -> e7b6bf516f62 en-GB -> 64789d6d3264 es-AR -> 44ce7b8a21f6 es-ES -> e131e33378bd et -> af1beec7a2c5 eu -> dff4a7c14438 fa -> removed fi -> b04da68482de fr -> 7e2320d07b94 fy-NL -> f43fd875b36b ga-IE -> 56b7bb91b552 gd -> 94b469991a3b gl -> 228a11d8ba8c he -> ed93e84e5416 hr -> 037459e37cc3 hsb -> 192b76cd4451 hu -> 92669fa62f5a hy-AM -> 49a2e6124917 id -> 240f090ba92f is -> 7cda20fa902a it -> ec692ed62c10 ja -> 5eed784b3cd9 ja-JP-mac -> e37f1ed0ff6d ka -> 4ce3c0e3feb7 kab -> 6ea74b301cc8 kk -> 95ec87f8788e ko -> ed50767d5b05 lt -> d71a8aa38738 ms -> ac99de934f0c nb-NO -> 4c42b2eb457c nl -> f31b19039101 nn-NO -> e2d68d6fd0eb pa-IN -> removed pl -> d6453ed2bb87 pt-BR -> ad22cae34261 pt-PT -> 693f4dace00c rm -> 80d37050607e ro -> a5af9f2e8f1d ru -> 3a82831ae1d9 si -> 55e501a4e096 sk -> d1c8c57d517d sl -> ecae5ba0d9b7 sq -> b9ad05079398 sr -> f15c2fb5fd90 sv-SE -> 21c851897e57 th -> removed tr -> dc70d34d90d1 uk -> bbfae865d18b uz -> 3a9d7e55dbe9 vi -> 20973eb20233 zh-CN -> d9fa062cd366 zh-TW -> 62ce156b3e49

# -*- 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/.

set_config('MOZ_SUITE', True)
set_define('MOZ_SUITE', True)

 
@depends(target_is_windows, target_is_linux)
def bundled_fonts(is_windows, is_linux):
    if is_windows or is_linux:
        return True

set_config('MOZ_BUNDLED_FONTS', bundled_fonts)
add_old_configure_assignment('MOZ_BUNDLED_FONTS', bundled_fonts)

@depends(check_build_environment, '--help')
def comm_paths(build_env, _):
    topsrcdir = build_env.topsrcdir
    topobjdir = build_env.topobjdir

    moztopsrcdir=topsrcdir
    commtopsrcdir='%s/comm' % topsrcdir
    mozreltopsrcdir='.'
    commreltopsrcdir='comm'
    commtopobjdir='%s/comm' % topobjdir

    return namespace(moztopsrcdir=moztopsrcdir,
                     commtopsrcdir=commtopsrcdir,
                     mozreltopsrcdir=mozreltopsrcdir,
                     commreltopsrcdir=commreltopsrcdir,
                     commtopobjdir=commtopobjdir)

@template
def set_defconf(k,v):
    set_config(k,v)
    set_define(k,v)
    add_old_configure_assignment(k,v)

set_defconf('moztopsrcdir', comm_paths.moztopsrcdir)
set_defconf('commtopsrcdir', comm_paths.commtopsrcdir)
set_defconf('mozreltopsrcdir', comm_paths.mozreltopsrcdir)
set_defconf('commreltopsrcdir', comm_paths.commreltopsrcdir)
set_defconf('commtopobjdir', comm_paths.commtopobjdir)


@depends(check_build_environment, application)
@imports(_from='os.path', _import='exists')
@imports(_from='__builtin__', _import='open')
def seamonkey_version(build_env, app_path):
    version_file = os.path.join(build_env.topsrcdir, app_path[0],
                                'config', 'version.txt')
    version_file_display = os.path.join(build_env.topsrcdir, app_path[0],
                                'config', 'version_display.txt')
    rv = []
    for f in [ version_file, version_file_display ]:
        if exists(f):
            f_value = open(f).read().strip()
        else:
            f_value = 'unknown'
        rv.append(f_value)

    return namespace(version=rv[0],
                     version_display=rv[1])

set_defconf('SEAMONKEY_VERSION', seamonkey_version.version)
set_defconf('SEAMONKEY_VERSION_DISPLAY', seamonkey_version.version_display)

@depends(check_build_environment)
@imports(_from='os.path', _import='exists')
@imports(_from='__builtin__', _import='open')
def thunderbird_version(build_env):
    version_file = os.path.join(build_env.topsrcdir, 'comm/mail',
                                'config', 'version.txt')
    version_file_display = os.path.join(build_env.topsrcdir, 'comm/mail',
                                'config', 'version_display.txt')
    rv = []
    for f in [ version_file, version_file_display ]:
        if exists(f):
            f_value = open(f).read().strip()
        else:
            f_value = 'unknown'
        rv.append(f_value)

    return namespace(version=rv[0],
                     version_display=rv[1])

set_defconf('THUNDERBIRD_VERSION', thunderbird_version.version)
set_defconf('THUNDERBIRD_VERSION_DISPLAY', thunderbird_version.version_display)

set_define('MOZ_SEPARATE_MANIFEST_FOR_THEME_OVERRIDES', True)

imply_option('MOZ_PLACES', True)
imply_option('MOZ_SERVICES_SYNC', False)

# 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)

include('../mailnews/moz.configure')
include('../../toolkit/moz.configure')