blob: 8271a4792c3e7fffd011d6eec67aef0cc9f5af51 [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
ehmaldonadod046d982016-08-08 06:59:14 -070023 'iOS32 Debug': 'ios_gyp_debug_bot_arm_device',
24 'iOS32 Release': 'ios_gyp_release_bot_arm_device',
25 'iOS64 Debug': 'ios_gyp_debug_bot_arm64_device',
26 'iOS64 Release': 'ios_gyp_release_bot_arm64_device',
27 'iOS32 Debug Simulator': 'ios_gyp_debug_bot_x86',
28 'iOS64 Debug Simulator': 'ios_gyp_debug_bot_x64',
29 'iOS64 Debug (GN)': 'ios_gn_debug_bot_arm64_device',
30 '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
kjellander3cb0c572016-08-09 13:00:57 -070092 'ios_dbg': 'ios_gyp_debug_bot_arm_device',
93 'ios_rel': 'ios_gyp_release_bot_arm_device',
94 'ios_arm64_dbg': 'ios_gyp_debug_bot_arm64_device',
95 'ios_arm64_rel': 'ios_gyp_release_bot_arm64_device',
96 'ios32_sim_dbg': 'ios_gyp_debug_bot_x86',
97 'ios64_sim_dbg': 'ios_gyp_debug_bot_x64',
98 'ios64_gn_dbg': 'ios_gn_debug_bot_arm64_device',
99 '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
ehmaldonadod046d982016-08-08 06:59:14 -0700176 'ios_gn_debug_bot_arm64_device': [
ehmaldonado09abaa02016-08-09 02:26:16 -0700177 'ios', 'gn', 'ios_debug_bot', 'arm64', 'device'
ehmaldonadod046d982016-08-08 06:59:14 -0700178 ],
179 'ios_gn_release_bot_arm64_device': [
ehmaldonado09abaa02016-08-09 02:26:16 -0700180 'ios', 'gn', 'ios_release_bot', 'arm64', 'device'
ehmaldonadod046d982016-08-08 06:59:14 -0700181 ],
182 'ios_gyp_debug_bot_arm_device': [
ehmaldonado09abaa02016-08-09 02:26:16 -0700183 'ios', 'gyp', 'ios_debug_bot', 'arm', 'device'
ehmaldonadod046d982016-08-08 06:59:14 -0700184 ],
185 'ios_gyp_release_bot_arm_device': [
ehmaldonado09abaa02016-08-09 02:26:16 -0700186 'ios', 'gyp', 'ios_release_bot', 'arm', 'device'
ehmaldonadod046d982016-08-08 06:59:14 -0700187 ],
188 'ios_gyp_debug_bot_arm64_device': [
ehmaldonado09abaa02016-08-09 02:26:16 -0700189 'ios', 'gyp', 'ios_debug_bot', 'arm64', 'device'
ehmaldonadod046d982016-08-08 06:59:14 -0700190 ],
191 'ios_gyp_release_bot_arm64_device': [
ehmaldonado09abaa02016-08-09 02:26:16 -0700192 'ios', 'gyp', 'ios_release_bot', 'arm64', 'device'
ehmaldonadod046d982016-08-08 06:59:14 -0700193 ],
194 'ios_gyp_debug_bot_x86': [
ehmaldonado09abaa02016-08-09 02:26:16 -0700195 'ios', 'gyp', 'ios_debug_bot', 'x86'
ehmaldonadod046d982016-08-08 06:59:14 -0700196 ],
197 'ios_gyp_debug_bot_x64': [
ehmaldonado09abaa02016-08-09 02:26:16 -0700198 'ios', 'gyp', 'ios_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 'ios_debug_bot': {
403 'mixins': ['debug', 'shared']
404 },
405
ehmaldonado09abaa02016-08-09 02:26:16 -0700406 'ios_release_bot': {
407 'mixins': ['release', 'static']
408 },
409
ehmaldonado09abaa02016-08-09 02:26:16 -0700410 'lsan': {
411 'gn_args': 'is_lsan=true',
412 'gyp_defines': 'lsan=1',
413 },
414
415 'memcheck': {
416 'gyp_defines': 'build_for_tool=memcheck',
417 },
418
kjellander68815bf2016-08-10 09:49:37 -0700419 'minimal_symbols': {
420 'gn_args': 'symbol_level=1',
421 'gyp_defines': 'fastbuild=1',
422 },
423
ehmaldonado89b0ca82016-08-09 08:15:03 -0700424 'mipsel': {
425 'gn_args': 'target_cpu="mipsel"',
426 'gyp_defines': 'target_arch=mipsel',
427 },
428
kjellander0ae78782016-08-11 00:49:47 -0700429 'minimal_symbols': {
430 'gn_args': 'symbol_level=1',
431 'gyp_defines': 'fastbuild=1',
432 },
433
ehmaldonado09abaa02016-08-09 02:26:16 -0700434 'msan': {
435 'gn_args': ('is_msan=true msan_track_origins=2 '
436 'use_prebuilt_instrumented_libraries=true'),
437 'gyp_defines': ('msan=1 msan_track_origins=2 '
438 'use_prebuilt_instrumented_libraries=1'),
439 },
440
ehmaldonado09abaa02016-08-09 02:26:16 -0700441 'openh264': {
442 'gn_args': 'ffmpeg_branding="Chrome" rtc_use_h264=true',
443 'gyp_defines': 'ffmpeg_branding=Chrome rtc_use_h264=1',
444 },
445
kjellander3cb0c572016-08-09 13:00:57 -0700446 'openh264_debug_bot': {
447 'mixins': ['openh264', 'debug_bot'],
448 },
449
450 'openh264_release_bot': {
451 'mixins': ['openh264', 'release_bot'],
452 },
453
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100454 'release': {
455 'gn_args': 'is_debug=false',
456 },
457
458 'release_bot': {
kjellander3cb0c572016-08-09 13:00:57 -0700459 'mixins': ['release', 'static', 'dcheck_always_on', 'goma'],
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100460 },
461
462 'shared': {
463 'gn_args': 'is_component_build=true',
464 'gyp_defines': 'component=shared_library',
465 },
466
467 'static': {
468 'gn_args': 'is_component_build=false',
469 'gyp_defines': 'component=static_library',
470 },
471
ehmaldonado09abaa02016-08-09 02:26:16 -0700472 'swarming': {
473 'gn_args': '',
474 'gyp_defines': 'test_isolation_mode=prepare',
475 },
476
kjellander0ae78782016-08-11 00:49:47 -0700477 'syzyasan': {
478 'gn_args': 'is_syzyasan=true',
479 'gyp_defines': 'syzyasan=1'
480 },
481
kjellander3cb0c572016-08-09 13:00:57 -0700482 'tsan': {
483 'gn_args': 'is_tsan=true',
484 'gyp_defines': 'tsan=1',
485 },
486
ehmaldonado09abaa02016-08-09 02:26:16 -0700487 'ubsan': {
488 'gn_args': 'is_ubsan=true',
489 'gyp_defines': 'ubsan=1',
490 },
491
492 'ubsan_vptr': {
493 'gn_args': 'is_ubsan_vptr=true',
494 'gyp_defines': 'ubsan_vptr=1',
495 },
496
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100497 'x64': {
498 'gn_args': 'target_cpu="x64"',
499 'gyp_defines': 'target_arch=x64',
500 },
501
502 'x86': {
503 'gn_args': 'target_cpu="x86"',
504 'gyp_defines': 'target_arch=ia32',
505 },
506 },
kjellander@webrtc.org861dcb72016-02-24 21:36:40 +0100507}