| 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 20 matching lines...) Expand all Loading... |
| 31 # ......core/ | 31 # ......core/ |
| 32 # ......crypto/ | 32 # ......crypto/ |
| 33 # ......html/ | 33 # ......html/ |
| 34 # ......io/ | 34 # ......io/ |
| 35 # ......isolate/ | 35 # ......isolate/ |
| 36 # ......json/ | 36 # ......json/ |
| 37 # ......math/ | 37 # ......math/ |
| 38 # ......mirrors/ | 38 # ......mirrors/ |
| 39 # ......uri/ | 39 # ......uri/ |
| 40 # ......utf/ | 40 # ......utf/ |
| 41 # ......typeddata/ | 41 # ......typed_data/ |
| 42 # ....packages/ | 42 # ....packages/ |
| 43 # ......args/ | 43 # ......args/ |
| 44 # ......intl/ | 44 # ......intl/ |
| 45 # ......logging/ | 45 # ......logging/ |
| 46 # ......meta/ | 46 # ......meta/ |
| 47 # ......serialization | 47 # ......serialization |
| 48 # ......unittest/ | 48 # ......unittest/ |
| 49 # ......(more will come here) | 49 # ......(more will come here) |
| 50 # ....util/ | 50 # ....util/ |
| 51 # ......analyzer/ | 51 # ......analyzer/ |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 | 212 |
| 213 os.makedirs(join(LIB, 'html')) | 213 os.makedirs(join(LIB, 'html')) |
| 214 | 214 |
| 215 for library in ['_internal', | 215 for library in ['_internal', |
| 216 'async', 'collection', '_collection_dev', 'core', | 216 'async', 'collection', '_collection_dev', 'core', |
| 217 'crypto', 'io', 'isolate', | 217 'crypto', 'io', 'isolate', |
| 218 join('chrome', 'dart2js'), join('chrome', 'dartium'), | 218 join('chrome', 'dart2js'), join('chrome', 'dartium'), |
| 219 join('html', 'dart2js'), join('html', 'dartium'), | 219 join('html', 'dart2js'), join('html', 'dartium'), |
| 220 join('html', 'html_common'), | 220 join('html', 'html_common'), |
| 221 join('indexed_db', 'dart2js'), join('indexed_db', 'dartium'), | 221 join('indexed_db', 'dart2js'), join('indexed_db', 'dartium'), |
| 222 'json', 'math', 'mirrors', 'typeddata', | 222 'json', 'math', 'mirrors', 'typed_data', |
| 223 join('svg', 'dart2js'), join('svg', 'dartium'), | 223 join('svg', 'dart2js'), join('svg', 'dartium'), |
| 224 'uri', 'utf', | 224 'uri', 'utf', |
| 225 join('web_audio', 'dart2js'), join('web_audio', 'dartium'), | 225 join('web_audio', 'dart2js'), join('web_audio', 'dartium'), |
| 226 join('web_gl', 'dart2js'), join('web_gl', 'dartium'), | 226 join('web_gl', 'dart2js'), join('web_gl', 'dartium'), |
| 227 join('web_sql', 'dart2js'), join('web_sql', 'dartium')]: | 227 join('web_sql', 'dart2js'), join('web_sql', 'dartium')]: |
| 228 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library), | 228 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library), |
| 229 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh')) | 229 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh')) |
| 230 | 230 |
| 231 # Create and copy packages. | 231 # Create and copy packages. |
| 232 PACKAGES = join(SDK_tmp, 'packages') | 232 PACKAGES = join(SDK_tmp, 'packages') |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: | 309 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: |
| 310 f.write(revision + '\n') | 310 f.write(revision + '\n') |
| 311 f.close() | 311 f.close() |
| 312 | 312 |
| 313 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) | 313 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) |
| 314 | 314 |
| 315 move(SDK_tmp, SDK) | 315 move(SDK_tmp, SDK) |
| 316 | 316 |
| 317 if __name__ == '__main__': | 317 if __name__ == '__main__': |
| 318 sys.exit(Main(sys.argv)) | 318 sys.exit(Main(sys.argv)) |
| OLD | NEW |