Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(830)

Side by Side Diff: tools/buildbot_spec.py

Issue 1492133002: Wire up new define in buildbot_spec (Closed) Base URL: https://skia.googlesource.com/skia.git@forrealwire
Patch Set: actually wire up Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/buildbot_spec.json ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # 1 #
2 # Copyright 2015 Google Inc. 2 # Copyright 2015 Google Inc.
3 # 3 #
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 # 6 #
7 7
8 #!/usr/bin/env python 8 #!/usr/bin/env python
9 9
10 usage = ''' 10 usage = '''
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 140
141 # Mesa. 141 # Mesa.
142 if (builder_dict.get('extra_config') == 'Mesa' or 142 if (builder_dict.get('extra_config') == 'Mesa' or
143 builder_dict.get('cpu_or_gpu_value') == 'Mesa'): 143 builder_dict.get('cpu_or_gpu_value') == 'Mesa'):
144 gyp_defs['skia_mesa'] = '1' 144 gyp_defs['skia_mesa'] = '1'
145 145
146 # skia_use_android_framework_defines. 146 # skia_use_android_framework_defines.
147 if builder_dict.get('extra_config') == 'Android_FrameworkDefs': 147 if builder_dict.get('extra_config') == 'Android_FrameworkDefs':
148 gyp_defs['skia_use_android_framework_defines'] = '1' 148 gyp_defs['skia_use_android_framework_defines'] = '1'
149 149
150 # Skia dump stats for perf tests and gpu
151 if (builder_dict.get('cpu_or_gpu') == 'GPU' and
152 builder_dict.get('role') == 'Perf'):
153 gyp_defs['skia_dump_stats'] = '1'
154
150 return gyp_defs 155 return gyp_defs
151 156
152 157
153 cov_skip.extend([lineno(), lineno() + 1]) 158 cov_skip.extend([lineno(), lineno() + 1])
154 def get_extra_env_vars(builder_dict): 159 def get_extra_env_vars(builder_dict):
155 env = {} 160 env = {}
156 if builder_dict.get('configuration') == 'Coverage': 161 if builder_dict.get('configuration') == 'Coverage':
157 # We have to use Clang 3.6 because earlier versions do not support the 162 # We have to use Clang 3.6 because earlier versions do not support the
158 # compile flags we use and 3.7 and 3.8 hit asserts during compilation. 163 # compile flags we use and 3.7 and 3.8 hit asserts during compilation.
159 env['CC'] = '/usr/bin/clang-3.6' 164 env['CC'] = '/usr/bin/clang-3.6'
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 if len(sys.argv) == 2 and sys.argv[1] == 'test': 357 if len(sys.argv) == 2 and sys.argv[1] == 'test':
353 self_test() 358 self_test()
354 sys.exit(0) 359 sys.exit(0)
355 360
356 if len(sys.argv) != 3: 361 if len(sys.argv) != 3:
357 print usage 362 print usage
358 sys.exit(1) 363 sys.exit(1)
359 364
360 with open(sys.argv[1], 'w') as out: 365 with open(sys.argv[1], 'w') as out:
361 json.dump(get_builder_spec(sys.argv[2]), out) 366 json.dump(get_builder_spec(sys.argv[2]), out)
OLDNEW
« no previous file with comments | « tools/buildbot_spec.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698