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

Side by Side Diff: tools/buildbot_spec.py

Issue 1346833004: Test-...-Release-SK_FOO --> -DSK_FOO (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: undo Created 5 years, 3 months 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 # Link-time code generation just wastes time on compile-only bots. 133 # Link-time code generation just wastes time on compile-only bots.
134 if (builder_dict.get('role') == builder_name_schema.BUILDER_ROLE_BUILD and 134 if (builder_dict.get('role') == builder_name_schema.BUILDER_ROLE_BUILD and
135 builder_dict.get('compiler') == 'MSVC'): 135 builder_dict.get('compiler') == 'MSVC'):
136 gyp_defs['skia_win_ltcg'] = '0' 136 gyp_defs['skia_win_ltcg'] = '0'
137 137
138 # Mesa. 138 # Mesa.
139 if (builder_dict.get('extra_config') == 'Mesa' or 139 if (builder_dict.get('extra_config') == 'Mesa' or
140 builder_dict.get('cpu_or_gpu_value') == 'Mesa'): 140 builder_dict.get('cpu_or_gpu_value') == 'Mesa'):
141 gyp_defs['skia_mesa'] = '1' 141 gyp_defs['skia_mesa'] = '1'
142 142
143 # SKNX_NO_SIMD
144 if builder_dict.get('extra_config') == 'SKNX_NO_SIMD':
145 gyp_defs['sknx_no_simd'] = '1'
146
147 # skia_use_android_framework_defines. 143 # skia_use_android_framework_defines.
148 if builder_dict.get('extra_config') == 'Android_FrameworkDefs': 144 if builder_dict.get('extra_config') == 'Android_FrameworkDefs':
149 gyp_defs['skia_use_android_framework_defines'] = '1' 145 gyp_defs['skia_use_android_framework_defines'] = '1'
150 146
151 return gyp_defs 147 return gyp_defs
152 148
153 149
154 cov_skip.extend([lineno(), lineno() + 1]) 150 cov_skip.extend([lineno(), lineno() + 1])
155 def get_extra_env_vars(builder_dict): 151 def get_extra_env_vars(builder_dict):
156 env = {} 152 env = {}
157 if builder_dict.get('configuration') == 'Coverage': 153 if builder_dict.get('configuration') == 'Coverage':
158 # We have to use Clang 3.6 because earlier versions do not support the 154 # We have to use Clang 3.6 because earlier versions do not support the
159 # compile flags we use and 3.7 and 3.8 hit asserts during compilation. 155 # compile flags we use and 3.7 and 3.8 hit asserts during compilation.
160 env['CC'] = '/usr/bin/clang-3.6' 156 env['CC'] = '/usr/bin/clang-3.6'
161 env['CXX'] = '/usr/bin/clang++-3.6' 157 env['CXX'] = '/usr/bin/clang++-3.6'
162 elif builder_dict.get('compiler') == 'Clang': 158 elif builder_dict.get('compiler') == 'Clang':
163 env['CC'] = '/usr/bin/clang' 159 env['CC'] = '/usr/bin/clang'
164 env['CXX'] = '/usr/bin/clang++' 160 env['CXX'] = '/usr/bin/clang++'
165 161
162 # SKNX_NO_SIMD, SK_USE_DISCARDABLE_SCALEDIMAGECACHE, etc.
163 extra_config = builder_dict.get('extra_config', '')
164 if extra_config.startswith('SK') and extra_config.isupper():
165 env['CPPFLAGS'] = '-D' + extra_config
166
166 return env 167 return env
167 168
168 169
169 cov_skip.extend([lineno(), lineno() + 1]) 170 cov_skip.extend([lineno(), lineno() + 1])
170 def build_targets_from_builder_dict(builder_dict): 171 def build_targets_from_builder_dict(builder_dict):
171 """Return a list of targets to build, depending on the builder type.""" 172 """Return a list of targets to build, depending on the builder type."""
172 if builder_dict['role'] in ('Test', 'Perf') and builder_dict['os'] == 'iOS': 173 if builder_dict['role'] in ('Test', 'Perf') and builder_dict['os'] == 'iOS':
173 return ['iOSShell'] 174 return ['iOSShell']
174 elif builder_dict['role'] == builder_name_schema.BUILDER_ROLE_TEST: 175 elif builder_dict['role'] == builder_name_schema.BUILDER_ROLE_TEST:
175 t = ['dm'] 176 t = ['dm']
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 if len(sys.argv) == 2 and sys.argv[1] == 'test': 341 if len(sys.argv) == 2 and sys.argv[1] == 'test':
341 self_test() 342 self_test()
342 sys.exit(0) 343 sys.exit(0)
343 344
344 if len(sys.argv) != 3: 345 if len(sys.argv) != 3:
345 print usage 346 print usage
346 sys.exit(1) 347 sys.exit(1)
347 348
348 with open(sys.argv[1], 'w') as out: 349 with open(sys.argv[1], 'w') as out:
349 json.dump(get_builder_spec(sys.argv[2]), out) 350 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