| 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 27 matching lines...) Expand all Loading... |
| 38 # list so that we can ignore them. | 38 # list so that we can ignore them. |
| 39 cov_skip = [] | 39 cov_skip = [] |
| 40 | 40 |
| 41 cov_start = lineno()+1 # We care about coverage starting just past this def. | 41 cov_start = lineno()+1 # We care about coverage starting just past this def. |
| 42 def gyp_defines(builder_dict): | 42 def gyp_defines(builder_dict): |
| 43 gyp_defs = {} | 43 gyp_defs = {} |
| 44 | 44 |
| 45 # skia_arch_type. | 45 # skia_arch_type. |
| 46 if builder_dict['role'] == builder_name_schema.BUILDER_ROLE_BUILD: | 46 if builder_dict['role'] == builder_name_schema.BUILDER_ROLE_BUILD: |
| 47 arch = builder_dict['target_arch'] | 47 arch = builder_dict['target_arch'] |
| 48 elif builder_dict['role'] == builder_name_schema.BUILDER_ROLE_HOUSEKEEPER: | 48 elif builder_dict['role'] in (builder_name_schema.BUILDER_ROLE_HOUSEKEEPER, |
| 49 builder_name_schema.BUILDER_ROLE_INFRA): |
| 49 arch = None | 50 arch = None |
| 50 else: | 51 else: |
| 51 arch = builder_dict['arch'] | 52 arch = builder_dict['arch'] |
| 52 | 53 |
| 53 arch_types = { | 54 arch_types = { |
| 54 'x86': 'x86', | 55 'x86': 'x86', |
| 55 'x86_64': 'x86_64', | 56 'x86_64': 'x86_64', |
| 56 'Arm7': 'arm', | 57 'Arm7': 'arm', |
| 57 'Arm64': 'arm64', | 58 'Arm64': 'arm64', |
| 58 'Mips': 'mips32', | 59 'Mips': 'mips32', |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 407 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
| 407 self_test() | 408 self_test() |
| 408 sys.exit(0) | 409 sys.exit(0) |
| 409 | 410 |
| 410 if len(sys.argv) != 3: | 411 if len(sys.argv) != 3: |
| 411 print usage | 412 print usage |
| 412 sys.exit(1) | 413 sys.exit(1) |
| 413 | 414 |
| 414 with open(sys.argv[1], 'w') as out: | 415 with open(sys.argv[1], 'w') as out: |
| 415 json.dump(get_builder_spec(sys.argv[2]), out) | 416 json.dump(get_builder_spec(sys.argv[2]), out) |
| OLD | NEW |