Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(692)

Side by Side Diff: tools/create_sdk.py

Issue 9422019: isolates refactor: this change introduces 'dart:isolate' as a library. This is a (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: '' Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/standalone/standalone.status ('k') | tools/testing/dart/test_suite.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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))
OLDNEW
« no previous file with comments | « tests/standalone/standalone.status ('k') | tools/testing/dart/test_suite.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698