1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
6 # This is the list of configs that you can pass to mb; each config
7 # represents a particular combination of GYP_DEFINES/gn args that
8 # we must support. A given config *may* be platform-specific but
9 # is not necessarily so (i.e., we might have mac, win, and linux
10 # bots all using the 'gn_release_bot' config).
12 'android_cast_gyp_debug_static_bot': ['android', 'cast', 'gyp', 'debug_static_bot'],
13 'android_clang_asan_gyp_debug_bot': ['android', 'clang', 'asan', 'gyp', 'debug_bot'],
14 'android_gn_debug_bot': ['android', 'gn', 'debug_bot'],
15 'android_gn_release_bot': ['android', 'gn', 'release_bot'],
16 'android_gn_release_trybot': ['android', 'gn', 'release_trybot'],
17 'android_gyp_debug_bot': ['android', 'gyp', 'debug_bot'],
18 'android_gyp_debug_static_bot': ['android', 'gyp', 'debug_static_bot'],
19 'android_gyp_debug_static_bot_arm64': ['android', 'gyp', 'debug_static_bot', 'arm64'],
20 'android_gyp_release_bot': ['android', 'gyp', 'release_bot'],
21 'android_gyp_release_trybot': ['android', 'gyp', 'release_trybot'],
22 'cast_gyp_release_bot': ['cast', 'gyp', 'release_bot'],
23 'chromeos_gn_debug_bot': ['chromeos', 'gn', 'debug_bot'],
24 'chromeos_gn_release_bot': ['chromeos', 'gn', 'release_bot'],
25 'chromeos_gn_release_trybot': ['chromeos', 'gn', 'release_trybot'],
26 'dev_gn_debug': ['gn', 'debug', 'shared', 'full_symbols'],
27 'dev_gn_release': ['gn', 'release', 'shared'],
28 'dev_gyp_debug': ['gyp', 'debug', 'shared', 'full_symbols'],
29 'dev_gyp_release': ['gyp', 'release', 'shared'],
30 'gn_debug_bot': ['gn', 'debug_bot'],
31 'gn_debug_bot_x86': ['gn', 'debug_bot', 'x86'],
32 'gn_debug_static_bot': ['gn', 'debug_static_bot'],
33 'gn_linux_upload': ['gn_linux_upload'],
34 'gn_release_bot': ['gn', 'release_bot'],
35 'gn_release_bot_x86': ['gn', 'release_bot', 'x86'],
36 'gn_release_trybot': ['gn', 'release_trybot'],
37 'gn_release_trybot_x86': ['gn', 'release_trybot', 'x86'],
38 'gyp_debug_bot': ['gyp', 'debug_bot'],
39 'gyp_debug_bot_no_symbols_x86': ['gyp', 'debug_bot', 'no_symbols', 'x86'],
40 'gyp_release_bot': ['gyp', 'release_bot'],
41 'gyp_release_bot_arm': ['gyp', 'release_bot', 'arm'],
42 'gyp_release_trybot': ['gyp', 'release_trybot'],
43 'swarming_gyp_debug_bot': ['swarming', 'gyp', 'debug_bot'],
44 'swarming_gyp_debug_bot_x86': ['swarming', 'gyp', 'debug_bot', 'x86'],
45 'swarming_gyp_release_bot': ['swarming', 'gyp', 'release_bot'],
46 'swarming_gyp_release_trybot': ['swarming', 'gyp', 'release_trybot'],
47 'swarming_gpu_tests_gyp_release_trybot': ['swarming', 'gpu_tests', 'gyp', 'release_trybot'],
49 # clang/win doesn't work with goma yet, so this can't use debug_bot:
50 'win_clang_debug_bot': ['gn', 'clang', 'debug', 'shared', 'minimal_symbols'],
53 # This is a list of configs that do not actually exist on any bot
54 # but are used so commonly by devs that we must support them.
55 'common_dev_configs': [
62 # This is a list of configs that some private (not publicly accessible)
63 # bot somewhere uses and that we must support. Ideally we should actually
64 # have a bot for each of these on the public waterfall. Each config should
65 # at least have a contact listed.
69 # This is a list of configs that are not commonly used by that we should
70 # make some effort to support, but if it breaks that is not the end of
71 # the world. Each config should have a contact listed, and we expect the
72 # contact to be on the hook for fixing the config.
73 'unsupported_configs': [
76 # This is a dict mapping a given 'mixin' name to a dict of settings that
77 # mb should use. See //tools/mb/docs/user_guide.md for more information.
80 'gn_args': 'target_os="android"',
81 'gyp_defines': 'OS=android',
85 'gn_args': 'target_cpu="arm"',
86 'gyp_defines': 'target_arch=arm',
90 'gn_args': 'target_cpu="arm64"',
91 'gyp_defines': 'target_arch=arm64',
95 'gn_args': 'is_asan=true',
96 'gyp_defines': 'asan=1',
100 'gn_args': '# TODO: Need the GN equivalents for a Chromecast build.',
101 'gyp_defines': 'chromecast=1',
105 'gn_args': 'target_os="chromeos"',
106 'gyp_defines': 'chromeos=1',
110 'gn_args': 'is_clang=true',
111 'gyp_defines': 'clang=1',
114 'dcheck_always_on': {
115 'gn_args': 'dcheck_always_on=true',
116 'gyp_defines': 'dcheck_always_on=1',
120 'gn_args': 'is_debug=true',
121 'gyp_config': 'Debug',
124 'debug_bot': {'mixins': ['debug', 'shared', 'minimal_symbols', 'goma']},
126 'debug_static_bot': {
127 'mixins': ['debug', 'static', 'minimal_symbols', 'goma']
131 'gn_args': 'symbol_level=2',
132 'gyp_defines': 'fastbuild=0',
138 # We don't want to require a runtime dependency on glib in the
139 # GN binary; ideally we could just turn glib off, but that doesn't
140 # actually work, so we need to pretend to be doing an ozone build
141 # in order for the flag to actually take effect.
142 'gn_args': 'use_ozone=true use_glib=false',
145 'gn': {'type': 'gn'},
148 'gn_args': 'use_goma=true goma_dir="$(goma_dir)"',
149 'gyp_defines': 'goma=1 gomadir=$(goma_dir)',
152 'gyp': {'type': 'gyp'},
155 'gn_args': 'symbol_level=1',
156 'gyp_defines': 'fastbuild=1',
160 'gn_args': 'symbol_level=0',
161 'gyp_defines': 'fastbuild=2',
165 'gn_args': 'is_debug=false',
166 'gyp_config': 'Release',
170 'mixins': ['release', 'static', 'minimal_symbols', 'goma'],
174 'mixins': ['release_bot', 'dcheck_always_on']
178 'gn_args': 'is_component_build=true',
179 'gyp_defines': 'component=shared_library',
183 'gn_args': 'is_component_build=false',
184 'gyp_defines': 'component=static_library',
189 'gyp_defines': 'test_isolation_mode=prepare',
193 'gn_args': 'target_cpu="x86"',
194 'gyp_args': 'target_arch=ia32',
198 # This is a map of buildbot master names -> buildbot builder names ->
199 # config names (where each config name is a key in the 'configs' dict,
200 # above). mb uses this dict to look up which config to use for a given bot.
201 # The builders should be sorted by the order they appear in the /builders
202 # page on the buildbots, *not* alphabetically.
204 # TODO(crbug.com/481692): Add in remaining bots on the waterfalls.
206 'chromium.chromiumos': {
207 'Linux ChromiumOS GN': 'chromeos_gn_release_bot',
208 'Linux ChromiumOS GN (dbg)': 'chromeos_gn_debug_bot',
211 'Linux Builder': 'swarming_gyp_release_bot',
212 'Linux Tests': 'gyp_release_bot',
213 'Linux Builder (dbg)(32)': 'gyp_debug_bot_no_symbols_x86',
214 'Linux Tests (dbg)(1)(32)': 'gyp_debug_bot_no_symbols_x86',
215 'Linux Builder (dbg)': 'gyp_debug_bot',
216 'Linux Tests (dbg)(1)': 'gyp_debug_bot',
217 'Linux GN': 'gn_release_bot',
218 'Linux GN Clobber': 'gn_release_bot',
219 'Linux GN (dbg)': 'gn_debug_bot',
220 'Linux ARM': 'gyp_release_bot_arm',
221 'Cast Linux': 'cast_gyp_release_bot',
222 'Android Arm64 Builder (dbg)': 'android_gyp_debug_static_bot_arm64',
223 'Android Builder (dbg)': 'android_gyp_debug_static_bot',
224 'Android Tests (dbg)': 'android_gyp_debug_static_bot',
225 'Android Builder': 'android_gyp_release_bot',
226 'Android Tests': 'android_gyp_release_bot',
227 'Android Clang Builder (dbg)': 'android_clang_asan_gyp_debug_bot',
228 'Android GN': 'android_gn_release_bot',
229 'Android GN (dbg)': 'android_gn_debug_bot',
230 'Cast Android (dbg)': 'android_cast_gyp_debug_static_bot',
233 'Mac GN': 'gn_release_bot',
234 'Mac GN (dbg)': 'gn_debug_static_bot',
237 'Win x64 GN': 'gn_release_bot',
238 'Win x64 GN (dbg)': 'gn_debug_bot',
239 'Win8 Aura': 'gn_release_bot_x86',
240 'Win8 GN': 'gn_release_bot_x86',
241 'Win8 GN (dbg)': 'gn_debug_bot_x86',
244 'Android GN': 'android_gn_release_bot',
245 'Android GN (dbg)': 'android_gn_debug_bot',
246 'Linux GN': 'gn_release_bot',
247 'Linux GN (dbg)': 'gn_debug_bot'
250 'CrWinClang64(dbg)': 'win_clang_debug_bot',
252 'chromium.webrtc.fyi': {
253 'Android GN': 'android_gn_release_bot',
254 'Android GN (dbg)': 'android_gn_debug_bot',
255 'Linux GN': 'gn_release_bot',
256 'Linux GN (dbg)': 'gn_debug_bot',
257 'Mac GN': 'gn_release_bot',
258 'Mac GN (dbg)': 'gn_debug_static_bot',
259 'Win GN': 'gn_release_bot_x86',
260 'Win GN (dbg)': 'gn_debug_bot_x86',
263 'Linux Builder': 'swarming_gyp_release_bot',
264 'Linux Builder-Trybot': 'swarming_gyp_release_bot',
265 'Linux Tests': 'swarming_gyp_release_bot',
269 'V8 Linux GN': 'gn_release_bot',
270 'V8 Android GN (dbg)': 'android_gn_debug_bot',
273 'android_blink_compile_dbg': 'android_gyp_debug_bot',
274 'android_blink_compile_rel': 'android_gyp_release_trybot',
275 'android_chromium_gn_compile_rel': 'android_gn_release_bot',
276 'linux_chromium_gn_rel': 'gn_release_bot',
278 'tryserver.chromium.linux': {
279 'linux_full_bisect_builder': 'swarming_gyp_release_bot',
280 'linux_chromium_compile_rel_ng': 'swarming_gyp_release_trybot',
281 'linux_chromium_rel_ng': 'swarming_gpu_tests_gyp_release_trybot',
282 'linux_chromium_gn_rel': 'gn_release_trybot',
283 'linux_chromium_gn_chromeos_rel': 'chromeos_gn_release_trybot',
284 'android_chromium_gn_compile_rel': 'android_gn_release_trybot',
285 'linux_chromium_compile_dbg_ng': 'swarming_gyp_debug_bot',
286 'linux_chromium_dbg_ng': 'swarming_gyp_debug_bot',
287 'linux_chromium_gn_dbg': 'gn_debug_bot',
288 'linux_chromium_gn_chromeos_dbg': 'chromeos_gn_debug_bot',
289 'android_chromium_gn_compile_dbg': 'android_gn_debug_bot',
290 'linux_chromium_compile_dbg_32_ng': 'swarming_gyp_debug_bot_x86',
291 'linux_chromium_dbg_32_ng': 'swarming_gyp_debug_bot_x86',
292 'linux_chromium_clobber_rel_ng': 'gyp_release_trybot',
293 'linux_chromium_gn_upload': 'gn_linux_upload',
295 'tryserver.chromium.mac': {
296 'mac_chromium_gn_dbg': 'gn_debug_static_bot',
297 'mac_chromium_gn_rel': 'gn_release_trybot',
298 'mac_chromium_gn_upload': 'gn_release_bot',
300 'tryserver.chromium.win': {
301 'win_chromium_gn_x64_dbg': 'gn_debug_bot',
302 'win_chromium_gn_x64_rel': 'gn_release_trybot',
303 'win8_chromium_ng': 'gn_release_trybot_x86',
304 'win8_chromium_gn_dbg': 'gn_debug_bot_x86',
305 'win8_chromium_gn_rel': 'gn_release_trybot_x86',
306 'win8_chromium_gn_upload': 'gn_release_bot',
307 'win_clang_x64_dbg': 'win_clang_debug_bot',
310 'v8_linux_chromium_gn_rel': 'gn_release_trybot',
311 'v8_android_chromium_gn_dbg': 'android_gn_debug_bot',