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

Side by Side Diff: tools/create_sdk.py

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

Powered by Google App Engine
This is Rietveld 408576698