|
| 1 | +## mozconfig for compiling r3dfox Browser for Windows natively |
| 2 | + |
| 3 | +##Uncomment PGO for release build |
| 4 | + |
| 5 | +#Uncomment for x86 build |
| 6 | +#ac_add_options --target=i686 |
| 7 | + |
| 8 | +# Please do not redistribute this build with official branding if you are not part of Eclipse Community. |
| 9 | +ac_add_options --with-app-name=r3dfox |
| 10 | +ac_add_options --with-app-basename=r3dfox |
| 11 | +# For potential nightly experimentation enable the below and disable the above. |
| 12 | +#ac_add_options --with-branding=browser/branding/nightly |
| 13 | +#ac_add_options --with-app-name=plasmafox |
| 14 | +#ac_add_options --with-app-basename=Plasmafox |
| 15 | +ac_add_options --enable-official-branding |
| 16 | + |
| 17 | +# Updater stuffs |
| 18 | +ac_add_options --disable-update-agent |
| 19 | +ac_add_options --disable-updater |
| 20 | +# Enable if update server and signatures are figured out |
| 21 | +#ac_add_options --enable-nss-mar |
| 22 | + |
| 23 | +# 16 jobs for 16 cores |
| 24 | +mk_add_options MOZ_MAKE_FLAGS="-j16" |
| 25 | + |
| 26 | +# Build only r3dfox |
| 27 | +ac_add_options --enable-application=browser |
| 28 | +ac_add_options --disable-artifact-builds |
| 29 | +export MOZ_INCLUDE_SOURCE_INFO=1 |
| 30 | +export MOZ_SOURCE_CHANGESET=iloveneedingtobodgechangesetfornoreason |
| 31 | + |
| 32 | +# Optimization settings |
| 33 | +ac_add_options --disable-accessibility |
| 34 | +ac_add_options --disable-debug |
| 35 | +ac_add_options --disable-debug-js-modules |
| 36 | +ac_add_options --disable-debug-symbols |
| 37 | +ac_add_options --disable-tests |
| 38 | +ac_add_options --enable-clang-plugin |
| 39 | +ac_add_options --enable-hardening |
| 40 | +ac_add_options --enable-install-strip |
| 41 | +ac_add_options --enable-jemalloc |
| 42 | +ac_add_options --enable-lto |
| 43 | +ac_add_options --enable-optimize="-Qunused-arguments -O2 -msse2 -Xclang -O3" |
| 44 | +ac_add_options --enable-release |
| 45 | +ac_add_options --enable-rust-simd |
| 46 | +ac_add_options --enable-strip |
| 47 | +MOZ_OPTIMIZE=1 |
| 48 | +export MOZ_OPTIMIZE=1 |
| 49 | +mk_add_options MOZ_OPTIMIZE=1 |
| 50 | +export MOZILLA_OFFICIAL=1 |
| 51 | +export STRIP_FLAGS="--strip-debug --strip-unneeded" |
| 52 | + |
| 53 | +# Media settings |
| 54 | +ac_add_options --enable-av1 |
| 55 | +ac_add_options --enable-jxl |
| 56 | +ac_add_options --enable-raw |
| 57 | +ac_add_options --enable-webrtc |
| 58 | + |
| 59 | +# Add-ons |
| 60 | +ac_add_options --allow-addon-sideload |
| 61 | +ac_add_options --with-unsigned-addon-scopes=app,system |
| 62 | + |
| 63 | +# Client settings |
| 64 | +ac_add_options --disable-backgroundtasks |
| 65 | +ac_add_options --disable-bits-download |
| 66 | +ac_add_options --disable-crashreporter |
| 67 | +ac_add_options --disable-default-browser-agent |
| 68 | +ac_add_options --disable-eme |
| 69 | +ac_add_options --disable-maintenance-service |
| 70 | +ac_add_options --disable-notification-server |
| 71 | +ac_add_options --disable-parental-controls |
| 72 | +#ac_add_options --enable-sandbox |
| 73 | +#ac_add_options --disable-sandbox |
| 74 | +ac_add_options --without-wasm-sandboxed-libraries |
| 75 | +mk_add_options MOZ_CRASHREPORTER=0 |
| 76 | +mk_add_options MOZ_DATA_REPORTING=0 |
| 77 | +mk_add_options MOZ_SERVICES_HEALTHREPORT=0 |
| 78 | +mk_add_options MOZ_TELEMETRY_REPORTING= |
| 79 | +export MOZ_CRASHREPORTER=0 |
| 80 | +export MOZ_DATA_REPORTING=0 |
| 81 | +export MOZ_REQUIRE_SIGNING= |
| 82 | +export MOZ_TELEMETRY_REPORTING= |
| 83 | + |
| 84 | +# Set -Copt-level=3 |
| 85 | +export OPT_LEVEL="3" |
| 86 | +ac_add_options OPT_LEVEL="3" |
| 87 | +export RUSTC_OPT_LEVEL="3" |
| 88 | +ac_add_options RUSTC_OPT_LEVEL="3" |
| 89 | + |
| 90 | +# Enable LTO |
| 91 | +export MOZ_LTO=1 |
| 92 | +ac_add_options MOZ_LTO=1 |
| 93 | +#export MOZ_PGO=1 |
| 94 | +#ac_add_options MOZ_PGO=1 |
| 95 | + |
| 96 | +if test "$GEN_PGO"; then |
| 97 | + ac_add_options --enable-profile-generate |
| 98 | +elif test "$USE_PGO"; then |
| 99 | + ac_add_options --enable-profile-use=cross |
| 100 | +fi |
| 101 | + |
| 102 | +# Compiler, Linker, and Rust flags |
| 103 | +export CFLAGS="-Qunused-arguments -O2 -msse2 /clang:-O3" |
| 104 | +export CPPFLAGS="-Qunused-arguments -O2 -msse2 /clang:-O3" |
| 105 | +export CXXFLAGS="-Qunused-arguments -O2 -msse2 /clang:-O3" |
| 106 | +export LDFLAGS="-Wl,-O3 -msse2" |
| 107 | +POLLY="-mllvm -polly -mllvm -polly-2nd-level-tiling -mllvm -polly-loopfusion-greedy -mllvm -polly-pattern-matching-based-opts -mllvm -polly-position=before-vectorizer -mllvm -polly-vectorizer=stripmine" |
| 108 | +export RUSTFLAGS="-C target-cpu=athlon64 -C target-feature=+sse2 -C codegen-units=1 -Z tune-cpu=athlon64" |
| 109 | +export VERBOSE=1 |
0 commit comments