blob: 99e1433c6d5dc3e900187d5f8e5457f722cf2f8f [file] [log] [blame]
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +01001# Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
2#
3# Use of this source code is governed by a BSD-style license
4# that can be found in the LICENSE file in the root of the source
5# tree. An additional intellectual property rights grant can be found
6# in the file PATENTS. All contributing project authors may
7# be found in the AUTHORS file in the root of the source tree.
8
9# FOR DETAILS ON THIS FILE SEE THE MAIN COPY IN //tools/mb/mb_config.pyl.
10# This is configuration for standalone WebRTC bots. It is used to keep the bot
11# configurations source-side instead of in the buildbot scripts. That makes it
12# easy to try different configurations of GYP and GN in tryjob patches.
13
14{
ehmaldonadod046d982016-08-08 06:59:14 -070015 # This is a map of buildbot master names -> buildbot builder names ->
16 # config names (where each config name is a key in the 'configs' dict,
17 # above). mb uses this dict to look up which config to use for a given bot.
18 # The builders should be sorted by the order they appear in the /builders
19 # page on the buildbots, *not* alphabetically.
20 'masters': {
21 'client.webrtc': {
ehmaldonado09abaa02016-08-09 02:26:16 -070022 # iOS
kjellander1c814e72016-08-16 02:42:02 -070023 'iOS32 Debug': 'ios_gyp_debug_static_bot_arm_device',
ehmaldonadod046d982016-08-08 06:59:14 -070024 'iOS32 Release': 'ios_gyp_release_bot_arm_device',
kjellander1c814e72016-08-16 02:42:02 -070025 'iOS64 Debug': 'ios_gyp_debug_static_bot_arm64_device',
ehmaldonadod046d982016-08-08 06:59:14 -070026 'iOS64 Release': 'ios_gyp_release_bot_arm64_device',
kjellander1c814e72016-08-16 02:42:02 -070027 'iOS32 Debug Simulator': 'ios_gyp_debug_static_bot_x86',
28 'iOS64 Debug Simulator': 'ios_gyp_debug_static_bot_x64',
29 'iOS64 Debug (GN)': 'ios_gn_debug_static_bot_arm64_device',
ehmaldonadod046d982016-08-08 06:59:14 -070030 'iOS64 Release (GN)': 'ios_gn_release_bot_arm64_device',
ehmaldonado09abaa02016-08-09 02:26:16 -070031
ehmaldonadoa3a1fde2016-08-11 01:04:35 -070032 # Mac
33 'Mac64 Debug': 'gyp_debug_bot_x64',
34 'Mac64 Release': 'gyp_release_bot_x64',
35 'Mac64 Debug (GN)': 'gn_debug_bot_x64',
36 'Mac64 Release (GN)': 'gn_release_bot_x64',
37 'Mac Asan': 'mac_gyp_asan_clang_release_bot_x64',
38 'Mac64 Release [large tests]': 'gyp_release_bot_x64',
39
ehmaldonado09abaa02016-08-09 02:26:16 -070040 # Linux
kjellander5d6b84c2016-08-09 13:17:40 -070041 'Linux32 ARM': 'gyp_crosscompile_release_bot_arm',
ehmaldonado09abaa02016-08-09 02:26:16 -070042 'Linux32 Debug': 'gyp_debug_bot_x86',
43 'Linux32 Release': 'gyp_release_bot_x86',
44 'Linux64 Debug': 'gyp_debug_bot_x64',
45 'Linux64 Release': 'gyp_release_bot_x64',
46 'Linux Asan': 'gyp_asan_lsan_clang_release_bot_x64',
47 'Linux Memcheck': 'gyp_memcheck_release_bot_x64',
48 'Linux MSan': 'gyp_msan_clang_release_bot_x64',
49 'Linux Tsan v2': 'gyp_tsan_clang_release_bot_x64',
50 'Linux UBSan': 'gyp_ubsan_clang_release_bot_x64',
51 'Linux UBSan vptr': 'gyp_ubsan_vptr_clang_release_bot_x64',
52 'Linux64 Release [large tests]': 'gyp_release_bot_x64',
kjellander3cb0c572016-08-09 13:00:57 -070053 'Linux64 Debug (GN)': 'gn_debug_bot_x64',
54 'Linux64 Release (GN)': 'gn_release_bot_x64',
ehmaldonado89b0ca82016-08-09 08:15:03 -070055
56 # Android
57 'Android32 Builder': 'android_gyp_release_bot_arm',
kjellander68815bf2016-08-10 09:49:37 -070058 'Android32 Builder (dbg)': 'android_gyp_debug_static_bot_arm',
ehmaldonado89b0ca82016-08-09 08:15:03 -070059 'Android32 Builder x86': 'android_gyp_release_bot_x86',
kjellander68815bf2016-08-10 09:49:37 -070060 'Android32 Builder x86 (dbg)': 'android_gyp_debug_static_bot_x86',
61 'Android32 Builder MIPS (dbg)': 'android_gyp_clang_debug_static_bot_mipsel',
62 'Android32 Clang (dbg)': 'android_gyp_clang_debug_static_bot_arm',
ehmaldonado89b0ca82016-08-09 08:15:03 -070063 'Android64 Builder': 'android_gyp_release_bot_arm64',
kjellander68815bf2016-08-10 09:49:37 -070064 'Android64 Builder (dbg)': 'android_gyp_debug_static_bot_arm64',
65 'Android64 Builder x64 (dbg)': 'android_gyp_debug_static_bot_x64',
ehmaldonado89b0ca82016-08-09 08:15:03 -070066 'Android32 GN': 'android_gn_release_bot_arm',
kjellander68815bf2016-08-10 09:49:37 -070067 'Android32 GN (dbg)': 'android_gn_debug_static_bot_arm',
ehmaldonado89b0ca82016-08-09 08:15:03 -070068 'Android32 Tests (L Nexus5)(dbg)': 'none',
69 'Android32 Tests (L Nexus5)': 'none',
70 'Android32 Tests (L Nexus7.2)(dbg)': 'none',
71 'Android32 Tests (L Nexus7.2)': 'none',
72 'Android64 Tests (L Nexus9)': 'none',
kjellander0ae78782016-08-11 00:49:47 -070073
74 # Windows
75 'Win32 Debug': 'gyp_debug_bot_x86',
76 'Win32 Release': 'gyp_release_bot_x86',
77 'Win64 Debug': 'gyp_debug_bot_x64',
78 'Win64 Release': 'gyp_release_bot_x64',
79 'Win64 Debug (GN)': 'gn_debug_bot_x64',
80 'Win64 Release (GN)': 'gn_release_bot_x64',
81 'Win32 Debug (Clang)': 'win_gyp_clang_debug_bot_x86',
82 'Win32 Release (Clang)': 'win_gyp_clang_release_bot_x86',
83 'Win64 Debug (Clang)': 'win_gyp_clang_debug_bot_x64',
84 'Win64 Release (Clang)': 'win_gyp_clang_release_bot_x64',
85 'Win SyzyASan': 'win_gyp_syzyasan_release_bot_x86',
86 'Win DrMemory Full': 'win_gyp_drmemory_debug_bot_x86',
87 'Win DrMemory Light': 'win_gyp_drmemory_debug_bot_x86',
88 'Win32 Release [large tests]': 'gyp_release_bot_x86',
ehmaldonadod046d982016-08-08 06:59:14 -070089 },
90 'tryserver.webrtc': {
ehmaldonado09abaa02016-08-09 02:26:16 -070091 # iOS
kjellander1c814e72016-08-16 02:42:02 -070092 'ios_dbg': 'ios_gyp_debug_static_bot_arm_device',
kjellander3cb0c572016-08-09 13:00:57 -070093 'ios_rel': 'ios_gyp_release_bot_arm_device',
kjellander1c814e72016-08-16 02:42:02 -070094 'ios_arm64_dbg': 'ios_gyp_debug_static_bot_arm64_device',
kjellander3cb0c572016-08-09 13:00:57 -070095 'ios_arm64_rel': 'ios_gyp_release_bot_arm64_device',
kjellander1c814e72016-08-16 02:42:02 -070096 'ios32_sim_dbg': 'ios_gyp_debug_static_bot_x86',
97 'ios64_sim_dbg': 'ios_gyp_debug_static_bot_x64',
98 'ios64_gn_dbg': 'ios_gn_debug_static_bot_arm64_device',
kjellander3cb0c572016-08-09 13:00:57 -070099 'ios64_gn_rel': 'ios_gn_release_bot_arm64_device',
ehmaldonado09abaa02016-08-09 02:26:16 -0700100
ehmaldonadoa3a1fde2016-08-11 01:04:35 -0700101 # Mac
102 'mac_compile_dbg': 'gyp_debug_bot_x64',
103 'mac_compile_rel': 'gyp_release_bot_x64',
104 'mac_dbg': 'gyp_debug_bot_x64',
105 'mac_rel': 'gyp_release_bot_x64',
106 'mac_gn_dbg': 'gn_debug_bot_x64',
107 'mac_gn_rel': 'gn_release_bot_x64',
108 'mac_asan': 'mac_gyp_asan_clang_release_bot_x64',
109 'mac_baremetal': 'gyp_release_bot_x64',
110 'mac_swarming': 'swarming_gyp_debug_bot_x64',
111
ehmaldonado09abaa02016-08-09 02:26:16 -0700112 # Linux
kjellander3cb0c572016-08-09 13:00:57 -0700113 'linux_compile_dbg': 'gyp_debug_bot_x64',
114 'linux_compile_rel': 'gyp_release_bot_x64',
115 'linux_dbg': 'gyp_debug_bot_x64',
116 'linux_rel': 'gyp_release_bot_x64',
117 'linux_gn_dbg': 'gn_debug_bot_x64',
118 'linux_gn_rel': 'gn_release_bot_x64',
kjellander5d6b84c2016-08-09 13:17:40 -0700119 'linux_arm': 'gyp_crosscompile_release_bot_arm',
kjellander3cb0c572016-08-09 13:00:57 -0700120 'linux_asan': 'gyp_asan_lsan_clang_release_bot_x64',
121 'linux_memcheck': 'gyp_memcheck_release_bot_x64',
122 'linux_msan': 'gyp_msan_clang_release_bot_x64',
123 'linux_tsan2': 'gyp_tsan_clang_release_bot_x64',
124 'linux_ubsan': 'gyp_ubsan_clang_release_bot_x64',
125 'linux_ubsan_vptr': 'gyp_ubsan_vptr_clang_release_bot_x64',
126 'linux_baremetal': 'gyp_release_bot_x64',
127 'linux_swarming': 'swarming_gyp_debug_bot_x64',
ehmaldonado89b0ca82016-08-09 08:15:03 -0700128
129 # Android
kjellander68815bf2016-08-10 09:49:37 -0700130 'android_compile_dbg': 'android_gyp_debug_static_bot_arm',
kjellander3cb0c572016-08-09 13:00:57 -0700131 'android_compile_rel': 'android_gyp_release_bot_arm',
kjellander68815bf2016-08-10 09:49:37 -0700132 'android_compile_arm64_dbg': 'android_gyp_debug_static_bot_arm64',
kjellander3cb0c572016-08-09 13:00:57 -0700133 'android_compile_arm64_rel': 'android_gyp_release_bot_arm64',
kjellander68815bf2016-08-10 09:49:37 -0700134 'android_compile_x86_dbg': 'android_gyp_debug_static_bot_x86',
kjellander3cb0c572016-08-09 13:00:57 -0700135 'android_compile_x86_rel': 'android_gyp_release_bot_x86',
kjellander68815bf2016-08-10 09:49:37 -0700136 'android_compile_x64_dbg': 'android_gyp_debug_static_bot_x64',
137 'android_compile_mips_dbg': 'android_gyp_clang_debug_static_bot_mipsel',
138 'android_dbg': 'android_gyp_debug_static_bot_arm',
kjellander3cb0c572016-08-09 13:00:57 -0700139 'android_rel': 'android_gyp_release_bot_arm',
kjellander68815bf2016-08-10 09:49:37 -0700140 'android_clang_dbg': 'android_gyp_clang_debug_static_bot_arm',
kjellander63cb1722016-08-10 08:28:25 -0700141 'android_arm64_rel': 'android_gyp_release_bot_arm64',
kjellander68815bf2016-08-10 09:49:37 -0700142 'android_n6': 'android_gyp_debug_static_bot_arm',
143 'android_gn_dbg': 'android_gn_debug_static_bot_arm',
kjellander3cb0c572016-08-09 13:00:57 -0700144 'android_gn_rel': 'android_gn_release_bot_arm',
kjellander0ae78782016-08-11 00:49:47 -0700145
146 # Windows
147 'win_compile_dbg': 'gyp_debug_bot_x86',
148 'win_compile_rel': 'gyp_release_bot_x86',
149 'win_compile_x64_dbg': 'gyp_debug_bot_x64',
150 'win_compile_x64_rel': 'gyp_release_bot_x64',
151 'win_dbg': 'gyp_debug_bot_x86',
152 'win_rel': 'gyp_release_bot_x86',
153 'win_x64_dbg': 'gyp_debug_bot_x64',
154 'win_x64_rel': 'gyp_release_bot_x64',
155 'win_x64_gn_dbg': 'gn_debug_bot_x64',
156 'win_x64_gn_rel': 'gn_release_bot_x64',
157 'win_clang_dbg': 'win_gyp_clang_debug_bot_x86',
158 'win_clang_rel': 'win_gyp_clang_release_bot_x86',
159 'win_x64_clang_dbg': 'win_gyp_clang_debug_bot_x64',
160 'win_x64_clang_rel': 'win_gyp_clang_release_bot_x64',
161 'win_asan': 'win_gyp_syzyasan_release_bot_x86',
162 'win_drmemory_light': 'win_gyp_drmemory_debug_bot_x86',
163 'win_drmemory_full': 'win_gyp_drmemory_debug_bot_x86',
164 'win_baremetal': 'gyp_release_bot_x86',
165 'win_swarming': 'swarming_gyp_debug_bot_x64',
ehmaldonadod046d982016-08-08 06:59:14 -0700166 },
167 },
168
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100169 # This is the list of configs that you can pass to mb; each config
170 # represents a particular combination of GYP_DEFINES/gn args that
171 # we must support. A given config *may* be platform-specific but
172 # is not necessarily so (i.e., we might have mac, win, and linux
173 # bots all using the 'gn_release_bot' config).
174 'configs': {
ehmaldonado09abaa02016-08-09 02:26:16 -0700175 # iOS
kjellander1c814e72016-08-16 02:42:02 -0700176 'ios_gn_debug_static_bot_arm64_device': [
177 'ios', 'gn', 'debug_static_bot', 'arm64', 'device'
ehmaldonadod046d982016-08-08 06:59:14 -0700178 ],
179 'ios_gn_release_bot_arm64_device': [
kjellander1c814e72016-08-16 02:42:02 -0700180 'ios', 'gn', 'release_bot', 'arm64', 'device'
ehmaldonadod046d982016-08-08 06:59:14 -0700181 ],
kjellander1c814e72016-08-16 02:42:02 -0700182 'ios_gyp_debug_static_bot_arm_device': [
183 'ios', 'gyp', 'debug_static_bot', 'arm', 'device'
ehmaldonadod046d982016-08-08 06:59:14 -0700184 ],
185 'ios_gyp_release_bot_arm_device': [
kjellander1c814e72016-08-16 02:42:02 -0700186 'ios', 'gyp', 'release_bot', 'arm', 'device'
ehmaldonadod046d982016-08-08 06:59:14 -0700187 ],
kjellander1c814e72016-08-16 02:42:02 -0700188 'ios_gyp_debug_static_bot_arm64_device': [
189 'ios', 'gyp', 'debug_static_bot', 'arm64', 'device'
ehmaldonadod046d982016-08-08 06:59:14 -0700190 ],
191 'ios_gyp_release_bot_arm64_device': [
kjellander1c814e72016-08-16 02:42:02 -0700192 'ios', 'gyp', 'release_bot', 'arm64', 'device'
ehmaldonadod046d982016-08-08 06:59:14 -0700193 ],
kjellander1c814e72016-08-16 02:42:02 -0700194 'ios_gyp_debug_static_bot_x86': [
195 'ios', 'gyp', 'debug_static_bot', 'x86'
ehmaldonadod046d982016-08-08 06:59:14 -0700196 ],
kjellander1c814e72016-08-16 02:42:02 -0700197 'ios_gyp_debug_static_bot_x64': [
198 'ios', 'gyp', 'release_bot', 'x64'
ehmaldonadod046d982016-08-08 06:59:14 -0700199 ],
ehmaldonado09abaa02016-08-09 02:26:16 -0700200
kjellander0ae78782016-08-11 00:49:47 -0700201 # Linux, Mac and Windows
kjellander5d6b84c2016-08-09 13:17:40 -0700202 'gyp_crosscompile_release_bot_arm': [
203 'gyp', 'crosscompile', 'openh264_release_bot', 'arm'
ehmaldonado09abaa02016-08-09 02:26:16 -0700204 ],
205 'gyp_debug_bot_x86': [
kjellander3cb0c572016-08-09 13:00:57 -0700206 'gyp', 'openh264_debug_bot', 'x86'
ehmaldonado09abaa02016-08-09 02:26:16 -0700207 ],
208 'gyp_release_bot_x86': [
kjellander3cb0c572016-08-09 13:00:57 -0700209 'gyp', 'openh264_release_bot', 'x86'
ehmaldonado09abaa02016-08-09 02:26:16 -0700210 ],
211 'gyp_debug_bot_x64': [
kjellander3cb0c572016-08-09 13:00:57 -0700212 'gyp', 'openh264_debug_bot', 'x64'
ehmaldonado09abaa02016-08-09 02:26:16 -0700213 ],
214 'gyp_release_bot_x64': [
kjellander3cb0c572016-08-09 13:00:57 -0700215 'gyp', 'openh264_release_bot', 'x64'
ehmaldonado09abaa02016-08-09 02:26:16 -0700216 ],
217 'gyp_asan_lsan_clang_release_bot_x64': [
kjellander3cb0c572016-08-09 13:00:57 -0700218 'gyp', 'asan', 'lsan', 'clang', 'openh264_release_bot', 'x64'
ehmaldonado09abaa02016-08-09 02:26:16 -0700219 ],
220 'gyp_memcheck_release_bot_x64': [
kjellander3cb0c572016-08-09 13:00:57 -0700221 'gyp', 'memcheck', 'openh264_release_bot', 'x64'
ehmaldonado09abaa02016-08-09 02:26:16 -0700222 ],
223 'gyp_msan_clang_release_bot_x64': [
kjellander3cb0c572016-08-09 13:00:57 -0700224 'gyp', 'msan', 'clang', 'openh264_release_bot', 'x64'
ehmaldonado09abaa02016-08-09 02:26:16 -0700225 ],
226 'gyp_tsan_clang_release_bot_x64': [
kjellander3cb0c572016-08-09 13:00:57 -0700227 'gyp', 'tsan', 'clang', 'openh264_release_bot', 'x64'
ehmaldonado09abaa02016-08-09 02:26:16 -0700228 ],
229 'gyp_ubsan_clang_release_bot_x64': [
kjellander3cb0c572016-08-09 13:00:57 -0700230 'gyp', 'ubsan', 'clang', 'openh264_release_bot', 'x64'
ehmaldonado09abaa02016-08-09 02:26:16 -0700231 ],
232 'gyp_ubsan_vptr_clang_release_bot_x64': [
kjellander3cb0c572016-08-09 13:00:57 -0700233 'gyp', 'ubsan_vptr', 'clang', 'openh264_release_bot', 'x64'
ehmaldonado09abaa02016-08-09 02:26:16 -0700234 ],
kjellander3cb0c572016-08-09 13:00:57 -0700235 'gn_debug_bot_x64': [
236 'gn', 'openh264_debug_bot', 'x64'
ehmaldonado09abaa02016-08-09 02:26:16 -0700237 ],
kjellander3cb0c572016-08-09 13:00:57 -0700238 'gn_release_bot_x64': [
239 'gn', 'openh264_release_bot', 'x64'
ehmaldonado09abaa02016-08-09 02:26:16 -0700240 ],
kjellander3cb0c572016-08-09 13:00:57 -0700241 'swarming_gyp_debug_bot_x64': [
242 'swarming', 'gyp', 'openh264_debug_bot', 'x64'
ehmaldonado89b0ca82016-08-09 08:15:03 -0700243 ],
244
kjellander0ae78782016-08-11 00:49:47 -0700245 # Windows
246 'win_gyp_clang_debug_bot_x86': [
247 'gyp', 'clang', 'openh264_debug_bot', 'x86',
248 ],
249 'win_gyp_clang_release_bot_x86': [
250 'gyp', 'clang', 'openh264_release_bot', 'x86',
251 ],
252 'win_gyp_clang_debug_bot_x64': [
253 'gyp', 'clang', 'openh264_debug_bot', 'x64',
254 ],
255 'win_gyp_clang_release_bot_x64': [
256 'gyp', 'clang', 'openh264_release_bot', 'x64',
257 ],
258 'win_gyp_syzyasan_release_bot_x86': [
259 'gyp', 'syzyasan', 'minimal_symbols', 'openh264_release_bot', 'x86',
260 ],
261 # TODO(kjellander): Flip DrMemory bots over to Release after GN migration
262 # (http://crbug.com/636414).
263 'win_gyp_drmemory_debug_bot_x86': [
264 'gyp', 'drmemory', 'minimal_symbols', 'openh264_debug_bot', 'x86',
265 ],
266
ehmaldonadoa3a1fde2016-08-11 01:04:35 -0700267 # Mac
268 'mac_gyp_asan_clang_release_bot_x64': [
269 'gyp', 'asan', 'clang', 'openh264_release_bot', 'x64',
270 ],
271
ehmaldonado89b0ca82016-08-09 08:15:03 -0700272 # Android
kjellander68815bf2016-08-10 09:49:37 -0700273 'android_gyp_debug_static_bot_arm': [
274 'android', 'gyp', 'debug_static_bot', 'arm'
ehmaldonado89b0ca82016-08-09 08:15:03 -0700275 ],
kjellander3cb0c572016-08-09 13:00:57 -0700276 'android_gyp_release_bot_arm': [
277 'android', 'gyp', 'release_bot', 'arm'
ehmaldonado89b0ca82016-08-09 08:15:03 -0700278 ],
kjellander68815bf2016-08-10 09:49:37 -0700279 'android_gyp_debug_static_bot_x86': [
280 'android', 'gyp', 'debug_static_bot', 'x86'
ehmaldonado89b0ca82016-08-09 08:15:03 -0700281 ],
kjellander3cb0c572016-08-09 13:00:57 -0700282 'android_gyp_release_bot_x86': [
283 'android', 'gyp', 'release_bot', 'x86'
ehmaldonado89b0ca82016-08-09 08:15:03 -0700284 ],
kjellander68815bf2016-08-10 09:49:37 -0700285 'android_gyp_clang_debug_static_bot_arm': [
286 'android', 'gyp', 'clang', 'debug_static_bot', 'arm'
ehmaldonado89b0ca82016-08-09 08:15:03 -0700287 ],
kjellander68815bf2016-08-10 09:49:37 -0700288 'android_gyp_clang_debug_static_bot_mipsel': [
289 'android', 'gyp', 'clang', 'debug_static_bot', 'mipsel'
ehmaldonado89b0ca82016-08-09 08:15:03 -0700290 ],
kjellander68815bf2016-08-10 09:49:37 -0700291 'android_gyp_debug_static_bot_arm64': [
292 'android', 'gyp', 'debug_static_bot', 'arm64'
ehmaldonado89b0ca82016-08-09 08:15:03 -0700293 ],
kjellander3cb0c572016-08-09 13:00:57 -0700294 'android_gyp_release_bot_arm64': [
295 'android', 'gyp', 'release_bot', 'arm64'
296 ],
kjellander68815bf2016-08-10 09:49:37 -0700297 'android_gyp_debug_static_bot_x64': [
298 'android', 'gyp', 'debug_static_bot', 'x64'
ehmaldonado89b0ca82016-08-09 08:15:03 -0700299 ],
kjellander68815bf2016-08-10 09:49:37 -0700300 'android_gn_debug_static_bot_arm': [
301 'android', 'gn', 'debug_static_bot', 'arm'
ehmaldonado89b0ca82016-08-09 08:15:03 -0700302 ],
kjellander3cb0c572016-08-09 13:00:57 -0700303 'android_gn_release_bot_arm': [
304 'android', 'gn', 'release_bot', 'arm'
ehmaldonado89b0ca82016-08-09 08:15:03 -0700305 ],
306
307 # This is used for tracking purposes; any bot that uses this config
308 # should never actually run MB.
309 'none': [
310 'error',
311 ],
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100312 },
313
314 # This is a dict mapping a given 'mixin' name to a dict of settings that
315 # mb should use. See //tools/mb/docs/user_guide.md for more information.
316 'mixins': {
ehmaldonado89b0ca82016-08-09 08:15:03 -0700317 'android': {
318 'gn_args': 'target_os="android"',
319 'gyp_defines': 'OS=android',
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100320 },
321
322 'arm': {
323 'gn_args': 'target_cpu="arm"',
324 'gyp_defines': 'target_arch=arm',
325 },
326
327 'arm64': {
328 'gn_args': 'target_cpu="arm64"',
329 'gyp_defines': 'target_arch=arm64',
330 },
331
ehmaldonado09abaa02016-08-09 02:26:16 -0700332 'asan': {
333 'gn_args': 'is_asan=true',
334 'gyp_defines': 'asan=1',
335 },
336
337 'clang': {
338 'gn_args': 'is_clang=true',
339 'gyp_defines': 'clang=1',
340 },
341
kjellander5d6b84c2016-08-09 13:17:40 -0700342 'crosscompile': {
343 # This mixin is only needed on GYP bots that are doing cross-compiles
344 # but are *not* targetting Android or iOS (where
345 # webrtc/build/gyp_webrtc.py will set the crosscompile variable
346 # automatically). It is not need in GN at all.
347 'gyp_crosscompile': True,
348 },
349
ehmaldonado09abaa02016-08-09 02:26:16 -0700350 'dcheck_always_on': {
351 'gn_args': 'dcheck_always_on=true',
352 'gyp_defines': 'dcheck_always_on=1',
353 },
354
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100355 'debug': {
356 'gn_args': 'is_debug=true',
357 },
358
359 'debug_bot': {
ehmaldonado09abaa02016-08-09 02:26:16 -0700360 'mixins': ['debug', 'shared', 'goma'],
361 },
362
kjellander68815bf2016-08-10 09:49:37 -0700363 'debug_static_bot': {
364 'mixins': ['debug', 'static', 'minimal_symbols', 'goma'],
365 },
366
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100367 'device': {
kjellander@webrtc.org0c74ae12016-02-25 08:41:10 +0100368 'gn_args': 'ios_enable_code_signing=false',
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100369 'gyp_defines': 'chromium_ios_signing=0',
370 },
371
kjellander0ae78782016-08-11 00:49:47 -0700372 'drmemory': {
373 'gn_args': 'is_component_build=true enable_iterator_debugging=false',
374 'gyp_defines': 'component=shared_library build_for_tool=drmemory',
375 },
376
ehmaldonado89b0ca82016-08-09 08:15:03 -0700377 # This mixin is used to force configs that use it to fail. It
378 # is used in two cases: when we have bots that we haven't looked
379 # at yet and don't know whether they need MB or not, and for bots
380 # that are test-only and should never run MB.
381 'error': {
382 'gn_args': 'error',
383 'gyp_defines': 'target_arch=unknown',
384 },
385
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100386 'gn': {'type': 'gn'},
387
ehmaldonado09abaa02016-08-09 02:26:16 -0700388 'goma': {
389 # The MB code will properly escape goma_dir if necessary in the GYP
390 # code path; the GN code path needs no escaping.
391 'gn_args': 'use_goma=true',
392 'gyp_defines': 'use_goma=1',
393 },
394
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100395 'gyp': {'type': 'gyp'},
396
ehmaldonado89b0ca82016-08-09 08:15:03 -0700397 'ios': {
398 'gn_args': 'target_os="ios"',
399 'gyp_defines': 'OS=ios',
400 },
401
ehmaldonado09abaa02016-08-09 02:26:16 -0700402 'lsan': {
403 'gn_args': 'is_lsan=true',
404 'gyp_defines': 'lsan=1',
405 },
406
407 'memcheck': {
408 'gyp_defines': 'build_for_tool=memcheck',
409 },
410
kjellander68815bf2016-08-10 09:49:37 -0700411 'minimal_symbols': {
412 'gn_args': 'symbol_level=1',
413 'gyp_defines': 'fastbuild=1',
414 },
415
ehmaldonado89b0ca82016-08-09 08:15:03 -0700416 'mipsel': {
417 'gn_args': 'target_cpu="mipsel"',
418 'gyp_defines': 'target_arch=mipsel',
419 },
420
kjellander0ae78782016-08-11 00:49:47 -0700421 'minimal_symbols': {
422 'gn_args': 'symbol_level=1',
423 'gyp_defines': 'fastbuild=1',
424 },
425
ehmaldonado09abaa02016-08-09 02:26:16 -0700426 'msan': {
427 'gn_args': ('is_msan=true msan_track_origins=2 '
428 'use_prebuilt_instrumented_libraries=true'),
429 'gyp_defines': ('msan=1 msan_track_origins=2 '
430 'use_prebuilt_instrumented_libraries=1'),
431 },
432
ehmaldonado09abaa02016-08-09 02:26:16 -0700433 'openh264': {
434 'gn_args': 'ffmpeg_branding="Chrome" rtc_use_h264=true',
435 'gyp_defines': 'ffmpeg_branding=Chrome rtc_use_h264=1',
436 },
437
kjellander3cb0c572016-08-09 13:00:57 -0700438 'openh264_debug_bot': {
439 'mixins': ['openh264', 'debug_bot'],
440 },
441
442 'openh264_release_bot': {
443 'mixins': ['openh264', 'release_bot'],
444 },
445
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100446 'release': {
447 'gn_args': 'is_debug=false',
448 },
449
450 'release_bot': {
kjellander3cb0c572016-08-09 13:00:57 -0700451 'mixins': ['release', 'static', 'dcheck_always_on', 'goma'],
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100452 },
453
454 'shared': {
455 'gn_args': 'is_component_build=true',
456 'gyp_defines': 'component=shared_library',
457 },
458
459 'static': {
460 'gn_args': 'is_component_build=false',
461 'gyp_defines': 'component=static_library',
462 },
463
ehmaldonado09abaa02016-08-09 02:26:16 -0700464 'swarming': {
465 'gn_args': '',
466 'gyp_defines': 'test_isolation_mode=prepare',
467 },
468
kjellander0ae78782016-08-11 00:49:47 -0700469 'syzyasan': {
470 'gn_args': 'is_syzyasan=true',
471 'gyp_defines': 'syzyasan=1'
472 },
473
kjellander3cb0c572016-08-09 13:00:57 -0700474 'tsan': {
475 'gn_args': 'is_tsan=true',
476 'gyp_defines': 'tsan=1',
477 },
478
ehmaldonado09abaa02016-08-09 02:26:16 -0700479 'ubsan': {
480 'gn_args': 'is_ubsan=true',
481 'gyp_defines': 'ubsan=1',
482 },
483
484 'ubsan_vptr': {
485 'gn_args': 'is_ubsan_vptr=true',
486 'gyp_defines': 'ubsan_vptr=1',
487 },
488
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100489 'x64': {
490 'gn_args': 'target_cpu="x64"',
491 'gyp_defines': 'target_arch=x64',
492 },
493
494 'x86': {
495 'gn_args': 'target_cpu="x86"',
496 'gyp_defines': 'target_arch=ia32',
497 },
498 },
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100499}