forked from BrowserWorks/Waterfox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.mozconfig
81 lines (74 loc) · 2.94 KB
/
.mozconfig
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
69
70
71
72
73
74
75
76
77
78
79
80
81
# One config to rule them all
# macOS Specific Options
if test `uname -s` = Darwin; then
ac_add_options --enable-ccache=sccache
ac_add_options --enable-optimize="-O2 -march=core2 -mtune=core2 -w"
ac_add_options --enable-macos-target=10.9
ac_add_options --with-macos-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk
mk_add_options AUTOCONF=/usr/local/Cellar/autoconf213/2.13/bin/autoconf213
# Windows 10 Specific Options
ac_add_options --disable-xcode-checks
elif test `uname -s` = MINGW32_NT-6.2; then
ac_add_options --enable-ccache=sccache
ac_add_options --disable-maintenance-service
ac_add_options --enable-optimize="-O2 -Qvec -w -clang:-arch:SSE3"
ac_add_options --target=x86_64-pc-mingw32
ac_add_options --with-libclang-path="C:\Program Files\LLVM\bin"
ac_add_options --with-clang-path="C:\Program Files\LLVM\bin\clang.exe"
export WIN32_REDIST_DIR="/c/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Redist/MSVC/14.16.27012/x64/Microsoft.VC141.CRT"
export WIN_UCRT_REDIST_DIR="/c/Program Files (x86)/Windows Kits/10/Redist/ucrt/DLLs/x64"
# Linux Specific Options
elif test `uname -s` = Linux; then
#x86 Specific Options
if test `uname -m` = x86_64; then
if test -d "$HOME/.mozbuild/clang/bin"; then
export CC=$HOME/.mozbuild/clang/bin/clang
export CXX=$HOME/.mozbuild/clang/bin/clang++
else
export CC=clang
export CXX=clang++
fi
if test -f "$HOME/.mozbuild/nasm/nasm"; then
export NASM=$HOME/.mozbuild/nasm/nasm
fi
ac_add_options --enable-optimize="-O2 -march=nocona -mtune=nocona -w"
ac_add_options --target=x86_64-pc-linux-gnu
#ppc64le specific options
elif test `uname -m` = ppc64le; then
export CC=gcc
export CXX=g++
ac_add_options --enable-optimize="-O2 -mcpu=power9"
ac_add_options --target=powerpc64le-unknown-linux-gnu
fi
ac_add_options --enable-pulseaudio
ac_add_options --enable-alsa
fi
if test `uname -s` = MINGW32_NT-6.2; then
X=$(wmic cpu get NumberOfLogicalProcessors /Format:List | cut -d'=' -f2 | xargs)
mk_add_options MOZ_MAKE_FLAGS=-j${X}
else
X=$(getconf NPROCESSORS_ONLN 2>/dev/null || getconf _NPROCESSORS_ONLN 2>/dev/null)
mk_add_options MOZ_MAKE_FLAGS=-j${X}
fi
mk_add_options AUTOCLOBBER=1
mk_add_options MOZ_OBJDIR=objdir-current
export MOZ_REQUIRE_SIGNING=0
export MOZ_INCLUDE_SOURCE_INFO=1
ac_add_options --disable-debug
ac_add_options --disable-dmd
ac_add_options --disable-crashreporter
ac_add_options --disable-profiling
ac_add_options --disable-signmar
ac_add_options --disable-tests
ac_add_options --disable-verify-mar
ac_add_options --enable-application=browser
#ac_add_options --enable-lto
# Stick to the same channel as Dev Edition would be
ac_add_options --enable-update-channel=aurora
ac_add_options --enable-rust-simd
ac_add_options --enable-updater
ac_add_options "MOZ_ALLOW_LEGACY_EXTENSIONS=1"
ac_add_options --with-app-name=waterfox
ac_add_options --with-app-basename=Waterfox
ac_add_options --with-branding=browser/branding/waterfox
ac_add_options --with-distribution-id=net.waterfox