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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 | 112 |
113 # iOS. | 113 # iOS. |
114 if (builder_dict.get('os') == 'iOS' or | 114 if (builder_dict.get('os') == 'iOS' or |
115 builder_dict.get('extra_config') == 'iOS'): | 115 builder_dict.get('extra_config') == 'iOS'): |
116 gyp_defs['skia_os'] = 'ios' | 116 gyp_defs['skia_os'] = 'ios' |
117 | 117 |
118 # Shared library build. | 118 # Shared library build. |
119 if builder_dict.get('extra_config') == 'Shared': | 119 if builder_dict.get('extra_config') == 'Shared': |
120 gyp_defs['skia_shared_lib'] = '1' | 120 gyp_defs['skia_shared_lib'] = '1' |
121 | 121 |
| 122 # Build fastest Skia possible. |
| 123 if builder_dict.get('extra_config') == 'Fast': |
| 124 gyp_defs['skia_fast'] = '1' |
| 125 |
122 # PDF viewer in GM. | 126 # PDF viewer in GM. |
123 if (builder_dict.get('os') == 'Mac10.8' and | 127 if (builder_dict.get('os') == 'Mac10.8' and |
124 builder_dict.get('arch') == 'x86_64' and | 128 builder_dict.get('arch') == 'x86_64' and |
125 builder_dict.get('configuration') == 'Release'): | 129 builder_dict.get('configuration') == 'Release'): |
126 gyp_defs['skia_run_pdfviewer_in_gm'] = '1' | 130 gyp_defs['skia_run_pdfviewer_in_gm'] = '1' |
127 | 131 |
128 # Clang. | 132 # Clang. |
129 if builder_dict.get('compiler') == 'Clang': | 133 if builder_dict.get('compiler') == 'Clang': |
130 gyp_defs['skia_clang_build'] = '1' | 134 gyp_defs['skia_clang_build'] = '1' |
131 | 135 |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 'Test-Android-GCC-GalaxyS4-GPU-SGX544-Arm7-Debug', | 334 'Test-Android-GCC-GalaxyS4-GPU-SGX544-Arm7-Debug', |
331 'Perf-Android-GCC-Nexus5-GPU-Adreno330-Arm7-Release-Appurify', | 335 'Perf-Android-GCC-Nexus5-GPU-Adreno330-Arm7-Release-Appurify', |
332 'Test-Android-GCC-Nexus6-GPU-Adreno420-Arm7-Debug', | 336 'Test-Android-GCC-Nexus6-GPU-Adreno420-Arm7-Debug', |
333 'Test-ChromeOS-GCC-Link-CPU-AVX-x86_64-Debug', | 337 'Test-ChromeOS-GCC-Link-CPU-AVX-x86_64-Debug', |
334 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug', | 338 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug', |
335 'Test-Mac10.8-Clang-MacMini4.1-GPU-GeForce320M-x86_64-Release', | 339 'Test-Mac10.8-Clang-MacMini4.1-GPU-GeForce320M-x86_64-Release', |
336 'Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Coverage', | 340 'Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Coverage', |
337 ('Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-' | 341 ('Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-' |
338 'SK_USE_DISCARDABLE_SCALEDIMAGECACHE'), | 342 'SK_USE_DISCARDABLE_SCALEDIMAGECACHE'), |
339 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD', | 343 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD', |
| 344 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Fast', |
340 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared', | 345 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared', |
341 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind', | 346 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind', |
342 'Test-Win8-MSVC-ShuttleB-GPU-HD4600-x86-Release-ANGLE', | 347 'Test-Win8-MSVC-ShuttleB-GPU-HD4600-x86-Release-ANGLE', |
343 'Test-Win8-MSVC-ShuttleA-CPU-AVX-x86_64-Debug', | 348 'Test-Win8-MSVC-ShuttleA-CPU-AVX-x86_64-Debug', |
344 ] | 349 ] |
345 | 350 |
346 cov = coverage.coverage() | 351 cov = coverage.coverage() |
347 cov.start() | 352 cov.start() |
348 for case in cases: | 353 for case in cases: |
349 args[case] = get_builder_spec(case) | 354 args[case] = get_builder_spec(case) |
(...skipping 16 matching lines...) Expand all Loading... |
366 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 371 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
367 self_test() | 372 self_test() |
368 sys.exit(0) | 373 sys.exit(0) |
369 | 374 |
370 if len(sys.argv) != 3: | 375 if len(sys.argv) != 3: |
371 print usage | 376 print usage |
372 sys.exit(1) | 377 sys.exit(1) |
373 | 378 |
374 with open(sys.argv[1], 'w') as out: | 379 with open(sys.argv[1], 'w') as out: |
375 json.dump(get_builder_spec(sys.argv[2]), out) | 380 json.dump(get_builder_spec(sys.argv[2]), out) |
OLD | NEW |