Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(169)

Side by Side Diff: tools/utils.py

Issue 303443010: Prepares for arm64 cross-build. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/gyp/configurations_make.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 os 9 import os
10 import platform 10 import platform
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 'win32': os.path.join('build'), 210 'win32': os.path.join('build'),
211 'linux': os.path.join('out'), 211 'linux': os.path.join('out'),
212 'freebsd': os.path.join('out'), 212 'freebsd': os.path.join('out'),
213 'macos': os.path.join('xcodebuild'), 213 'macos': os.path.join('xcodebuild'),
214 } 214 }
215 215
216 ARCH_FAMILY = { 216 ARCH_FAMILY = {
217 'ia32': 'ia32', 217 'ia32': 'ia32',
218 'x64': 'ia32', 218 'x64': 'ia32',
219 'arm': 'arm', 219 'arm': 'arm',
220 'arm64': 'arm',
220 'mips': 'mips', 221 'mips': 'mips',
221 'simarm': 'ia32', 222 'simarm': 'ia32',
222 'simmips': 'ia32', 223 'simmips': 'ia32',
223 'simarm64': 'ia32', 224 'simarm64': 'ia32',
224 } 225 }
225 226
226 ARCH_GUESS = GuessArchitecture() 227 ARCH_GUESS = GuessArchitecture()
227 BASE_DIR = os.path.abspath(os.path.join(os.curdir, '..')) 228 BASE_DIR = os.path.abspath(os.path.join(os.curdir, '..'))
228 DART_DIR = os.path.abspath(os.path.join(__file__, '..', '..')) 229 DART_DIR = os.path.abspath(os.path.join(__file__, '..', '..'))
229 230
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 os.chdir(self._working_directory) 561 os.chdir(self._working_directory)
561 562
562 def __exit__(self, *_): 563 def __exit__(self, *_):
563 print "Enter directory = ", self._old_cwd 564 print "Enter directory = ", self._old_cwd
564 os.chdir(self._old_cwd) 565 os.chdir(self._old_cwd)
565 566
566 567
567 if __name__ == "__main__": 568 if __name__ == "__main__":
568 import sys 569 import sys
569 Main(sys.argv) 570 Main(sys.argv)
OLDNEW
« no previous file with comments | « tools/gyp/configurations_make.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698