diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:32:43 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:32:43 +0000 |
commit | 6bf0a5cb5034a7e684dcc3500e841785237ce2dd (patch) | |
tree | a68f146d7fa01f0134297619fbe7e33db084e0aa /comm/mail/base/moz.build | |
parent | Initial commit. (diff) | |
download | thunderbird-upstream.tar.xz thunderbird-upstream.zip |
Adding upstream version 1:115.7.0.upstream/1%115.7.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | comm/mail/base/moz.build | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/comm/mail/base/moz.build b/comm/mail/base/moz.build new file mode 100644 index 0000000000..15558e8d3c --- /dev/null +++ b/comm/mail/base/moz.build @@ -0,0 +1,54 @@ +# 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"] + +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) |