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