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_static_bot'],
14 'android_gn_release_trybot': ['android', 'gn', 'release_trybot'],
15 'chromeos_gn_debug_bot': ['chromeos', 'gn', 'debug_bot'],
16 'chromeos_gn_release_bot': ['chromeos', 'gn', 'release_bot'],
17 'chromeos_gn_release_trybot': ['chromeos', 'gn', 'release_trybot'],
18 'dev_gn_debug': ['gn', 'debug', 'shared', 'full_symbols'],
19 'dev_gyp_debug': ['gyp', 'debug', 'shared', 'full_symbols'],
20 'dev_gn_release': ['gn', 'release', 'shared'],
21 'dev_gyp_release': ['gyp', 'release', 'shared'],
22 'gn_release_bot': ['gn', 'release_bot'],
23 'gn_release_bot_x86': ['gn', 'release_bot', 'x86'],
24 'gn_release_trybot': ['gn', 'release_trybot'],
25 'gn_release_trybot_x86': ['gn', 'release_trybot', 'x86'],
26 'gn_debug_bot': ['gn', 'debug_bot'],
27 'gn_debug_static_bot': ['gn', 'debug_static_bot'],
28 'gn_debug_static_bot_x86': ['gn', 'debug_static_bot', 'x86'],
29 'gyp_release_bot': ['gyp', 'release_bot'],
32 # This is a list of configs that do not actually exist on any bot
33 # but are used so commonly by devs that we must support them.
34 'common_dev_configs': [
41 # This is a list of configs that some private (not publicly accessible)
42 # bot somewhere uses and that we must support. Ideally we should actually
43 # have a bot for each of these on the public waterfall. Each config should
44 # at least have a contact listed.
48 # This is a list of configs that are not commonly used by that we should
49 # make some effort to support, but if it breaks that is not the end of
50 # the world. Each config should have a contact listed, and we expect the
51 # contact to be on the hook for fixing the config.
52 'unsupported_configs': [
55 # This is a dict mapping a given 'mixin' name to a dict of settings that
56 # mb should use. See //tools/mb/docs/user_guide.md for more information.
59 'gn_args': 'target_os="android"',
60 'gyp_defines': 'OS=android',
64 'gn_args': 'target_os="chromeos"',
65 'gyp_defines': 'chromeos=1',
69 'gn_args': 'dcheck_always_on=true',
70 'gyp_defines': 'dcheck_always_on=1',
74 'gn_args': 'is_debug=true',
75 'gyp_config': 'Debug',
78 'debug_bot': {'mixins': ['debug', 'shared', 'minimal_symbols', 'goma']},
81 'mixins': ['debug', 'static', 'minimal_symbols', 'goma']
85 'gn_args': 'symbol_level=2',
86 'gyp_defines': 'fastbuild=0',
92 'gn_args': 'use_goma=true goma_dir="$(goma_dir)"',
93 'gyp_defines': 'goma=1 gomadir=$(goma_dir)',
96 'gyp': {'type': 'gyp'},
99 'gn_args': 'symbol_level=1',
100 'gyp_defines': 'fastbuild=1',
104 'gn_args': 'is_debug=false',
105 'gyp_config': 'Release',
109 'mixins': ['release', 'static', 'minimal_symbols', 'goma'],
113 'mixins': ['release_bot', 'dcheck_always_on']
117 'gn_args': 'is_component_build=true',
118 'gyp_defines': 'component=shared_library',
122 'gn_args': 'is_component_build=false',
123 'gyp_defines': 'component=static_library',
127 'gn_args': 'target_cpu="x86"',
128 'gyp_args': 'target_arch=ia32',
133 # This is a map of buildbot master names -> buildbot builder names ->
134 # config names (where each config name is a key in the 'configs' dict,
135 # above). mb uses this dict to look up which config to use for a given bot.
136 # TODO(dpranke): add in remaining bots on the waterfalls.
138 'chromium.chromiumos': {
139 'Linux ChromiumOS GN': 'chromeos_gn_release_bot',
142 'Android GN': 'android_gn_release_bot',
143 'Linux Builder': 'gyp_release_bot',
144 'Linux GN': 'gn_release_bot',
145 'Linux GN (dbg)': 'gn_debug_bot',
146 'Linux Tests': 'gyp_release_bot',
149 'Mac GN': 'gn_release_bot',
150 'Mac GN (dbg)': 'gn_debug_static_bot',
153 'Win8 GN': 'gn_release_bot_x86',
154 'Win8 GN (dbg)': 'gn_debug_static_bot_x86',
157 'Android GN': 'gn_release_bot',
158 'Android GN (dbg)': 'gn_debug_bot',
159 'Linux GN': 'gn_release_bot',
160 'Linux GN (dbg)': 'gn_debug_bot'
163 'android_chromium_gn_compile_rel': 'android_gn_release_bot',
164 'linux_chromium_gn_rel': 'gn_release_bot',
166 'tryserver.chromium.linux': {
167 'android_chromium_gn_compile_dbg': 'android_gn_debug_bot',
168 'android_chromium_gn_compile_rel': 'android_gn_release_trybot',
169 'linux_chromium_gn_chromeos_rel': 'chromeos_gn_release_trybot',
170 'linux_chromium_gn_chromeos_dbg': 'chromeos_gn_debug_bot',
171 'linux_chromium_gn_dbg': 'gn_debug_bot',
172 'linux_chromium_gn_rel': 'gn_release_trybot',
173 'linux_chromium_gn_upload_x64': 'gn_release_bot',
174 'linux_chromium_gn_upload_x86': 'gn_release_bot_x86',
176 'tryserver.chromium.mac': {
177 'mac_chromium_gn_dbg': 'gn_debug_static_bot',
178 'mac_chromium_gn_rel': 'gn_release_trybot',
179 'mac_chromium_gn_upload': 'gn_release_bot',
181 'tryserver.chromium.win': {
182 'win8_chromium_gn_dbg': 'gn_debug_static_bot_x86',
183 'win8_chromium_gn_rel': 'gn_release_trybot_x86',
184 'win8_chromium_gn_upload': 'gn_release_bot',