OLD | NEW |
1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 # for details. All rights reserved. Use of this source code is governed by a | 2 # for details. All rights reserved. Use of this source code is governed by a |
3 # BSD-style license that can be found in the LICENSE file. | 3 # BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 # This file contains a set of utilities functions used by other Python-based | 5 # This file contains a set of utilities functions used by other Python-based |
6 # scripts. | 6 # scripts. |
7 | 7 |
8 import commands | 8 import commands |
9 import datetime | 9 import datetime |
10 import json | 10 import json |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 'armv5te': 'arm', | 235 'armv5te': 'arm', |
236 'arm64': 'arm', | 236 'arm64': 'arm', |
237 'mips': 'mips', | 237 'mips': 'mips', |
238 'simarm': 'ia32', | 238 'simarm': 'ia32', |
239 'simarmv6': 'ia32', | 239 'simarmv6': 'ia32', |
240 'simarmv5te': 'ia32', | 240 'simarmv5te': 'ia32', |
241 'simmips': 'ia32', | 241 'simmips': 'ia32', |
242 'simarm64': 'ia32', | 242 'simarm64': 'ia32', |
243 'simdbc': 'ia32', | 243 'simdbc': 'ia32', |
244 'simdbc64': 'ia32', | 244 'simdbc64': 'ia32', |
| 245 'armsimdbc': 'arm', |
245 } | 246 } |
246 | 247 |
247 ARCH_GUESS = GuessArchitecture() | 248 ARCH_GUESS = GuessArchitecture() |
248 BASE_DIR = os.path.abspath(os.path.join(os.curdir, '..')) | 249 BASE_DIR = os.path.abspath(os.path.join(os.curdir, '..')) |
249 DART_DIR = os.path.abspath(os.path.join(__file__, '..', '..')) | 250 DART_DIR = os.path.abspath(os.path.join(__file__, '..', '..')) |
250 VERSION_FILE = os.path.join(DART_DIR, 'tools', 'VERSION') | 251 VERSION_FILE = os.path.join(DART_DIR, 'tools', 'VERSION') |
251 | 252 |
252 def GetBuildbotGSUtilPath(): | 253 def GetBuildbotGSUtilPath(): |
253 gsutil = '/b/build/scripts/slave/gsutil' | 254 gsutil = '/b/build/scripts/slave/gsutil' |
254 if platform.system() == 'Windows': | 255 if platform.system() == 'Windows': |
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
652 os.chdir(self._working_directory) | 653 os.chdir(self._working_directory) |
653 | 654 |
654 def __exit__(self, *_): | 655 def __exit__(self, *_): |
655 print "Enter directory = ", self._old_cwd | 656 print "Enter directory = ", self._old_cwd |
656 os.chdir(self._old_cwd) | 657 os.chdir(self._old_cwd) |
657 | 658 |
658 | 659 |
659 if __name__ == "__main__": | 660 if __name__ == "__main__": |
660 import sys | 661 import sys |
661 Main() | 662 Main() |
OLD | NEW |