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

Side by Side Diff: tools/build.py

Issue 11140033: Change Windows build default to build with Visual Studio 2010. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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 | « no previous file | tools/gyp_dart.py » ('j') | 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 24 matching lines...) Expand all
35 result.add_option("--os", 35 result.add_option("--os",
36 help='Target OSs (comma-separated).', 36 help='Target OSs (comma-separated).',
37 metavar='[all,host,android]', 37 metavar='[all,host,android]',
38 default='host') 38 default='host')
39 result.add_option("-j", 39 result.add_option("-j",
40 help='The number of parallel jobs to run.', 40 help='The number of parallel jobs to run.',
41 metavar=HOST_CPUS, 41 metavar=HOST_CPUS,
42 default=str(HOST_CPUS)) 42 default=str(HOST_CPUS))
43 result.add_option("--devenv", 43 result.add_option("--devenv",
44 help='Path containing devenv.com on Windows', 44 help='Path containing devenv.com on Windows',
45 default='C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\Common7\\ID E') 45 default='C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\Common7\\I DE')
Bob Nystrom 2012/10/15 19:01:38 Long line. Also, how about including the executabl
46 return result 46 return result
47 47
48 48
49 def ProcessOsOption(os): 49 def ProcessOsOption(os):
50 if os == 'host': 50 if os == 'host':
51 return HOST_OS 51 return HOST_OS
52 return os 52 return os
53 53
54 54
55 def ProcessOptions(options, args): 55 def ProcessOptions(options, args):
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 process.wait() 316 process.wait()
317 if process.returncode != 0: 317 if process.returncode != 0:
318 print "BUILD FAILED" 318 print "BUILD FAILED"
319 return 1 319 return 1
320 320
321 return 0 321 return 0
322 322
323 323
324 if __name__ == '__main__': 324 if __name__ == '__main__':
325 sys.exit(Main()) 325 sys.exit(Main())
OLDNEW
« no previous file with comments | « no previous file | tools/gyp_dart.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698