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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 return { | 202 return { |
203 'Arm64': 'arm64', | 203 'Arm64': 'arm64', |
204 'x86': 'x86', | 204 'x86': 'x86', |
205 'x86_64': 'x86_64', | 205 'x86_64': 'x86_64', |
206 'Mips': 'mips', | 206 'Mips': 'mips', |
207 'Mips64': 'mips64', | 207 'Mips64': 'mips64', |
208 'MipsDSP2': 'mips_dsp2', | 208 'MipsDSP2': 'mips_dsp2', |
209 }.get(builder_dict['target_arch'], 'arm_v7_neon') | 209 }.get(builder_dict['target_arch'], 'arm_v7_neon') |
210 elif builder_dict.get('os') == 'Android': | 210 elif builder_dict.get('os') == 'Android': |
211 return { | 211 return { |
| 212 'AndroidOne': 'arm_v7_neon', |
212 'GalaxyS3': 'arm_v7_neon', | 213 'GalaxyS3': 'arm_v7_neon', |
213 'GalaxyS4': 'arm_v7_neon', | 214 'GalaxyS4': 'arm_v7_neon', |
214 'Nexus5': 'arm_v7', # This'd be 'nexus_5', but we simulate no-NEON Clank. | 215 'Nexus5': 'arm_v7', # This'd be 'nexus_5', but we simulate no-NEON Clank. |
215 'Nexus6': 'arm_v7_neon', | 216 'Nexus6': 'arm_v7_neon', |
216 'Nexus7': 'nexus_7', | 217 'Nexus7': 'nexus_7', |
217 'Nexus9': 'nexus_9', | 218 'Nexus9': 'nexus_9', |
218 'Nexus10': 'nexus_10', | 219 'Nexus10': 'nexus_10', |
219 'NexusPlayer': 'x86', | 220 'NexusPlayer': 'x86', |
220 'NVIDIA_Shield': 'arm64', | 221 'NVIDIA_Shield': 'arm64', |
221 }[builder_dict['model']] | 222 }[builder_dict['model']] |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 358 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
358 self_test() | 359 self_test() |
359 sys.exit(0) | 360 sys.exit(0) |
360 | 361 |
361 if len(sys.argv) != 3: | 362 if len(sys.argv) != 3: |
362 print usage | 363 print usage |
363 sys.exit(1) | 364 sys.exit(1) |
364 | 365 |
365 with open(sys.argv[1], 'w') as out: | 366 with open(sys.argv[1], 'w') as out: |
366 json.dump(get_builder_spec(sys.argv[2]), out) | 367 json.dump(get_builder_spec(sys.argv[2]), out) |
OLD | NEW |