summaryrefslogtreecommitdiffstats
path: root/doc/mozconfig.example
diff options
context:
space:
mode:
authorThomas Groman <tgroman@nuegia.net>2020-05-09 15:46:26 -0700
committerThomas Groman <tgroman@nuegia.net>2020-05-09 15:46:26 -0700
commit4fbdc2cdabcf3cd2ed7c33731e1d009a8f6f5c64 (patch)
tree868c82fd53a261ad7bc1e446a124797be08b4854 /doc/mozconfig.example
parent12ff2f06ad611371200ae5625319b497a7cbfb13 (diff)
downloadwebbrowser-4fbdc2cdabcf3cd2ed7c33731e1d009a8f6f5c64.tar
webbrowser-4fbdc2cdabcf3cd2ed7c33731e1d009a8f6f5c64.tar.gz
webbrowser-4fbdc2cdabcf3cd2ed7c33731e1d009a8f6f5c64.tar.lz
webbrowser-4fbdc2cdabcf3cd2ed7c33731e1d009a8f6f5c64.tar.xz
webbrowser-4fbdc2cdabcf3cd2ed7c33731e1d009a8f6f5c64.zip
updated build documentation to reflect mach changes
Diffstat (limited to 'doc/mozconfig.example')
-rw-r--r--doc/mozconfig.example60
1 files changed, 60 insertions, 0 deletions
diff --git a/doc/mozconfig.example b/doc/mozconfig.example
new file mode 100644
index 0000000..adf03a9
--- /dev/null
+++ b/doc/mozconfig.example
@@ -0,0 +1,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