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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 # Mapping table between build mode and build configuration. | 214 # Mapping table between build mode and build configuration. |
215 BUILD_MODES = { | 215 BUILD_MODES = { |
216 'debug': 'Debug', | 216 'debug': 'Debug', |
217 'release': 'Release', | 217 'release': 'Release', |
218 'product': 'Product', | 218 'product': 'Product', |
219 } | 219 } |
220 | 220 |
221 | 221 |
222 # Mapping table between OS and build output location. | 222 # Mapping table between OS and build output location. |
223 BUILD_ROOT = { | 223 BUILD_ROOT = { |
224 'win32': os.path.join('build'), | 224 'win32': os.path.join('out'), |
225 'linux': os.path.join('out'), | 225 'linux': os.path.join('out'), |
226 'freebsd': os.path.join('out'), | 226 'freebsd': os.path.join('out'), |
227 'macos': os.path.join('xcodebuild'), | 227 'macos': os.path.join('xcodebuild'), |
228 } | 228 } |
229 | 229 |
230 ARCH_FAMILY = { | 230 ARCH_FAMILY = { |
231 'ia32': 'ia32', | 231 'ia32': 'ia32', |
232 'x64': 'ia32', | 232 'x64': 'ia32', |
233 'arm': 'arm', | 233 'arm': 'arm', |
234 'armv6': 'arm', | 234 'armv6': 'arm', |
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
653 os.chdir(self._working_directory) | 653 os.chdir(self._working_directory) |
654 | 654 |
655 def __exit__(self, *_): | 655 def __exit__(self, *_): |
656 print "Enter directory = ", self._old_cwd | 656 print "Enter directory = ", self._old_cwd |
657 os.chdir(self._old_cwd) | 657 os.chdir(self._old_cwd) |
658 | 658 |
659 | 659 |
660 if __name__ == "__main__": | 660 if __name__ == "__main__": |
661 import sys | 661 import sys |
662 Main() | 662 Main() |
OLD | NEW |