summaryrefslogtreecommitdiffstats
path: root/doc/mozconfig.example
blob: 11f002110c1220f9e31647c537daf70dda37919c (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
# Where stuff is on the system
mk_add_options PYTHON=/usr/bin/python2
mk_add_options AUTOCONF=/usr/bin/autoconf-2.13
mk_add_options MOZ_OBJDIR=$HOME/build/wbobjects/
ac_add_options --x-libraries=/usr/lib64

# Clear this if not a 64bit build (also see x-libraries option)
_BUILD_64=1

# Set GTK Version to 2 or 3
_GTK_VERSION=2

mk_add_options AUTOCLOBBER=1
ac_add_options --enable-application=webbrowser

# Compiler Optimizations
# Note: add -march=<yourcpufamily> for a CPU optimized build.
# see https://gcc.gnu.org/onlinedocs/gcc/x86-Options.html
#
# Remove "-ftree-parallelize-loops=4 -lgomp -fopenmp" if you
# have trouble compiling with GCC 6 and older
ac_add_options --enable-optimize="-O2 -pipe -ftree-parallelize-loops=4 -lgomp -fopenmp"
ac_add_options --enable-ccache

# Libraries
ac_add_options --enable-default-toolkit=cairo-gtk2
ac_add_options --enable-jemalloc
ac_add_options --enable-strip
ac_add_options --enable-devtools
ac_add_options --with-pthreads
ac_add_options --with-system-libvpx
ac_add_options --enable-hardware-aec-ns
ac_add_options --enable-bundled-fonts

# Features
ac_add_options --disable-tests
ac_add_options --disable-eme
ac_add_options --disable-parental-controls
ac_add_options --disable-accessibility
ac_add_options --disable-gamepad
ac_add_options --disable-necko-wifi
ac_add_options --disable-updater
ac_add_options --disable-sync 
ac_add_options --disable-mozril-geoloc
# !!!WARNING!!! WebRTC is very complex and leaks your IP when using a VPN.
# It is disabled by default for this reason, However enabling is required 
# if you want to use wb for web conferencing. I _strongly_ suggest not using
# a web browser for telecommunication and using something like Mumble or Qtox
# instead, but if you absolutely need it, here it is.
ac_add_options --disable-webrtc

# Audio Subsystems
ac_add_options --disable-pulseaudio
ac_add_options --enable-alsa
ac_add_options --enable-jack

# Misc
export MOZ_PKG_SPECIAL=gtk$_GTK_VERSION