summaryrefslogtreecommitdiff
path: root/librewolf/debian/browser.mozconfig.in
blob: bf1cd99495e991173d9ca79b5553e32ca84dd225 (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
# Please don't use this mozconfig unless you are planning to build
# packages for Debian or a derivative.
ac_add_options --enable-release
ac_add_options --enable-default-toolkit=cairo-gtk3-wayland
ac_add_options --with-google-location-service-api-keyfile=$topsrcdir/debian/google.key
ac_add_options --with-google-safebrowsing-api-keyfile=$topsrcdir/debian/google.key
ac_add_options --with-mozilla-api-keyfile=$topsrcdir/debian/mls.key
%if USE_SYSTEM_ZLIB
ac_add_options --with-system-zlib # MOZ_SYSTEM_ZLIB=1
%endif
ac_add_options --disable-strip
ac_add_options --disable-install-strip
%if USE_SYSTEM_FFI
ac_add_options --enable-system-ffi # MOZ_SYSTEM_FFI=1
%endif
%if USE_SYSTEM_LIBEVENT
ac_add_options --with-system-libevent # MOZ_SYSTEM_LIBEVENT=1
%endif
%if USE_SYSTEM_NSPR
ac_add_options --with-system-nspr # MOZ_SYSTEM_NSPR=1
%endif
%if USE_SYSTEM_NSS
ac_add_options --with-system-nss # MOZ_SYSTEM_NSS=1
%endif
%if USE_SYSTEM_VPX
ac_add_options --with-system-libvpx # MOZ_SYSTEM_LIBVPX=1
%endif
ac_add_options --disable-updater
ac_add_options --with-unsigned-addon-scopes=app,system
ac_add_options --allow-addon-sideload
ac_add_options --enable-alsa
ac_add_options --without-wasm-sandboxed-libraries

# Start of LibreWolf effects
ac_add_options --disable-tests
ac_add_options --disable-debug

ac_add_options --prefix=/usr
ac_add_options --enable-release
ac_add_options --enable-hardening
ac_add_options --enable-rust-simd

# Branding ac_add_options --enable-update-channel=release
ac_add_options --with-app-name=librewolf
ac_add_options --with-app-basename=LibreWolf
ac_add_options --with-branding=browser/branding/librewolf
ac_add_options --with-distribution-id=io.gitlab.librewolf-community
ac_add_options --with-unsigned-addon-scopes=app,system
ac_add_options --allow-addon-sideload

# Features
ac_add_options --enable-jack
ac_add_options --disable-crashreporter

# Disables crash reporting, telemetry and other data gathering tools
mk_add_options MOZ_CRASHREPORTER=0
mk_add_options MOZ_DATA_REPORTING=0
mk_add_options MOZ_SERVICES_HEALTHREPORT=0
mk_add_options MOZ_TELEMETRY_REPORTING=0

# LibreWolf binary release uses clang-11 but Debian builds Firefox with gcc so this is irrelevant.
#export CC='clang-11'
#export CXX='clang++-11'
#export AR=llvm-ar-11
#export NM=llvm-nm-11
#export RANLIB=llvm-ranlib-11

ac_add_options --enable-optimize
bgstack15