diff options
Diffstat (limited to 'browser/config/mozconfigs/win64')
25 files changed, 371 insertions, 0 deletions
diff --git a/browser/config/mozconfigs/win64/add-on-devel b/browser/config/mozconfigs/win64/add-on-devel new file mode 100644 index 0000000000..d6ca2862de --- /dev/null +++ b/browser/config/mozconfigs/win64/add-on-devel @@ -0,0 +1,10 @@ +. $topsrcdir/browser/config/mozconfigs/win64/nightly + +#add-on signing is checked but not enforced +MOZ_REQUIRE_SIGNING=0 + +ac_add_options --with-branding=browser/branding/unofficial +ac_add_options --enable-update-channel=default + +#Need this to prevent name conflicts with the normal nightly build packages +export MOZ_PKG_SPECIAL=add-on-devel diff --git a/browser/config/mozconfigs/win64/beta b/browser/config/mozconfigs/win64/beta new file mode 100644 index 0000000000..ab3613c373 --- /dev/null +++ b/browser/config/mozconfigs/win64/beta @@ -0,0 +1,7 @@ +. "$topsrcdir/build/mozconfig.win-common" +. "$topsrcdir/browser/config/mozconfigs/win64/common-win64" +. "$topsrcdir/browser/config/mozconfigs/win64/common-opt" + +ac_add_options --enable-official-branding + +. "$topsrcdir/build/mozconfig.common.override" diff --git a/browser/config/mozconfigs/win64/code-coverage b/browser/config/mozconfigs/win64/code-coverage new file mode 100644 index 0000000000..9631a36096 --- /dev/null +++ b/browser/config/mozconfigs/win64/code-coverage @@ -0,0 +1,29 @@ +. "$topsrcdir/build/mozconfig.win-common" +. "$topsrcdir/browser/config/mozconfigs/common" +. "$topsrcdir/browser/config/mozconfigs/win64/common-win64" + +ac_add_options --enable-optimize +ac_add_options --enable-debug-symbols=-g1 +ac_add_options --disable-sandbox +ac_add_options --disable-warnings-as-errors +ac_add_options --enable-coverage +ac_add_options --enable-rust-tests + +# Needed to enable breakpad in application.ini +export MOZILLA_OFFICIAL=1 + +# Package js shell. +export MOZ_PACKAGE_JSSHELL=1 + +if [ -d "$MOZ_FETCHES_DIR/clang" ]; then + CLANG_LIB_DIR="$(cd $MOZ_FETCHES_DIR/clang/lib/clang/* && cd lib/windows && pwd)" + + export LIB=$LIB:$CLANG_LIB_DIR + export LDFLAGS="clang_rt.profile-x86_64.lib" +fi + +export RUSTFLAGS="-Ccodegen-units=1 -Zprofile -Cpanic=abort -Zpanic_abort_tests -Clink-dead-code -Coverflow-checks=off" +export RUSTDOCFLAGS="-Cpanic=abort" + +. "$topsrcdir/build/mozconfig.clang-cl" +. "$topsrcdir/build/mozconfig.common.override" diff --git a/browser/config/mozconfigs/win64/common-opt b/browser/config/mozconfigs/win64/common-opt new file mode 100644 index 0000000000..adde1b2615 --- /dev/null +++ b/browser/config/mozconfigs/win64/common-opt @@ -0,0 +1,22 @@ +# This file is sourced by the nightly, beta, and release mozconfigs. + +. "$topsrcdir/browser/config/mozconfigs/common" + +ac_add_options --enable-update-channel=${MOZ_UPDATE_CHANNEL} + +if test `uname -s` != Linux; then +APIKEYDIR="${APIKEYDIR:-${WORKSPACE}}" +else +APIKEYDIR="${APIKEYDIR:-/builds}" +fi + +ac_add_options --with-google-location-service-api-keyfile=${APIKEYDIR}/gls-gapi.data +ac_add_options --with-google-safebrowsing-api-keyfile=${APIKEYDIR}/sb-gapi.data + +ac_add_options --with-mozilla-api-keyfile=${APIKEYDIR}/mozilla-desktop-geoloc-api.key + +# Needed to enable breakpad in application.ini +export MOZILLA_OFFICIAL=1 + +# Package js shell. +export MOZ_PACKAGE_JSSHELL=1 diff --git a/browser/config/mozconfigs/win64/common-win64 b/browser/config/mozconfigs/win64/common-win64 new file mode 100644 index 0000000000..1f8c9c321f --- /dev/null +++ b/browser/config/mozconfigs/win64/common-win64 @@ -0,0 +1,31 @@ +# This file is used by all Win64 builds + +ac_add_options --target=x86_64-pc-mingw32 + +. $topsrcdir/build/win64/mozconfig.vs-latest + +if test `uname -s` = Linux; then + +# Configure expects executables for check_prog, so set the relevant files +# as executable on the first evaluation of the mozconfig where they exist. +if [ -d "${VSPATH}" -a ! -x "${VSPATH}/VC/bin/Hostx64/x64/cl.exe" ]; then + find "${VSPATH}" -type f -name \*.exe -exec chmod +x {} \; +fi +export MAKENSISU="${MOZ_FETCHES_DIR}/nsis-3.01/makensis.exe" +if [ -d "${MAKENSISU%/*}" -a ! -x "${MAKENSISU}" ]; then + chmod +x "${MAKENSISU}" +fi +export UPX="${MOZ_FETCHES_DIR}/upx-3.95-win64/upx.exe" +if [ -f "${UPX}" ]; then + chmod +x "${UPX}" +fi +mk_add_options "export PATH=${VSPATH}/VC/bin/Hostx64/x64:${MOZ_FETCHES_DIR}/nsis-3.01:${PATH}" + +unset VC_PATH + +fi + +pdbstr="${MOZ_FETCHES_DIR}/pdbstr/pdbstr.exe" +if [ -f "${pdbstr}" ]; then + chmod +x "${pdbstr}" +fi diff --git a/browser/config/mozconfigs/win64/debug b/browser/config/mozconfigs/win64/debug new file mode 100644 index 0000000000..a00c407529 --- /dev/null +++ b/browser/config/mozconfigs/win64/debug @@ -0,0 +1,15 @@ +. "$topsrcdir/build/mozconfig.win-common" +. "$topsrcdir/browser/config/mozconfigs/common" +. "$topsrcdir/browser/config/mozconfigs/win64/common-win64" + +ac_add_options --enable-debug + +# Needed to enable breakpad in application.ini +export MOZILLA_OFFICIAL=1 + +# Package js shell. +export MOZ_PACKAGE_JSSHELL=1 + +ac_add_options --with-branding=browser/branding/nightly + +. "$topsrcdir/build/mozconfig.common.override" diff --git a/browser/config/mozconfigs/win64/debug-asan b/browser/config/mozconfigs/win64/debug-asan new file mode 100644 index 0000000000..bfa36daadd --- /dev/null +++ b/browser/config/mozconfigs/win64/debug-asan @@ -0,0 +1,16 @@ +. "$topsrcdir/build/mozconfig.win-common" +. "$topsrcdir/browser/config/mozconfigs/common" +. "$topsrcdir/browser/config/mozconfigs/win64/common-win64" + +ac_add_options --enable-debug +ac_add_options --enable-optimize="-O1" + +. "$topsrcdir/build/win64/mozconfig.asan" + +export MOZ_PACKAGE_JSSHELL=1 +export MOZ_PKG_SPECIAL=asan + +# Disable telemetry +ac_add_options MOZ_TELEMETRY_REPORTING= + +. "$topsrcdir/build/mozconfig.common.override" diff --git a/browser/config/mozconfigs/win64/debug-fuzzing b/browser/config/mozconfigs/win64/debug-fuzzing new file mode 100644 index 0000000000..a4d6931fe0 --- /dev/null +++ b/browser/config/mozconfigs/win64/debug-fuzzing @@ -0,0 +1,11 @@ +. "$topsrcdir/browser/config/mozconfigs/win64/debug" + +# Disable telemetry. All network activity is undesirable in fuzzing. +ac_add_options MOZ_TELEMETRY_REPORTING= + +ac_add_options --enable-fuzzing + +# Need this to prevent name conflicts with the normal nightly build packages +export MOZ_PKG_SPECIAL=fuzzing + +. "$topsrcdir/build/mozconfig.common.override" diff --git a/browser/config/mozconfigs/win64/debug-searchfox b/browser/config/mozconfigs/win64/debug-searchfox new file mode 100644 index 0000000000..56d44b81a1 --- /dev/null +++ b/browser/config/mozconfigs/win64/debug-searchfox @@ -0,0 +1,19 @@ +MOZ_AUTOMATION_BUILD_SYMBOLS=0 +MOZ_AUTOMATION_CHECK=0 + +. "$topsrcdir/build/mozconfig.win-common" +. "$topsrcdir/browser/config/mozconfigs/common" +. "$topsrcdir/browser/config/mozconfigs/win64/common-win64" + +ac_add_options --enable-optimize +ac_add_options --enable-debug + +# Save rust analysis (this requires unlocking the unstable features, +# which is done in the taskcluster task definition via RUSTC_BOOTSTRAP) +export RUSTFLAGS="-Zsave-analysis" + +ac_add_options --enable-clang-plugin +ac_add_options --enable-mozsearch-plugin + +. "$topsrcdir/build/mozconfig.clang-cl" +. "$topsrcdir/build/mozconfig.common.override" diff --git a/browser/config/mozconfigs/win64/devedition b/browser/config/mozconfigs/win64/devedition new file mode 100644 index 0000000000..3842c35407 --- /dev/null +++ b/browser/config/mozconfigs/win64/devedition @@ -0,0 +1,10 @@ +. "$topsrcdir/build/mozconfig.win-common" +. "$topsrcdir/browser/config/mozconfigs/win64/common-win64" +. "$topsrcdir/browser/config/mozconfigs/win64/common-opt" + +# Add-on signing is not required for DevEdition +MOZ_REQUIRE_SIGNING=0 + +ac_add_options --with-branding=browser/branding/aurora + +. "$topsrcdir/build/mozconfig.common.override" diff --git a/browser/config/mozconfigs/win64/l10n-mozconfig b/browser/config/mozconfigs/win64/l10n-mozconfig new file mode 100644 index 0000000000..c8c1368a41 --- /dev/null +++ b/browser/config/mozconfigs/win64/l10n-mozconfig @@ -0,0 +1,17 @@ +. "$topsrcdir/browser/config/mozconfigs/common" +. "$topsrcdir/browser/config/mozconfigs/win64/common-win64" +. "$topsrcdir/build/mozconfig.no-compile" + +ac_add_options --enable-update-channel=${MOZ_UPDATE_CHANNEL} +ac_add_options --enable-official-branding + +ac_add_options --disable-nodejs +unset NODEJS + +export MOZILLA_OFFICIAL=1 + +# Don't autoclobber l10n, as this can lead to missing binaries and broken builds +# Bug 1283438 +mk_add_options AUTOCLOBBER= + +. "$topsrcdir/build/mozconfig.common.override" diff --git a/browser/config/mozconfigs/win64/l10n-mozconfig-devedition b/browser/config/mozconfigs/win64/l10n-mozconfig-devedition new file mode 100644 index 0000000000..26dcfea7b3 --- /dev/null +++ b/browser/config/mozconfigs/win64/l10n-mozconfig-devedition @@ -0,0 +1,17 @@ +. "$topsrcdir/browser/config/mozconfigs/common" +. "$topsrcdir/browser/config/mozconfigs/win64/common-win64" +. "$topsrcdir/build/mozconfig.no-compile" + +ac_add_options --enable-update-channel=${MOZ_UPDATE_CHANNEL} +ac_add_options --with-branding=browser/branding/aurora + +ac_add_options --disable-nodejs +unset NODEJS + +export MOZILLA_OFFICIAL=1 + +# Don't autoclobber l10n, as this can lead to missing binaries and broken builds +# Bug 1283438 +mk_add_options AUTOCLOBBER= + +. "$topsrcdir/build/mozconfig.common.override" diff --git a/browser/config/mozconfigs/win64/mingwclang b/browser/config/mozconfigs/win64/mingwclang new file mode 100755 index 0000000000..76ff671943 --- /dev/null +++ b/browser/config/mozconfigs/win64/mingwclang @@ -0,0 +1,59 @@ +# Sets: +# MOZ_AUTOMATION flags +# SOCORRO_SYMBOL_UPLOAD_TOKEN_FILE - shouldn't be used? +. "$topsrcdir/build/mozconfig.win-common" + +# Sets: +# build/mozconfig.common +# AUTOCLOBBER=1 +# --enable-crashreporter +# --enable-release +# MOZ_ADDON_SIGNING +# MOZ_REQUIRE_SIGNING +# --enable-js-shell +# build/mozconfig.automation +# MOZ_AUTOMATION_ flags +. "$topsrcdir/browser/config/mozconfigs/common" + +export MOZ_PACKAGE_JSSHELL=1 + +# MinGW Stuff +ac_add_options --target=x86_64-w64-mingw32 +ac_add_options --with-toolchain-prefix=x86_64-w64-mingw32- + +ac_add_options --disable-warnings-as-errors +mk_add_options "export WIDL_TIME_OVERRIDE=0" + +# This replicates Tor's configuration +ac_add_options --enable-proxy-bypass-protection + +# These aren't supported on mingw at this time +ac_add_options --disable-webrtc # Bug 1393901 +ac_add_options --disable-geckodriver # Bug 1489320 +ac_add_options --disable-update-agent # Bug 1561797 +ac_add_options --disable-default-browser-agent # WinToast does not build on mingw + +# Find our toolchain +HOST_CC="$MOZ_FETCHES_DIR/clang/bin/clang" +HOST_CXX="$MOZ_FETCHES_DIR/clang/bin/clang++" +CC="$MOZ_FETCHES_DIR/clang/bin/x86_64-w64-mingw32-clang" +CXX="$MOZ_FETCHES_DIR/clang/bin/x86_64-w64-mingw32-clang++" +CXXFLAGS="-fms-extensions" +CFLAGS="$CFLAGS -fcrash-diagnostics-dir=${UPLOAD_PATH}" +CXXFLAGS="$CXXFLAGS -fcrash-diagnostics-dir=${UPLOAD_PATH}" + +# For Stylo +BINDGEN_CFLAGS="-I$MOZ_FETCHES_DIR/clang/x86_64-w64-mingw32/include/c++/v1 -I$MOZ_FETCHES_DIR/clang/x86_64-w64-mingw32/include" + +# We want to make sure we use binutils and other binaries in the tooltool +# package. +mk_add_options "export PATH=$MOZ_FETCHES_DIR/clang/bin:$MOZ_FETCHES_DIR/mingw32/bin:$MOZ_FETCHES_DIR/wine/bin:$MOZ_FETCHES_DIR/upx/bin:$MOZ_FETCHES_DIR/fxc2/bin:$MOZ_FETCHES_DIR/binutils/bin:$PATH" + +LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}$MOZ_FETCHES_DIR/mingw32/lib64:$MOZ_FETCHES_DIR/clang/lib +mk_add_options "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH" + +# Do not include the visual studio related mozconfigs of course + +ac_add_options --with-branding=browser/branding/nightly + +. "$topsrcdir/build/mozconfig.common.override" diff --git a/browser/config/mozconfigs/win64/mingwclang-debug b/browser/config/mozconfigs/win64/mingwclang-debug new file mode 100644 index 0000000000..d4de97a5b8 --- /dev/null +++ b/browser/config/mozconfigs/win64/mingwclang-debug @@ -0,0 +1,3 @@ +. "$topsrcdir/browser/config/mozconfigs/win64/mingwclang" + +ac_add_options --enable-debug diff --git a/browser/config/mozconfigs/win64/nightly b/browser/config/mozconfigs/win64/nightly new file mode 100644 index 0000000000..a4cf517613 --- /dev/null +++ b/browser/config/mozconfigs/win64/nightly @@ -0,0 +1,7 @@ +. "$topsrcdir/build/mozconfig.win-common" +. "$topsrcdir/browser/config/mozconfigs/win64/common-win64" +. "$topsrcdir/browser/config/mozconfigs/win64/common-opt" + +ac_add_options --with-branding=browser/branding/nightly + +. "$topsrcdir/build/mozconfig.common.override" diff --git a/browser/config/mozconfigs/win64/nightly-asan b/browser/config/mozconfigs/win64/nightly-asan new file mode 100644 index 0000000000..59a6e7eea5 --- /dev/null +++ b/browser/config/mozconfigs/win64/nightly-asan @@ -0,0 +1,16 @@ +. "$topsrcdir/build/mozconfig.win-common" +. "$topsrcdir/browser/config/mozconfigs/common" +. "$topsrcdir/browser/config/mozconfigs/win64/common-win64" + +ac_add_options --disable-debug +ac_add_options --enable-optimize="-O2 -gline-tables-only" + +. "$topsrcdir/build/win64/mozconfig.asan" + +export MOZ_PACKAGE_JSSHELL=1 +export MOZ_PKG_SPECIAL=asan + +# Disable telemetry +ac_add_options MOZ_TELEMETRY_REPORTING= + +. "$topsrcdir/build/mozconfig.common.override" diff --git a/browser/config/mozconfigs/win64/nightly-asan-reporter b/browser/config/mozconfigs/win64/nightly-asan-reporter new file mode 100644 index 0000000000..c86e6b83d9 --- /dev/null +++ b/browser/config/mozconfigs/win64/nightly-asan-reporter @@ -0,0 +1,18 @@ +. "$topsrcdir/build/mozconfig.win-common" +. "$topsrcdir/browser/config/mozconfigs/win64/common-win64" +. "$topsrcdir/browser/config/mozconfigs/win64/common-opt" + +ac_add_options --disable-debug +ac_add_options --enable-optimize="-O2 -gline-tables-only" +ac_add_options --enable-address-sanitizer-reporter + +. "$topsrcdir/build/win64/mozconfig.asan" + +export MOZ_PKG_SPECIAL=asan-reporter + +ac_add_options --with-branding=browser/branding/nightly + +# Sandboxing is currently not compatible with the way the ASan reporter works +ac_add_options --disable-sandbox + +. "$topsrcdir/build/mozconfig.common.override" diff --git a/browser/config/mozconfigs/win64/nightly-fuzzing-asan b/browser/config/mozconfigs/win64/nightly-fuzzing-asan new file mode 100755 index 0000000000..e0d9d0f178 --- /dev/null +++ b/browser/config/mozconfigs/win64/nightly-fuzzing-asan @@ -0,0 +1,13 @@ +. "$topsrcdir/browser/config/mozconfigs/win64/nightly-asan" + +# Disable telemetry +ac_add_options MOZ_TELEMETRY_REPORTING= + +ac_add_options --disable-crashreporter + +ac_add_options --enable-fuzzing + +# Need this to prevent name conflicts with the normal nightly build packages +export MOZ_PKG_SPECIAL=asan-fuzzing + +. "$topsrcdir/build/mozconfig.common.override" diff --git a/browser/config/mozconfigs/win64/noopt-debug b/browser/config/mozconfigs/win64/noopt-debug new file mode 100644 index 0000000000..a11b25d687 --- /dev/null +++ b/browser/config/mozconfigs/win64/noopt-debug @@ -0,0 +1,9 @@ +MOZ_AUTOMATION_BUILD_SYMBOLS=0 + +# Developers often build with these options for a better debugging experience. +. "$topsrcdir/browser/config/mozconfigs/win64/debug" + +# We add this last to guard against inadvertent changes in the debug config. +# It may conflict with settings from mozconfig.override, but that seems +# unlikely. +ac_add_options --disable-optimize diff --git a/browser/config/mozconfigs/win64/plain-debug b/browser/config/mozconfigs/win64/plain-debug new file mode 100644 index 0000000000..0587a32587 --- /dev/null +++ b/browser/config/mozconfigs/win64/plain-debug @@ -0,0 +1,3 @@ +. $topsrcdir/browser/config/mozconfigs/win64/plain-opt + +ac_add_options --enable-debug diff --git a/browser/config/mozconfigs/win64/plain-opt b/browser/config/mozconfigs/win64/plain-opt new file mode 100644 index 0000000000..06bf0939bd --- /dev/null +++ b/browser/config/mozconfigs/win64/plain-opt @@ -0,0 +1,3 @@ +ac_add_options --target=x86_64-pc-mingw32 + +. $topsrcdir/build/win64/mozconfig.vs-latest diff --git a/browser/config/mozconfigs/win64/profile-generate b/browser/config/mozconfigs/win64/profile-generate new file mode 100644 index 0000000000..7fd41616ab --- /dev/null +++ b/browser/config/mozconfigs/win64/profile-generate @@ -0,0 +1,6 @@ +. $topsrcdir/browser/config/mozconfigs/win64/nightly + +mk_add_options "export MOZ_AUTOMATION_PACKAGE_GENERATED_SOURCES=0" + +ac_add_options --enable-profile-generate=cross +ac_add_options --disable-tests diff --git a/browser/config/mozconfigs/win64/release b/browser/config/mozconfigs/win64/release new file mode 100644 index 0000000000..df6e68bef1 --- /dev/null +++ b/browser/config/mozconfigs/win64/release @@ -0,0 +1,14 @@ +# This make file should be identical to the beta mozconfig, apart from the +# safeguard below + +. "$topsrcdir/build/mozconfig.win-common" +. "$topsrcdir/browser/config/mozconfigs/win64/common-win64" +. "$topsrcdir/browser/config/mozconfigs/win64/common-opt" + +ac_add_options --enable-official-branding + +# safeguard against someone forgetting to re-set EARLY_BETA_OR_EARLIER in +# defines.sh during the beta cycle +export BUILDING_RELEASE=1 + +. "$topsrcdir/build/mozconfig.common.override" diff --git a/browser/config/mozconfigs/win64/rusttests b/browser/config/mozconfigs/win64/rusttests new file mode 100644 index 0000000000..7864648d3c --- /dev/null +++ b/browser/config/mozconfigs/win64/rusttests @@ -0,0 +1,8 @@ +MOZ_AUTOMATION_BUILD_SYMBOLS=0 + +. "$topsrcdir/browser/config/mozconfigs/win64/nightly" + +unset ENABLE_CLANG_PLUGIN + +# Test geckodriver, which isn't built as part of the build jobs +ac_add_options --enable-geckodriver diff --git a/browser/config/mozconfigs/win64/rusttests-debug b/browser/config/mozconfigs/win64/rusttests-debug new file mode 100644 index 0000000000..fe6f374594 --- /dev/null +++ b/browser/config/mozconfigs/win64/rusttests-debug @@ -0,0 +1,8 @@ +MOZ_AUTOMATION_BUILD_SYMBOLS=0 + +. "$topsrcdir/browser/config/mozconfigs/win64/debug" + +unset ENABLE_CLANG_PLUGIN + +# Test geckodriver, which isn't built as part of the build jobs +ac_add_options --enable-geckodriver |