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 16 matching lines...) Expand all Loading... |
27 # ....lib/ | 27 # ....lib/ |
28 # ......_internal/ | 28 # ......_internal/ |
29 # ......async/ | 29 # ......async/ |
30 # ......collection/ | 30 # ......collection/ |
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 # ......js/ |
37 # ......json/ | 38 # ......json/ |
38 # ......math/ | 39 # ......math/ |
39 # ......mdv_observe_impl/ | 40 # ......mdv_observe_impl/ |
40 # ......mirrors/ | 41 # ......mirrors/ |
41 # ......utf/ | 42 # ......utf/ |
42 # ......typed_data/ | 43 # ......typed_data/ |
43 # ....util/ | 44 # ....util/ |
44 # ......dartanalyzer/ | 45 # ......dartanalyzer/ |
45 # ........dartanalyzer.jar | 46 # ........dartanalyzer.jar |
46 # ........(third-party libraries for dart_analyzer) | 47 # ........(third-party libraries for dart_analyzer) |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 | 191 |
191 for library in [join('_internal', 'compiler'), | 192 for library in [join('_internal', 'compiler'), |
192 join('_internal', 'dartdoc'), | 193 join('_internal', 'dartdoc'), |
193 join('_internal', 'pub', 'resource'), | 194 join('_internal', 'pub', 'resource'), |
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 'js', 'json', 'math', 'mdv_observe_impl', 'mirrors', |
201 join('svg', 'dart2js'), join('svg', 'dartium'), | 202 'typed_data', 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'), |
204 join('web_gl', 'dart2js'), join('web_gl', 'dartium'), | 205 join('web_gl', 'dart2js'), join('web_gl', 'dartium'), |
205 join('web_sql', 'dart2js'), join('web_sql', 'dartium')]: | 206 join('web_sql', 'dart2js'), join('web_sql', 'dartium')]: |
206 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library), | 207 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library), |
207 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh', | 208 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh', |
208 '.gitignore')) | 209 '.gitignore')) |
209 | 210 |
210 # Copy lib/_internal/libraries.dart. | 211 # Copy lib/_internal/libraries.dart. |
211 copyfile(join(HOME, 'sdk', 'lib', '_internal', 'libraries.dart'), | 212 copyfile(join(HOME, 'sdk', 'lib', '_internal', 'libraries.dart'), |
(...skipping 36 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 |