Chromium Code Reviews| 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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 307 join(LIB, 'dartdoc', 'classify.dart'), | 307 join(LIB, 'dartdoc', 'classify.dart'), |
| 308 join(LIB, 'dartdoc', 'client-live-nav.dart'), | 308 join(LIB, 'dartdoc', 'client-live-nav.dart'), |
| 309 join(LIB, 'dartdoc', 'client-static.dart') | 309 join(LIB, 'dartdoc', 'client-static.dart') |
| 310 ], [ | 310 ], [ |
| 311 ("#import\('../../frog", "#import('../frog") | 311 ("#import\('../../frog", "#import('../frog") |
| 312 ]) | 312 ]) |
| 313 | 313 |
| 314 # Create and populate lib/isolate | 314 # Create and populate lib/isolate |
| 315 copytree(join(HOME, 'lib', 'isolate'), join(LIB, 'isolate'), | 315 copytree(join(HOME, 'lib', 'isolate'), join(LIB, 'isolate'), |
| 316 ignore=ignore_patterns('.svn')) | 316 ignore=ignore_patterns('.svn')) |
| 317 | |
| 318 isolate_runtime_dir = join(LIB, 'isolate', 'runtime') | |
| 319 # path seems to exist when run locally, but not on builder | |
| 320 if not exists(isolate_runtime_dir): | |
| 321 os.makedirs(isolate_runtime_dir) | |
|
zundel
2012/03/28 14:52:17
Locally, I don't need this change, in fact, it thr
| |
| 317 | 322 |
| 318 isolate_runtime_src = join(HOME, 'runtime', 'lib', 'isolate.dart') | 323 isolate_runtime_src = join(HOME, 'runtime', 'lib', 'isolate.dart') |
| 319 isolate_runtime_dest = join(LIB, 'isolate', 'runtime', 'isolate.dart') | 324 isolate_runtime_dest = join(LIB, 'isolate', 'runtime', 'isolate.dart') |
| 320 copyfile(isolate_runtime_src, isolate_runtime_dest) | 325 copyfile(isolate_runtime_src, isolate_runtime_dest) |
| 321 | 326 |
| 322 # | 327 # |
| 323 # Create and populate lib/core. | 328 # Create and populate lib/core. |
| 324 # | 329 # |
| 325 | 330 |
| 326 # First, copy corelib/* to lib/{frog, runtime} | 331 # First, copy corelib/* to lib/{frog, runtime} |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 417 os.makedirs(join(LIB, 'config')) | 422 os.makedirs(join(LIB, 'config')) |
| 418 for platform in PLATFORMS: | 423 for platform in PLATFORMS: |
| 419 import_src = join(HOME, 'lib', 'config', 'import_' + platform + '.config') | 424 import_src = join(HOME, 'lib', 'config', 'import_' + platform + '.config') |
| 420 import_dst = join(LIB, 'config', 'import_' + platform + '.config') | 425 import_dst = join(LIB, 'config', 'import_' + platform + '.config') |
| 421 copyfile(import_src, import_dst); | 426 copyfile(import_src, import_dst); |
| 422 | 427 |
| 423 move(SDK_tmp, SDK) | 428 move(SDK_tmp, SDK) |
| 424 | 429 |
| 425 if __name__ == '__main__': | 430 if __name__ == '__main__': |
| 426 sys.exit(Main(sys.argv)) | 431 sys.exit(Main(sys.argv)) |
| OLD | NEW |