| 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 | 184 |
| 185 # | 185 # |
| 186 # Create and populate lib/{core, crypto, isolate, json, utf, ...}. | 186 # Create and populate lib/{core, crypto, isolate, json, utf, ...}. |
| 187 # | 187 # |
| 188 | 188 |
| 189 os.makedirs(join(LIB, 'html')) | 189 os.makedirs(join(LIB, 'html')) |
| 190 | 190 |
| 191 for library in [join('_internal', 'compiler'), | 191 for library in [join('_internal', 'compiler'), |
| 192 join('_internal', 'dartdoc'), | 192 join('_internal', 'dartdoc'), |
| 193 join('_internal', 'pub', 'resource'), | 193 join('_internal', 'pub', 'resource'), |
| 194 join('_internal', 'lib'), |
| 194 'async', 'collection', '_collection_dev', 'core', | 195 'async', 'collection', '_collection_dev', 'core', |
| 195 'crypto', 'io', 'isolate', | 196 'crypto', 'io', 'isolate', |
| 196 join('chrome', 'dart2js'), join('chrome', 'dartium'), | 197 join('chrome', 'dart2js'), join('chrome', 'dartium'), |
| 197 join('html', 'dart2js'), join('html', 'dartium'), | 198 join('html', 'dart2js'), join('html', 'dartium'), |
| 198 join('html', 'html_common'), | 199 join('html', 'html_common'), |
| 199 join('indexed_db', 'dart2js'), join('indexed_db', 'dartium'), | 200 join('indexed_db', 'dart2js'), join('indexed_db', 'dartium'), |
| 200 'json', 'math', 'mdv_observe_impl', 'mirrors', 'typed_data', | 201 'json', 'math', 'mdv_observe_impl', 'mirrors', 'typed_data', |
| 201 join('svg', 'dart2js'), join('svg', 'dartium'), | 202 join('svg', 'dart2js'), join('svg', 'dartium'), |
| 202 'utf', | 203 'utf', |
| 203 join('web_audio', 'dart2js'), join('web_audio', 'dartium'), | 204 join('web_audio', 'dart2js'), join('web_audio', 'dartium'), |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: | 249 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: |
| 249 f.write(revision + '\n') | 250 f.write(revision + '\n') |
| 250 f.close() | 251 f.close() |
| 251 | 252 |
| 252 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) | 253 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) |
| 253 | 254 |
| 254 move(SDK_tmp, SDK) | 255 move(SDK_tmp, SDK) |
| 255 | 256 |
| 256 if __name__ == '__main__': | 257 if __name__ == '__main__': |
| 257 sys.exit(Main(sys.argv)) | 258 sys.exit(Main(sys.argv)) |
| OLD | NEW |