OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # | 2 # |
3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4 # for details. All rights reserved. Use of this source code is governed by a | 4 # for details. All rights reserved. Use of this source code is governed by a |
5 # BSD-style license that can be found in the LICENSE file. | 5 # BSD-style license that can be found in the LICENSE file. |
6 # | 6 # |
7 | 7 |
8 import optparse | 8 import optparse |
9 import os | 9 import os |
10 import re | 10 import re |
| 11 import shutil |
11 import subprocess | 12 import subprocess |
12 import sys | 13 import sys |
13 import time | 14 import time |
14 import utils | 15 import utils |
15 | 16 |
16 HOST_OS = utils.GuessOS() | 17 HOST_OS = utils.GuessOS() |
17 HOST_ARCH = utils.GuessArchitecture() | 18 HOST_ARCH = utils.GuessArchitecture() |
18 HOST_CPUS = utils.GuessCpus() | 19 HOST_CPUS = utils.GuessCpus() |
19 SCRIPT_DIR = os.path.dirname(sys.argv[0]) | 20 SCRIPT_DIR = os.path.dirname(sys.argv[0]) |
20 DART_ROOT = os.path.realpath(os.path.join(SCRIPT_DIR, '..')) | 21 DART_ROOT = os.path.realpath(os.path.join(SCRIPT_DIR, '..')) |
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
534 else: | 535 else: |
535 if BuildOneConfig(options, target, target_os, | 536 if BuildOneConfig(options, target, target_os, |
536 mode, arch, cross_build) != 0: | 537 mode, arch, cross_build) != 0: |
537 return 1 | 538 return 1 |
538 | 539 |
539 return 0 | 540 return 0 |
540 | 541 |
541 | 542 |
542 if __name__ == '__main__': | 543 if __name__ == '__main__': |
543 sys.exit(Main()) | 544 sys.exit(Main()) |
OLD | NEW |