| 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 # | 190 # |
| 191 # Create and populate lib/{core, crypto, isolate, json, utf, ...}. | 191 # Create and populate lib/{core, crypto, isolate, json, utf, ...}. |
| 192 # | 192 # |
| 193 | 193 |
| 194 os.makedirs(join(LIB, 'html')) | 194 os.makedirs(join(LIB, 'html')) |
| 195 | 195 |
| 196 for library in [join('_internal', 'compiler'), | 196 for library in [join('_internal', 'compiler'), |
| 197 join('_internal', 'dartdoc'), | 197 join('_internal', 'dartdoc'), |
| 198 join('_internal', 'pub', 'resource'), | 198 join('_internal', 'pub', 'resource'), |
| 199 join('_internal', 'lib'), | 199 join('_internal', 'lib'), |
| 200 'async', 'collection', '_collection_dev', 'core', | 200 'async', 'collection', '_collection_dev', 'codec', 'convert', |
| 201 'crypto', 'io', 'isolate', | 201 'core', 'crypto', 'io', 'isolate', |
| 202 join('chrome', 'dart2js'), join('chrome', 'dartium'), | 202 join('chrome', 'dart2js'), join('chrome', 'dartium'), |
| 203 join('html', 'dart2js'), join('html', 'dartium'), | 203 join('html', 'dart2js'), join('html', 'dartium'), |
| 204 join('html', 'html_common'), | 204 join('html', 'html_common'), |
| 205 join('indexed_db', 'dart2js'), join('indexed_db', 'dartium'), | 205 join('indexed_db', 'dart2js'), join('indexed_db', 'dartium'), |
| 206 'json', 'math', 'mirrors', 'typed_data', | 206 'json', 'math', 'mirrors', 'typed_data', |
| 207 join('svg', 'dart2js'), join('svg', 'dartium'), | 207 join('svg', 'dart2js'), join('svg', 'dartium'), |
| 208 'utf', | 208 'utf', |
| 209 join('web_audio', 'dart2js'), join('web_audio', 'dartium'), | 209 join('web_audio', 'dart2js'), join('web_audio', 'dartium'), |
| 210 join('web_gl', 'dart2js'), join('web_gl', 'dartium'), | 210 join('web_gl', 'dart2js'), join('web_gl', 'dartium'), |
| 211 join('web_sql', 'dart2js'), join('web_sql', 'dartium')]: | 211 join('web_sql', 'dart2js'), join('web_sql', 'dartium')]: |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: | 254 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: |
| 255 f.write(revision + '\n') | 255 f.write(revision + '\n') |
| 256 f.close() | 256 f.close() |
| 257 | 257 |
| 258 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) | 258 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) |
| 259 | 259 |
| 260 move(SDK_tmp, SDK) | 260 move(SDK_tmp, SDK) |
| 261 | 261 |
| 262 if __name__ == '__main__': | 262 if __name__ == '__main__': |
| 263 sys.exit(Main(sys.argv)) | 263 sys.exit(Main(sys.argv)) |
| OLD | NEW |