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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 # ......analyzer/ | 52 # ......analyzer/ |
53 # ......async/ | 53 # ......async/ |
54 # ......collection/ | 54 # ......collection/ |
55 # ......convert/ | 55 # ......convert/ |
56 # ......core/ | 56 # ......core/ |
57 # ......html/ | 57 # ......html/ |
58 # ......internal/ | 58 # ......internal/ |
59 # ......io/ | 59 # ......io/ |
60 # ......isolate/ | 60 # ......isolate/ |
61 # ......js/ | 61 # ......js/ |
| 62 # ......js_util/ |
62 # ......math/ | 63 # ......math/ |
63 # ......mirrors/ | 64 # ......mirrors/ |
64 # ......typed_data/ | 65 # ......typed_data/ |
65 # ......api_readme.md | 66 # ......api_readme.md |
66 # ....util/ | 67 # ....util/ |
67 # ......(more will come here) | 68 # ......(more will come here) |
68 | 69 |
69 | 70 |
70 import optparse | 71 import optparse |
71 import os | 72 import os |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 | 248 |
248 for library in [join('_blink', 'dartium'), | 249 for library in [join('_blink', 'dartium'), |
249 join('_chrome', 'dart2js'), join('_chrome', 'dartium'), | 250 join('_chrome', 'dart2js'), join('_chrome', 'dartium'), |
250 join('_internal', 'js_runtime'), | 251 join('_internal', 'js_runtime'), |
251 join('_internal', 'sdk_library_metadata'), | 252 join('_internal', 'sdk_library_metadata'), |
252 'async', 'collection', 'convert', 'core', 'developer', | 253 'async', 'collection', 'convert', 'core', 'developer', |
253 'internal', 'io', 'isolate', | 254 'internal', 'io', 'isolate', |
254 join('html', 'dart2js'), join('html', 'dartium'), | 255 join('html', 'dart2js'), join('html', 'dartium'), |
255 join('html', 'html_common'), | 256 join('html', 'html_common'), |
256 join('indexed_db', 'dart2js'), join('indexed_db', 'dartium'), | 257 join('indexed_db', 'dart2js'), join('indexed_db', 'dartium'), |
257 'js', 'math', 'mirrors', 'profiler', 'typed_data', | 258 'js', 'js_util', 'math', 'mirrors', 'profiler', 'typed_data', |
258 join('svg', 'dart2js'), join('svg', 'dartium'), | 259 join('svg', 'dart2js'), join('svg', 'dartium'), |
259 join('web_audio', 'dart2js'), join('web_audio', 'dartium'), | 260 join('web_audio', 'dart2js'), join('web_audio', 'dartium'), |
260 join('web_gl', 'dart2js'), join('web_gl', 'dartium'), | 261 join('web_gl', 'dart2js'), join('web_gl', 'dartium'), |
261 join('web_sql', 'dart2js'), join('web_sql', 'dartium')]: | 262 join('web_sql', 'dart2js'), join('web_sql', 'dartium')]: |
262 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library), | 263 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library), |
263 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh', | 264 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh', |
264 '.gitignore')) | 265 '.gitignore')) |
265 | 266 |
266 # Copy the platform descriptors. | 267 # Copy the platform descriptors. |
267 for file_name in ["dart_client.platform", | 268 for file_name in ["dart_client.platform", |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 f.close() | 322 f.close() |
322 | 323 |
323 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) | 324 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) |
324 Copy(join(HOME, 'LICENSE'), join(SDK_tmp, 'LICENSE')) | 325 Copy(join(HOME, 'LICENSE'), join(SDK_tmp, 'LICENSE')) |
325 Copy(join(HOME, 'sdk', 'api_readme.md'), join(SDK_tmp, 'lib', 'api_readme.md')
) | 326 Copy(join(HOME, 'sdk', 'api_readme.md'), join(SDK_tmp, 'lib', 'api_readme.md')
) |
326 | 327 |
327 move(SDK_tmp, SDK) | 328 move(SDK_tmp, SDK) |
328 | 329 |
329 if __name__ == '__main__': | 330 if __name__ == '__main__': |
330 sys.exit(Main()) | 331 sys.exit(Main()) |
OLD | NEW |