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

Side by Side Diff: tools/create_sdk.py

Issue 10860074: Add dart:mirrors to the SDK - this will allow the editor to resolve the mirrors library and the typ… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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 | « lib/_internal/libraries.dart ('k') | no next file » | 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) 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 # ......html/ 43 # ......html/
44 # ........html_dart2js.dart 44 # ........html_dart2js.dart
45 # ........html_dartium.dart 45 # ........html_dartium.dart
46 # ......crypto/ 46 # ......crypto/
47 # ........crypto.dart 47 # ........crypto.dart
48 # ........(implementation files) 48 # ........(implementation files)
49 # ......json/ 49 # ......json/
50 # ........json_frog.dart 50 # ........json_frog.dart
51 #.........json.dart 51 #.........json.dart
52 # ........{frog}/ 52 # ........{frog}/
53 # ......mirrors/
54 # ........mirrors.dart
53 # ......uri/ 55 # ......uri/
54 # ........uri.dart 56 # ........uri.dart
55 # ......utf/ 57 # ......utf/
56 # ......web/ 58 # ......web/
57 # ........web.dart 59 # ........web.dart
58 # ....pkg/ 60 # ....pkg/
59 # ......args/ 61 # ......args/
60 # ......dartdoc/ 62 # ......dartdoc/
61 # ......intl/ 63 # ......intl/
62 # ......logging/ 64 # ......logging/
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 dom_dest_dir = join(LIB, 'dom') 329 dom_dest_dir = join(LIB, 'dom')
328 os.makedirs(dom_dest_dir) 330 os.makedirs(dom_dest_dir)
329 331
330 copyfile(join(dom_src_dir, 'dart2js', 'dom_dart2js.dart'), 332 copyfile(join(dom_src_dir, 'dart2js', 'dom_dart2js.dart'),
331 join(dom_dest_dir, 'dom_dart2js.dart')) 333 join(dom_dest_dir, 'dom_dart2js.dart'))
332 334
333 # 335 #
334 # Create and populate lib/{crypto, json, uri, utf, ...}. 336 # Create and populate lib/{crypto, json, uri, utf, ...}.
335 # 337 #
336 338
337 for library in ['_internal', 'crypto', 'json', 'math', 'uri', 'utf', 'web']: 339 for library in ['_internal', 'crypto', 'json', 'math', 'mirrors', 'uri', 'utf' , 'web']:
dgrove 2012/08/21 18:58:07 80 chars.
devoncarew 2012/08/21 19:52:34 Done.
338 src_dir = join(HOME, 'lib', library) 340 src_dir = join(HOME, 'lib', library)
339 dest_dir = join(LIB, library) 341 dest_dir = join(LIB, library)
340 os.makedirs(dest_dir) 342 os.makedirs(dest_dir)
341 343
342 for filename in os.listdir(src_dir): 344 for filename in os.listdir(src_dir):
343 if filename.endswith('.dart'): 345 if filename.endswith('.dart'):
344 copyfile(join(src_dir, filename), join(dest_dir, filename)) 346 copyfile(join(src_dir, filename), join(dest_dir, filename))
345 347
346 # Create and populate lib/isolate 348 # Create and populate lib/isolate
347 copytree(join(HOME, 'lib', 'isolate'), join(LIB, 'isolate'), 349 copytree(join(HOME, 'lib', 'isolate'), join(LIB, 'isolate'),
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 if revision is not None: 488 if revision is not None:
487 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: 489 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f:
488 f.write(revision + '\n') 490 f.write(revision + '\n')
489 f.close() 491 f.close()
490 492
491 move(SDK_tmp, SDK) 493 move(SDK_tmp, SDK)
492 utils.Touch(os.path.join(SDK, 'create.stamp')) 494 utils.Touch(os.path.join(SDK, 'create.stamp'))
493 495
494 if __name__ == '__main__': 496 if __name__ == '__main__':
495 sys.exit(Main(sys.argv)) 497 sys.exit(Main(sys.argv))
OLDNEW
« no previous file with comments | « lib/_internal/libraries.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698