OLD | NEW |
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 Loading... |
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 Loading... |
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 Loading... |
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) |
OLD | NEW |