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

Side by Side Diff: tools/create_sdk.py

Issue 1408253006: Introduce "platform configurations" to replace categories and libraries.dart. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix create_sdk scripts according to review Created 5 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
« no previous file with comments | « tests/utils/dummy_compiler_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 21 matching lines...) Expand all
32 #...........dartdoc/ 32 #...........dartdoc/
33 #..............packages 33 #..............packages
34 #.............resources/ 34 #.............resources/
35 #.............templates/ 35 #.............templates/
36 # ....include/ 36 # ....include/
37 # ......dart_api.h 37 # ......dart_api.h
38 # ......dart_mirrors_api.h 38 # ......dart_mirrors_api.h
39 # ......dart_native_api.h 39 # ......dart_native_api.h
40 # ......dart_tools_api.h 40 # ......dart_tools_api.h
41 # ....lib/ 41 # ....lib/
42 # ......dart_client.platform
43 # ......dart_server.platform
44 # ......dart_shared.platform
45 # ......dart2dart.platform
42 # ......_internal/ 46 # ......_internal/
43 # ......async/ 47 # ......async/
44 # ......collection/ 48 # ......collection/
45 # ......convert/ 49 # ......convert/
46 # ......core/ 50 # ......core/
47 # ......html/ 51 # ......html/
48 # ......internal/ 52 # ......internal/
49 # ......io/ 53 # ......io/
50 # ......isolate/ 54 # ......isolate/
51 # ......js/ 55 # ......js/
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 join('indexed_db', 'dart2js'), join('indexed_db', 'dartium'), 238 join('indexed_db', 'dart2js'), join('indexed_db', 'dartium'),
235 'js', 'math', 'mirrors', 'typed_data', 239 'js', 'math', 'mirrors', 'typed_data',
236 join('svg', 'dart2js'), join('svg', 'dartium'), 240 join('svg', 'dart2js'), join('svg', 'dartium'),
237 join('web_audio', 'dart2js'), join('web_audio', 'dartium'), 241 join('web_audio', 'dart2js'), join('web_audio', 'dartium'),
238 join('web_gl', 'dart2js'), join('web_gl', 'dartium'), 242 join('web_gl', 'dart2js'), join('web_gl', 'dartium'),
239 join('web_sql', 'dart2js'), join('web_sql', 'dartium')]: 243 join('web_sql', 'dart2js'), join('web_sql', 'dartium')]:
240 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library), 244 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library),
241 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh', 245 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh',
242 '.gitignore')) 246 '.gitignore'))
243 247
248 # Copy the platform descriptors.
249 for file_name in ["dart_client.platform",
250 "dart_server.platform",
251 "dart_shared.platform",
252 "dart2dart.platform"]:
253 copyfile(join(HOME, 'sdk', 'lib', file_name), join(LIB, file_name));
254
244 # Copy libraries.dart to lib/_internal/libraries.dart for backwards 255 # Copy libraries.dart to lib/_internal/libraries.dart for backwards
245 # compatibility. 256 # compatibility.
246 # 257 #
247 # TODO(sigmund): stop copying libraries.dart. Old versions (<=0.25.1-alpha.4) 258 # TODO(sigmund): stop copying libraries.dart. Old versions (<=0.25.1-alpha.4)
248 # of the analyzer package do not support the new location of this file. We 259 # of the analyzer package do not support the new location of this file. We
249 # should be able to remove the old file once we release a newer version of 260 # should be able to remove the old file once we release a newer version of
250 # analyzer and popular frameworks have migrated to use it. 261 # analyzer and popular frameworks have migrated to use it.
251 copyfile(join(HOME, 'sdk', 'lib', '_internal', 262 copyfile(join(HOME, 'sdk', 'lib', '_internal',
252 'sdk_library_metadata', 'lib', 'libraries.dart'), 263 'sdk_library_metadata', 'lib', 'libraries.dart'),
253 join(LIB, '_internal', 'libraries.dart')) 264 join(LIB, '_internal', 'libraries.dart'))
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 f.close() 300 f.close()
290 301
291 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) 302 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README'))
292 Copy(join(HOME, 'LICENSE'), join(SDK_tmp, 'LICENSE')) 303 Copy(join(HOME, 'LICENSE'), join(SDK_tmp, 'LICENSE'))
293 Copy(join(HOME, 'sdk', 'api_readme.md'), join(SDK_tmp, 'lib', 'api_readme.md') ) 304 Copy(join(HOME, 'sdk', 'api_readme.md'), join(SDK_tmp, 'lib', 'api_readme.md') )
294 305
295 move(SDK_tmp, SDK) 306 move(SDK_tmp, SDK)
296 307
297 if __name__ == '__main__': 308 if __name__ == '__main__':
298 sys.exit(Main()) 309 sys.exit(Main())
OLDNEW
« no previous file with comments | « tests/utils/dummy_compiler_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698