blob: adf03a9d53b51e40242bc97e6cca880d3de39526 (
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
|
# Where stuff is on the system
mk_add_options PYTHON=/usr/bin/python2
mk_add_options AUTOCONF=/usr/bin/autoconf-2.13
# Clear this if not a 64bit build
_BUILD_64=1
# Set GTK Version to 2 or 3
_GTK_VERSION=2
mk_add_options AUTOCLOBBER=1
mk_add_options MOZ_OBJDIR=/home/$USER/build/wbbuild/
ac_add_options --enable-application=webbrowser
ac_add_options --x-libraries=/usr/lib
# Compiler Optimizations
# Note: add -march=<yourcpufamily> for a CPU optimized build.
# see https://gcc.gnu.org/onlinedocs/gcc/x86-Options.html
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 --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
# Processor architecure specific build options
if [ -n "$_BUILD_64" ]; then
ac_add_options --x-libraries=/usr/lib64
else
ac_add_options --x-libraries=/usr/lib
fi
export MOZ_PKG_SPECIAL=gtk$_GTK_VERSION
|