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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 builder_dict.get('role') == 'Perf'): | 165 builder_dict.get('role') == 'Perf'): |
166 gyp_defs['skia_dump_stats'] = '1' | 166 gyp_defs['skia_dump_stats'] = '1' |
167 | 167 |
168 # CommandBuffer. | 168 # CommandBuffer. |
169 if builder_dict.get('extra_config') == 'CommandBuffer': | 169 if builder_dict.get('extra_config') == 'CommandBuffer': |
170 gyp_defs['skia_command_buffer'] = '1' | 170 gyp_defs['skia_command_buffer'] = '1' |
171 | 171 |
172 # Vulkan. | 172 # Vulkan. |
173 if builder_dict.get('extra_config') == 'Vulkan': | 173 if builder_dict.get('extra_config') == 'Vulkan': |
174 gyp_defs['skia_vulkan'] = '1' | 174 gyp_defs['skia_vulkan'] = '1' |
| 175 gyp_defs['skia_vulkan_debug_layers'] = '0' |
175 | 176 |
176 return gyp_defs | 177 return gyp_defs |
177 | 178 |
178 | 179 |
179 cov_skip.extend([lineno(), lineno() + 1]) | 180 cov_skip.extend([lineno(), lineno() + 1]) |
180 def get_extra_env_vars(builder_dict): | 181 def get_extra_env_vars(builder_dict): |
181 env = {} | 182 env = {} |
182 if builder_dict.get('configuration') == CONFIG_COVERAGE: | 183 if builder_dict.get('configuration') == CONFIG_COVERAGE: |
183 # We have to use Clang 3.6 because earlier versions do not support the | 184 # We have to use Clang 3.6 because earlier versions do not support the |
184 # compile flags we use and 3.7 and 3.8 hit asserts during compilation. | 185 # compile flags we use and 3.7 and 3.8 hit asserts during compilation. |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 408 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
408 self_test() | 409 self_test() |
409 sys.exit(0) | 410 sys.exit(0) |
410 | 411 |
411 if len(sys.argv) != 3: | 412 if len(sys.argv) != 3: |
412 print usage | 413 print usage |
413 sys.exit(1) | 414 sys.exit(1) |
414 | 415 |
415 with open(sys.argv[1], 'w') as out: | 416 with open(sys.argv[1], 'w') as out: |
416 json.dump(get_builder_spec(sys.argv[2]), out) | 417 json.dump(get_builder_spec(sys.argv[2]), out) |
OLD | NEW |