forked from mozilla-b2g/gonk-misc
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdefault-gecko-config
140 lines (107 loc) · 3.6 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
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
. "$topsrcdir/b2g/config/mozconfigs/common"
ac_add_options --target-build-variant="$TARGET_BUILD_VARIANT"
if [ "$TARGET_BUILD_VARIANT" != "user" ] ; then
ENABLE_MARIONETTE=1
ENABLE_TESTS=1
fi
mk_add_options MOZ_OBJDIR="$GECKO_OBJDIR"
if [ "$TARGET_ARCH" = "x86" ]; then
ac_add_options --target=i686-android-linux
else
ac_add_options --target=arm-linux-androideabi
fi
ac_add_options --with-gonk="$GONK_PATH"
ac_add_options --with-gonk-toolchain-prefix="$GECKO_TOOLS_PREFIX"
ac_add_options --enable-application=b2g
if [ -f "$KAI_GEO_KEY_FILE" ]; then
ac_add_options --with-kaios-geo-api-keyfile="$KAI_GEO_KEY_FILE"
fi
if [ -f "$KAI_GEO_SUBMIT_KEY_FILE" ]; then
ac_add_options --with-kaios-geo-submit-api-keyfile="$KAI_GEO_SUBMIT_KEY_FILE"
fi
if [ -f "$KAI_PUSH_KEY_FILE" ]; then
ac_add_options --with-kaios-push-api-keyfile="$KAI_PUSH_KEY_FILE"
fi
if [ -f "$KAI_APPS_KEY_FILE" ]; then
ac_add_options --with-kaios-apps-api-keyfile="$KAI_APPS_KEY_FILE"
fi
if [ -f "$KAI_METRICS_KEY_FILE" ]; then
ac_add_options --with-kaios-metrics-api-keyfile="$KAI_METRICS_KEY_FILE"
fi
if [ -f "$KAI_CRASHREPORTER_KEY_FILE" ]; then
ac_add_options --with-kaios-crashreporter-api-keyfile="$KAI_CRASHREPORTER_KEY_FILE"
fi
if [ -f "$KAI_LOG_SERVICE_KEY_FILE" ]; then
ac_add_options --with-kaios-log-service-keyfile="$KAI_LOG_SERVICE_KEY_FILE"
fi
if [ -n "$KAI_RELEASE_TAG" ]; then
ac_add_options --with-kaios-release-tag="$KAI_RELEASE_TAG"
fi
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_DUMP_PAINTING:-0}" != "0" ]; then
ac_add_options --enable-dump-painting
fi
ac_add_options --with-ccache
if [ "${DISABLE_JEMALLOC:-0}" != "0" ] ||
[ "${PLATFORM_SDK_VERSION:-0}" -ge "22" -a "$MALLOC_IMPL" != "dlmalloc" ]; then
ac_add_options --disable-jemalloc
fi
if [ "${B2G_VALGRIND:-0}" != "0" ]; then
ac_add_options --enable-valgrind
ac_add_options --enable-profiling
fi
if [ "${MOZ_NON_UNIFIED:-0}" != "0" ] ; then
ac_add_options --disable-unified-compilation
fi
if [ "${B2G_PROFILING:-0}" != "0" ]; then
ac_add_options --enable-profiling
ac_add_options --enable-tasktracer
fi
if [ "$HOST_OS" != "linux" ]; then
ac_add_options --disable-crashreporter
fi
# Always disable Gecko's standard updater since we don't use it.
ac_add_options --disable-updater
# Enable dump() from JS.
export CXXFLAGS="-DMOZ_ENABLE_JS_DUMP $EXTRA_INCLUDE $EXTRA_CXXFLAGS ${CXXFLAGS}"
ac_add_options --with-fpu="$ARCH_ARM_VFP"
if [ "${MOZ_DMD:-0}" != 0 ]; then
ac_add_options --enable-dmd
fi
if [ "${ENABLE_GLOBAL_PRELINK:-0}" != 0 ]; then
# Disable ELF_HACK on B2G for prelink.
ac_add_options --disable-elf-hack
fi
if [ "$TARGET_BUILD_VARIANT" != "user" ] ; then
# Bug 12048 enables TaskTracer, since some device branches do not have
# engineering builds, we should enable profiler and tasktracer for
# both engineering builds and userdebug builds.
ac_add_options --enable-profiling
ac_add_options --enable-tasktracer
fi
if [ -n "$KAI_FONT_CONFIG_FILE" ]; then
ac_add_options --with-kaios-font-config-file="$KAI_FONT_CONFIG_FILE"
fi
ac_add_options --disable-tests
ac_add_options --disable-gamepad
ac_add_options --disable-feeds
ac_add_options --disable-telemetry
ac_add_options --disable-presentation
ac_add_options --enable-fota
ac_add_options --disable-social
ac_add_options --disable-privatebrowsing
if [ "$HAVE_TEE_SUI_SUPPORT" = "true" ]; then
ac_add_options --enable-tee-sui
fi
if [ "$ENABLE_EMBMS" = "true" ]; then
ac_add_options --enable-embms
fi
if [ "$HAVE_TOUCH_SUPPORT" = "true" ]; then
ac_add_options --enable-touch-support
fi