forked from haqistan/torb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.mozconfig-mac
50 lines (41 loc) · 1.83 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
export CROSS_COMPILE=1
SYSROOTDIR=/usr/lib/apple/SDKs/MacOSX10.6.sdk
ROOTDIR="$HOME/build/x-tools/x86_64-apple-darwin10/bin"
FLAGS="-arch i386 -isysroot $SYSROOTDIR"
# Ideally we use the patch provided in
# https://bugzilla.mozilla.org/show_bug.cgi?id=933071 to get rid of our path
# symlinks but for some reason that does not work. While Firefox is not
# complaining with this patch on compile time anymore it won't start...
# CROSS_PRIVATE_FRAMEWORKS=$SYSROOTDIR/System/Library/PrivateFrameworks
CC="$ROOTDIR/x86_64-apple-darwin10-clang $FLAGS"
CXX="$ROOTDIR/x86_64-apple-darwin10-clang++ $FLAGS"
# We need them as configure is looking for i386-apple-darwin10-* which is not
# existing.
RANLIB=$ROOTDIR/x86_64-apple-darwin10-ranlib
AR=$ROOTDIR/x86_64-apple-darwin10-ar
AS=$ROOTDIR/x86_64-apple-darwin10-as
LD=$ROOTDIR/x86_64-apple-darwin10-ld
STRIP=$ROOTDIR/x86_64-apple-darwin10-strip
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-macos
mk_add_options MOZ_APP_DISPLAYNAME="Tor Browser"
mk_add_options MOZILLA_OFFICIAL=1
mk_add_options BUILD_OFFICIAL=1
ac_add_options --target=i386-apple-darwin10
ac_add_options --enable-application=browser
ac_add_options --enable-strip
ac_add_options --enable-official-branding
ac_add_options --enable-optimize
ac_add_options --disable-debug
# See above for a reason why this is currently disabled
# ac_add_options --with-macos-private-frameworks=$CROSS_PRIVATE_FRAMEWORKS
ac_add_options --enable-tor-browser-update
ac_add_options --enable-update-packaging
# We do not use signed MAR files yet (Mozilla uses them on Windows only).
ac_add_options --disable-verify-mar
# ICU seems still to have cross-compiling issues:
ac_add_options --without-intl-api
ac_add_options --disable-crashreporter
ac_add_options --disable-maintenance-service
ac_add_options --disable-webrtc
ac_add_options --disable-tests
# ac_add_options --disable-ctypes