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

Side by Side Diff: tools/create_sdk.py

Issue 11938036: Hide collection-dev library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Allow dart:_collection-dev in dartc. Other fixes. Created 7 years, 10 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/language/language.status ('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 #
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 # ......async/ 26 # ......async/
27 # ......collection/ 27 # ......collection/
28 # ......collection_dev/ 28 # ......_collection_dev/
29 # ......core/ 29 # ......core/
30 # ......crypto/ 30 # ......crypto/
31 # ......html/ 31 # ......html/
32 # ......io/ 32 # ......io/
33 # ......isolate/ 33 # ......isolate/
34 # ......json/ 34 # ......json/
35 # ......math/ 35 # ......math/
36 # ......mirrors/ 36 # ......mirrors/
37 # ......uri/ 37 # ......uri/
38 # ......utf/ 38 # ......utf/
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 # 192 #
193 193
194 LIB = join(SDK_tmp, 'lib') 194 LIB = join(SDK_tmp, 'lib')
195 os.makedirs(LIB) 195 os.makedirs(LIB)
196 196
197 # 197 #
198 # Create and populate lib/{core, crypto, isolate, json, uri, utf, ...}. 198 # Create and populate lib/{core, crypto, isolate, json, uri, utf, ...}.
199 # 199 #
200 200
201 os.makedirs(join(LIB, 'html')) 201 os.makedirs(join(LIB, 'html'))
202 for library in ['_internal', 'async', 'collection', 'collection_dev', 'core', 202 for library in ['_internal', 'async', 'collection', '_collection_dev', 'core',
203 'crypto', 'io', 'isolate', 203 'crypto', 'io', 'isolate',
204 join('chrome', 'dart2js'), join('chrome', 'dartium'), 204 join('chrome', 'dart2js'), join('chrome', 'dartium'),
205 join('html', 'dart2js'), join('html', 'dartium'), 205 join('html', 'dart2js'), join('html', 'dartium'),
206 join('html', 'html_common'), 206 join('html', 'html_common'),
207 join('indexed_db', 'dart2js'), join('indexed_db', 'dartium'), 207 join('indexed_db', 'dart2js'), join('indexed_db', 'dartium'),
208 'json', 'math', 'mirrors', 'scalarlist', 208 'json', 'math', 'mirrors', 'scalarlist',
209 join('svg', 'dart2js'), join('svg', 'dartium'), 209 join('svg', 'dart2js'), join('svg', 'dartium'),
210 'uri', 'utf', 210 'uri', 'utf',
211 join('web_audio', 'dart2js'), join('web_audio', 'dartium')]: 211 join('web_audio', 'dart2js'), join('web_audio', 'dartium')]:
212 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library), 212 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library),
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: 292 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f:
293 f.write(revision + '\n') 293 f.write(revision + '\n')
294 f.close() 294 f.close()
295 295
296 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) 296 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README'))
297 297
298 move(SDK_tmp, SDK) 298 move(SDK_tmp, SDK)
299 299
300 if __name__ == '__main__': 300 if __name__ == '__main__':
301 sys.exit(Main(sys.argv)) 301 sys.exit(Main(sys.argv))
OLDNEW
« no previous file with comments | « tests/language/language.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698