| 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 # Link-time code generation just wastes time on compile-only bots. | 136 # Link-time code generation just wastes time on compile-only bots. |
| 137 if (builder_dict.get('role') == builder_name_schema.BUILDER_ROLE_BUILD and | 137 if (builder_dict.get('role') == builder_name_schema.BUILDER_ROLE_BUILD and |
| 138 builder_dict.get('compiler') == 'MSVC'): | 138 builder_dict.get('compiler') == 'MSVC'): |
| 139 gyp_defs['skia_win_ltcg'] = '0' | 139 gyp_defs['skia_win_ltcg'] = '0' |
| 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 # VisualBench |
| 147 if builder_dict.get('extra_config') == 'VisualBench': |
| 148 gyp_defs['skia_use_sdl'] = '1' |
| 149 |
| 146 # skia_use_android_framework_defines. | 150 # skia_use_android_framework_defines. |
| 147 if builder_dict.get('extra_config') == 'Android_FrameworkDefs': | 151 if builder_dict.get('extra_config') == 'Android_FrameworkDefs': |
| 148 gyp_defs['skia_use_android_framework_defines'] = '1' | 152 gyp_defs['skia_use_android_framework_defines'] = '1' |
| 149 | 153 |
| 150 # Skia dump stats for perf tests and gpu | 154 # Skia dump stats for perf tests and gpu |
| 151 if (builder_dict.get('cpu_or_gpu') == 'GPU' and | 155 if (builder_dict.get('cpu_or_gpu') == 'GPU' and |
| 152 builder_dict.get('role') == 'Perf'): | 156 builder_dict.get('role') == 'Perf'): |
| 153 gyp_defs['skia_dump_stats'] = '1' | 157 gyp_defs['skia_dump_stats'] = '1' |
| 154 | 158 |
| 155 return gyp_defs | 159 return gyp_defs |
| (...skipping 22 matching lines...) Expand all Loading... |
| 178 cov_skip.extend([lineno(), lineno() + 1]) | 182 cov_skip.extend([lineno(), lineno() + 1]) |
| 179 def build_targets_from_builder_dict(builder_dict, do_test_steps, do_perf_steps): | 183 def build_targets_from_builder_dict(builder_dict, do_test_steps, do_perf_steps): |
| 180 """Return a list of targets to build, depending on the builder type.""" | 184 """Return a list of targets to build, depending on the builder type.""" |
| 181 if builder_dict['role'] in ('Test', 'Perf') and builder_dict['os'] == 'iOS': | 185 if builder_dict['role'] in ('Test', 'Perf') and builder_dict['os'] == 'iOS': |
| 182 return ['iOSShell'] | 186 return ['iOSShell'] |
| 183 if builder_dict.get('extra_config') == 'Appurify': | 187 if builder_dict.get('extra_config') == 'Appurify': |
| 184 return ['VisualBenchTest_APK'] | 188 return ['VisualBenchTest_APK'] |
| 185 t = [] | 189 t = [] |
| 186 if do_test_steps: | 190 if do_test_steps: |
| 187 t.append('dm') | 191 t.append('dm') |
| 188 if do_perf_steps: | 192 if do_perf_steps and builder_dict.get('extra_config') == 'VisualBench': |
| 189 t.append('nanobench') | 193 t.append('visualbench') |
| 194 elif do_perf_steps: |
| 195 t.append('nanobench') |
| 190 if t: | 196 if t: |
| 191 return t | 197 return t |
| 192 else: | 198 else: |
| 193 return ['most'] | 199 return ['most'] |
| 194 | 200 |
| 195 | 201 |
| 196 cov_skip.extend([lineno(), lineno() + 1]) | 202 cov_skip.extend([lineno(), lineno() + 1]) |
| 197 def device_cfg(builder_dict): | 203 def device_cfg(builder_dict): |
| 198 # Android. | 204 # Android. |
| 199 if 'Android' in builder_dict.get('extra_config', ''): | 205 if 'Android' in builder_dict.get('extra_config', ''): |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 'Build-Win-MSVC-x86-Debug-GDI', | 318 'Build-Win-MSVC-x86-Debug-GDI', |
| 313 'Build-Win-MSVC-x86-Debug-Exceptions', | 319 'Build-Win-MSVC-x86-Debug-Exceptions', |
| 314 'Build-Ubuntu-GCC-Arm7-Debug-Android_FrameworkDefs', | 320 'Build-Ubuntu-GCC-Arm7-Debug-Android_FrameworkDefs', |
| 315 'Build-Ubuntu-GCC-Arm7-Debug-Android_NoNeon', | 321 'Build-Ubuntu-GCC-Arm7-Debug-Android_NoNeon', |
| 316 'Build-Ubuntu-GCC-Arm7-Debug-CrOS_Daisy', | 322 'Build-Ubuntu-GCC-Arm7-Debug-CrOS_Daisy', |
| 317 'Build-Ubuntu-GCC-x86_64-Debug-CrOS_Link', | 323 'Build-Ubuntu-GCC-x86_64-Debug-CrOS_Link', |
| 318 'Build-Ubuntu-GCC-x86_64-Release-Mesa', | 324 'Build-Ubuntu-GCC-x86_64-Release-Mesa', |
| 319 'Build-Ubuntu-GCC-x86_64-Release-ANGLE', | 325 'Build-Ubuntu-GCC-x86_64-Release-ANGLE', |
| 320 'Housekeeper-PerCommit', | 326 'Housekeeper-PerCommit', |
| 321 'Perf-Win8-MSVC-ShuttleB-GPU-HD4600-x86_64-Release-Trybot', | 327 'Perf-Win8-MSVC-ShuttleB-GPU-HD4600-x86_64-Release-Trybot', |
| 328 'Perf-Ubuntu-GCC-ShuttleA-GPU-GTX660-x86_64-Release-VisualBench', |
| 322 'Test-Android-GCC-GalaxyS4-GPU-SGX544-Arm7-Debug', | 329 'Test-Android-GCC-GalaxyS4-GPU-SGX544-Arm7-Debug', |
| 323 'Perf-Android-GCC-Nexus5-GPU-Adreno330-Arm7-Release-Appurify', | 330 'Perf-Android-GCC-Nexus5-GPU-Adreno330-Arm7-Release-Appurify', |
| 324 'Test-Android-GCC-Nexus6-GPU-Adreno420-Arm7-Debug', | 331 'Test-Android-GCC-Nexus6-GPU-Adreno420-Arm7-Debug', |
| 325 'Test-ChromeOS-GCC-Link-CPU-AVX-x86_64-Debug', | 332 'Test-ChromeOS-GCC-Link-CPU-AVX-x86_64-Debug', |
| 326 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug', | 333 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug', |
| 327 'Test-Mac10.8-Clang-MacMini4.1-GPU-GeForce320M-x86_64-Release', | 334 'Test-Mac10.8-Clang-MacMini4.1-GPU-GeForce320M-x86_64-Release', |
| 328 'Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Coverage', | 335 'Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Coverage', |
| 329 ('Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-' | 336 ('Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-' |
| 330 'SK_USE_DISCARDABLE_SCALEDIMAGECACHE'), | 337 'SK_USE_DISCARDABLE_SCALEDIMAGECACHE'), |
| 331 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD', | 338 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD', |
| (...skipping 26 matching lines...) Expand all Loading... |
| 358 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 365 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
| 359 self_test() | 366 self_test() |
| 360 sys.exit(0) | 367 sys.exit(0) |
| 361 | 368 |
| 362 if len(sys.argv) != 3: | 369 if len(sys.argv) != 3: |
| 363 print usage | 370 print usage |
| 364 sys.exit(1) | 371 sys.exit(1) |
| 365 | 372 |
| 366 with open(sys.argv[1], 'w') as out: | 373 with open(sys.argv[1], 'w') as out: |
| 367 json.dump(get_builder_spec(sys.argv[2]), out) | 374 json.dump(get_builder_spec(sys.argv[2]), out) |
| OLD | NEW |