| 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 for library in ['_internal', 'async', 'collection', '_collection_dev', 'core', | 203 for library in ['_internal', 'async', 'collection', '_collection_dev', 'core', |
| 204 'crypto', 'io', 'isolate', | 204 'crypto', 'io', 'isolate', |
| 205 join('chrome', 'dart2js'), join('chrome', 'dartium'), | 205 join('chrome', 'dart2js'), join('chrome', 'dartium'), |
| 206 join('html', 'dart2js'), join('html', 'dartium'), | 206 join('html', 'dart2js'), join('html', 'dartium'), |
| 207 join('html', 'html_common'), | 207 join('html', 'html_common'), |
| 208 join('indexed_db', 'dart2js'), join('indexed_db', 'dartium'), | 208 join('indexed_db', 'dart2js'), join('indexed_db', 'dartium'), |
| 209 'json', 'math', 'mirrors', 'scalarlist', 'typeddata', | 209 'json', 'math', 'mirrors', 'scalarlist', 'typeddata', |
| 210 join('svg', 'dart2js'), join('svg', 'dartium'), | 210 join('svg', 'dart2js'), join('svg', 'dartium'), |
| 211 'uri', 'utf', | 211 'uri', 'utf', |
| 212 join('web_audio', 'dart2js'), join('web_audio', 'dartium'), | 212 join('web_audio', 'dart2js'), join('web_audio', 'dartium'), |
| 213 join('web_gl', 'dart2js'), join('web_gl', 'dartium'), |
| 213 join('web_sql', 'dart2js'), join('web_sql', 'dartium')]: | 214 join('web_sql', 'dart2js'), join('web_sql', 'dartium')]: |
| 214 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library), | 215 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library), |
| 215 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh')) | 216 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh')) |
| 216 | 217 |
| 217 | 218 |
| 218 # Create and copy pkg. | 219 # Create and copy pkg. |
| 219 PKG = join(SDK_tmp, 'pkg') | 220 PKG = join(SDK_tmp, 'pkg') |
| 220 os.makedirs(PKG) | 221 os.makedirs(PKG) |
| 221 | 222 |
| 222 # | 223 # |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: | 300 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: |
| 300 f.write(revision + '\n') | 301 f.write(revision + '\n') |
| 301 f.close() | 302 f.close() |
| 302 | 303 |
| 303 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) | 304 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) |
| 304 | 305 |
| 305 move(SDK_tmp, SDK) | 306 move(SDK_tmp, SDK) |
| 306 | 307 |
| 307 if __name__ == '__main__': | 308 if __name__ == '__main__': |
| 308 sys.exit(Main(sys.argv)) | 309 sys.exit(Main(sys.argv)) |
| OLD | NEW |