OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # | 2 # |
3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3 # Copyright (c) 2012, 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 # A script which will be invoked from gyp to create an SDK. | 7 # A script which will be invoked from gyp to create an SDK. |
8 # | 8 # |
9 # Usage: create_sdk.py sdk_directory | 9 # Usage: create_sdk.py sdk_directory |
10 # | 10 # |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 # Create and copy tools. | 219 # Create and copy tools. |
220 UTIL = join(SDK_tmp, 'util') | 220 UTIL = join(SDK_tmp, 'util') |
221 os.makedirs(UTIL) | 221 os.makedirs(UTIL) |
222 | 222 |
223 RESOURCE = join(SDK_tmp, 'lib', '_internal', 'pub', 'asset') | 223 RESOURCE = join(SDK_tmp, 'lib', '_internal', 'pub', 'asset') |
224 os.makedirs(os.path.dirname(RESOURCE)) | 224 os.makedirs(os.path.dirname(RESOURCE)) |
225 copytree(join(HOME, 'sdk', 'lib', '_internal', 'pub', 'asset'), | 225 copytree(join(HOME, 'sdk', 'lib', '_internal', 'pub', 'asset'), |
226 join(RESOURCE), | 226 join(RESOURCE), |
227 ignore=ignore_patterns('.svn')) | 227 ignore=ignore_patterns('.svn')) |
228 | 228 |
| 229 copytree(join(SNAPSHOT, 'core_stubs'), |
| 230 join(RESOURCE, 'dart', 'core_stubs')) |
| 231 |
229 # Copy in 7zip for Windows. | 232 # Copy in 7zip for Windows. |
230 if HOST_OS == 'win32': | 233 if HOST_OS == 'win32': |
231 copytree(join(HOME, 'third_party', '7zip'), | 234 copytree(join(HOME, 'third_party', '7zip'), |
232 join(RESOURCE, '7zip'), | 235 join(RESOURCE, '7zip'), |
233 ignore=ignore_patterns('.svn')) | 236 ignore=ignore_patterns('.svn')) |
234 | 237 |
235 # Copy dart2js/pub. | 238 # Copy dart2js/pub. |
236 CopyDartScripts(HOME, SDK_tmp) | 239 CopyDartScripts(HOME, SDK_tmp) |
237 CopySnapshots(SNAPSHOT, SDK_tmp) | 240 CopySnapshots(SNAPSHOT, SDK_tmp) |
238 | 241 |
(...skipping 10 matching lines...) Expand all Loading... |
249 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: | 252 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: |
250 f.write(revision + '\n') | 253 f.write(revision + '\n') |
251 f.close() | 254 f.close() |
252 | 255 |
253 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) | 256 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) |
254 | 257 |
255 move(SDK_tmp, SDK) | 258 move(SDK_tmp, SDK) |
256 | 259 |
257 if __name__ == '__main__': | 260 if __name__ == '__main__': |
258 sys.exit(Main(sys.argv)) | 261 sys.exit(Main(sys.argv)) |
OLD | NEW |