blob: 6a69d077d6172020dc53027494fa4f73a430e662 [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': [
ehmaldonado7a0ff2f2016-08-24 06:09:17 -0700282 'android', 'gyp', 'debug_static_bot', 'arm', 'exclude_tests',
283 'exclude_examples'
ehmaldonado89b0ca82016-08-09 08:15:03 -0700284 ],
kjellander3cb0c572016-08-09 13:00:57 -0700285 'android_gyp_release_bot_arm': [
ehmaldonado7a0ff2f2016-08-24 06:09:17 -0700286 'android', 'gyp', 'release_bot', 'arm', 'exclude_tests',
287 'exclude_examples'
ehmaldonado89b0ca82016-08-09 08:15:03 -0700288 ],
kjellander68815bf2016-08-10 09:49:37 -0700289 'android_gn_debug_static_bot_arm': [
290 'android', 'gn', 'debug_static_bot', 'arm'
ehmaldonado89b0ca82016-08-09 08:15:03 -0700291 ],
kjellander3cb0c572016-08-09 13:00:57 -0700292 'android_gn_release_bot_arm': [
293 'android', 'gn', 'release_bot', 'arm'
ehmaldonado89b0ca82016-08-09 08:15:03 -0700294 ],
kjellander4c8adb12016-08-24 00:34:40 -0700295 'android_gn_debug_static_bot_x86': [
296 'android', 'gn', 'debug_static_bot', 'x86'
297 ],
298 'android_gn_release_bot_x86': [
299 'android', 'gn', 'release_bot', 'x86'
300 ],
301 'android_gn_clang_debug_static_bot_arm': [
302 'android', 'gn', 'clang', 'debug_static_bot', 'arm'
303 ],
304 'android_gn_clang_debug_static_bot_mipsel': [
305 'android', 'gn', 'clang', 'debug_static_bot', 'mipsel'
306 ],
307 'android_gn_debug_static_bot_arm64': [
308 'android', 'gn', 'debug_static_bot', 'arm64'
309 ],
310 'android_gn_release_bot_arm64': [
311 'android', 'gn', 'release_bot', 'arm64'
312 ],
313 'android_gn_debug_static_bot_x64': [
314 'android', 'gn', 'debug_static_bot', 'x64'
315 ],
ehmaldonado89b0ca82016-08-09 08:15:03 -0700316
317 # This is used for tracking purposes; any bot that uses this config
318 # should never actually run MB.
319 'none': [
320 'error',
321 ],
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100322 },
323
324 # This is a dict mapping a given 'mixin' name to a dict of settings that
325 # mb should use. See //tools/mb/docs/user_guide.md for more information.
326 'mixins': {
ehmaldonado89b0ca82016-08-09 08:15:03 -0700327 'android': {
328 'gn_args': 'target_os="android"',
329 'gyp_defines': 'OS=android',
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100330 },
331
332 'arm': {
333 'gn_args': 'target_cpu="arm"',
334 'gyp_defines': 'target_arch=arm',
335 },
336
337 'arm64': {
338 'gn_args': 'target_cpu="arm64"',
339 'gyp_defines': 'target_arch=arm64',
340 },
341
ehmaldonado09abaa02016-08-09 02:26:16 -0700342 'asan': {
343 'gn_args': 'is_asan=true',
344 'gyp_defines': 'asan=1',
345 },
346
347 'clang': {
348 'gn_args': 'is_clang=true',
349 'gyp_defines': 'clang=1',
350 },
351
kjellander5d6b84c2016-08-09 13:17:40 -0700352 'crosscompile': {
353 # This mixin is only needed on GYP bots that are doing cross-compiles
354 # but are *not* targetting Android or iOS (where
355 # webrtc/build/gyp_webrtc.py will set the crosscompile variable
356 # automatically). It is not need in GN at all.
357 'gyp_crosscompile': True,
358 },
359
ehmaldonado09abaa02016-08-09 02:26:16 -0700360 'dcheck_always_on': {
361 'gn_args': 'dcheck_always_on=true',
362 'gyp_defines': 'dcheck_always_on=1',
363 },
364
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100365 'debug': {
366 'gn_args': 'is_debug=true',
367 },
368
369 'debug_bot': {
ehmaldonado09abaa02016-08-09 02:26:16 -0700370 'mixins': ['debug', 'shared', 'goma'],
371 },
372
kjellander68815bf2016-08-10 09:49:37 -0700373 'debug_static_bot': {
374 'mixins': ['debug', 'static', 'minimal_symbols', 'goma'],
375 },
376
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100377 'device': {
kjellander@webrtc.org0c74ae12016-02-25 08:41:10 +0100378 'gn_args': 'ios_enable_code_signing=false',
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100379 'gyp_defines': 'chromium_ios_signing=0',
380 },
381
kjellander0ae78782016-08-11 00:49:47 -0700382 'drmemory': {
383 'gn_args': 'is_component_build=true enable_iterator_debugging=false',
384 'gyp_defines': 'component=shared_library build_for_tool=drmemory',
385 },
386
ehmaldonado89b0ca82016-08-09 08:15:03 -0700387 # This mixin is used to force configs that use it to fail. It
388 # is used in two cases: when we have bots that we haven't looked
389 # at yet and don't know whether they need MB or not, and for bots
390 # that are test-only and should never run MB.
391 'error': {
392 'gn_args': 'error',
393 'gyp_defines': 'target_arch=unknown',
394 },
395
ehmaldonado7a0ff2f2016-08-24 06:09:17 -0700396 'exclude_examples': {
397 'gyp_defines': 'include_examples=0',
398 },
399
400 'exclude_tests': {
401 'gn_args': 'rtc_include_tests=false',
402 'gyp_defines': 'include_tests=0',
403 },
404
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100405 'gn': {'type': 'gn'},
406
ehmaldonado09abaa02016-08-09 02:26:16 -0700407 'goma': {
408 # The MB code will properly escape goma_dir if necessary in the GYP
409 # code path; the GN code path needs no escaping.
410 'gn_args': 'use_goma=true',
411 'gyp_defines': 'use_goma=1',
412 },
413
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100414 'gyp': {'type': 'gyp'},
415
ehmaldonado89b0ca82016-08-09 08:15:03 -0700416 'ios': {
417 'gn_args': 'target_os="ios"',
418 'gyp_defines': 'OS=ios',
419 },
420
ehmaldonado09abaa02016-08-09 02:26:16 -0700421 'lsan': {
422 'gn_args': 'is_lsan=true',
423 'gyp_defines': 'lsan=1',
424 },
425
426 'memcheck': {
427 'gyp_defines': 'build_for_tool=memcheck',
428 },
429
kjellander68815bf2016-08-10 09:49:37 -0700430 'minimal_symbols': {
431 'gn_args': 'symbol_level=1',
432 'gyp_defines': 'fastbuild=1',
433 },
434
ehmaldonado89b0ca82016-08-09 08:15:03 -0700435 'mipsel': {
436 'gn_args': 'target_cpu="mipsel"',
437 'gyp_defines': 'target_arch=mipsel',
438 },
439
kjellander0ae78782016-08-11 00:49:47 -0700440 'minimal_symbols': {
441 'gn_args': 'symbol_level=1',
442 'gyp_defines': 'fastbuild=1',
443 },
444
ehmaldonado09abaa02016-08-09 02:26:16 -0700445 'msan': {
446 'gn_args': ('is_msan=true msan_track_origins=2 '
447 'use_prebuilt_instrumented_libraries=true'),
448 'gyp_defines': ('msan=1 msan_track_origins=2 '
449 'use_prebuilt_instrumented_libraries=1'),
450 },
451
ehmaldonado09abaa02016-08-09 02:26:16 -0700452 'openh264': {
453 'gn_args': 'ffmpeg_branding="Chrome" rtc_use_h264=true',
454 'gyp_defines': 'ffmpeg_branding=Chrome rtc_use_h264=1',
455 },
456
kjellander3cb0c572016-08-09 13:00:57 -0700457 'openh264_debug_bot': {
458 'mixins': ['openh264', 'debug_bot'],
459 },
460
461 'openh264_release_bot': {
462 'mixins': ['openh264', 'release_bot'],
463 },
464
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100465 'release': {
466 'gn_args': 'is_debug=false',
467 },
468
469 'release_bot': {
kjellander3cb0c572016-08-09 13:00:57 -0700470 'mixins': ['release', 'static', 'dcheck_always_on', 'goma'],
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100471 },
472
473 'shared': {
474 'gn_args': 'is_component_build=true',
475 'gyp_defines': 'component=shared_library',
476 },
477
478 'static': {
479 'gn_args': 'is_component_build=false',
480 'gyp_defines': 'component=static_library',
481 },
482
ehmaldonado09abaa02016-08-09 02:26:16 -0700483 'swarming': {
484 'gn_args': '',
485 'gyp_defines': 'test_isolation_mode=prepare',
486 },
487
kjellander0ae78782016-08-11 00:49:47 -0700488 'syzyasan': {
489 'gn_args': 'is_syzyasan=true',
490 'gyp_defines': 'syzyasan=1'
491 },
492
kjellander3cb0c572016-08-09 13:00:57 -0700493 'tsan': {
494 'gn_args': 'is_tsan=true',
495 'gyp_defines': 'tsan=1',
496 },
497
ehmaldonado09abaa02016-08-09 02:26:16 -0700498 'ubsan': {
499 'gn_args': 'is_ubsan=true',
500 'gyp_defines': 'ubsan=1',
501 },
502
503 'ubsan_vptr': {
504 'gn_args': 'is_ubsan_vptr=true',
505 'gyp_defines': 'ubsan_vptr=1',
506 },
507
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100508 'x64': {
509 'gn_args': 'target_cpu="x64"',
510 'gyp_defines': 'target_arch=x64',
511 },
512
513 'x86': {
514 'gn_args': 'target_cpu="x86"',
515 'gyp_defines': 'target_arch=ia32',
516 },
517 },
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100518}