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

Side by Side Diff: tools/create_sdk.py

Issue 10824098: Include the args library in the SDK. (Closed) Base URL: https://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 #
11 # The SDK will be used either from the command-line or from the editor. 11 # The SDK will be used either from the command-line or from the editor.
12 # Top structure is 12 # Top structure is
13 # 13 #
14 # ..dart-sdk/ 14 # ..dart-sdk/
15 # ....bin/ 15 # ....bin/
16 # ......dart or dart.exe (executable) 16 # ......dart or dart.exe (executable)
17 # ......dart.lib (import library for VM native extensions on Windows) 17 # ......dart.lib (import library for VM native extensions on Windows)
18 # ......dart2js 18 # ......dart2js
19 # ......dart_analyzer 19 # ......dart_analyzer
20 # ......pub 20 # ......pub
21 # ....include/ 21 # ....include/
22 # ......dart_api.h 22 # ......dart_api.h
23 # ......dart_debugger_api.h 23 # ......dart_debugger_api.h
24 # ....lib/ 24 # ....lib/
25 # ......args/
25 # ......builtin/ 26 # ......builtin/
26 # ........builtin_runtime.dart 27 # ........builtin_runtime.dart
27 # ......io/ 28 # ......io/
28 # ........io_runtime.dart 29 # ........io_runtime.dart
29 # ........runtime/ 30 # ........runtime/
30 # ......compiler/ 31 # ......compiler/
31 # ......core/ 32 # ......core/
32 # ........core_runtime.dart 33 # ........core_runtime.dart
33 # ........runtime/ 34 # ........runtime/
34 # ......coreimpl/ 35 # ......coreimpl/
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 dom_dest_dir = join(LIB, 'dom') 327 dom_dest_dir = join(LIB, 'dom')
327 os.makedirs(dom_dest_dir) 328 os.makedirs(dom_dest_dir)
328 329
329 copyfile(join(dom_src_dir, 'dart2js', 'dom_dart2js.dart'), 330 copyfile(join(dom_src_dir, 'dart2js', 'dom_dart2js.dart'),
330 join(dom_dest_dir, 'dom_dart2js.dart')) 331 join(dom_dest_dir, 'dom_dart2js.dart'))
331 332
332 # 333 #
333 # Create and populate lib/{crypto, json, uri, utf, ...}. 334 # Create and populate lib/{crypto, json, uri, utf, ...}.
334 # 335 #
335 336
336 for library in ['crypto', 'json', 'unittest', 'uri', 'utf', 'i18n', 'web']: 337 for library in ['crypto', 'json', 'unittest', 'uri', 'utf', 'i18n', 'web',
338 'args']:
337 src_dir = join(HOME, 'lib', library) 339 src_dir = join(HOME, 'lib', library)
338 dest_dir = join(LIB, library) 340 dest_dir = join(LIB, library)
339 os.makedirs(dest_dir) 341 os.makedirs(dest_dir)
340 342
341 for filename in os.listdir(src_dir): 343 for filename in os.listdir(src_dir):
342 if filename.endswith('.dart'): 344 if filename.endswith('.dart'):
343 copyfile(join(src_dir, filename), join(dest_dir, filename)) 345 copyfile(join(src_dir, filename), join(dest_dir, filename))
344 346
345 # Create and populate lib/dartdoc. 347 # Create and populate lib/dartdoc.
346 dartdoc_src_dir = join(HOME, 'lib', 'dartdoc') 348 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: 465 if revision is not None:
464 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: 466 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f:
465 f.write(revision + '\n') 467 f.write(revision + '\n')
466 f.close() 468 f.close()
467 469
468 move(SDK_tmp, SDK) 470 move(SDK_tmp, SDK)
469 utils.Touch(os.path.join(SDK, 'create.stamp')) 471 utils.Touch(os.path.join(SDK, 'create.stamp'))
470 472
471 if __name__ == '__main__': 473 if __name__ == '__main__':
472 sys.exit(Main(sys.argv)) 474 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