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

Side by Side Diff: tools/build.py

Issue 8773005: Get rid of guessing the VM location in frog.py. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years 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 | « frog/scripts/bootstrap/frogsh_bootstrap_wrapper.py ('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 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2011, 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 shutil 10 import shutil
(...skipping 25 matching lines...) Expand all
36 result.add_option("--devenv", 36 result.add_option("--devenv",
37 help='Path containing devenv.com on Windows', 37 help='Path containing devenv.com on Windows',
38 default='C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\Common7\\ID E') 38 default='C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\Common7\\ID E')
39 return result 39 return result
40 40
41 41
42 def ProcessOptions(options): 42 def ProcessOptions(options):
43 if options.arch == 'all': 43 if options.arch == 'all':
44 options.arch = 'ia32,x64,simarm' 44 options.arch = 'ia32,x64,simarm'
45 if options.mode == 'all': 45 if options.mode == 'all':
46 options.mode = 'debug,release' 46 options.mode = 'release,debug'
47 options.mode = options.mode.split(',') 47 options.mode = options.mode.split(',')
48 options.arch = options.arch.split(',') 48 options.arch = options.arch.split(',')
49 for mode in options.mode: 49 for mode in options.mode:
50 if not mode in ['debug', 'release']: 50 if not mode in ['debug', 'release']:
51 print "Unknown mode %s" % mode 51 print "Unknown mode %s" % mode
52 return False 52 return False
53 for arch in options.arch: 53 for arch in options.arch:
54 if not arch in ['ia32', 'x64', 'simarm', 'arm']: 54 if not arch in ['ia32', 'x64', 'simarm', 'arm']:
55 print "Unknown arch %s" % arch 55 print "Unknown arch %s" % arch
56 return False 56 return False
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 process.wait() 151 process.wait()
152 if process.returncode != 0: 152 if process.returncode != 0:
153 print "BUILD FAILED" 153 print "BUILD FAILED"
154 return 1 154 return 1
155 155
156 return 0 156 return 0
157 157
158 158
159 if __name__ == '__main__': 159 if __name__ == '__main__':
160 sys.exit(Main()) 160 sys.exit(Main())
OLDNEW
« no previous file with comments | « frog/scripts/bootstrap/frogsh_bootstrap_wrapper.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698