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

Side by Side Diff: tools/create_sdk.py

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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/utils/utils.status ('k') | tools/ddbg.dart » ('j') | 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 # ......collection/ 27 # ......collection/
27 # ......core/ 28 # ......core/
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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 # 191 #
191 192
192 LIB = join(SDK_tmp, 'lib') 193 LIB = join(SDK_tmp, 'lib')
193 os.makedirs(LIB) 194 os.makedirs(LIB)
194 195
195 # 196 #
196 # Create and populate lib/{core, crypto, isolate, json, uri, utf, ...}. 197 # Create and populate lib/{core, crypto, isolate, json, uri, utf, ...}.
197 # 198 #
198 199
199 os.makedirs(join(LIB, 'html')) 200 os.makedirs(join(LIB, 'html'))
200 for library in ['_internal', 'collection', 'core', 'crypto', 'io', 'isolate', 201 for library in ['_internal', 'async', 'collection', 'core', 'crypto', 'io',
201 join('html', 'dart2js'), join('html', 'dartium'), 202 'isolate', join('html', 'dart2js'), join('html', 'dartium'),
202 join('html', 'html_common'), join('indexed_db', 'dart2js'), 203 join('html', 'html_common'), join('indexed_db', 'dart2js'),
203 join('indexed_db', 'dartium'), 'json', 'math', 'mirrors', 204 join('indexed_db', 'dartium'), 'json', 'math', 'mirrors',
204 'scalarlist', join('svg', 'dart2js'), join('svg', 'dartium'), 205 'scalarlist', join('svg', 'dart2js'), join('svg', 'dartium'),
205 'uri', 'utf', join('web_audio', 'dart2js'), 206 'uri', 'utf', join('web_audio', 'dart2js'),
206 join('web_audio', 'dartium')]: 207 join('web_audio', 'dartium')]:
207 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library), 208 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library),
208 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh')) 209 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh'))
209 210
210 211
211 # Create and copy pkg. 212 # Create and copy pkg.
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: 305 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f:
305 f.write(revision + '\n') 306 f.write(revision + '\n')
306 f.close() 307 f.close()
307 308
308 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) 309 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README'))
309 310
310 move(SDK_tmp, SDK) 311 move(SDK_tmp, SDK)
311 312
312 if __name__ == '__main__': 313 if __name__ == '__main__':
313 sys.exit(Main(sys.argv)) 314 sys.exit(Main(sys.argv))
OLDNEW
« no previous file with comments | « tests/utils/utils.status ('k') | tools/ddbg.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698