OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 from master import master_config | 5 from master import master_config |
6 from master.factory import libyuv_factory | 6 from master.factory import libyuv_factory |
7 | 7 |
8 defaults = {} | 8 defaults = {} |
9 | 9 |
10 helper = master_config.Helper(defaults) | 10 helper = master_config.Helper(defaults) |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 }, | 42 }, |
43 } | 43 } |
44 | 44 |
45 mac_ios_factory_properties = { | 45 mac_ios_factory_properties = { |
46 'gclient_env': { | 46 'gclient_env': { |
47 'GYP_CROSSCOMPILE': '1', | 47 'GYP_CROSSCOMPILE': '1', |
48 'GYP_DEFINES': 'OS=ios target_arch=armv7', | 48 'GYP_DEFINES': 'OS=ios target_arch=armv7', |
49 } | 49 } |
50 } | 50 } |
51 | 51 |
52 asan_gclient_env = { | |
53 'GYP_DEFINES': ('asan=1 release_extra_cflags=-g linux_use_tcmalloc=0 ')} | |
54 | |
55 # Windows. | 52 # Windows. |
56 defaults['category'] = 'win' | 53 defaults['category'] = 'win' |
57 | 54 |
58 B('Win32 Debug', 'win32_debug_factory', scheduler=scheduler_name) | 55 B('Win32 Debug', 'win32_debug_factory', scheduler=scheduler_name) |
59 F('win32_debug_factory', win().LibyuvFactory( | 56 F('win32_debug_factory', win().LibyuvFactory( |
60 target='Debug', | 57 target='Debug', |
61 options=ninja_options, | 58 options=ninja_options, |
62 tests=test_targets, | 59 tests=test_targets, |
63 factory_properties=win_msvs_missing_files_factory_properties)) | 60 factory_properties=win_msvs_missing_files_factory_properties)) |
64 | 61 |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 'gclient_env': {'GYP_DEFINES': 'host_arch=x64 target_arch=x64'}, | 148 'gclient_env': {'GYP_DEFINES': 'host_arch=x64 target_arch=x64'}, |
152 })) | 149 })) |
153 | 150 |
154 B('Mac Asan', 'mac_asan_factory', scheduler=scheduler_name) | 151 B('Mac Asan', 'mac_asan_factory', scheduler=scheduler_name) |
155 F('mac_asan_factory', mac().LibyuvFactory( | 152 F('mac_asan_factory', mac().LibyuvFactory( |
156 target='Release', | 153 target='Release', |
157 options=ninja_options, | 154 options=ninja_options, |
158 tests=test_targets, | 155 tests=test_targets, |
159 factory_properties={ | 156 factory_properties={ |
160 'asan': True, | 157 'asan': True, |
161 'gclient_env': asan_gclient_env.copy(), | 158 'gclient_env': {'GYP_DEFINES': 'asan=1 release_extra_cflags=-g'}, |
162 })) | 159 })) |
163 | 160 |
164 B('iOS Debug', 'ios_debug_factory', scheduler=scheduler_name) | 161 B('iOS Debug', 'ios_debug_factory', scheduler=scheduler_name) |
165 F('ios_debug_factory', mac_ios().LibyuvFactory( | 162 F('ios_debug_factory', mac_ios().LibyuvFactory( |
166 target='Debug-iphoneos', | 163 target='Debug-iphoneos', |
167 options=ninja_options, | 164 options=ninja_options, |
168 factory_properties=mac_ios_factory_properties)) | 165 factory_properties=mac_ios_factory_properties)) |
169 | 166 |
170 B('iOS Release', 'ios_release_factory', scheduler=scheduler_name) | 167 B('iOS Release', 'ios_release_factory', scheduler=scheduler_name) |
171 F('ios_release_factory', mac_ios().LibyuvFactory( | 168 F('ios_release_factory', mac_ios().LibyuvFactory( |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 'gclient_env': {'GYP_DEFINES': 'build_for_tool=tsan'}, | 226 'gclient_env': {'GYP_DEFINES': 'build_for_tool=tsan'}, |
230 })) | 227 })) |
231 | 228 |
232 B('Linux Asan', 'linux_asan_factory', scheduler=scheduler_name) | 229 B('Linux Asan', 'linux_asan_factory', scheduler=scheduler_name) |
233 F('linux_asan_factory', linux().LibyuvFactory( | 230 F('linux_asan_factory', linux().LibyuvFactory( |
234 target='Release', | 231 target='Release', |
235 options=ninja_options, | 232 options=ninja_options, |
236 tests=test_targets, | 233 tests=test_targets, |
237 factory_properties={ | 234 factory_properties={ |
238 'asan': True, | 235 'asan': True, |
239 'gclient_env': asan_gclient_env.copy(), | 236 'gclient_env': { |
| 237 'GYP_DEFINES': 'asan=1 release_extra_cflags=-g use_allocator=none', |
| 238 }, |
240 })) | 239 })) |
241 | 240 |
242 # Android. | 241 # Android. |
243 B('Android Debug', 'android_debug_factory', scheduler=scheduler_name) | 242 B('Android Debug', 'android_debug_factory', scheduler=scheduler_name) |
244 F('android_debug_factory', android().ChromiumAnnotationFactory( | 243 F('android_debug_factory', android().ChromiumAnnotationFactory( |
245 target='Debug', | 244 target='Debug', |
246 annotation_script='src/build/android/buildbot/bb_run_bot.py', | 245 annotation_script='src/build/android/buildbot/bb_run_bot.py', |
247 factory_properties={ | 246 factory_properties={ |
248 'android_bot_id': 'libyuv-main-clobber-dbg', | 247 'android_bot_id': 'libyuv-main-clobber-dbg', |
249 })) | 248 })) |
(...skipping 10 matching lines...) Expand all Loading... |
260 B('Chrome OS', 'chromeos_factory', scheduler=scheduler_name) | 259 B('Chrome OS', 'chromeos_factory', scheduler=scheduler_name) |
261 F('chromeos_factory', linux().LibyuvFactory( | 260 F('chromeos_factory', linux().LibyuvFactory( |
262 target='Debug', | 261 target='Debug', |
263 options=ninja_options, | 262 options=ninja_options, |
264 tests=test_targets, | 263 tests=test_targets, |
265 factory_properties={'gclient_env': {'GYP_DEFINES': 'chromeos=1'}})) | 264 factory_properties={'gclient_env': {'GYP_DEFINES': 'chromeos=1'}})) |
266 | 265 |
267 | 266 |
268 def Update(c): | 267 def Update(c): |
269 helper.Update(c) | 268 helper.Update(c) |
OLD | NEW |