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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 LIB = join(SDK_tmp, 'lib') | 200 LIB = join(SDK_tmp, 'lib') |
201 os.makedirs(LIB) | 201 os.makedirs(LIB) |
202 | 202 |
203 # | 203 # |
204 # Create and populate lib/{core, crypto, isolate, json, uri, utf, ...}. | 204 # Create and populate lib/{core, crypto, isolate, json, uri, utf, ...}. |
205 # | 205 # |
206 | 206 |
207 os.makedirs(join(LIB, 'html')) | 207 os.makedirs(join(LIB, 'html')) |
208 for library in ['_internal', 'collection', 'core', 'coreimpl', 'crypto', 'io', | 208 for library in ['_internal', 'collection', 'core', 'coreimpl', 'crypto', 'io', |
209 'isolate', join('html', 'dart2js'), join('html', 'dartium'), | 209 'isolate', join('html', 'dart2js'), join('html', 'dartium'), |
210 'json', 'math', 'mirrors', 'scalarlist', 'uri', 'utf']: | 210 'json', 'math', 'mirrors', 'scalarlist', |
| 211 join('svg', 'dart2js'), join('svg', 'dartium'), 'uri', 'utf']: |
211 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library), | 212 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library), |
212 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh')) | 213 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh')) |
213 | 214 |
214 | 215 |
215 # Create and copy pkg. | 216 # Create and copy pkg. |
216 PKG = join(SDK_tmp, 'pkg') | 217 PKG = join(SDK_tmp, 'pkg') |
217 os.makedirs(PKG) | 218 os.makedirs(PKG) |
218 | 219 |
219 # | 220 # |
220 # Create and populate pkg/{args, intl, logging, meta, unittest} | 221 # Create and populate pkg/{args, intl, logging, meta, unittest} |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: | 304 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: |
304 f.write(revision + '\n') | 305 f.write(revision + '\n') |
305 f.close() | 306 f.close() |
306 | 307 |
307 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) | 308 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) |
308 | 309 |
309 move(SDK_tmp, SDK) | 310 move(SDK_tmp, SDK) |
310 | 311 |
311 if __name__ == '__main__': | 312 if __name__ == '__main__': |
312 sys.exit(Main(sys.argv)) | 313 sys.exit(Main(sys.argv)) |
OLD | NEW |