releases-comm-central/mail/base/moz.build

58 строки
1.9 KiB
Python

# 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/.
TEST_DIRS += ["test"]
JAR_MANIFESTS += ["jar.mn"]
with Files("**"):
BUG_COMPONENT = ("Thunderbird", "General")
DEFINES["PRE_RELEASE_SUFFIX"] = ""
DEFINES["MOZ_APP_VERSION"] = CONFIG["MOZ_APP_VERSION"]
DEFINES["MOZ_APP_VERSION_DISPLAY"] = CONFIG["MOZ_APP_VERSION_DISPLAY"]
DEFINES["APP_LICENSE_BLOCK"] = "%s/content/overrides/app-license.html" % SRCDIR
DEFINES["APP_LICENSE_PRODUCT_NAME"] = "%s/content/overrides/app-license-name.html" % SRCDIR
DEFINES["APP_LICENSE_LIST_BLOCK"] = "%s/content/overrides/app-license-list.html" % SRCDIR
DEFINES["APP_LICENSE_BODY_BLOCK"] = "%s/content/overrides/app-license-body.html" % SRCDIR
if CONFIG["MOZILLA_OFFICIAL"]:
DEFINES["OFFICIAL_BUILD"] = 1
if CONFIG["MOZ_WIDGET_TOOLKIT"] in ("windows", "gtk", "cocoa"):
DEFINES["HAVE_SHELL_SERVICE"] = 1
if CONFIG["MOZ_UPDATER"]:
DEFINES["MOZ_UPDATER"] = 1
# For customized buildconfig
DEFINES["TOPOBJDIR"] = TOPOBJDIR
DEFINES["MOZ_APP_DISPLAYNAME"] = CONFIG["MOZ_APP_DISPLAYNAME"]
DEFINES["MOZ_APP_VERSION_DISPLAY"] = CONFIG["MOZ_APP_VERSION_DISPLAY"]
DEFINES["THUNDERBIRD_DEVELOPER_WWW"] = "https://developer.thunderbird.net/"
for var in ("CC", "CC_VERSION", "CXX", "RUSTC", "RUSTC_VERSION"):
if CONFIG[var]:
DEFINES[var] = CONFIG[var]
for var in ("MOZ_CONFIGURE_OPTIONS",):
DEFINES[var] = CONFIG[var]
DEFINES["target"] = CONFIG["target"]
DEFINES["CFLAGS"] = " ".join(CONFIG["OS_CFLAGS"])
rustflags = CONFIG["RUSTFLAGS"]
if not rustflags:
rustflags = []
DEFINES["RUSTFLAGS"] = " ".join(rustflags)
cxx_flags = []
for var in ("OS_CPPFLAGS", "OS_CXXFLAGS", "DEBUG", "OPTIMIZE", "FRAMEPTR"):
cxx_flags += COMPILE_FLAGS[var] or []
DEFINES["CXXFLAGS"] = " ".join(cxx_flags)