63 lines
2.1 KiB
Bash
63 lines
2.1 KiB
Bash
#!/bin/sh
|
|
export CROSS_BUILD=1
|
|
export MOZ_INCLUDE_SOURCE_INFO=1
|
|
export MOZ_STUB_INSTALLER=1
|
|
export WINEDEBUG=-all
|
|
|
|
if test "$WFX_RELEASE" || test "$WFX_PRE_RELEASE"; then
|
|
ac_add_options --enable-lto=cross
|
|
ac_add_options --enable-optimize="-clang:-march=x86-64-v2 -clang:-mtune=generic -O2 -w"
|
|
ac_add_options --enable-release
|
|
ac_add_options --enable-rust-simd
|
|
ac_add_options RUSTC_OPT_LEVEL=3
|
|
export MOZILLA_OFFICIAL=1
|
|
export RUSTFLAGS="$RUSTFLAGS -Ctarget-cpu=x86-64-v2"
|
|
fi
|
|
|
|
ac_add_options --disable-bits-download
|
|
ac_add_options --disable-crashreporter
|
|
ac_add_options --disable-debug
|
|
ac_add_options --disable-dmd
|
|
ac_add_options --disable-geckodriver
|
|
ac_add_options --disable-maintenance-service
|
|
ac_add_options --disable-parental-controls
|
|
ac_add_options --disable-profiling
|
|
ac_add_options --disable-tests
|
|
|
|
ac_add_options --enable-bootstrap=-clang,-sccache
|
|
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-default-browser-agent
|
|
ac_add_options --enable-install-strip
|
|
ac_add_options --enable-jxl
|
|
if test "$GEN_PGO"; then
|
|
ac_add_options --enable-profile-generate=cross
|
|
elif test "$USE_PGO"; then
|
|
ac_add_options --enable-profile-use=cross
|
|
ac_add_options --with-pgo-jarlog="$GITHUB_WORKSPACE"/en-US.log
|
|
ac_add_options --with-pgo-profile-path="$GITHUB_WORKSPACE"/merged.profdata
|
|
fi
|
|
ac_add_options --enable-strip
|
|
if test "$WFX_RELEASE"; then
|
|
ac_add_options --enable-update-channel=release
|
|
elif test "$WFX_PRE_RELEASE"; then
|
|
ac_add_options --enable-update-channel=beta
|
|
fi
|
|
ac_add_options --enable-unverified-updates
|
|
ac_add_options --enable-updater
|
|
|
|
ac_add_options --target=x86_64-pc-mingw32
|
|
|
|
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 [ -d "$PWD"/waterfox/browser/locales/en-GB ]; then
|
|
ac_add_options --with-l10n-base="$PWD"/waterfox/browser/locales
|
|
fi
|
|
export MOZ_REQUIRE_SIGNING=
|
|
export MOZ_TELEMETRY_REPORTING=
|