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