summaryrefslogtreecommitdiff
path: root/waterfox-g/debian/mozconfig
blob: da1d8d4fdf2224a368a0aa04b07bcebdf5a9c815 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
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