forked from mozilla-b2g/gonk-misc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault-gecko-config
54 lines (41 loc) · 1.38 KB
/
default-gecko-config
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
mk_add_options MOZ_OBJDIR="$GECKO_OBJDIR"
# XXX our build system doesn't seem to respect toplevel -j ...
# hard-coding this sucks
mk_add_options MOZ_MAKE_FLAGS="-s $MAKE_FLAGS"
if [ "$TARGET_ARCH" = "x86" ]; then
ac_add_options --target=i686-android-linux
else
ac_add_options --target=arm-android-eabi
# Disabled for now since this disables enough stripping that our
# system.img on the sgs2 exceeds 100MB and heimdall fails to work right.
#ac_add_options --enable-profiling
fi
ac_add_options --with-gonk="$GONK_PATH"
ac_add_options --with-gonk-toolchain-prefix="$TARGET_TOOLS_PREFIX"
ac_add_options --enable-application=b2g
ac_add_options --enable-debug-symbols
if [ "${B2G_DEBUG:-0}" != "0" ]; then
ac_add_options --enable-debug
fi
if [ "${B2G_NOOPT:-0}" != "0" ]; then
ac_add_options --disable-optimize
fi
if [ "${B2G_PROF:-0}" != "0" ]; then
STRIP_FLAGS="--strip-debug"
ac_add_options --disable-elf-hack
fi
ac_add_options --with-ccache
ENABLE_MARIONETTE=1
if [ "${DISABLE_JEMALLOC:-0}" != "0" ]; then
ac_add_options --disable-jemalloc
fi
if [ "$HOST_OS" != "linux" ]; then
ac_add_options --disable-crashreporter
fi
ac_add_options --enable-updater
#ac_add_options --enable-update-channel=nightly
ac_add_options --enable-update-packaging
ac_add_options --enable-b2g-camera
# Enable dump() from JS.
export CXXFLAGS="-DMOZ_ENABLE_JS_DUMP $EXTRA_INCLUDE"
ac_add_options --with-fpu="$ARCH_ARM_VFP"