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

Side by Side Diff: tools/create_sdk.py

Issue 14908005: "Reverting 22561" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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/html/template_element_test.dart ('k') | tools/dom/dom.py » ('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 #
(...skipping 18 matching lines...) Expand all
29 # ......async/ 29 # ......async/
30 # ......collection/ 30 # ......collection/
31 # ......_collection_dev/ 31 # ......_collection_dev/
32 # ......core/ 32 # ......core/
33 # ......crypto/ 33 # ......crypto/
34 # ......html/ 34 # ......html/
35 # ......io/ 35 # ......io/
36 # ......isolate/ 36 # ......isolate/
37 # ......json/ 37 # ......json/
38 # ......math/ 38 # ......math/
39 # ......mdv_observe_impl/
40 # ......mirrors/ 39 # ......mirrors/
41 # ......uri/ 40 # ......uri/
42 # ......utf/ 41 # ......utf/
43 # ......typed_data/ 42 # ......typed_data/
44 # ....packages/ 43 # ....packages/
45 # ......args/ 44 # ......args/
46 # ......intl/ 45 # ......intl/
47 # ......logging/ 46 # ......logging/
48 # ......meta/ 47 # ......meta/
49 # ......serialization 48 # ......serialization
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 211
213 for library in [join('_internal', 'compiler'), 212 for library in [join('_internal', 'compiler'),
214 join('_internal', 'dartdoc'), 213 join('_internal', 'dartdoc'),
215 join('_internal', 'pub', 'resource'), 214 join('_internal', 'pub', 'resource'),
216 'async', 'collection', '_collection_dev', 'core', 215 'async', 'collection', '_collection_dev', 'core',
217 'crypto', 'io', 'isolate', 216 'crypto', 'io', 'isolate',
218 join('chrome', 'dart2js'), join('chrome', 'dartium'), 217 join('chrome', 'dart2js'), join('chrome', 'dartium'),
219 join('html', 'dart2js'), join('html', 'dartium'), 218 join('html', 'dart2js'), join('html', 'dartium'),
220 join('html', 'html_common'), 219 join('html', 'html_common'),
221 join('indexed_db', 'dart2js'), join('indexed_db', 'dartium'), 220 join('indexed_db', 'dart2js'), join('indexed_db', 'dartium'),
222 'json', 'math', 'mdv_observe_impl', 'mirrors', 'typed_data', 221 'json', 'math', 'mirrors', 'typed_data',
223 join('svg', 'dart2js'), join('svg', 'dartium'), 222 join('svg', 'dart2js'), join('svg', 'dartium'),
224 'uri', 'utf', 223 'uri', 'utf',
225 join('web_audio', 'dart2js'), join('web_audio', 'dartium'), 224 join('web_audio', 'dart2js'), join('web_audio', 'dartium'),
226 join('web_gl', 'dart2js'), join('web_gl', 'dartium'), 225 join('web_gl', 'dart2js'), join('web_gl', 'dartium'),
227 join('web_sql', 'dart2js'), join('web_sql', 'dartium')]: 226 join('web_sql', 'dart2js'), join('web_sql', 'dartium')]:
228 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library), 227 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library),
229 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh', 228 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh',
230 '.gitignore')) 229 '.gitignore'))
231 230
232 # Copy lib/_internal/libraries.dart. 231 # Copy lib/_internal/libraries.dart.
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 dest_dir = join (ANALYZER_DEST, os.path.dirname(jarToCopy)) 266 dest_dir = join (ANALYZER_DEST, os.path.dirname(jarToCopy))
268 os.makedirs(dest_dir) 267 os.makedirs(dest_dir)
269 dest_file = join (ANALYZER_DEST, jarToCopy) 268 dest_file = join (ANALYZER_DEST, jarToCopy)
270 src_file = join(ANALYZER_HOME, 'util', 'analyzer', jarToCopy) 269 src_file = join(ANALYZER_HOME, 'util', 'analyzer', jarToCopy)
271 copyfile(src_file, dest_file) 270 copyfile(src_file, dest_file)
272 271
273 # Create and copy dartanalyzer into 'util' 272 # Create and copy dartanalyzer into 'util'
274 DARTANALYZER_SRC = join(HOME, build_dir, 'dartanalyzer') 273 DARTANALYZER_SRC = join(HOME, build_dir, 'dartanalyzer')
275 DARTANALYZER_DEST = join(UTIL, 'dartanalyzer') 274 DARTANALYZER_DEST = join(UTIL, 'dartanalyzer')
276 os.makedirs(DARTANALYZER_DEST) 275 os.makedirs(DARTANALYZER_DEST)
277 276
278 jarFiles = glob.glob(join(DARTANALYZER_SRC, '*.jar')) 277 jarFiles = glob.glob(join(DARTANALYZER_SRC, '*.jar'))
279 278
280 for jarFile in jarFiles: 279 for jarFile in jarFiles:
281 copyfile(jarFile, join(DARTANALYZER_DEST, os.path.basename(jarFile))) 280 copyfile(jarFile, join(DARTANALYZER_DEST, os.path.basename(jarFile)))
282 281
283 # Copy in 7zip for Windows. 282 # Copy in 7zip for Windows.
284 if HOST_OS == 'win32': 283 if HOST_OS == 'win32':
285 copytree(join(HOME, 'third_party', '7zip'), 284 copytree(join(HOME, 'third_party', '7zip'),
286 join(SDK_tmp, 'lib', '_internal', 'pub', 'resource', '7zip'), 285 join(SDK_tmp, 'lib', '_internal', 'pub', 'resource', '7zip'),
287 ignore=ignore_patterns('.svn')) 286 ignore=ignore_patterns('.svn'))
288 287
289 # Copy dart2js/dartdoc/pub. 288 # Copy dart2js/dartdoc/pub.
290 CopyDartScripts(HOME, SDK_tmp) 289 CopyDartScripts(HOME, SDK_tmp)
291 CopySnapshots(SNAPSHOT, SDK_tmp) 290 CopySnapshots(SNAPSHOT, SDK_tmp)
292 291
(...skipping 10 matching lines...) Expand all
303 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: 302 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f:
304 f.write(revision + '\n') 303 f.write(revision + '\n')
305 f.close() 304 f.close()
306 305
307 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) 306 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README'))
308 307
309 move(SDK_tmp, SDK) 308 move(SDK_tmp, SDK)
310 309
311 if __name__ == '__main__': 310 if __name__ == '__main__':
312 sys.exit(Main(sys.argv)) 311 sys.exit(Main(sys.argv))
OLDNEW
« no previous file with comments | « tests/html/template_element_test.dart ('k') | tools/dom/dom.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698