| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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()) |
| OLD | NEW |