| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 # Qt SDK (Win). | 90 # Qt SDK (Win). |
| 91 if 'Win' in builder_dict.get('os', ''): | 91 if 'Win' in builder_dict.get('os', ''): |
| 92 if builder_dict.get('os') == 'Win8': | 92 if builder_dict.get('os') == 'Win8': |
| 93 gyp_defs['qt_sdk'] = 'C:/Qt/Qt5.1.0/5.1.0/msvc2012_64/' | 93 gyp_defs['qt_sdk'] = 'C:/Qt/Qt5.1.0/5.1.0/msvc2012_64/' |
| 94 else: | 94 else: |
| 95 gyp_defs['qt_sdk'] = 'C:/Qt/4.8.5/' | 95 gyp_defs['qt_sdk'] = 'C:/Qt/4.8.5/' |
| 96 | 96 |
| 97 # ANGLE. | 97 # ANGLE. |
| 98 if builder_dict.get('extra_config') == 'ANGLE': | 98 if builder_dict.get('extra_config') == 'ANGLE': |
| 99 gyp_defs['skia_angle'] = '1' | 99 gyp_defs['skia_angle'] = '1' |
| 100 if builder_dict.get('os', '') in ('Ubuntu', 'Linux'): |
| 101 gyp_defs['use_x11'] = '1' |
| 102 gyp_defs['chromeos'] = '0' |
| 100 | 103 |
| 101 # GDI. | 104 # GDI. |
| 102 if builder_dict.get('extra_config') == 'GDI': | 105 if builder_dict.get('extra_config') == 'GDI': |
| 103 gyp_defs['skia_gdi'] = '1' | 106 gyp_defs['skia_gdi'] = '1' |
| 104 | 107 |
| 105 # Build with Exceptions on Windows. | 108 # Build with Exceptions on Windows. |
| 106 if ('Win' in builder_dict.get('os', '') and | 109 if ('Win' in builder_dict.get('os', '') and |
| 107 builder_dict.get('extra_config') == 'Exceptions'): | 110 builder_dict.get('extra_config') == 'Exceptions'): |
| 108 gyp_defs['skia_win_exceptions'] = '1' | 111 gyp_defs['skia_win_exceptions'] = '1' |
| 109 | 112 |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 cases = [ | 299 cases = [ |
| 297 'Build-Mac10.8-Clang-Arm7-Debug-Android', | 300 'Build-Mac10.8-Clang-Arm7-Debug-Android', |
| 298 'Build-Win-MSVC-x86-Debug', | 301 'Build-Win-MSVC-x86-Debug', |
| 299 'Build-Win-MSVC-x86-Debug-GDI', | 302 'Build-Win-MSVC-x86-Debug-GDI', |
| 300 'Build-Win-MSVC-x86-Debug-Exceptions', | 303 'Build-Win-MSVC-x86-Debug-Exceptions', |
| 301 'Build-Ubuntu-GCC-Arm7-Debug-Android_FrameworkDefs', | 304 'Build-Ubuntu-GCC-Arm7-Debug-Android_FrameworkDefs', |
| 302 'Build-Ubuntu-GCC-Arm7-Debug-Android_NoNeon', | 305 'Build-Ubuntu-GCC-Arm7-Debug-Android_NoNeon', |
| 303 'Build-Ubuntu-GCC-Arm7-Debug-CrOS_Daisy', | 306 'Build-Ubuntu-GCC-Arm7-Debug-CrOS_Daisy', |
| 304 'Build-Ubuntu-GCC-x86_64-Debug-CrOS_Link', | 307 'Build-Ubuntu-GCC-x86_64-Debug-CrOS_Link', |
| 305 'Build-Ubuntu-GCC-x86_64-Release-Mesa', | 308 'Build-Ubuntu-GCC-x86_64-Release-Mesa', |
| 309 'Build-Ubuntu-GCC-x86_64-Release-ANGLE', |
| 306 'Housekeeper-PerCommit', | 310 'Housekeeper-PerCommit', |
| 307 'Perf-Win8-MSVC-ShuttleB-GPU-HD4600-x86_64-Release-Trybot', | 311 'Perf-Win8-MSVC-ShuttleB-GPU-HD4600-x86_64-Release-Trybot', |
| 308 'Perf-Android-GCC-Nexus5-GPU-Adreno330-Arm7-Release-Appurify', | 312 'Perf-Android-GCC-Nexus5-GPU-Adreno330-Arm7-Release-Appurify', |
| 309 'Test-Android-GCC-Nexus6-GPU-Adreno420-Arm7-Debug', | 313 'Test-Android-GCC-Nexus6-GPU-Adreno420-Arm7-Debug', |
| 310 'Test-ChromeOS-GCC-Link-CPU-AVX-x86_64-Debug', | 314 'Test-ChromeOS-GCC-Link-CPU-AVX-x86_64-Debug', |
| 311 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug', | 315 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug', |
| 312 'Test-Mac10.8-Clang-MacMini4.1-GPU-GeForce320M-x86_64-Release', | 316 'Test-Mac10.8-Clang-MacMini4.1-GPU-GeForce320M-x86_64-Release', |
| 313 'Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Coverage', | 317 'Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Coverage', |
| 314 ('Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-' | 318 ('Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-' |
| 315 'SK_USE_DISCARDABLE_SCALEDIMAGECACHE'), | 319 'SK_USE_DISCARDABLE_SCALEDIMAGECACHE'), |
| (...skipping 27 matching lines...) Expand all Loading... |
| 343 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 347 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
| 344 self_test() | 348 self_test() |
| 345 sys.exit(0) | 349 sys.exit(0) |
| 346 | 350 |
| 347 if len(sys.argv) != 3: | 351 if len(sys.argv) != 3: |
| 348 print usage | 352 print usage |
| 349 sys.exit(1) | 353 sys.exit(1) |
| 350 | 354 |
| 351 with open(sys.argv[1], 'w') as out: | 355 with open(sys.argv[1], 'w') as out: |
| 352 json.dump(get_builder_spec(sys.argv[2]), out) | 356 json.dump(get_builder_spec(sys.argv[2]), out) |
| OLD | NEW |