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/.
|
|
|
|
|
2020-11-05 22:13:45 +03:00
|
|
|
set_config("MOZ_SUITE", True)
|
|
|
|
set_define("MOZ_SUITE", True)
|
|
|
|
|
|
|
|
imply_option("MOZ_APP_BASENAME", "SeaMonkey")
|
2018-01-01 01:40:33 +03:00
|
|
|
|
2021-02-25 20:22:43 +03:00
|
|
|
imply_option('--enable-default-browser-agent', False)
|
2020-08-12 15:38:21 +03:00
|
|
|
|
2022-11-25 14:04:04 +03:00
|
|
|
@depends(target_is_windows, target_has_linux_kernel)
|
2019-01-13 16:32:52 +03:00
|
|
|
def bundled_fonts(is_windows, is_linux):
|
|
|
|
if is_windows or is_linux:
|
|
|
|
return True
|
|
|
|
|
|
|
|
|
2020-11-05 22:13:45 +03:00
|
|
|
set_config("MOZ_BUNDLED_FONTS", bundled_fonts)
|
|
|
|
add_old_configure_assignment("MOZ_BUNDLED_FONTS", bundled_fonts)
|
|
|
|
|
|
|
|
|
2021-12-24 14:57:31 +03:00
|
|
|
@depends(build_environment, "--help")
|
2023-02-16 15:30:39 +03:00
|
|
|
@imports(_from="os.path", _import="join")
|
|
|
|
def commtopsrcdir(build_env, _):
|
2019-01-13 16:32:52 +03:00
|
|
|
topsrcdir = build_env.topsrcdir
|
2023-02-16 15:30:39 +03:00
|
|
|
return join(topsrcdir, "comm")
|
2019-01-13 16:32:52 +03:00
|
|
|
|
|
|
|
|
|
|
|
@template
|
2020-11-05 22:13:45 +03:00
|
|
|
def set_defconf(k, v):
|
|
|
|
set_config(k, v)
|
|
|
|
set_define(k, v)
|
|
|
|
add_old_configure_assignment(k, v)
|
2019-01-13 16:32:52 +03:00
|
|
|
|
2020-11-05 22:13:45 +03:00
|
|
|
|
2023-02-16 15:30:39 +03:00
|
|
|
add_old_configure_assignment("commtopsrcdir", commtopsrcdir)
|
|
|
|
set_config("commtopsrcdir", commtopsrcdir)
|
2019-01-13 16:32:52 +03:00
|
|
|
|
|
|
|
|
2021-12-24 14:57:31 +03:00
|
|
|
@depends(build_environment, application)
|
2020-11-05 22:13:45 +03:00
|
|
|
@imports(_from="os.path", _import="exists")
|
|
|
|
@imports(_from="__builtin__", _import="open")
|
2019-01-13 16:32:52 +03:00
|
|
|
def seamonkey_version(build_env, app_path):
|
2020-11-05 22:13:45 +03:00
|
|
|
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"
|
|
|
|
)
|
2022-05-26 23:22:53 +03:00
|
|
|
version_file_package = os.path.join(
|
|
|
|
build_env.topsrcdir, app_path[0], "config", "version_package.txt"
|
|
|
|
)
|
2019-01-13 16:32:52 +03:00
|
|
|
rv = []
|
2022-05-26 23:22:53 +03:00
|
|
|
for f in [version_file, version_file_display, version_file_package]:
|
2019-01-13 16:32:52 +03:00
|
|
|
if exists(f):
|
|
|
|
f_value = open(f).read().strip()
|
|
|
|
else:
|
2020-11-05 22:13:45 +03:00
|
|
|
f_value = "unknown"
|
2019-01-13 16:32:52 +03:00
|
|
|
rv.append(f_value)
|
|
|
|
|
2022-05-26 23:22:53 +03:00
|
|
|
return namespace(version=rv[0],
|
|
|
|
version_display=rv[1],
|
|
|
|
version_package=rv[2])
|
2020-11-05 22:13:45 +03:00
|
|
|
|
|
|
|
|
|
|
|
set_defconf("SEAMONKEY_VERSION", seamonkey_version.version)
|
|
|
|
set_defconf("SEAMONKEY_VERSION_DISPLAY", seamonkey_version.version_display)
|
2022-05-26 23:22:53 +03:00
|
|
|
# Currently not set in suite comm-central
|
|
|
|
# set_defconf("MOZ_PKG_VERSION", seamonkey_version.version_package)
|
2019-01-13 16:32:52 +03:00
|
|
|
|
|
|
|
|
2020-11-05 22:13:45 +03:00
|
|
|
imply_option("MOZ_PLACES", True)
|
|
|
|
imply_option("MOZ_SERVICES_SYNC", False)
|
2016-05-14 17:16:05 +03:00
|
|
|
|
2018-10-18 00:47:59 +03:00
|
|
|
# Building extensions is disabled by default.
|
|
|
|
|
|
|
|
# =========================================================
|
|
|
|
# = ChatZilla extension
|
|
|
|
# =========================================================
|
2020-11-05 22:13:45 +03:00
|
|
|
option(
|
|
|
|
"--enable-irc", default=False, help="Enable building of the ChatZilla IRC extension"
|
|
|
|
)
|
|
|
|
|
2018-10-18 00:47:59 +03:00
|
|
|
|
2020-11-05 22:13:45 +03:00
|
|
|
@depends_if("--enable-irc")
|
2018-10-18 00:47:59 +03:00
|
|
|
def irc(arg):
|
|
|
|
return True
|
|
|
|
|
2020-11-05 22:13:45 +03:00
|
|
|
|
|
|
|
set_config("MOZ_IRC", irc)
|
2018-10-18 00:47:59 +03:00
|
|
|
|
|
|
|
# =========================================================
|
|
|
|
# = DebugQA extension
|
|
|
|
# =========================================================
|
2020-11-05 22:13:45 +03:00
|
|
|
option(
|
|
|
|
"--enable-debugqa", default=False, help="Enable building of the DebugQA extension"
|
|
|
|
)
|
|
|
|
|
2018-10-18 00:47:59 +03:00
|
|
|
|
2020-11-05 22:13:45 +03:00
|
|
|
@depends_if("--enable-debugqa")
|
2018-10-18 00:47:59 +03:00
|
|
|
def debugqa(arg):
|
|
|
|
return True
|
|
|
|
|
2017-11-18 20:24:42 +03:00
|
|
|
|
2020-11-05 22:13:45 +03:00
|
|
|
set_config("MOZ_DEBUGQA", debugqa)
|
|
|
|
|
2023-06-19 12:55:09 +03:00
|
|
|
with only_when(target_has_linux_kernel & compile_environment):
|
|
|
|
option(env='MOZ_NO_PIE_COMPAT',
|
|
|
|
help='Enable non-PIE wrapper')
|
|
|
|
|
|
|
|
set_config('MOZ_NO_PIE_COMPAT',
|
|
|
|
depends_if('MOZ_NO_PIE_COMPAT')(lambda _: True))
|
|
|
|
|
2022-01-29 20:53:21 +03:00
|
|
|
# Miscellaneous programs
|
|
|
|
# ==============================================================
|
|
|
|
|
|
|
|
check_prog("ZIP", ("zip",))
|
|
|
|
|
2022-05-26 23:22:53 +03:00
|
|
|
include("../build/moz.configure/gecko_source.configure")
|
|
|
|
|
2020-11-05 22:13:45 +03:00
|
|
|
include("../mailnews/moz.configure")
|
|
|
|
include("../../toolkit/moz.configure")
|