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

Side by Side Diff: tools/create_sdk.py

Issue 50413009: Remove dart:utf references in tools/create_sdk. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
« 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 21 matching lines...) Expand all
32 # ......collection/ 32 # ......collection/
33 # ......_collection_dev/ 33 # ......_collection_dev/
34 # ......convert/ 34 # ......convert/
35 # ......core/ 35 # ......core/
36 # ......html/ 36 # ......html/
37 # ......io/ 37 # ......io/
38 # ......isolate/ 38 # ......isolate/
39 # ......js/ 39 # ......js/
40 # ......math/ 40 # ......math/
41 # ......mirrors/ 41 # ......mirrors/
42 # ......utf/
43 # ......typed_data/ 42 # ......typed_data/
44 # ....util/ 43 # ....util/
45 # ......dartanalyzer/ 44 # ......dartanalyzer/
46 # ........dartanalyzer.jar 45 # ........dartanalyzer.jar
47 # ........(third-party libraries for dart_analyzer) 46 # ........(third-party libraries for dart_analyzer)
48 # ......(more will come here) 47 # ......(more will come here)
49 48
50 49
51 import glob 50 import glob
52 import optparse 51 import optparse
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 join(INCLUDE, 'dart_native_api.h')) 180 join(INCLUDE, 'dart_native_api.h'))
182 181
183 # 182 #
184 # Create and populate sdk/lib. 183 # Create and populate sdk/lib.
185 # 184 #
186 185
187 LIB = join(SDK_tmp, 'lib') 186 LIB = join(SDK_tmp, 'lib')
188 os.makedirs(LIB) 187 os.makedirs(LIB)
189 188
190 # 189 #
191 # Create and populate lib/{core, crypto, isolate, utf, ...}. 190 # Create and populate lib/{core, crypto, isolate, ...}.
192 # 191 #
193 192
194 os.makedirs(join(LIB, 'html')) 193 os.makedirs(join(LIB, 'html'))
195 194
196 for library in [join('_chrome', 'dart2js'), join('_chrome', 'dartium'), 195 for library in [join('_chrome', 'dart2js'), join('_chrome', 'dartium'),
197 join('_internal', 'compiler'), 196 join('_internal', 'compiler'),
198 join('_internal', 'dartdoc'), 197 join('_internal', 'dartdoc'),
199 join('_internal', 'pub', 'resource'), 198 join('_internal', 'pub', 'resource'),
200 join('_internal', 'lib'), 199 join('_internal', 'lib'),
201 'async', 'collection', '_collection_dev', 'convert', 200 'async', 'collection', '_collection_dev', 'convert',
202 'core', 'crypto', 'io', 'isolate', 201 'core', 'crypto', 'io', 'isolate',
203 join('html', 'dart2js'), join('html', 'dartium'), 202 join('html', 'dart2js'), join('html', 'dartium'),
204 join('html', 'html_common'), 203 join('html', 'html_common'),
205 join('indexed_db', 'dart2js'), join('indexed_db', 'dartium'), 204 join('indexed_db', 'dart2js'), join('indexed_db', 'dartium'),
206 'js', 'math', 'mirrors', 'typed_data', 205 'js', 'math', 'mirrors', 'typed_data',
207 join('svg', 'dart2js'), join('svg', 'dartium'), 206 join('svg', 'dart2js'), join('svg', 'dartium'),
208 'utf',
209 join('web_audio', 'dart2js'), join('web_audio', 'dartium'), 207 join('web_audio', 'dart2js'), join('web_audio', 'dartium'),
210 join('web_gl', 'dart2js'), join('web_gl', 'dartium'), 208 join('web_gl', 'dart2js'), join('web_gl', 'dartium'),
211 join('web_sql', 'dart2js'), join('web_sql', 'dartium')]: 209 join('web_sql', 'dart2js'), join('web_sql', 'dartium')]:
212 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library), 210 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library),
213 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh', 211 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh',
214 '.gitignore')) 212 '.gitignore'))
215 213
216 # Copy lib/_internal/libraries.dart. 214 # Copy lib/_internal/libraries.dart.
217 copyfile(join(HOME, 'sdk', 'lib', '_internal', 'libraries.dart'), 215 copyfile(join(HOME, 'sdk', 'lib', '_internal', 'libraries.dart'),
218 join(LIB, '_internal', 'libraries.dart')) 216 join(LIB, '_internal', 'libraries.dart'))
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: 252 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f:
255 f.write(revision + '\n') 253 f.write(revision + '\n')
256 f.close() 254 f.close()
257 255
258 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) 256 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README'))
259 257
260 move(SDK_tmp, SDK) 258 move(SDK_tmp, SDK)
261 259
262 if __name__ == '__main__': 260 if __name__ == '__main__':
263 sys.exit(Main(sys.argv)) 261 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