Files
tubestation/.mozconfig-x86_64-pc-linux-gnu
Alex Kontos 2f981267c7 style: format mozconfig's with ShellCheck
(cherry picked from commit 3e3d5e5afbd23caf9b8fa5bbb35b5504cb3b24ed)
2025-11-06 14:13:09 +00:00

60 lines
1.8 KiB
Bash

#!/bin/sh
if test -d "$HOME/.mozbuild/clang/bin"; then
export CC="$HOME"/.mozbuild/clang/bin/clang
export CXX="$HOME"/.mozbuild/clang/bin/clang++
else
export CC=clang
export CXX=clang++
fi
if test -f "$HOME/.mozbuild/nasm/nasm"; then
export NASM="$HOME"/.mozbuild/nasm/nasm
fi
if test "$WFX_RELEASE"; then
ac_add_options --enable-lto
ac_add_options --enable-optimize="-O3 -march=core2 -mtune=haswell -w"
ac_add_options --enable-release
ac_add_options --enable-rust-simd
ac_add_options RUSTC_OPT_LEVEL=3
export RUSTFLAGS="$RUSTFLAGS -Ctarget-cpu=core2"
fi
ac_add_options --disable-crashreporter
ac_add_options --disable-debug
ac_add_options --disable-dmd
ac_add_options --disable-geckodriver
ac_add_options --disable-profiling
ac_add_options --disable-tests
ac_add_options --disable-verify-mar
ac_add_options --enable-alsa
ac_add_options --enable-application=browser
ac_add_options --enable-bootstrap
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
ac_add_options --enable-install-strip
ac_add_options --enable-pulseaudio
ac_add_options --enable-strip
ac_add_options --enable-updater
ac_add_options --target=x86_64-pc-linux-gnu
ac_add_options --with-app-basename=Waterfox
ac_add_options --with-app-name=waterfox
ac_add_options --with-branding=waterfox/browser/branding
ac_add_options --with-distribution-id=net.waterfox
if test -f "$PWD/browser/locales/l10n"; then
ac_add_options --with-l10n-base="$PWD"/browser/locales/l10n
fi
if test -f "$PWD/mozilla-api"; then
ac_add_options --with-mozilla-api-keyfile="$PWD"/mozilla-api
fi
export MOZ_INCLUDE_SOURCE_INFO=1
mk_add_options AUTOCLOBBER=1
export MOZ_REQUIRE_SIGNING=