| 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 19 matching lines...) Expand all Loading... |
| 30 # ......crypto/ | 30 # ......crypto/ |
| 31 # ......html/ | 31 # ......html/ |
| 32 # ......io/ | 32 # ......io/ |
| 33 # ......isolate/ | 33 # ......isolate/ |
| 34 # ......json/ | 34 # ......json/ |
| 35 # ......math/ | 35 # ......math/ |
| 36 # ......mirrors/ | 36 # ......mirrors/ |
| 37 # ......uri/ | 37 # ......uri/ |
| 38 # ......utf/ | 38 # ......utf/ |
| 39 # ......scalarlist/ | 39 # ......scalarlist/ |
| 40 # ......typeddata/ |
| 40 # ....pkg/ | 41 # ....pkg/ |
| 41 # ......args/ | 42 # ......args/ |
| 42 # ......intl/ | 43 # ......intl/ |
| 43 # ......logging/ | 44 # ......logging/ |
| 44 # ......meta/ | 45 # ......meta/ |
| 45 # ......serialization | 46 # ......serialization |
| 46 # ......unittest/ | 47 # ......unittest/ |
| 47 # ......(more will come here) | 48 # ......(more will come here) |
| 48 # ....util/ | 49 # ....util/ |
| 49 # ......analyzer/ | 50 # ......analyzer/ |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 # Create and populate lib/{core, crypto, isolate, json, uri, utf, ...}. | 199 # Create and populate lib/{core, crypto, isolate, json, uri, utf, ...}. |
| 199 # | 200 # |
| 200 | 201 |
| 201 os.makedirs(join(LIB, 'html')) | 202 os.makedirs(join(LIB, 'html')) |
| 202 for library in ['_internal', 'async', 'collection', '_collection_dev', 'core', | 203 for library in ['_internal', 'async', 'collection', '_collection_dev', 'core', |
| 203 'crypto', 'io', 'isolate', | 204 'crypto', 'io', 'isolate', |
| 204 join('chrome', 'dart2js'), join('chrome', 'dartium'), | 205 join('chrome', 'dart2js'), join('chrome', 'dartium'), |
| 205 join('html', 'dart2js'), join('html', 'dartium'), | 206 join('html', 'dart2js'), join('html', 'dartium'), |
| 206 join('html', 'html_common'), | 207 join('html', 'html_common'), |
| 207 join('indexed_db', 'dart2js'), join('indexed_db', 'dartium'), | 208 join('indexed_db', 'dart2js'), join('indexed_db', 'dartium'), |
| 208 'json', 'math', 'mirrors', 'scalarlist', | 209 'json', 'math', 'mirrors', 'scalarlist', 'typeddata', |
| 209 join('svg', 'dart2js'), join('svg', 'dartium'), | 210 join('svg', 'dart2js'), join('svg', 'dartium'), |
| 210 'uri', 'utf', | 211 'uri', 'utf', |
| 211 join('web_audio', 'dart2js'), join('web_audio', 'dartium'), | 212 join('web_audio', 'dart2js'), join('web_audio', 'dartium'), |
| 212 join('web_sql', 'dart2js'), join('web_sql', 'dartium')]: | 213 join('web_sql', 'dart2js'), join('web_sql', 'dartium')]: |
| 213 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library), | 214 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library), |
| 214 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh')) | 215 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh')) |
| 215 | 216 |
| 216 | 217 |
| 217 # Create and copy pkg. | 218 # Create and copy pkg. |
| 218 PKG = join(SDK_tmp, 'pkg') | 219 PKG = join(SDK_tmp, 'pkg') |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: | 297 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: |
| 297 f.write(revision + '\n') | 298 f.write(revision + '\n') |
| 298 f.close() | 299 f.close() |
| 299 | 300 |
| 300 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) | 301 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) |
| 301 | 302 |
| 302 move(SDK_tmp, SDK) | 303 move(SDK_tmp, SDK) |
| 303 | 304 |
| 304 if __name__ == '__main__': | 305 if __name__ == '__main__': |
| 305 sys.exit(Main(sys.argv)) | 306 sys.exit(Main(sys.argv)) |
| OLD | NEW |