Bug 783551 - Get tooltool running on the b2g on OS X builds. r=respindola
[gecko.git] / allmakefiles.sh
blobc2e6b3b3e2eb0f61e3fb1473bcd5c1ebf2a0dc32
1 #! /bin/sh
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this file,
5 # You can obtain one at http://mozilla.org/MPL/2.0/.
7 # allmakefiles.sh - List of all makefiles.
8 # Appends the list of makefiles to the variable, MAKEFILES.
9 # There is no need to rerun autoconf after adding makefiles.
10 # You only need to run configure.
12 # Turn on exit on error
13 set -o errexit
15 MAKEFILES=""
17 # add_makefiles - Shell function to add makefiles to MAKEFILES
18 add_makefiles() {
19 MAKEFILES="$MAKEFILES $*"
22 if [ "$srcdir" = "" ]; then
23 srcdir=.
26 # Common makefiles used by everyone
27 add_makefiles "
28 mozilla-config.h
29 Makefile
30 build/Makefile
31 build/pgo/Makefile
32 build/pgo/blueprint/Makefile
33 build/pgo/js-input/Makefile
34 config/Makefile
35 config/autoconf.mk
36 config/nspr/Makefile
37 config/doxygen.cfg
38 config/expandlibs_config.py
39 mfbt/Makefile
40 probes/Makefile
41 extensions/Makefile
44 if [ "$MOZ_WEBAPP_RUNTIME" ]; then
45 add_makefiles "
46 webapprt/Makefile
50 if [ ! "$LIBXUL_SDK" ]; then
51 if [ "$STLPORT_SOURCES" ]; then
52 add_makefiles "
53 build/stlport/Makefile
54 build/stlport/stl/config/_android.h
57 add_makefiles "
58 memory/mozalloc/Makefile
59 mozglue/Makefile
60 mozglue/build/Makefile
62 if [ "$MOZ_JEMALLOC" ]; then
63 add_makefiles "
64 memory/jemalloc/Makefile
67 if [ "$MOZ_MEMORY" ]; then
68 add_makefiles "
69 memory/mozjemalloc/Makefile
70 memory/build/Makefile
73 if [ "$MOZ_WIDGET_TOOLKIT" = "android" ]; then
74 add_makefiles "
75 other-licenses/android/Makefile
76 other-licenses/skia-npapi/Makefile
77 mozglue/android/Makefile
80 if [ "$MOZ_LINKER" ]; then
81 add_makefiles "
82 mozglue/linker/Makefile
87 if [ "$OS_ARCH" = "WINNT" ]; then
88 add_makefiles "
89 build/win32/Makefile
90 build/win32/crashinjectdll/Makefile
94 if [ "$OS_ARCH" != "WINNT" -a "$OS_ARCH" != "OS2" ]; then
95 add_makefiles "
96 build/unix/Makefile
98 if [ "$STDCXX_COMPAT" ]; then
99 add_makefiles "
100 build/unix/stdc++compat/Makefile
103 if [ "$USE_ELF_HACK" ]; then
104 add_makefiles "
105 build/unix/elfhack/Makefile
110 if [ "$COMPILER_DEPEND" = "" -a "$MOZ_NATIVE_MAKEDEPEND" = "" ]; then
111 add_makefiles "
112 config/mkdepend/Makefile
116 if [ "$ENABLE_MARIONETTE" ]; then
117 add_makefiles "
118 testing/marionette/Makefile
119 testing/marionette/components/Makefile
123 if [ "$ENABLE_TESTS" ]; then
124 add_makefiles "
125 config/makefiles/test/Makefile
126 config/tests/makefiles/autodeps/Makefile
127 config/tests/src-simple/Makefile
128 mfbt/tests/Makefile
130 if [ ! "$LIBXUL_SDK" ]; then
131 add_makefiles "
132 mozglue/tests/Makefile
135 if [ "$_MSC_VER" -a "$OS_TEST" != "x86_64" ]; then
136 add_makefiles "
137 build/win32/vmwarerecordinghelper/Makefile
140 if [ "$OS_ARCH" != "WINNT" -a "$OS_ARCH" != "OS2" ]; then
141 add_makefiles "
142 build/unix/test/Makefile
145 if [ "$MOZ_WIDGET_TOOLKIT" = "android" ]; then
146 add_makefiles "
147 build/mobile/robocop/Makefile
148 build/mobile/sutagent/android/Makefile
149 build/mobile/sutagent/android/fencp/Makefile
150 build/mobile/sutagent/android/ffxcp/Makefile
151 build/mobile/sutagent/android/watcher/Makefile
156 # Application-specific makefiles
157 if [ -f "${srcdir}/${MOZ_BUILD_APP}/makefiles.sh" ]; then
158 . "${srcdir}/${MOZ_BUILD_APP}/makefiles.sh"
161 # Extension makefiles
162 for extension in $MOZ_EXTENSIONS; do
163 if [ -f "${srcdir}/extensions/${extension}/makefiles.sh" ]; then
164 . "${srcdir}/extensions/${extension}/makefiles.sh"
166 done
168 # Toolkit makefiles
169 if [ ! "$LIBXUL_SDK" ]; then
170 . "${srcdir}/toolkit/toolkit-makefiles.sh"
173 # Services makefiles
174 . "${srcdir}/services/makefiles.sh"
176 # Turn off exit on error, since it breaks the rest of configure
177 set +o errexit