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

Side by Side Diff: tools/build.py

Issue 8956034: Removing tabs that Windows accidentally snuck in. (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 | « no previous file | 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 target, 112 target,
113 '-parallelizeTargets', 113 '-parallelizeTargets',
114 '-configuration', 114 '-configuration',
115 build_config, 115 build_config,
116 'SYMROOT=%s' % os.path.abspath('xcodebuild') 116 'SYMROOT=%s' % os.path.abspath('xcodebuild')
117 ] 117 ]
118 elif HOST_OS == 'win32': 118 elif HOST_OS == 'win32':
119 project_file = 'dart.sln' 119 project_file = 'dart.sln'
120 if os.path.exists('dart-%s.gyp' % CurrentDirectoryBaseName()): 120 if os.path.exists('dart-%s.gyp' % CurrentDirectoryBaseName()):
121 project_file = 'dart-%s.sln' % CurrentDirectoryBaseName() 121 project_file = 'dart-%s.sln' % CurrentDirectoryBaseName()
122 » if target == 'all': 122 if target == 'all':
123 args = [options.devenv + os.sep + 'devenv.com', 123 args = [options.devenv + os.sep + 'devenv.com',
124 '/build', 124 '/build',
125 build_config, 125 build_config,
126 project_file 126 project_file
127 ] 127 ]
128 » else: 128 else:
129 args = [options.devenv + os.sep + 'devenv.com', 129 args = [options.devenv + os.sep + 'devenv.com',
130 '/build', 130 '/build',
131 build_config, 131 build_config,
132 » » '/project', 132 '/project',
133 » » target, 133 target,
134 project_file 134 project_file
135 ] 135 ]
136 else: 136 else:
137 make = 'make' 137 make = 'make'
138 if HOST_OS == 'freebsd': 138 if HOST_OS == 'freebsd':
139 make = 'gmake' 139 make = 'gmake'
140 # work around lack of flock 140 # work around lack of flock
141 os.environ['LINK'] = '$(CXX)' 141 os.environ['LINK'] = '$(CXX)'
142 args = [make, 142 args = [make,
143 '-j', 143 '-j',
(...skipping 16 matching lines...) Expand all
160 process.wait() 160 process.wait()
161 if process.returncode != 0: 161 if process.returncode != 0:
162 print "BUILD FAILED" 162 print "BUILD FAILED"
163 return 1 163 return 1
164 164
165 return 0 165 return 0
166 166
167 167
168 if __name__ == '__main__': 168 if __name__ == '__main__':
169 sys.exit(Main()) 169 sys.exit(Main())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698