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

Side by Side Diff: tools/create_sdk.py

Issue 10827091: Add dart:math to the sdk. (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 | « no previous file | 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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 dom_dest_dir = join(LIB, 'dom') 326 dom_dest_dir = join(LIB, 'dom')
327 os.makedirs(dom_dest_dir) 327 os.makedirs(dom_dest_dir)
328 328
329 copyfile(join(dom_src_dir, 'dart2js', 'dom_dart2js.dart'), 329 copyfile(join(dom_src_dir, 'dart2js', 'dom_dart2js.dart'),
330 join(dom_dest_dir, 'dom_dart2js.dart')) 330 join(dom_dest_dir, 'dom_dart2js.dart'))
331 331
332 # 332 #
333 # Create and populate lib/{crypto, json, uri, utf, ...}. 333 # Create and populate lib/{crypto, json, uri, utf, ...}.
334 # 334 #
335 335
336 for library in ['crypto', 'json', 'unittest', 'uri', 'utf', 'i18n', 'web']: 336 for library in ['crypto', 'i18n', 'json', 'math', 'unittest', 'uri', 'utf', 'w eb']:
337 src_dir = join(HOME, 'lib', library) 337 src_dir = join(HOME, 'lib', library)
338 dest_dir = join(LIB, library) 338 dest_dir = join(LIB, library)
339 os.makedirs(dest_dir) 339 os.makedirs(dest_dir)
340 340
341 for filename in os.listdir(src_dir): 341 for filename in os.listdir(src_dir):
342 if filename.endswith('.dart'): 342 if filename.endswith('.dart'):
343 copyfile(join(src_dir, filename), join(dest_dir, filename)) 343 copyfile(join(src_dir, filename), join(dest_dir, filename))
344 344
345 # Create and populate lib/dartdoc. 345 # Create and populate lib/dartdoc.
346 dartdoc_src_dir = join(HOME, 'lib', 'dartdoc') 346 dartdoc_src_dir = join(HOME, 'lib', 'dartdoc')
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 if revision is not None: 463 if revision is not None:
464 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: 464 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f:
465 f.write(revision + '\n') 465 f.write(revision + '\n')
466 f.close() 466 f.close()
467 467
468 move(SDK_tmp, SDK) 468 move(SDK_tmp, SDK)
469 utils.Touch(os.path.join(SDK, 'create.stamp')) 469 utils.Touch(os.path.join(SDK, 'create.stamp'))
470 470
471 if __name__ == '__main__': 471 if __name__ == '__main__':
472 sys.exit(Main(sys.argv)) 472 sys.exit(Main(sys.argv))
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698