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

Side by Side Diff: tools/create_sdk.py

Issue 11274043: Move Arrays, Collections and Maps into a new library, dart:collections. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Review update. Created 8 years, 1 month 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
« runtime/vm/object.cc ('K') | « tests/corelib/maps_test.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
ahe 2012/10/25 13:37:34 This file LGTM
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 # ......_internal/ 25 # ......_internal/
26 # ......collections/
26 # ......core/ 27 # ......core/
27 # ......coreimpl/ 28 # ......coreimpl/
28 # ......crypto/ 29 # ......crypto/
29 # ......html/ 30 # ......html/
30 # ......io/ 31 # ......io/
31 # ......isolate/ 32 # ......isolate/
32 # ......json/ 33 # ......json/
33 # ......math/ 34 # ......math/
34 # ......mirrors/ 35 # ......mirrors/
35 # ......uri/ 36 # ......uri/
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 if filename == 'io.dart': 243 if filename == 'io.dart':
243 continue 244 continue
244 dest_file.write('#source("runtime/' + filename + '");\n') 245 dest_file.write('#source("runtime/' + filename + '");\n')
245 dest_file.close() 246 dest_file.close()
246 247
247 # 248 #
248 # Create and populate lib/{core, crypto, isolate, json, uri, utf, ...}. 249 # Create and populate lib/{core, crypto, isolate, json, uri, utf, ...}.
249 # 250 #
250 251
251 os.makedirs(join(LIB, 'html')) 252 os.makedirs(join(LIB, 'html'))
252 for library in ['_internal', 'core', 'coreimpl', 'crypto', 'isolate', 253 for library in ['_internal', 'collections', 'core', 'coreimpl', 'crypto',
253 join('html', 'dart2js'), join('html', 'dartium'), 'json', 254 'isolate', join('html', 'dart2js'), join('html', 'dartium'),
254 'math', 'mirrors', 'scalarlist', 'uri', 'utf']: 255 'json', 'math', 'mirrors', 'scalarlist', 'uri', 'utf']:
255 copytree(join(HOME, 'lib', library), join(LIB, library), 256 copytree(join(HOME, 'lib', library), join(LIB, library),
256 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh')) 257 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh'))
257 258
258 259
259 # Create and copy pkg. 260 # Create and copy pkg.
260 PKG = join(SDK_tmp, 'pkg') 261 PKG = join(SDK_tmp, 'pkg')
261 os.makedirs(PKG) 262 os.makedirs(PKG)
262 263
263 # 264 #
264 # Create and populate pkg/{args, intl, logging, meta, unittest} 265 # Create and populate pkg/{args, intl, logging, meta, unittest}
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: 355 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f:
355 f.write(revision + '\n') 356 f.write(revision + '\n')
356 f.close() 357 f.close()
357 358
358 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) 359 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README'))
359 360
360 move(SDK_tmp, SDK) 361 move(SDK_tmp, SDK)
361 362
362 if __name__ == '__main__': 363 if __name__ == '__main__':
363 sys.exit(Main(sys.argv)) 364 sys.exit(Main(sys.argv))
OLDNEW
« runtime/vm/object.cc ('K') | « tests/corelib/maps_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698