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

Side by Side Diff: tools/buildbot_spec.py

Issue 1885563002: GYP_DEFINES and DM flags for Vulkan bot (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Remove TODO Created 4 years, 8 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') | tools/dm_flags.json » ('j') | 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 157
158 # Skia dump stats for perf tests and gpu 158 # Skia dump stats for perf tests and gpu
159 if (builder_dict.get('cpu_or_gpu') == 'GPU' and 159 if (builder_dict.get('cpu_or_gpu') == 'GPU' and
160 builder_dict.get('role') == 'Perf'): 160 builder_dict.get('role') == 'Perf'):
161 gyp_defs['skia_dump_stats'] = '1' 161 gyp_defs['skia_dump_stats'] = '1'
162 162
163 # CommandBuffer. 163 # CommandBuffer.
164 if builder_dict.get('extra_config') == 'CommandBuffer': 164 if builder_dict.get('extra_config') == 'CommandBuffer':
165 gyp_defs['skia_command_buffer'] = '1' 165 gyp_defs['skia_command_buffer'] = '1'
166 166
167 # Vulkan.
168 if builder_dict.get('extra_config') == 'Vulkan':
169 gyp_defs['skia_vulkan'] = '1'
170
167 return gyp_defs 171 return gyp_defs
168 172
169 173
170 cov_skip.extend([lineno(), lineno() + 1]) 174 cov_skip.extend([lineno(), lineno() + 1])
171 def get_extra_env_vars(builder_dict): 175 def get_extra_env_vars(builder_dict):
172 env = {} 176 env = {}
173 if builder_dict.get('configuration') == 'Coverage': 177 if builder_dict.get('configuration') == 'Coverage':
174 # We have to use Clang 3.6 because earlier versions do not support the 178 # We have to use Clang 3.6 because earlier versions do not support the
175 # compile flags we use and 3.7 and 3.8 hit asserts during compilation. 179 # compile flags we use and 3.7 and 3.8 hit asserts during compilation.
176 env['CC'] = '/usr/bin/clang-3.6' 180 env['CC'] = '/usr/bin/clang-3.6'
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug', 375 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug',
372 'Test-Mac-Clang-MacMini6.2-GPU-HD4000-x86_64-Debug-CommandBuffer', 376 'Test-Mac-Clang-MacMini6.2-GPU-HD4000-x86_64-Debug-CommandBuffer',
373 'Test-Mac10.8-Clang-MacMini4.1-GPU-GeForce320M-x86_64-Release', 377 'Test-Mac10.8-Clang-MacMini4.1-GPU-GeForce320M-x86_64-Release',
374 'Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Coverage', 378 'Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Coverage',
375 ('Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-' 379 ('Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-'
376 'SK_USE_DISCARDABLE_SCALEDIMAGECACHE'), 380 'SK_USE_DISCARDABLE_SCALEDIMAGECACHE'),
377 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD', 381 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD',
378 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Fast', 382 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Fast',
379 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared', 383 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared',
380 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind', 384 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind',
385 'Test-Win10-MSVC-ShuttleA-GPU-GTX660-x86_64-Debug-Vulkan',
381 'Test-Win8-MSVC-ShuttleB-GPU-HD4600-x86-Release-ANGLE', 386 'Test-Win8-MSVC-ShuttleB-GPU-HD4600-x86-Release-ANGLE',
382 'Test-Win8-MSVC-ShuttleA-CPU-AVX-x86_64-Debug', 387 'Test-Win8-MSVC-ShuttleA-CPU-AVX-x86_64-Debug',
383 ] 388 ]
384 389
385 cov = coverage.coverage() 390 cov = coverage.coverage()
386 cov.start() 391 cov.start()
387 for case in cases: 392 for case in cases:
388 args[case] = get_builder_spec(case) 393 args[case] = get_builder_spec(case)
389 cov.stop() 394 cov.stop()
390 395
(...skipping 14 matching lines...) Expand all
405 if len(sys.argv) == 2 and sys.argv[1] == 'test': 410 if len(sys.argv) == 2 and sys.argv[1] == 'test':
406 self_test() 411 self_test()
407 sys.exit(0) 412 sys.exit(0)
408 413
409 if len(sys.argv) != 3: 414 if len(sys.argv) != 3:
410 print usage 415 print usage
411 sys.exit(1) 416 sys.exit(1)
412 417
413 with open(sys.argv[1], 'w') as out: 418 with open(sys.argv[1], 'w') as out:
414 json.dump(get_builder_spec(sys.argv[2]), out) 419 json.dump(get_builder_spec(sys.argv[2]), out)
OLDNEW
« no previous file with comments | « tools/buildbot_spec.json ('k') | tools/dm_flags.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698