| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # | 2 # |
| 3 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 3 # Copyright (c) 2011, 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 10 matching lines...) Expand all Loading... |
| 21 # ........builtin_runtime.dart | 21 # ........builtin_runtime.dart |
| 22 # ......io/ | 22 # ......io/ |
| 23 # ........io_runtime.dart | 23 # ........io_runtime.dart |
| 24 # ........runtime/ | 24 # ........runtime/ |
| 25 # ......core/ | 25 # ......core/ |
| 26 # ........core_{frog, runtime}.dart | 26 # ........core_{frog, runtime}.dart |
| 27 # ........{frog, runtime}/ | 27 # ........{frog, runtime}/ |
| 28 # ......coreimpl/ | 28 # ......coreimpl/ |
| 29 # ........coreimpl_{frog, runtime}.dart | 29 # ........coreimpl_{frog, runtime}.dart |
| 30 # ........{frog, runtime}/ | 30 # ........{frog, runtime}/ |
| 31 # ......isolate/ |
| 32 # ........isolate_{frog, runtime}.dart |
| 33 # ........{frog, runtime}/ |
| 31 # ......dom/ | 34 # ......dom/ |
| 32 # ........dom.dart | 35 # ........dom.dart |
| 33 # ......frog/ | 36 # ......frog/ |
| 34 # ......html/ | 37 # ......html/ |
| 35 # ........html.dart | 38 # ........html.dart |
| 36 # ......htmlimpl/ | 39 # ......htmlimpl/ |
| 37 # ........htmlimpl.dart | 40 # ........htmlimpl.dart |
| 38 # ......json/ | 41 # ......json/ |
| 39 # ........json_frog.dart | 42 # ........json_frog.dart |
| 40 #.........json.dart | 43 #.........json.dart |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 # | 266 # |
| 264 | 267 |
| 265 for library in ['json', 'uri', 'utf8']: | 268 for library in ['json', 'uri', 'utf8']: |
| 266 src_dir = join(HOME, 'lib', library) | 269 src_dir = join(HOME, 'lib', library) |
| 267 dest_dir = join(LIB, library) | 270 dest_dir = join(LIB, library) |
| 268 os.makedirs(dest_dir) | 271 os.makedirs(dest_dir) |
| 269 | 272 |
| 270 for filename in os.listdir(src_dir): | 273 for filename in os.listdir(src_dir): |
| 271 if filename.endswith('.dart'): | 274 if filename.endswith('.dart'): |
| 272 copyfile(join(src_dir, filename), join(dest_dir, filename)) | 275 copyfile(join(src_dir, filename), join(dest_dir, filename)) |
| 276 |
| 277 # Create and populate lib/isolate |
| 278 copytree(join(HOME, 'lib', 'isolate'), join(LIB, 'isolate'), |
| 279 ignore=ignore_patterns('.svn')) |
| 273 | 280 |
| 274 # | 281 # |
| 275 # Create and populate lib/core. | 282 # Create and populate lib/core. |
| 276 # | 283 # |
| 277 | 284 |
| 278 # First, copy corelib/* to lib/{frog, runtime} | 285 # First, copy corelib/* to lib/{frog, runtime} |
| 279 for filename in corelib_sources: | 286 for filename in corelib_sources: |
| 280 for target_dir in ['frog', 'runtime']: | 287 for target_dir in ['frog', 'runtime']: |
| 281 copyfile(join('corelib', 'src', filename), | 288 copyfile(join('corelib', 'src', filename), |
| 282 join(corelib_dest_dir, target_dir, filename)) | 289 join(corelib_dest_dir, target_dir, filename)) |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 | 365 |
| 359 # Create and copy tools. | 366 # Create and copy tools. |
| 360 | 367 |
| 361 UTIL = join(SDK_tmp, 'util') | 368 UTIL = join(SDK_tmp, 'util') |
| 362 os.makedirs(UTIL) | 369 os.makedirs(UTIL) |
| 363 | 370 |
| 364 move(SDK_tmp, SDK) | 371 move(SDK_tmp, SDK) |
| 365 | 372 |
| 366 if __name__ == '__main__': | 373 if __name__ == '__main__': |
| 367 sys.exit(Main(sys.argv)) | 374 sys.exit(Main(sys.argv)) |
| OLD | NEW |