summaryrefslogtreecommitdiff
path: root/waterfox-g/debian/mozconfig
diff options
context:
space:
mode:
Diffstat (limited to 'waterfox-g/debian/mozconfig')
-rw-r--r--waterfox-g/debian/mozconfig69
1 files changed, 69 insertions, 0 deletions
diff --git a/waterfox-g/debian/mozconfig b/waterfox-g/debian/mozconfig
new file mode 100644
index 0000000..da1d8d4
--- /dev/null
+++ b/waterfox-g/debian/mozconfig
@@ -0,0 +1,69 @@
+if test `lsb_release -sc` = "bionic" || test `lsb_release -sc` = "focal" || test `lsb_release -sc` = "stretch" || test `lsb_release -sc` = "buster"; then
+export NODEJS=/usr/lib/nodejs-mozilla/bin/node
+fi
+
+if test `lsb_release -sc` = "bionic" || test `lsb_release -sc` = "stretch"; then
+export NASM=/usr/lib/nasm-mozilla/bin/nasm
+fi
+
+# For successfull LTO build, we need to use matching LLVM version
+if test `lsb_release -sc` = "bionic" || test `lsb_release -sc` = "focal" || test `lsb_release -sc` = "impish" || test `lsb_release -sc` = "stretch" || test `lsb_release -sc` = "buster" || test `lsb_release -sc` = "bullseye"; then
+export PATH=/usr/lib/llvm-12/bin/:$PATH
+fi
+
+if test `lsb_release -sc` = "kinetic"; then
+export PATH=/usr/lib/llvm-14/bin/:$PATH
+fi
+
+export CC=clang
+export CXX=clang++
+export AR=llvm-ar
+export NM=llvm-nm
+export RANLIB=llvm-ranlib
+export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=system
+
+ac_add_options --prefix=/usr
+
+export MOZ_PGO=1
+
+mk_add_options AUTOCLOBBER=1
+
+ac_add_options --disable-debug
+ac_add_options --disable-debug-symbols
+ac_add_options --disable-crashreporter
+ac_add_options --disable-profiling
+ac_add_options --disable-verify-mar
+ac_add_options --disable-dmd
+ac_add_options --disable-geckodriver
+ac_add_options --disable-bootstrap
+ac_add_options --disable-updater
+ac_add_options --disable-elf-hack
+
+ac_add_options --enable-pulseaudio
+ac_add_options --enable-alsa
+ac_add_options --enable-jack
+ac_add_options --enable-eme=widevine
+ac_add_options --enable-application=browser
+ac_add_options --enable-default-toolkit=cairo-gtk3-wayland
+ac_add_options --enable-hardening
+ac_add_options --enable-optimize
+ac_add_options --enable-rust-simd
+ac_add_options --enable-lto
+ac_add_options --enable-linker=lld
+ac_add_options --enable-jxl
+
+ac_add_options --with-app-name=waterfox-g
+ac_add_options --with-app-basename=Waterfox
+ac_add_options --with-branding=waterfox/browser/branding
+ac_add_options --with-unsigned-addon-scopes=app,system
+ac_add_options --without-wasm-sandboxed-libraries
+ac_add_options --allow-addon-sideload
+ac_add_options --with-version-file-path=$topsrcdir/debian/app_version
+
+export MOZ_REQUIRE_SIGNING=
+export MOZ_INCLUDE_SOURCE_INFO=1
+export MOZ_APP_REMOTINGNAME=waterfox-g
+ac_add_options "MOZ_ALLOW_LEGACY_EXTENSIONS=1"
+
+X=$(($(nproc --all)/2))
+mk_add_options MOZ_MAKE_FLAGS="-j${X%.*}"
bgstack15