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

Side by Side Diff: tools/create_sdk.py

Issue 2213673002: Delete dart_backend from compiler. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « tests/language/dangling_else_test.dart ('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 #
(...skipping 26 matching lines...) Expand all
37 #.............templates/ 37 #.............templates/
38 # ....include/ 38 # ....include/
39 # ......dart_api.h 39 # ......dart_api.h
40 # ......dart_mirrors_api.h 40 # ......dart_mirrors_api.h
41 # ......dart_native_api.h 41 # ......dart_native_api.h
42 # ......dart_tools_api.h 42 # ......dart_tools_api.h
43 # ....lib/ 43 # ....lib/
44 # ......dart_client.platform 44 # ......dart_client.platform
45 # ......dart_server.platform 45 # ......dart_server.platform
46 # ......dart_shared.platform 46 # ......dart_shared.platform
47 # ......dart2dart.platform
48 # ......_internal/ 47 # ......_internal/
49 #.........spec.sum 48 #.........spec.sum
50 #.........strong.sum 49 #.........strong.sum
51 # ......analysis_server/ 50 # ......analysis_server/
52 # ......analyzer/ 51 # ......analyzer/
53 # ......async/ 52 # ......async/
54 # ......collection/ 53 # ......collection/
55 # ......convert/ 54 # ......convert/
56 # ......core/ 55 # ......core/
57 # ......html/ 56 # ......html/
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 join('web_audio', 'dart2js'), join('web_audio', 'dartium'), 259 join('web_audio', 'dart2js'), join('web_audio', 'dartium'),
261 join('web_gl', 'dart2js'), join('web_gl', 'dartium'), 260 join('web_gl', 'dart2js'), join('web_gl', 'dartium'),
262 join('web_sql', 'dart2js'), join('web_sql', 'dartium')]: 261 join('web_sql', 'dart2js'), join('web_sql', 'dartium')]:
263 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library), 262 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library),
264 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh', 263 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh',
265 '.gitignore')) 264 '.gitignore'))
266 265
267 # Copy the platform descriptors. 266 # Copy the platform descriptors.
268 for file_name in ["dart_client.platform", 267 for file_name in ["dart_client.platform",
269 "dart_server.platform", 268 "dart_server.platform",
270 "dart_shared.platform", 269 "dart_shared.platform"]:
271 "dart2dart.platform"]:
272 copyfile(join(HOME, 'sdk', 'lib', file_name), join(LIB, file_name)); 270 copyfile(join(HOME, 'sdk', 'lib', file_name), join(LIB, file_name));
273 271
274 # Copy libraries.dart to lib/_internal/libraries.dart for backwards 272 # Copy libraries.dart to lib/_internal/libraries.dart for backwards
275 # compatibility. 273 # compatibility.
276 # 274 #
277 # TODO(sigmund): stop copying libraries.dart. Old versions (<=0.25.1-alpha.4) 275 # TODO(sigmund): stop copying libraries.dart. Old versions (<=0.25.1-alpha.4)
278 # of the analyzer package do not support the new location of this file. We 276 # of the analyzer package do not support the new location of this file. We
279 # should be able to remove the old file once we release a newer version of 277 # should be able to remove the old file once we release a newer version of
280 # analyzer and popular frameworks have migrated to use it. 278 # analyzer and popular frameworks have migrated to use it.
281 copyfile(join(HOME, 'sdk', 'lib', '_internal', 279 copyfile(join(HOME, 'sdk', 'lib', '_internal',
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 f.close() 320 f.close()
323 321
324 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) 322 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README'))
325 Copy(join(HOME, 'LICENSE'), join(SDK_tmp, 'LICENSE')) 323 Copy(join(HOME, 'LICENSE'), join(SDK_tmp, 'LICENSE'))
326 Copy(join(HOME, 'sdk', 'api_readme.md'), join(SDK_tmp, 'lib', 'api_readme.md') ) 324 Copy(join(HOME, 'sdk', 'api_readme.md'), join(SDK_tmp, 'lib', 'api_readme.md') )
327 325
328 move(SDK_tmp, SDK) 326 move(SDK_tmp, SDK)
329 327
330 if __name__ == '__main__': 328 if __name__ == '__main__':
331 sys.exit(Main()) 329 sys.exit(Main())
OLDNEW
« no previous file with comments | « tests/language/dangling_else_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698