blob: d09d5d2c4b780dcd7439c232ee5d48618c5d6759 [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',
kjellandere252d3c2016-08-16 03:46:20 -070027 'iOS32 Simulator Debug': 'ios_gyp_debug_static_bot_x86',
28 'iOS64 Simulator Debug': 'ios_gyp_debug_static_bot_x64',
kjellander1c814e72016-08-16 02:42:02 -070029 '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
kjellander4c8adb12016-08-24 00:34:40 -070057 'Android32 Builder': 'android_gn_release_bot_arm',
58 'Android32 Builder (dbg)': 'android_gn_debug_static_bot_arm',
59 'Android32 Builder x86': 'android_gn_release_bot_x86',
60 'Android32 Builder x86 (dbg)': 'android_gn_debug_static_bot_x86',
61 'Android32 Builder MIPS (dbg)': 'android_gn_clang_debug_static_bot_mipsel',
62 'Android32 Clang (dbg)': 'android_gn_clang_debug_static_bot_arm',
63 'Android64 Builder': 'android_gn_release_bot_arm64',
64 'Android64 Builder (dbg)': 'android_gn_debug_static_bot_arm64',
65 'Android64 Builder x64 (dbg)': 'android_gn_debug_static_bot_x64',
66 # TODO(kjellander): Remove the 'Android32 GN' configs as soon we've
67 # renamed these bots to Android32 GYP in the main waterfall.
68 'Android32 GN': 'android_gyp_release_bot_arm',
69 'Android32 GN (dbg)': 'android_gyp_debug_static_bot_arm',
70 'Android32 GYP': 'android_gyp_release_bot_arm',
71 'Android32 GYP (dbg)': 'android_gyp_debug_static_bot_arm',
ehmaldonado89b0ca82016-08-09 08:15:03 -070072 'Android32 Tests (L Nexus5)(dbg)': 'none',
73 'Android32 Tests (L Nexus5)': 'none',
74 'Android32 Tests (L Nexus7.2)(dbg)': 'none',
75 'Android32 Tests (L Nexus7.2)': 'none',
76 'Android64 Tests (L Nexus9)': 'none',
kjellander0ae78782016-08-11 00:49:47 -070077
78 # Windows
79 'Win32 Debug': 'gyp_debug_bot_x86',
80 'Win32 Release': 'gyp_release_bot_x86',
81 'Win64 Debug': 'gyp_debug_bot_x64',
82 'Win64 Release': 'gyp_release_bot_x64',
83 'Win64 Debug (GN)': 'gn_debug_bot_x64',
84 'Win64 Release (GN)': 'gn_release_bot_x64',
85 'Win32 Debug (Clang)': 'win_gyp_clang_debug_bot_x86',
86 'Win32 Release (Clang)': 'win_gyp_clang_release_bot_x86',
87 'Win64 Debug (Clang)': 'win_gyp_clang_debug_bot_x64',
88 'Win64 Release (Clang)': 'win_gyp_clang_release_bot_x64',
89 'Win SyzyASan': 'win_gyp_syzyasan_release_bot_x86',
90 'Win DrMemory Full': 'win_gyp_drmemory_debug_bot_x86',
91 'Win DrMemory Light': 'win_gyp_drmemory_debug_bot_x86',
92 'Win32 Release [large tests]': 'gyp_release_bot_x86',
ehmaldonadod046d982016-08-08 06:59:14 -070093 },
94 'tryserver.webrtc': {
ehmaldonado09abaa02016-08-09 02:26:16 -070095 # iOS
kjellander1c814e72016-08-16 02:42:02 -070096 'ios_dbg': 'ios_gyp_debug_static_bot_arm_device',
kjellander3cb0c572016-08-09 13:00:57 -070097 'ios_rel': 'ios_gyp_release_bot_arm_device',
kjellander1c814e72016-08-16 02:42:02 -070098 'ios_arm64_dbg': 'ios_gyp_debug_static_bot_arm64_device',
kjellander3cb0c572016-08-09 13:00:57 -070099 'ios_arm64_rel': 'ios_gyp_release_bot_arm64_device',
kjellander1c814e72016-08-16 02:42:02 -0700100 'ios32_sim_dbg': 'ios_gyp_debug_static_bot_x86',
101 'ios64_sim_dbg': 'ios_gyp_debug_static_bot_x64',
102 'ios64_gn_dbg': 'ios_gn_debug_static_bot_arm64_device',
kjellander3cb0c572016-08-09 13:00:57 -0700103 'ios64_gn_rel': 'ios_gn_release_bot_arm64_device',
ehmaldonado09abaa02016-08-09 02:26:16 -0700104
ehmaldonadoa3a1fde2016-08-11 01:04:35 -0700105 # Mac
106 'mac_compile_dbg': 'gyp_debug_bot_x64',
107 'mac_compile_rel': 'gyp_release_bot_x64',
108 'mac_dbg': 'gyp_debug_bot_x64',
109 'mac_rel': 'gyp_release_bot_x64',
110 'mac_gn_dbg': 'gn_debug_bot_x64',
111 'mac_gn_rel': 'gn_release_bot_x64',
112 'mac_asan': 'mac_gyp_asan_clang_release_bot_x64',
113 'mac_baremetal': 'gyp_release_bot_x64',
114 'mac_swarming': 'swarming_gyp_debug_bot_x64',
115
ehmaldonado09abaa02016-08-09 02:26:16 -0700116 # Linux
kjellander3cb0c572016-08-09 13:00:57 -0700117 'linux_compile_dbg': 'gyp_debug_bot_x64',
118 'linux_compile_rel': 'gyp_release_bot_x64',
119 'linux_dbg': 'gyp_debug_bot_x64',
120 'linux_rel': 'gyp_release_bot_x64',
121 'linux_gn_dbg': 'gn_debug_bot_x64',
122 'linux_gn_rel': 'gn_release_bot_x64',
kjellander5d6b84c2016-08-09 13:17:40 -0700123 'linux_arm': 'gyp_crosscompile_release_bot_arm',
kjellander3cb0c572016-08-09 13:00:57 -0700124 'linux_asan': 'gyp_asan_lsan_clang_release_bot_x64',
125 'linux_memcheck': 'gyp_memcheck_release_bot_x64',
126 'linux_msan': 'gyp_msan_clang_release_bot_x64',
127 'linux_tsan2': 'gyp_tsan_clang_release_bot_x64',
128 'linux_ubsan': 'gyp_ubsan_clang_release_bot_x64',
129 'linux_ubsan_vptr': 'gyp_ubsan_vptr_clang_release_bot_x64',
130 'linux_baremetal': 'gyp_release_bot_x64',
131 'linux_swarming': 'swarming_gyp_debug_bot_x64',
ehmaldonado89b0ca82016-08-09 08:15:03 -0700132
133 # Android
kjellander4c8adb12016-08-24 00:34:40 -0700134 'android_compile_dbg': 'android_gn_debug_static_bot_arm',
135 'android_compile_rel': 'android_gn_release_bot_arm',
136 'android_compile_arm64_dbg': 'android_gn_debug_static_bot_arm64',
137 'android_compile_arm64_rel': 'android_gn_release_bot_arm64',
138 'android_compile_x86_dbg': 'android_gn_debug_static_bot_x86',
139 'android_compile_x86_rel': 'android_gn_release_bot_x86',
140 'android_compile_x64_dbg': 'android_gn_debug_static_bot_x64',
141 'android_compile_mips_dbg': 'android_gn_clang_debug_static_bot_mipsel',
142 'android_dbg': 'android_gn_debug_static_bot_arm',
143 'android_rel': 'android_gn_release_bot_arm',
144 'android_clang_dbg': 'android_gn_clang_debug_static_bot_arm',
145 'android_arm64_rel': 'android_gn_release_bot_arm64',
146 'android_n6': 'android_gn_debug_static_bot_arm',
147 # TODO(kjellander): Remove the android_gn_* configs as soon we've renamed
148 # the bots to the GYP versions at the tryserver.
149 'android_gn_dbg': 'android_gyp_debug_static_bot_arm',
150 'android_gn_rel': 'android_gyp_release_bot_arm',
151 'android_gyp_dbg': 'android_gyp_debug_static_bot_arm',
152 'android_gyp_rel': 'android_gyp_release_bot_arm',
kjellander0ae78782016-08-11 00:49:47 -0700153
154 # Windows
155 'win_compile_dbg': 'gyp_debug_bot_x86',
156 'win_compile_rel': 'gyp_release_bot_x86',
157 'win_compile_x64_dbg': 'gyp_debug_bot_x64',
158 'win_compile_x64_rel': 'gyp_release_bot_x64',
159 'win_dbg': 'gyp_debug_bot_x86',
160 'win_rel': 'gyp_release_bot_x86',
161 'win_x64_dbg': 'gyp_debug_bot_x64',
162 'win_x64_rel': 'gyp_release_bot_x64',
163 'win_x64_gn_dbg': 'gn_debug_bot_x64',
164 'win_x64_gn_rel': 'gn_release_bot_x64',
165 'win_clang_dbg': 'win_gyp_clang_debug_bot_x86',
166 'win_clang_rel': 'win_gyp_clang_release_bot_x86',
167 'win_x64_clang_dbg': 'win_gyp_clang_debug_bot_x64',
168 'win_x64_clang_rel': 'win_gyp_clang_release_bot_x64',
169 'win_asan': 'win_gyp_syzyasan_release_bot_x86',
170 'win_drmemory_light': 'win_gyp_drmemory_debug_bot_x86',
171 'win_drmemory_full': 'win_gyp_drmemory_debug_bot_x86',
172 'win_baremetal': 'gyp_release_bot_x86',
173 'win_swarming': 'swarming_gyp_debug_bot_x64',
ehmaldonadod046d982016-08-08 06:59:14 -0700174 },
175 },
176
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100177 # This is the list of configs that you can pass to mb; each config
178 # represents a particular combination of GYP_DEFINES/gn args that
179 # we must support. A given config *may* be platform-specific but
180 # is not necessarily so (i.e., we might have mac, win, and linux
181 # bots all using the 'gn_release_bot' config).
182 'configs': {
ehmaldonado09abaa02016-08-09 02:26:16 -0700183 # iOS
kjellander1c814e72016-08-16 02:42:02 -0700184 'ios_gn_debug_static_bot_arm64_device': [
185 'ios', 'gn', 'debug_static_bot', 'arm64', 'device'
ehmaldonadod046d982016-08-08 06:59:14 -0700186 ],
187 'ios_gn_release_bot_arm64_device': [
kjellander1c814e72016-08-16 02:42:02 -0700188 'ios', 'gn', 'release_bot', 'arm64', 'device'
ehmaldonadod046d982016-08-08 06:59:14 -0700189 ],
kjellander1c814e72016-08-16 02:42:02 -0700190 'ios_gyp_debug_static_bot_arm_device': [
191 'ios', 'gyp', 'debug_static_bot', 'arm', 'device'
ehmaldonadod046d982016-08-08 06:59:14 -0700192 ],
193 'ios_gyp_release_bot_arm_device': [
kjellander1c814e72016-08-16 02:42:02 -0700194 'ios', 'gyp', 'release_bot', 'arm', 'device'
ehmaldonadod046d982016-08-08 06:59:14 -0700195 ],
kjellander1c814e72016-08-16 02:42:02 -0700196 'ios_gyp_debug_static_bot_arm64_device': [
197 'ios', 'gyp', 'debug_static_bot', 'arm64', 'device'
ehmaldonadod046d982016-08-08 06:59:14 -0700198 ],
199 'ios_gyp_release_bot_arm64_device': [
kjellander1c814e72016-08-16 02:42:02 -0700200 'ios', 'gyp', 'release_bot', 'arm64', 'device'
ehmaldonadod046d982016-08-08 06:59:14 -0700201 ],
kjellander1c814e72016-08-16 02:42:02 -0700202 'ios_gyp_debug_static_bot_x86': [
203 'ios', 'gyp', 'debug_static_bot', 'x86'
ehmaldonadod046d982016-08-08 06:59:14 -0700204 ],
kjellander1c814e72016-08-16 02:42:02 -0700205 'ios_gyp_debug_static_bot_x64': [
206 'ios', 'gyp', 'release_bot', 'x64'
ehmaldonadod046d982016-08-08 06:59:14 -0700207 ],
ehmaldonado09abaa02016-08-09 02:26:16 -0700208
kjellander0ae78782016-08-11 00:49:47 -0700209 # Linux, Mac and Windows
kjellander5d6b84c2016-08-09 13:17:40 -0700210 'gyp_crosscompile_release_bot_arm': [
211 'gyp', 'crosscompile', 'openh264_release_bot', 'arm'
ehmaldonado09abaa02016-08-09 02:26:16 -0700212 ],
213 'gyp_debug_bot_x86': [
kjellander3cb0c572016-08-09 13:00:57 -0700214 'gyp', 'openh264_debug_bot', 'x86'
ehmaldonado09abaa02016-08-09 02:26:16 -0700215 ],
216 'gyp_release_bot_x86': [
kjellander3cb0c572016-08-09 13:00:57 -0700217 'gyp', 'openh264_release_bot', 'x86'
ehmaldonado09abaa02016-08-09 02:26:16 -0700218 ],
219 'gyp_debug_bot_x64': [
kjellander3cb0c572016-08-09 13:00:57 -0700220 'gyp', 'openh264_debug_bot', 'x64'
ehmaldonado09abaa02016-08-09 02:26:16 -0700221 ],
222 'gyp_release_bot_x64': [
kjellander3cb0c572016-08-09 13:00:57 -0700223 'gyp', 'openh264_release_bot', 'x64'
ehmaldonado09abaa02016-08-09 02:26:16 -0700224 ],
225 'gyp_asan_lsan_clang_release_bot_x64': [
kjellander3cb0c572016-08-09 13:00:57 -0700226 'gyp', 'asan', 'lsan', 'clang', 'openh264_release_bot', 'x64'
ehmaldonado09abaa02016-08-09 02:26:16 -0700227 ],
228 'gyp_memcheck_release_bot_x64': [
kjellander3cb0c572016-08-09 13:00:57 -0700229 'gyp', 'memcheck', 'openh264_release_bot', 'x64'
ehmaldonado09abaa02016-08-09 02:26:16 -0700230 ],
231 'gyp_msan_clang_release_bot_x64': [
kjellander3cb0c572016-08-09 13:00:57 -0700232 'gyp', 'msan', 'clang', 'openh264_release_bot', 'x64'
ehmaldonado09abaa02016-08-09 02:26:16 -0700233 ],
234 'gyp_tsan_clang_release_bot_x64': [
kjellander3cb0c572016-08-09 13:00:57 -0700235 'gyp', 'tsan', 'clang', 'openh264_release_bot', 'x64'
ehmaldonado09abaa02016-08-09 02:26:16 -0700236 ],
237 'gyp_ubsan_clang_release_bot_x64': [
kjellander3cb0c572016-08-09 13:00:57 -0700238 'gyp', 'ubsan', 'clang', 'openh264_release_bot', 'x64'
ehmaldonado09abaa02016-08-09 02:26:16 -0700239 ],
240 'gyp_ubsan_vptr_clang_release_bot_x64': [
kjellander3cb0c572016-08-09 13:00:57 -0700241 'gyp', 'ubsan_vptr', 'clang', 'openh264_release_bot', 'x64'
ehmaldonado09abaa02016-08-09 02:26:16 -0700242 ],
kjellander3cb0c572016-08-09 13:00:57 -0700243 'gn_debug_bot_x64': [
244 'gn', 'openh264_debug_bot', 'x64'
ehmaldonado09abaa02016-08-09 02:26:16 -0700245 ],
kjellander3cb0c572016-08-09 13:00:57 -0700246 'gn_release_bot_x64': [
247 'gn', 'openh264_release_bot', 'x64'
ehmaldonado09abaa02016-08-09 02:26:16 -0700248 ],
kjellander3cb0c572016-08-09 13:00:57 -0700249 'swarming_gyp_debug_bot_x64': [
250 'swarming', 'gyp', 'openh264_debug_bot', 'x64'
ehmaldonado89b0ca82016-08-09 08:15:03 -0700251 ],
252
kjellander0ae78782016-08-11 00:49:47 -0700253 # Windows
254 'win_gyp_clang_debug_bot_x86': [
255 'gyp', 'clang', 'openh264_debug_bot', 'x86',
256 ],
257 'win_gyp_clang_release_bot_x86': [
258 'gyp', 'clang', 'openh264_release_bot', 'x86',
259 ],
260 'win_gyp_clang_debug_bot_x64': [
261 'gyp', 'clang', 'openh264_debug_bot', 'x64',
262 ],
263 'win_gyp_clang_release_bot_x64': [
264 'gyp', 'clang', 'openh264_release_bot', 'x64',
265 ],
266 'win_gyp_syzyasan_release_bot_x86': [
267 'gyp', 'syzyasan', 'minimal_symbols', 'openh264_release_bot', 'x86',
268 ],
269 # TODO(kjellander): Flip DrMemory bots over to Release after GN migration
270 # (http://crbug.com/636414).
271 'win_gyp_drmemory_debug_bot_x86': [
272 'gyp', 'drmemory', 'minimal_symbols', 'openh264_debug_bot', 'x86',
273 ],
274
ehmaldonadoa3a1fde2016-08-11 01:04:35 -0700275 # Mac
276 'mac_gyp_asan_clang_release_bot_x64': [
277 'gyp', 'asan', 'clang', 'openh264_release_bot', 'x64',
278 ],
279
ehmaldonado89b0ca82016-08-09 08:15:03 -0700280 # Android
kjellander68815bf2016-08-10 09:49:37 -0700281 'android_gyp_debug_static_bot_arm': [
kjellander4c8adb12016-08-24 00:34:40 -0700282 'android', 'gyp', 'debug_static_bot', 'arm', 'exclude_tests'
ehmaldonado89b0ca82016-08-09 08:15:03 -0700283 ],
kjellander3cb0c572016-08-09 13:00:57 -0700284 'android_gyp_release_bot_arm': [
kjellander4c8adb12016-08-24 00:34:40 -0700285 'android', 'gyp', 'release_bot', 'arm', 'exclude_tests'
ehmaldonado89b0ca82016-08-09 08:15:03 -0700286 ],
kjellander68815bf2016-08-10 09:49:37 -0700287 'android_gn_debug_static_bot_arm': [
288 'android', 'gn', 'debug_static_bot', 'arm'
ehmaldonado89b0ca82016-08-09 08:15:03 -0700289 ],
kjellander3cb0c572016-08-09 13:00:57 -0700290 'android_gn_release_bot_arm': [
291 'android', 'gn', 'release_bot', 'arm'
ehmaldonado89b0ca82016-08-09 08:15:03 -0700292 ],
kjellander4c8adb12016-08-24 00:34:40 -0700293 'android_gn_debug_static_bot_x86': [
294 'android', 'gn', 'debug_static_bot', 'x86'
295 ],
296 'android_gn_release_bot_x86': [
297 'android', 'gn', 'release_bot', 'x86'
298 ],
299 'android_gn_clang_debug_static_bot_arm': [
300 'android', 'gn', 'clang', 'debug_static_bot', 'arm'
301 ],
302 'android_gn_clang_debug_static_bot_mipsel': [
303 'android', 'gn', 'clang', 'debug_static_bot', 'mipsel'
304 ],
305 'android_gn_debug_static_bot_arm64': [
306 'android', 'gn', 'debug_static_bot', 'arm64'
307 ],
308 'android_gn_release_bot_arm64': [
309 'android', 'gn', 'release_bot', 'arm64'
310 ],
311 'android_gn_debug_static_bot_x64': [
312 'android', 'gn', 'debug_static_bot', 'x64'
313 ],
ehmaldonado89b0ca82016-08-09 08:15:03 -0700314
315 # This is used for tracking purposes; any bot that uses this config
316 # should never actually run MB.
317 'none': [
318 'error',
319 ],
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100320 },
321
322 # This is a dict mapping a given 'mixin' name to a dict of settings that
323 # mb should use. See //tools/mb/docs/user_guide.md for more information.
324 'mixins': {
ehmaldonado89b0ca82016-08-09 08:15:03 -0700325 'android': {
326 'gn_args': 'target_os="android"',
327 'gyp_defines': 'OS=android',
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100328 },
329
330 'arm': {
331 'gn_args': 'target_cpu="arm"',
332 'gyp_defines': 'target_arch=arm',
333 },
334
335 'arm64': {
336 'gn_args': 'target_cpu="arm64"',
337 'gyp_defines': 'target_arch=arm64',
338 },
339
ehmaldonado09abaa02016-08-09 02:26:16 -0700340 'asan': {
341 'gn_args': 'is_asan=true',
342 'gyp_defines': 'asan=1',
343 },
344
345 'clang': {
346 'gn_args': 'is_clang=true',
347 'gyp_defines': 'clang=1',
348 },
349
kjellander5d6b84c2016-08-09 13:17:40 -0700350 'crosscompile': {
351 # This mixin is only needed on GYP bots that are doing cross-compiles
352 # but are *not* targetting Android or iOS (where
353 # webrtc/build/gyp_webrtc.py will set the crosscompile variable
354 # automatically). It is not need in GN at all.
355 'gyp_crosscompile': True,
356 },
357
ehmaldonado09abaa02016-08-09 02:26:16 -0700358 'dcheck_always_on': {
359 'gn_args': 'dcheck_always_on=true',
360 'gyp_defines': 'dcheck_always_on=1',
361 },
362
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100363 'debug': {
364 'gn_args': 'is_debug=true',
365 },
366
367 'debug_bot': {
ehmaldonado09abaa02016-08-09 02:26:16 -0700368 'mixins': ['debug', 'shared', 'goma'],
369 },
370
kjellander68815bf2016-08-10 09:49:37 -0700371 'debug_static_bot': {
372 'mixins': ['debug', 'static', 'minimal_symbols', 'goma'],
373 },
374
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100375 'device': {
kjellander@webrtc.org0c74ae12016-02-25 08:41:10 +0100376 'gn_args': 'ios_enable_code_signing=false',
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100377 'gyp_defines': 'chromium_ios_signing=0',
378 },
379
kjellander0ae78782016-08-11 00:49:47 -0700380 'drmemory': {
381 'gn_args': 'is_component_build=true enable_iterator_debugging=false',
382 'gyp_defines': 'component=shared_library build_for_tool=drmemory',
383 },
384
kjellander4c8adb12016-08-24 00:34:40 -0700385 'exclude_tests': {
386 'gn_args': 'rtc_include_tests=false',
387 'gyp_defines': 'include_tests=0',
388 },
389
ehmaldonado89b0ca82016-08-09 08:15:03 -0700390 # This mixin is used to force configs that use it to fail. It
391 # is used in two cases: when we have bots that we haven't looked
392 # at yet and don't know whether they need MB or not, and for bots
393 # that are test-only and should never run MB.
394 'error': {
395 'gn_args': 'error',
396 'gyp_defines': 'target_arch=unknown',
397 },
398
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100399 'gn': {'type': 'gn'},
400
ehmaldonado09abaa02016-08-09 02:26:16 -0700401 'goma': {
402 # The MB code will properly escape goma_dir if necessary in the GYP
403 # code path; the GN code path needs no escaping.
404 'gn_args': 'use_goma=true',
405 'gyp_defines': 'use_goma=1',
406 },
407
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100408 'gyp': {'type': 'gyp'},
409
ehmaldonado89b0ca82016-08-09 08:15:03 -0700410 'ios': {
411 'gn_args': 'target_os="ios"',
412 'gyp_defines': 'OS=ios',
413 },
414
ehmaldonado09abaa02016-08-09 02:26:16 -0700415 'lsan': {
416 'gn_args': 'is_lsan=true',
417 'gyp_defines': 'lsan=1',
418 },
419
420 'memcheck': {
421 'gyp_defines': 'build_for_tool=memcheck',
422 },
423
kjellander68815bf2016-08-10 09:49:37 -0700424 'minimal_symbols': {
425 'gn_args': 'symbol_level=1',
426 'gyp_defines': 'fastbuild=1',
427 },
428
ehmaldonado89b0ca82016-08-09 08:15:03 -0700429 'mipsel': {
430 'gn_args': 'target_cpu="mipsel"',
431 'gyp_defines': 'target_arch=mipsel',
432 },
433
kjellander0ae78782016-08-11 00:49:47 -0700434 'minimal_symbols': {
435 'gn_args': 'symbol_level=1',
436 'gyp_defines': 'fastbuild=1',
437 },
438
ehmaldonado09abaa02016-08-09 02:26:16 -0700439 'msan': {
440 'gn_args': ('is_msan=true msan_track_origins=2 '
441 'use_prebuilt_instrumented_libraries=true'),
442 'gyp_defines': ('msan=1 msan_track_origins=2 '
443 'use_prebuilt_instrumented_libraries=1'),
444 },
445
ehmaldonado09abaa02016-08-09 02:26:16 -0700446 'openh264': {
447 'gn_args': 'ffmpeg_branding="Chrome" rtc_use_h264=true',
448 'gyp_defines': 'ffmpeg_branding=Chrome rtc_use_h264=1',
449 },
450
kjellander3cb0c572016-08-09 13:00:57 -0700451 'openh264_debug_bot': {
452 'mixins': ['openh264', 'debug_bot'],
453 },
454
455 'openh264_release_bot': {
456 'mixins': ['openh264', 'release_bot'],
457 },
458
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100459 'release': {
460 'gn_args': 'is_debug=false',
461 },
462
463 'release_bot': {
kjellander3cb0c572016-08-09 13:00:57 -0700464 'mixins': ['release', 'static', 'dcheck_always_on', 'goma'],
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100465 },
466
467 'shared': {
468 'gn_args': 'is_component_build=true',
469 'gyp_defines': 'component=shared_library',
470 },
471
472 'static': {
473 'gn_args': 'is_component_build=false',
474 'gyp_defines': 'component=static_library',
475 },
476
ehmaldonado09abaa02016-08-09 02:26:16 -0700477 'swarming': {
478 'gn_args': '',
479 'gyp_defines': 'test_isolation_mode=prepare',
480 },
481
kjellander0ae78782016-08-11 00:49:47 -0700482 'syzyasan': {
483 'gn_args': 'is_syzyasan=true',
484 'gyp_defines': 'syzyasan=1'
485 },
486
kjellander3cb0c572016-08-09 13:00:57 -0700487 'tsan': {
488 'gn_args': 'is_tsan=true',
489 'gyp_defines': 'tsan=1',
490 },
491
ehmaldonado09abaa02016-08-09 02:26:16 -0700492 'ubsan': {
493 'gn_args': 'is_ubsan=true',
494 'gyp_defines': 'ubsan=1',
495 },
496
497 'ubsan_vptr': {
498 'gn_args': 'is_ubsan_vptr=true',
499 'gyp_defines': 'ubsan_vptr=1',
500 },
501
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100502 'x64': {
503 'gn_args': 'target_cpu="x64"',
504 'gyp_defines': 'target_arch=x64',
505 },
506
507 'x86': {
508 'gn_args': 'target_cpu="x86"',
509 'gyp_defines': 'target_arch=ia32',
510 },
511 },
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100512}