bug 810082 - open popup when invisible click-to-play plugin is scripted r=jaws
[gecko.git] / allmakefiles.sh
blob8135b39a8b8ce9b40d094856caf0ab45b851fb78
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_JEMALLOC3" -o "$MOZ_REPLACE_MALLOC" ] && [ -z "$MOZ_NATIVE_JEMALLOC" ]; then
63 add_makefiles "
64 memory/jemalloc/Makefile
67 if [ "$MOZ_MEMORY" ]; then
68 add_makefiles "
69 memory/Makefile
70 memory/mozjemalloc/Makefile
71 memory/build/Makefile
74 if [ "$MOZ_REPLACE_MALLOC" ]; then
75 add_makefiles "
76 memory/replace/Makefile
78 if [ -z "$MOZ_JEMALLOC3" ]; then
79 add_makefiles "
80 memory/replace/jemalloc/Makefile
84 if [ "$MOZ_REPLACE_MALLOC_LINKAGE" = "dummy library" ]; then
85 add_makefiles "
86 memory/replace/dummy/Makefile
89 if [ "$MOZ_WIDGET_TOOLKIT" = "android" ]; then
90 add_makefiles "
91 other-licenses/android/Makefile
92 other-licenses/skia-npapi/Makefile
93 mozglue/android/Makefile
96 if [ "$MOZ_LINKER" ]; then
97 add_makefiles "
98 mozglue/linker/Makefile
103 if [ "$OS_ARCH" = "WINNT" ]; then
104 add_makefiles "
105 build/win32/Makefile
106 build/win32/crashinjectdll/Makefile
110 if [ "$OS_ARCH" != "WINNT" -a "$OS_ARCH" != "OS2" ]; then
111 add_makefiles "
112 build/unix/Makefile
114 if [ "$STDCXX_COMPAT" ]; then
115 add_makefiles "
116 build/unix/stdc++compat/Makefile
119 if [ "$USE_ELF_HACK" ]; then
120 add_makefiles "
121 build/unix/elfhack/Makefile
126 if [ "$ENABLE_MARIONETTE" ]; then
127 add_makefiles "
128 testing/marionette/Makefile
129 testing/marionette/components/Makefile
133 if [ "$ENABLE_TESTS" ]; then
134 add_makefiles "
135 config/makefiles/test/Makefile
136 config/tests/makefiles/autodeps/Makefile
137 config/tests/src-simple/Makefile
138 mfbt/tests/Makefile
140 if [ ! "$LIBXUL_SDK" ]; then
141 add_makefiles "
142 mozglue/tests/Makefile
145 if [ "$_MSC_VER" -a "$OS_TEST" != "x86_64" ]; then
146 add_makefiles "
147 build/win32/vmwarerecordinghelper/Makefile
150 if [ "$OS_ARCH" != "WINNT" -a "$OS_ARCH" != "OS2" ]; then
151 add_makefiles "
152 build/unix/test/Makefile
155 if [ "$MOZ_WIDGET_TOOLKIT" = "android" ]; then
156 add_makefiles "
157 build/mobile/robocop/Makefile
158 build/mobile/sutagent/android/Makefile
159 build/mobile/sutagent/android/fencp/Makefile
160 build/mobile/sutagent/android/ffxcp/Makefile
161 build/mobile/sutagent/android/watcher/Makefile
166 # Application-specific makefiles
167 if [ -f "${srcdir}/${MOZ_BUILD_APP}/makefiles.sh" ]; then
168 . "${srcdir}/${MOZ_BUILD_APP}/makefiles.sh"
171 # Extension makefiles
172 for extension in $MOZ_EXTENSIONS; do
173 if [ -f "${srcdir}/extensions/${extension}/makefiles.sh" ]; then
174 . "${srcdir}/extensions/${extension}/makefiles.sh"
176 done
178 # Toolkit makefiles
179 if [ ! "$LIBXUL_SDK" ]; then
180 . "${srcdir}/toolkit/toolkit-makefiles.sh"
183 # Services makefiles
184 . "${srcdir}/services/makefiles.sh"
186 # Turn off exit on error, since it breaks the rest of configure
187 set +o errexit