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

Side by Side Diff: tools/build.py

Issue 8989020: Fix build to create Windows SDK. (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/frogc.bat ('k') | tools/create_sdk.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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 args = [options.devenv + os.sep + 'devenv.com', 122 args = [options.devenv + os.sep + 'devenv.com',
123 '/build', 123 '/build',
124 build_config, 124 build_config,
125 '/project',
126 target,
125 project_file 127 project_file
126 ] 128 ]
127 else: 129 else:
128 make = 'make' 130 make = 'make'
129 if HOST_OS == 'freebsd': 131 if HOST_OS == 'freebsd':
130 make = 'gmake' 132 make = 'gmake'
131 # work around lack of flock 133 # work around lack of flock
132 os.environ['LINK'] = '$(CXX)' 134 os.environ['LINK'] = '$(CXX)'
133 args = [make, 135 args = [make,
134 '-j', 136 '-j',
(...skipping 16 matching lines...) Expand all
151 process.wait() 153 process.wait()
152 if process.returncode != 0: 154 if process.returncode != 0:
153 print "BUILD FAILED" 155 print "BUILD FAILED"
154 return 1 156 return 1
155 157
156 return 0 158 return 0
157 159
158 160
159 if __name__ == '__main__': 161 if __name__ == '__main__':
160 sys.exit(Main()) 162 sys.exit(Main())
OLDNEW
« no previous file with comments | « frog/frogc.bat ('k') | tools/create_sdk.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698