Files
zeekay 6b0493fd54 Rebrand zen-browser to enso-browser
Complete rebranding of desktop browser from Zen Browser to Enso Browser.
Updated surfer.json (app ID, binary name, brands, update hostname),
mozconfig, package.json, all patch files (app identifiers, URLs, macOS
signing), build scripts, flatpak manifest, desktop entry, CI/CD workflows,
localization files, branding assets (new enso circle logo), and all
source code references. Renamed CSS files and updated DOM element IDs.
2026-02-09 22:43:54 -08:00

108 lines
3.1 KiB
Plaintext

# 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/.
# Browser branding
ac_add_options --with-app-name=${binName}
ac_add_options --with-app-basename=Enso
# Localization (Must be an absolute path)
ac_add_options --with-l10n-base="${topsrcdir}/browser/locales"
export MOZ_APP_BASENAME=Enso
export MOZ_BRANDING_DIRECTORY=${brandingDir}
export MOZ_OFFICIAL_BRANDING_DIRECTORY=${brandingDir}
ac_add_options --with-distribution-id=app.enso-browser
# Uncomment if builds are too resource hungry
# mk_add_options MOZ_MAKE_FLAGS="-j4"
# ac_add_options --enable-linker=gold
# Misc
export MOZ_SOURCE_REPO=https://github.com/enso-browser/desktop
export MOZ_SOURCE_CHANGESET=${changeset}
export MOZ_INCLUDE_SOURCE_INFO=1
ac_add_options --enable-application=browser
# Anything except 'SCCACHE_GHA_ENABLED == false'
if ! test "$SCCACHE_GHA_ENABLED" = "false"; then
if test -x "$(command -v sccache)"; then
ac_add_options --with-ccache=sccache
elif test -f "$HOME/.mozbuild/sccache/sccache"; then
ac_add_options --with-ccache="$HOME"/.mozbuild/sccache/sccache
fi
fi
# add safe browsing key if it exists on a file
if test -f "$HOME/.enso-keys/safebrowsing.dat"; then
ac_add_options --with-google-safebrowsing-api-keyfile="$HOME/.enso-keys/safebrowsing.dat"
fi
if test "$ENSO_RELEASE"; then
# TODO: Make this successful in builds
# ac_add_options --enable-clang-plugin
ac_add_options --enable-bootstrap=-sccache
ac_add_options --enable-optimize
ac_add_options --enable-release
ac_add_options --disable-debug
ac_add_options --disable-debug-symbols
ac_add_options --disable-debug-js-modules
ac_add_options --disable-tests
ac_add_options --enable-rust-simd
ac_add_options --enable-wasm-simd
ac_add_options --disable-geckodriver
ac_add_options --disable-rust-tests
if ! test "$ENSO_DISABLE_LTO"; then
# only enable full LTO when ENSO_RELEASE_BRANCH is 'release'
if test "$ENSO_RELEASE_BRANCH" = "release"; then
# TODO: make it "full" once we have the resources to build it
export MOZ_LTO=cross,full
ac_add_options --enable-lto=cross,full
else
export MOZ_LTO=cross,thin
ac_add_options --enable-lto=cross,thin
fi
fi
mk_add_options MOZILLA_OFFICIAL=1
MOZILLA_OFFICIAL=1
export MOZILLA_OFFICIAL=1
mk_add_options AUTOCLOBBER=1
export AUTOCLOBBER=1
export MOZ_PACKAGE_JSSHELL=1
ac_add_options --disable-crashreporter
# Experimental flag, enabled only on nightly for Firefox.
# Should bring in some nice performance improvements,
# but may cause stability issues.
ac_add_options --enable-replace-malloc
fi
ac_add_options --enable-unverified-updates
ac_add_options --enable-jxl
ac_add_options --with-unsigned-addon-scopes=app,system
mk_add_options MOZ_DATA_REPORTING=
mk_add_options MOZ_SERVICES_HEALTHREPORT=
mk_add_options MOZ_TELEMETRY_REPORTING=
ac_add_options MOZ_DATA_REPORTING=
ac_add_options MOZ_TELEMETRY_REPORTING=
# Allow loading unsigned extensions
export MOZ_REQUIRE_SIGNING=
mk_add_options MOZ_REQUIRE_SIGNING=