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 18 matching lines...) Loading... |
29 # ....lib/ | 29 # ....lib/ |
30 # ......_internal/ | 30 # ......_internal/ |
31 # ......async/ | 31 # ......async/ |
32 # ......collection/ | 32 # ......collection/ |
33 # ......_collection_dev/ | 33 # ......_collection_dev/ |
34 # ......core/ | 34 # ......core/ |
35 # ......crypto/ | 35 # ......crypto/ |
36 # ......html/ | 36 # ......html/ |
37 # ......io/ | 37 # ......io/ |
38 # ......isolate/ | 38 # ......isolate/ |
| 39 # ......js/ |
39 # ......json/ | 40 # ......json/ |
40 # ......math/ | 41 # ......math/ |
41 # ......mdv_observe_impl/ | 42 # ......mdv_observe_impl/ |
42 # ......mirrors/ | 43 # ......mirrors/ |
43 # ......utf/ | 44 # ......utf/ |
44 # ......typed_data/ | 45 # ......typed_data/ |
45 # ....util/ | 46 # ....util/ |
46 # ......dartanalyzer/ | 47 # ......dartanalyzer/ |
47 # ........dartanalyzer.jar | 48 # ........dartanalyzer.jar |
48 # ........(third-party libraries for dart_analyzer) | 49 # ........(third-party libraries for dart_analyzer) |
(...skipping 148 matching lines...) Loading... |
197 for library in [join('_internal', 'compiler'), | 198 for library in [join('_internal', 'compiler'), |
198 join('_internal', 'dartdoc'), | 199 join('_internal', 'dartdoc'), |
199 join('_internal', 'pub', 'resource'), | 200 join('_internal', 'pub', 'resource'), |
200 join('_internal', 'lib'), | 201 join('_internal', 'lib'), |
201 'async', 'collection', '_collection_dev', 'core', | 202 'async', 'collection', '_collection_dev', 'core', |
202 'crypto', 'io', 'isolate', | 203 'crypto', 'io', 'isolate', |
203 join('chrome', 'dart2js'), join('chrome', 'dartium'), | 204 join('chrome', 'dart2js'), join('chrome', 'dartium'), |
204 join('html', 'dart2js'), join('html', 'dartium'), | 205 join('html', 'dart2js'), join('html', 'dartium'), |
205 join('html', 'html_common'), | 206 join('html', 'html_common'), |
206 join('indexed_db', 'dart2js'), join('indexed_db', 'dartium'), | 207 join('indexed_db', 'dart2js'), join('indexed_db', 'dartium'), |
207 'json', 'math', 'mdv_observe_impl', 'mirrors', 'typed_data', | 208 'js', 'json', 'math', 'mdv_observe_impl', 'mirrors', |
208 join('svg', 'dart2js'), join('svg', 'dartium'), | 209 'typed_data', join('svg', 'dart2js'), join('svg', 'dartium'), |
209 'utf', | 210 'utf', |
210 join('web_audio', 'dart2js'), join('web_audio', 'dartium'), | 211 join('web_audio', 'dart2js'), join('web_audio', 'dartium'), |
211 join('web_gl', 'dart2js'), join('web_gl', 'dartium'), | 212 join('web_gl', 'dart2js'), join('web_gl', '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 '.gitignore')) | 216 '.gitignore')) |
216 | 217 |
217 # Copy lib/_internal/libraries.dart. | 218 # Copy lib/_internal/libraries.dart. |
218 copyfile(join(HOME, 'sdk', 'lib', '_internal', 'libraries.dart'), | 219 copyfile(join(HOME, 'sdk', 'lib', '_internal', 'libraries.dart'), |
(...skipping 36 matching lines...) Loading... |
255 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: | 256 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: |
256 f.write(revision + '\n') | 257 f.write(revision + '\n') |
257 f.close() | 258 f.close() |
258 | 259 |
259 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) | 260 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) |
260 | 261 |
261 move(SDK_tmp, SDK) | 262 move(SDK_tmp, SDK) |
262 | 263 |
263 if __name__ == '__main__': | 264 if __name__ == '__main__': |
264 sys.exit(Main(sys.argv)) | 265 sys.exit(Main(sys.argv)) |
OLD | NEW |