| 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 20 matching lines...) Expand all Loading... |
| 31 # ......_collection_dev/ | 31 # ......_collection_dev/ |
| 32 # ......core/ | 32 # ......core/ |
| 33 # ......crypto/ | 33 # ......crypto/ |
| 34 # ......html/ | 34 # ......html/ |
| 35 # ......io/ | 35 # ......io/ |
| 36 # ......isolate/ | 36 # ......isolate/ |
| 37 # ......json/ | 37 # ......json/ |
| 38 # ......math/ | 38 # ......math/ |
| 39 # ......mdv_observe_impl/ | 39 # ......mdv_observe_impl/ |
| 40 # ......mirrors/ | 40 # ......mirrors/ |
| 41 # ......uri/ | |
| 42 # ......utf/ | 41 # ......utf/ |
| 43 # ......typed_data/ | 42 # ......typed_data/ |
| 44 # ....packages/ | 43 # ....packages/ |
| 45 # ......args/ | 44 # ......args/ |
| 46 # ......intl/ | 45 # ......intl/ |
| 47 # ......logging/ | 46 # ......logging/ |
| 48 # ......meta/ | 47 # ......meta/ |
| 49 # ......serialization | 48 # ......serialization |
| 50 # ......unittest/ | 49 # ......unittest/ |
| 51 # ......(more will come here) | 50 # ......(more will come here) |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 join(INCLUDE, 'dart_debugger_api.h')) | 197 join(INCLUDE, 'dart_debugger_api.h')) |
| 199 | 198 |
| 200 # | 199 # |
| 201 # Create and populate sdk/lib. | 200 # Create and populate sdk/lib. |
| 202 # | 201 # |
| 203 | 202 |
| 204 LIB = join(SDK_tmp, 'lib') | 203 LIB = join(SDK_tmp, 'lib') |
| 205 os.makedirs(LIB) | 204 os.makedirs(LIB) |
| 206 | 205 |
| 207 # | 206 # |
| 208 # Create and populate lib/{core, crypto, isolate, json, uri, utf, ...}. | 207 # Create and populate lib/{core, crypto, isolate, json, utf, ...}. |
| 209 # | 208 # |
| 210 | 209 |
| 211 os.makedirs(join(LIB, 'html')) | 210 os.makedirs(join(LIB, 'html')) |
| 212 | 211 |
| 213 for library in [join('_internal', 'compiler'), | 212 for library in [join('_internal', 'compiler'), |
| 214 join('_internal', 'dartdoc'), | 213 join('_internal', 'dartdoc'), |
| 215 join('_internal', 'pub', 'resource'), | 214 join('_internal', 'pub', 'resource'), |
| 216 'async', 'collection', '_collection_dev', 'core', | 215 'async', 'collection', '_collection_dev', 'core', |
| 217 'crypto', 'io', 'isolate', | 216 'crypto', 'io', 'isolate', |
| 218 join('chrome', 'dart2js'), join('chrome', 'dartium'), | 217 join('chrome', 'dart2js'), join('chrome', 'dartium'), |
| 219 join('html', 'dart2js'), join('html', 'dartium'), | 218 join('html', 'dart2js'), join('html', 'dartium'), |
| 220 join('html', 'html_common'), | 219 join('html', 'html_common'), |
| 221 join('indexed_db', 'dart2js'), join('indexed_db', 'dartium'), | 220 join('indexed_db', 'dart2js'), join('indexed_db', 'dartium'), |
| 222 'json', 'math', 'mdv_observe_impl', 'mirrors', 'typed_data', | 221 'json', 'math', 'mdv_observe_impl', 'mirrors', 'typed_data', |
| 223 join('svg', 'dart2js'), join('svg', 'dartium'), | 222 join('svg', 'dart2js'), join('svg', 'dartium'), |
| 224 'uri', 'utf', | 223 'utf', |
| 225 join('web_audio', 'dart2js'), join('web_audio', 'dartium'), | 224 join('web_audio', 'dart2js'), join('web_audio', 'dartium'), |
| 226 join('web_gl', 'dart2js'), join('web_gl', 'dartium'), | 225 join('web_gl', 'dart2js'), join('web_gl', 'dartium'), |
| 227 join('web_sql', 'dart2js'), join('web_sql', 'dartium')]: | 226 join('web_sql', 'dart2js'), join('web_sql', 'dartium')]: |
| 228 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library), | 227 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library), |
| 229 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh', | 228 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh', |
| 230 '.gitignore')) | 229 '.gitignore')) |
| 231 | 230 |
| 232 # Copy lib/_internal/libraries.dart. | 231 # Copy lib/_internal/libraries.dart. |
| 233 copyfile(join(HOME, 'sdk', 'lib', '_internal', 'libraries.dart'), | 232 copyfile(join(HOME, 'sdk', 'lib', '_internal', 'libraries.dart'), |
| 234 join(LIB, '_internal', 'libraries.dart')) | 233 join(LIB, '_internal', 'libraries.dart')) |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: | 302 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: |
| 304 f.write(revision + '\n') | 303 f.write(revision + '\n') |
| 305 f.close() | 304 f.close() |
| 306 | 305 |
| 307 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) | 306 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) |
| 308 | 307 |
| 309 move(SDK_tmp, SDK) | 308 move(SDK_tmp, SDK) |
| 310 | 309 |
| 311 if __name__ == '__main__': | 310 if __name__ == '__main__': |
| 312 sys.exit(Main(sys.argv)) | 311 sys.exit(Main(sys.argv)) |
| OLD | NEW |