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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 # skia_use_android_framework_defines. | 146 # skia_use_android_framework_defines. |
147 if builder_dict.get('extra_config') == 'Android_FrameworkDefs': | 147 if builder_dict.get('extra_config') == 'Android_FrameworkDefs': |
148 gyp_defs['skia_use_android_framework_defines'] = '1' | 148 gyp_defs['skia_use_android_framework_defines'] = '1' |
149 | 149 |
| 150 # Skia dump stats for perf tests and gpu |
| 151 if (builder_dict.get('cpu_or_gpu') == 'GPU' and |
| 152 builder_dict.get('role') == 'Perf'): |
| 153 gyp_defs['skia_dump_stats'] = '1' |
| 154 |
150 return gyp_defs | 155 return gyp_defs |
151 | 156 |
152 | 157 |
153 cov_skip.extend([lineno(), lineno() + 1]) | 158 cov_skip.extend([lineno(), lineno() + 1]) |
154 def get_extra_env_vars(builder_dict): | 159 def get_extra_env_vars(builder_dict): |
155 env = {} | 160 env = {} |
156 if builder_dict.get('configuration') == 'Coverage': | 161 if builder_dict.get('configuration') == 'Coverage': |
157 # We have to use Clang 3.6 because earlier versions do not support the | 162 # We have to use Clang 3.6 because earlier versions do not support the |
158 # compile flags we use and 3.7 and 3.8 hit asserts during compilation. | 163 # compile flags we use and 3.7 and 3.8 hit asserts during compilation. |
159 env['CC'] = '/usr/bin/clang-3.6' | 164 env['CC'] = '/usr/bin/clang-3.6' |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 357 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
353 self_test() | 358 self_test() |
354 sys.exit(0) | 359 sys.exit(0) |
355 | 360 |
356 if len(sys.argv) != 3: | 361 if len(sys.argv) != 3: |
357 print usage | 362 print usage |
358 sys.exit(1) | 363 sys.exit(1) |
359 | 364 |
360 with open(sys.argv[1], 'w') as out: | 365 with open(sys.argv[1], 'w') as out: |
361 json.dump(get_builder_spec(sys.argv[2]), out) | 366 json.dump(get_builder_spec(sys.argv[2]), out) |
OLD | NEW |