| 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 22 matching lines...) Expand all Loading... |
| 33 # ......math/ | 33 # ......math/ |
| 34 # ......mirrors/ | 34 # ......mirrors/ |
| 35 # ......uri/ | 35 # ......uri/ |
| 36 # ......utf/ | 36 # ......utf/ |
| 37 # ......scalarlist/ | 37 # ......scalarlist/ |
| 38 # ....pkg/ | 38 # ....pkg/ |
| 39 # ......args/ | 39 # ......args/ |
| 40 # ......intl/ | 40 # ......intl/ |
| 41 # ......logging/ | 41 # ......logging/ |
| 42 # ......meta/ | 42 # ......meta/ |
| 43 # ......serialization |
| 43 # ......unittest/ | 44 # ......unittest/ |
| 44 # ......(more will come here) | 45 # ......(more will come here) |
| 45 # ....util/ | 46 # ....util/ |
| 46 # ......analyzer/ | 47 # ......analyzer/ |
| 47 # ........dart_analyzer.jar | 48 # ........dart_analyzer.jar |
| 48 # ........(third-party libraries for dart_analyzer) | 49 # ........(third-party libraries for dart_analyzer) |
| 49 # ......pub/ | 50 # ......pub/ |
| 50 # ......(more will come here) | 51 # ......(more will come here) |
| 51 | 52 |
| 52 | 53 |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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, ...} |
| 221 # | 222 # |
| 222 | 223 |
| 223 for library in ['args', 'http', 'intl', 'logging', | 224 for library in ['args', 'http', 'intl', 'logging', |
| 224 'meta', 'oauth2', 'unittest']: | 225 'meta', 'oauth2', 'serialization', 'unittest']: |
| 226 |
| 225 copytree(join(HOME, 'pkg', library), join(PKG, library), | 227 copytree(join(HOME, 'pkg', library), join(PKG, library), |
| 226 ignore=ignore_patterns('*.svn', 'doc', 'docs', | 228 ignore=ignore_patterns('*.svn', 'doc', 'docs', |
| 227 '*.py', '*.gypi', '*.sh', 'packages')) | 229 '*.py', '*.gypi', '*.sh', 'packages')) |
| 228 | 230 |
| 229 # Create and copy tools. | 231 # Create and copy tools. |
| 230 UTIL = join(SDK_tmp, 'util') | 232 UTIL = join(SDK_tmp, 'util') |
| 231 os.makedirs(UTIL) | 233 os.makedirs(UTIL) |
| 232 | 234 |
| 233 if ShouldCopyAnalyzer(): | 235 if ShouldCopyAnalyzer(): |
| 234 # Create and copy Analyzer library into 'util' | 236 # Create and copy Analyzer library into 'util' |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: | 310 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: |
| 309 f.write(revision + '\n') | 311 f.write(revision + '\n') |
| 310 f.close() | 312 f.close() |
| 311 | 313 |
| 312 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) | 314 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) |
| 313 | 315 |
| 314 move(SDK_tmp, SDK) | 316 move(SDK_tmp, SDK) |
| 315 | 317 |
| 316 if __name__ == '__main__': | 318 if __name__ == '__main__': |
| 317 sys.exit(Main(sys.argv)) | 319 sys.exit(Main(sys.argv)) |
| OLD | NEW |