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_gn_release_bot': ['android', 'gn', 'release_bot'],
13 'android_gn_debug_bot': ['android', 'gn', 'debug_bot'],
14 'android_gn_release_trybot': ['android', 'gn', 'release_trybot'],
15 'android_gyp_debug_bot': ['android', 'gyp', 'debug_bot'],
16 'android_gyp_release_trybot': ['android', 'gyp', 'release_trybot'],
17 'chromeos_gn_debug_bot': ['chromeos', 'gn', 'debug_bot'],
18 'chromeos_gn_release_bot': ['chromeos', 'gn', 'release_bot'],
19 'chromeos_gn_release_trybot': ['chromeos', 'gn', 'release_trybot'],
20 'dev_gn_debug': ['gn', 'debug', 'shared', 'full_symbols'],
21 'dev_gyp_debug': ['gyp', 'debug', 'shared', 'full_symbols'],
22 'dev_gn_release': ['gn', 'release', 'shared'],
23 'dev_gyp_release': ['gyp', 'release', 'shared'],
24 'gn_linux_upload': ['gn_linux_upload'],
25 'gn_release_bot': ['gn', 'release_bot'],
26 'gn_release_bot_x86': ['gn', 'release_bot', 'x86'],
27 'gn_release_trybot': ['gn', 'release_trybot'],
28 'gn_release_trybot_x86': ['gn', 'release_trybot', 'x86'],
29 'gn_debug_bot': ['gn', 'debug_bot'],
30 'gn_debug_bot_x86': ['gn', 'debug_bot', 'x86'],
31 'gn_debug_static_bot': ['gn', 'debug_static_bot'],
32 'gn_debug_static_bot_x86': ['gn', 'debug_static_bot', 'x86'],
33 'gyp_release_bot': ['gyp', 'release_bot'],
34 # clang/win doesn't work with goma yet, so this can't use debug_bot:
35 'win_clang_debug_bot':
36 ['gn', 'clang', 'debug', 'shared', 'minimal_symbols'],
39 # This is a list of configs that do not actually exist on any bot
40 # but are used so commonly by devs that we must support them.
41 'common_dev_configs': [
48 # This is a list of configs that some private (not publicly accessible)
49 # bot somewhere uses and that we must support. Ideally we should actually
50 # have a bot for each of these on the public waterfall. Each config should
51 # at least have a contact listed.
55 # This is a list of configs that are not commonly used by that we should
56 # make some effort to support, but if it breaks that is not the end of
57 # the world. Each config should have a contact listed, and we expect the
58 # contact to be on the hook for fixing the config.
59 'unsupported_configs': [
62 # This is a dict mapping a given 'mixin' name to a dict of settings that
63 # mb should use. See //tools/mb/docs/user_guide.md for more information.
66 'gn_args': 'target_os="android"',
67 'gyp_defines': 'OS=android',
71 'gn_args': 'target_os="chromeos"',
72 'gyp_defines': 'chromeos=1',
76 'gn_args': 'is_clang=true',
77 'gyp_defines': 'clang=1',
81 'gn_args': 'dcheck_always_on=true',
82 'gyp_defines': 'dcheck_always_on=1',
86 'gn_args': 'is_debug=true',
87 'gyp_config': 'Debug',
90 'debug_bot': {'mixins': ['debug', 'shared', 'minimal_symbols', 'goma']},
93 'mixins': ['debug', 'static', 'minimal_symbols', 'goma']
97 'gn_args': 'symbol_level=2',
98 'gyp_defines': 'fastbuild=0',
104 # We don't want to require a runtime dependency on glib in the
105 # GN binary; ideally we could just turn glib off, but that doesn't
106 # actually work, so we need to pretend to be doing an ozone build
107 # in order for the flag to actually take effect.
108 'gn_args': 'use_ozone=true use_glib=false',
111 'gn': {'type': 'gn'},
114 'gn_args': 'use_goma=true goma_dir="$(goma_dir)"',
115 'gyp_defines': 'goma=1 gomadir=$(goma_dir)',
118 'gyp': {'type': 'gyp'},
121 'gn_args': 'symbol_level=1',
122 'gyp_defines': 'fastbuild=1',
126 'gn_args': 'is_debug=false',
127 'gyp_config': 'Release',
131 'mixins': ['release', 'static', 'minimal_symbols', 'goma'],
135 'mixins': ['release_bot', 'dcheck_always_on']
139 'gn_args': 'is_component_build=true',
140 'gyp_defines': 'component=shared_library',
144 'gn_args': 'is_component_build=false',
145 'gyp_defines': 'component=static_library',
149 'gn_args': 'target_cpu="x86"',
150 'gyp_args': 'target_arch=ia32',
155 # This is a map of buildbot master names -> buildbot builder names ->
156 # config names (where each config name is a key in the 'configs' dict,
157 # above). mb uses this dict to look up which config to use for a given bot.
158 # TODO(dpranke): add in remaining bots on the waterfalls.
160 'chromium.chromiumos': {
161 'Linux ChromiumOS GN': 'chromeos_gn_release_bot',
162 'Linux ChromiumOS GN (dbg)': 'chromeos_gn_debug_bot',
165 'Android GN': 'android_gn_release_bot',
166 'Android GN (dbg)': 'android_gn_debug_bot',
167 'Linux Builder': 'gyp_release_bot',
168 'Linux GN': 'gn_release_bot',
169 'Linux GN Clobber': 'gn_release_bot',
170 'Linux GN (dbg)': 'gn_debug_bot',
171 'Linux Tests': 'gyp_release_bot',
174 'Mac GN': 'gn_release_bot',
175 'Mac GN (dbg)': 'gn_debug_static_bot',
178 'Win x64 GN': 'gn_release_bot',
179 'Win x64 GN (dbg)': 'gn_debug_bot',
180 'Win8 Aura': 'gn_release_bot_x86',
181 'Win8 GN': 'gn_release_bot_x86',
182 'Win8 GN (dbg)': 'gn_debug_bot_x86',
185 'Android GN': 'android_gn_release_bot',
186 'Android GN (dbg)': 'android_gn_debug_bot',
187 'Linux GN': 'gn_release_bot',
188 'Linux GN (dbg)': 'gn_debug_bot'
191 'CrWinClang64(dbg)': 'win_clang_debug_bot',
193 'chromium.webrtc.fyi': {
194 'Android GN': 'android_gn_release_bot',
195 'Android GN (dbg)': 'android_gn_debug_bot',
196 'Linux GN': 'gn_release_bot',
197 'Linux GN (dbg)': 'gn_debug_bot',
198 'Mac GN': 'gn_release_bot',
199 'Mac GN (dbg)': 'gn_debug_static_bot',
200 'Win GN': 'gn_release_bot_x86',
201 'Win GN (dbg)': 'gn_debug_static_bot_x86',
204 'V8 Linux GN': 'gn_release_bot',
205 'V8 Android GN (dbg)': 'android_gn_debug_bot',
208 'android_blink_compile_dbg': 'android_gyp_debug_bot',
209 'android_blink_compile_rel': 'android_gyp_release_trybot',
210 'android_chromium_gn_compile_rel': 'android_gn_release_bot',
211 'linux_chromium_gn_rel': 'gn_release_bot',
213 'tryserver.chromium.linux': {
214 'android_chromium_gn_compile_dbg': 'android_gn_debug_bot',
215 'android_chromium_gn_compile_rel': 'android_gn_release_trybot',
216 'linux_chromium_gn_chromeos_rel': 'chromeos_gn_release_trybot',
217 'linux_chromium_gn_chromeos_dbg': 'chromeos_gn_debug_bot',
218 'linux_chromium_gn_dbg': 'gn_debug_bot',
219 'linux_chromium_gn_rel': 'gn_release_trybot',
220 'linux_chromium_gn_upload': 'gn_linux_upload',
222 'tryserver.chromium.mac': {
223 'mac_chromium_gn_dbg': 'gn_debug_static_bot',
224 'mac_chromium_gn_rel': 'gn_release_trybot',
225 'mac_chromium_gn_upload': 'gn_release_bot',
227 'tryserver.chromium.win': {
228 'win_chromium_gn_x64_dbg': 'gn_debug_static_bot',
229 'win_chromium_gn_x64_rel': 'gn_release_trybot',
230 'win8_chromium_ng': 'gn_release_trybot_x86',
231 'win8_chromium_gn_dbg': 'gn_debug_static_bot_x86',
232 'win8_chromium_gn_rel': 'gn_release_trybot_x86',
233 'win8_chromium_gn_upload': 'gn_release_bot',
236 'v8_linux_chromium_gn_rel': 'gn_release_trybot',
237 'v8_android_chromium_gn_dbg': 'android_gn_debug_bot',