summarylogtreecommitdiffstats
path: root/mozconfig.in
blob: 52bd91ef0f080608fb739ac22ade54b4f1b7111e (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
ac_add_options --disable-official-branding
ac_add_options --with-branding=browser/branding/unofficial
export MOZILLA_OFFICIAL=1

mk_add_options MOZ_CO_PROJECT=browser
ac_add_options --enable-application=browser

mk_add_options MOZ_OBJDIR=%SRCDIR%/pmbuild

ac_add_options --disable-installer
ac_add_options --disable-updater

ac_add_options --disable-tests
ac_add_options --disable-mochitests
ac_add_options --disable-debug

ac_add_options --disable-jemalloc
#ac_add_options --enable-jemalloc-lib #does nothing?
ac_add_options --with-pthreads

ac_add_options --enable-strip
ac_add_options --enable-optimize="-O3 -msse2 -mfpmath=sse"

ac_add_options --x-libraries=/usr/lib

# gcc6 doesn't work, explicitly use gcc5
export CC=gcc-5
export CXX=g++-5

# Use python2
mk_add_options PYTHON=/usr/bin/python2

# use multiple job threads to speed up compilation
mk_add_options MOZ_MAKE_FLAGS="-j4"

# disable junk
ac_add_options --disable-accessibility
ac_add_options --disable-codesighs
ac_add_options --disable-gamepad
ac_add_options --disable-logging
ac_add_options --disable-necko-wifi
ac_add_options --disable-parental-controls
ac_add_options --disable-safe-browsing
ac_add_options --disable-webrtc
ac_add_options --disable-websms-backend
ac_add_options --disable-valgrind

# enable useful features
ac_add_options --enable-chrome-format=omni
ac_add_options --enable-gstreamer
ac_add_options --disable-pulseaudio
ac_add_options --disable-startup-notification
ac_add_options --enable-canvas
ac_add_options --enable-svg
ac_add_options --enable-accessibility
ac_add_options --enable-xinerama
ac_add_options --enable-url-classifier

# link to system libraries instead of internal ones
#ac_add_options --with-system-zlib
#ac_add_options --with-system-png
#ac_add_options --with-system-jpeg
#ac_add_options --enable-system-cairo