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 12 matching lines...) Expand all Loading... |
23 # ........pub.dart.snapshot | 23 # ........pub.dart.snapshot |
24 # ....include/ | 24 # ....include/ |
25 # ......dart_api.h | 25 # ......dart_api.h |
26 # ......dart_debugger_api.h | 26 # ......dart_debugger_api.h |
27 # ......dart_mirrors_api.h | 27 # ......dart_mirrors_api.h |
28 # ......dart_native_api.h | 28 # ......dart_native_api.h |
29 # ....lib/ | 29 # ....lib/ |
30 # ......_internal/ | 30 # ......_internal/ |
31 # ......async/ | 31 # ......async/ |
32 # ......collection/ | 32 # ......collection/ |
33 # ......_collection_dev/ | |
34 # ......convert/ | 33 # ......convert/ |
35 # ......core/ | 34 # ......core/ |
36 # ......html/ | 35 # ......html/ |
| 36 # ......internal/ |
37 # ......io/ | 37 # ......io/ |
38 # ......isolate/ | 38 # ......isolate/ |
39 # ......js/ | 39 # ......js/ |
40 # ......math/ | 40 # ......math/ |
41 # ......mirrors/ | 41 # ......mirrors/ |
42 # ......typed_data/ | 42 # ......typed_data/ |
43 # ....util/ | 43 # ....util/ |
44 # ......dartanalyzer/ | 44 # ......dartanalyzer/ |
45 # ........dartanalyzer.jar | 45 # ........dartanalyzer.jar |
46 # ........(third-party libraries for dart_analyzer) | 46 # ........(third-party libraries for dart_analyzer) |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 # | 189 # |
190 # Create and populate lib/{core, crypto, isolate, ...}. | 190 # Create and populate lib/{core, crypto, isolate, ...}. |
191 # | 191 # |
192 | 192 |
193 os.makedirs(join(LIB, 'html')) | 193 os.makedirs(join(LIB, 'html')) |
194 | 194 |
195 for library in [join('_chrome', 'dart2js'), join('_chrome', 'dartium'), | 195 for library in [join('_chrome', 'dart2js'), join('_chrome', 'dartium'), |
196 join('_internal', 'compiler'), | 196 join('_internal', 'compiler'), |
197 join('_internal', 'dartdoc'), | 197 join('_internal', 'dartdoc'), |
198 join('_internal', 'lib'), | 198 join('_internal', 'lib'), |
199 'async', 'collection', '_collection_dev', 'convert', | 199 'async', 'collection', 'convert', 'core', |
200 'core', 'crypto', 'io', 'isolate', | 200 'crypto', 'internal', 'io', 'isolate', |
201 join('html', 'dart2js'), join('html', 'dartium'), | 201 join('html', 'dart2js'), join('html', 'dartium'), |
202 join('html', 'html_common'), | 202 join('html', 'html_common'), |
203 join('indexed_db', 'dart2js'), join('indexed_db', 'dartium'), | 203 join('indexed_db', 'dart2js'), join('indexed_db', 'dartium'), |
204 'js', 'math', 'mirrors', 'typed_data', | 204 'js', 'math', 'mirrors', 'typed_data', |
205 join('svg', 'dart2js'), join('svg', 'dartium'), | 205 join('svg', 'dart2js'), join('svg', 'dartium'), |
206 join('web_audio', 'dart2js'), join('web_audio', 'dartium'), | 206 join('web_audio', 'dart2js'), join('web_audio', 'dartium'), |
207 join('web_gl', 'dart2js'), join('web_gl', 'dartium'), | 207 join('web_gl', 'dart2js'), join('web_gl', 'dartium'), |
208 join('web_sql', 'dart2js'), join('web_sql', 'dartium')]: | 208 join('web_sql', 'dart2js'), join('web_sql', 'dartium')]: |
209 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library), | 209 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library), |
210 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh', | 210 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh', |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: | 253 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: |
254 f.write(revision + '\n') | 254 f.write(revision + '\n') |
255 f.close() | 255 f.close() |
256 | 256 |
257 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) | 257 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) |
258 | 258 |
259 move(SDK_tmp, SDK) | 259 move(SDK_tmp, SDK) |
260 | 260 |
261 if __name__ == '__main__': | 261 if __name__ == '__main__': |
262 sys.exit(Main(sys.argv)) | 262 sys.exit(Main(sys.argv)) |
OLD | NEW |