Bug 732976 - SingleSourceFactory should generate checksums file. r=ted
[gecko.git] / allmakefiles.sh
blobfcd4f430d67f5453a20f65ab1c5a435da4844a55
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 Makefile
29 build/Makefile
30 build/pgo/Makefile
31 build/pgo/blueprint/Makefile
32 build/pgo/js-input/Makefile
33 config/Makefile
34 config/autoconf.mk
35 config/nspr/Makefile
36 config/doxygen.cfg
37 config/expandlibs_config.py
38 mfbt/Makefile
39 probes/Makefile
40 extensions/Makefile
43 if [ ! "$LIBXUL_SDK" ]; then
44 if [ "$STLPORT_SOURCES" ]; then
45 add_makefiles "
46 build/stlport/Makefile
47 build/stlport/stl/config/_android.h
50 add_makefiles "
51 memory/mozalloc/Makefile
52 mozglue/Makefile
53 mozglue/build/Makefile
55 if [ "$MOZ_MEMORY" ]; then
56 add_makefiles "
57 memory/jemalloc/Makefile
58 memory/build/Makefile
61 if [ "$MOZ_WIDGET_TOOLKIT" = "android" ]; then
62 add_makefiles "
63 other-licenses/android/Makefile
64 other-licenses/skia-npapi/Makefile
65 mozglue/android/Makefile
68 if [ "$MOZ_LINKER" ]; then
69 add_makefiles "
70 mozglue/linker/Makefile
75 if [ "$OS_ARCH" = "WINNT" ]; then
76 add_makefiles "
77 build/win32/Makefile
78 build/win32/crashinjectdll/Makefile
82 if [ "$OS_ARCH" != "WINNT" -a "$OS_ARCH" != "OS2" ]; then
83 add_makefiles "
84 build/unix/Makefile
86 if [ "$USE_ELF_HACK" ]; then
87 add_makefiles "
88 build/unix/elfhack/Makefile
93 if [ "$COMPILER_DEPEND" = "" -a "$MOZ_NATIVE_MAKEDEPEND" = "" ]; then
94 add_makefiles "
95 config/mkdepend/Makefile
99 if [ "$ENABLE_MARIONETTE" ]; then
100 add_makefiles "
101 testing/marionette/Makefile
102 testing/marionette/components/Makefile
103 testing/marionette/tests/Makefile
107 if [ "$ENABLE_TESTS" ]; then
108 add_makefiles "
109 build/autoconf/test/Makefile
110 config/makefiles/test/Makefile
111 config/tests/makefiles/autodeps/Makefile
112 config/tests/src-simple/Makefile
114 if [ ! "$LIBXUL_SDK" ]; then
115 add_makefiles "
116 mozglue/tests/Makefile
119 if [ "$_MSC_VER" -a "$OS_TEST" != "x86_64" ]; then
120 add_makefiles "
121 build/win32/vmwarerecordinghelper/Makefile
124 if [ "$OS_ARCH" != "WINNT" -a "$OS_ARCH" != "OS2" ]; then
125 add_makefiles "
126 build/unix/test/Makefile
129 if [ "$MOZ_WIDGET_TOOLKIT" = "android" ]; then
130 add_makefiles "
131 build/mobile/robocop/Makefile
132 build/mobile/sutagent/android/Makefile
133 build/mobile/sutagent/android/fencp/Makefile
134 build/mobile/sutagent/android/ffxcp/Makefile
135 build/mobile/sutagent/android/watcher/Makefile
140 # Application-specific makefiles
141 if [ -f "${srcdir}/${MOZ_BUILD_APP}/makefiles.sh" ]; then
142 . "${srcdir}/${MOZ_BUILD_APP}/makefiles.sh"
145 # Extension makefiles
146 for extension in $MOZ_EXTENSIONS; do
147 if [ -f "${srcdir}/extensions/${extension}/makefiles.sh" ]; then
148 . "${srcdir}/extensions/${extension}/makefiles.sh"
150 done
152 # Toolkit makefiles
153 if [ ! "$LIBXUL_SDK" ]; then
154 . "${srcdir}/toolkit/toolkit-makefiles.sh"
157 # Services makefiles
158 . "${srcdir}/services/makefiles.sh"
160 # Turn off exit on error, since it breaks the rest of configure
161 set +o errexit