forked from BrowserWorks/Waterfox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.mozconfig-mac
59 lines (47 loc) · 2.18 KB
/
.mozconfig-mac
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
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
mk_add_options MOZ_MAKE_FLAGS=-j8
CROSS_CCTOOLS_PATH=$topsrcdir/../osxcross/target
CROSS_SYSROOT=$CROSS_CCTOOLS_PATH/SDK/MacOSX10.11.sdk
CROSS_PRIVATE_FRAMEWORKS=$CROSS_SYSROOT/System/Library/PrivateFrameworks
FLAGS="-target x86_64-apple-darwin15 -B $CROSS_CCTOOLS_PATH/bin -isysroot $CROSS_SYSROOT"
export BINDGEN_CFLAGS="$FLAGS"
export CC="$CROSS_CCTOOLS_PATH/bin/o64-clang $FLAGS"
export CPP="$CROSS_CCTOOLS_PATH/bin/o64-clang $FLAGS -E"
export CXX="$CROSS_CCTOOLS_PATH/bin/o64-clang++ $FLAGS"
export DMG_TOOL=/usr/local/bin/dmg
export DSYMUTIL=$CROSS_CCTOOLS_PATH/bin/dsymutil
export HFS_TOOL=hfsplus
export HOST_CC="$CROSS_CCTOOLS_PATH/bin/o64-clang"
export HOST_CFLAGS="-g"
export HOST_CPP="$CROSS_CCTOOLS_PATH/bin/o64-clang -E"
export HOST_CXX="$CROSS_CCTOOLS_PATH/bin/o64-clang++"
export HOST_CXXFLAGS="-g"
export HOST_LDFLAGS="-g"
export LDFLAGS="-Wl,-syslibroot,$CROSS_SYSROOT -Wl,-dead_strip"
export LLVMCONFIG=/usr/local/bin/llvm-config
export MKFSHFS=mkfs.hfs
export TOOLCHAIN_PREFIX=$CROSS_CCTOOLS_PATH/bin/x86_64-apple-darwin15-
mk_add_options "export LD_LIBRARY_PATH=/usr/local/lib/"
mk_add_options "export REAL_DSYMUTIL=$CROSS_CCTOOLS_PATH/bin/dsymutil"
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-optimize="-O2 -march=core2 -mtune=core2 -w"
ac_add_options --enable-release
ac_add_options --target=x86_64-apple-darwin
# 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 --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
ac_add_options --with-macos-private-frameworks=$CROSS_PRIVATE_FRAMEWORKS
ac_add_options --with-macos-sdk=$CROSS_SYSROOT