forked from mozilla-b2g/gonk-misc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault-gecko-config
48 lines (38 loc) · 1.52 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
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 --disable-elf-hack
ac_add_options --enable-debug-symbols
if [ "${B2G_DEBUG:-0}" != "0" ]; then
ac_add_options --enable-debug
fi
ac_add_options --with-ccache
ac_add_options --enable-marionette
# The way we use jemalloc with bionic causes two heaps to be created,
# and external-to-gecko dso's end up using the bionic malloc. This is
# a never-ending source of mismatched allocator pain. Until we figure
# out a way to fully replace malloc/free (possibly by integrating
# jemalloc into bionic), just use bionic malloc.
ac_add_options --disable-jemalloc
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-media-plugins
ac_add_options --enable-omx-plugin
# Enable dump() from JS.
export CXXFLAGS="-DMOZ_ENABLE_JS_DUMP $EXTRA_INCLUDE"