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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 | 188 |
189 LIB = join(SDK_tmp, 'lib') | 189 LIB = join(SDK_tmp, 'lib') |
190 os.makedirs(LIB) | 190 os.makedirs(LIB) |
191 | 191 |
192 # | 192 # |
193 # Create and populate lib/{async, core, isolate, ...}. | 193 # Create and populate lib/{async, core, isolate, ...}. |
194 # | 194 # |
195 | 195 |
196 os.makedirs(join(LIB, 'html')) | 196 os.makedirs(join(LIB, 'html')) |
197 | 197 |
198 for library in [join('_chrome', 'dart2js'), join('_chrome', 'dartium'), | 198 for library in [join('blink', 'dartium'), |
| 199 join('_chrome', 'dart2js'), join('_chrome', 'dartium'), |
199 join('_internal', 'compiler'), | 200 join('_internal', 'compiler'), |
200 join('_internal', 'lib'), | 201 join('_internal', 'lib'), |
201 'async', 'collection', 'convert', 'core', | 202 'async', 'collection', 'convert', 'core', |
202 'internal', 'io', 'isolate', | 203 'internal', 'io', 'isolate', |
203 join('html', 'dart2js'), join('html', 'dartium'), | 204 join('html', 'dart2js'), join('html', 'dartium'), |
204 join('html', 'html_common'), | 205 join('html', 'html_common'), |
205 join('indexed_db', 'dart2js'), join('indexed_db', 'dartium'), | 206 join('indexed_db', 'dart2js'), join('indexed_db', 'dartium'), |
206 'js', 'math', 'mirrors', 'typed_data', 'profiler', | 207 'js', 'math', 'mirrors', 'typed_data', 'profiler', |
207 join('svg', 'dart2js'), join('svg', 'dartium'), | 208 join('svg', 'dart2js'), join('svg', 'dartium'), |
208 join('web_audio', 'dart2js'), join('web_audio', 'dartium'), | 209 join('web_audio', 'dart2js'), join('web_audio', 'dartium'), |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: | 260 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: |
260 f.write(revision + '\n') | 261 f.write(revision + '\n') |
261 f.close() | 262 f.close() |
262 | 263 |
263 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) | 264 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) |
264 | 265 |
265 move(SDK_tmp, SDK) | 266 move(SDK_tmp, SDK) |
266 | 267 |
267 if __name__ == '__main__': | 268 if __name__ == '__main__': |
268 sys.exit(Main(sys.argv)) | 269 sys.exit(Main(sys.argv)) |
OLD | NEW |