Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 20 matching lines...) Expand all Loading... | |
| 31 #.........resources/ | 31 #.........resources/ |
| 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/ |
|
Bill Hesse
2015/11/02 10:33:27
Add the platform files to this comment.
sigurdm
2015/11/02 11:56:11
Done.
| |
| 42 # ......_internal/ | 42 # ......_internal/ |
| 43 # ......async/ | 43 # ......async/ |
| 44 # ......collection/ | 44 # ......collection/ |
| 45 # ......convert/ | 45 # ......convert/ |
| 46 # ......core/ | 46 # ......core/ |
| 47 # ......html/ | 47 # ......html/ |
| 48 # ......internal/ | 48 # ......internal/ |
| 49 # ......io/ | 49 # ......io/ |
| 50 # ......isolate/ | 50 # ......isolate/ |
| 51 # ......js/ | 51 # ......js/ |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 234 join('indexed_db', 'dart2js'), join('indexed_db', 'dartium'), | 234 join('indexed_db', 'dart2js'), join('indexed_db', 'dartium'), |
| 235 'js', 'math', 'mirrors', 'typed_data', | 235 'js', 'math', 'mirrors', 'typed_data', |
| 236 join('svg', 'dart2js'), join('svg', 'dartium'), | 236 join('svg', 'dart2js'), join('svg', 'dartium'), |
| 237 join('web_audio', 'dart2js'), join('web_audio', 'dartium'), | 237 join('web_audio', 'dart2js'), join('web_audio', 'dartium'), |
| 238 join('web_gl', 'dart2js'), join('web_gl', 'dartium'), | 238 join('web_gl', 'dart2js'), join('web_gl', 'dartium'), |
| 239 join('web_sql', 'dart2js'), join('web_sql', 'dartium')]: | 239 join('web_sql', 'dart2js'), join('web_sql', 'dartium')]: |
| 240 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library), | 240 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library), |
| 241 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh', | 241 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh', |
| 242 '.gitignore')) | 242 '.gitignore')) |
| 243 | 243 |
| 244 # Copy the platform descriptors. | |
| 245 for file_name in ["dart_client.platform", | |
| 246 "dart_server.platform", | |
| 247 "dart_shared.platform", | |
| 248 "dart2dart.platform"]: | |
| 249 copyfile(join(HOME, 'sdk', 'lib', file_name), join(LIB, file_name)); | |
| 250 | |
| 244 # Copy libraries.dart to lib/_internal/libraries.dart for backwards | 251 # Copy libraries.dart to lib/_internal/libraries.dart for backwards |
| 245 # compatibility. | 252 # compatibility. |
| 246 # | 253 # |
| 247 # TODO(sigmund): stop copying libraries.dart. Old versions (<=0.25.1-alpha.4) | 254 # 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 | 255 # 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 | 256 # 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. | 257 # analyzer and popular frameworks have migrated to use it. |
| 251 copyfile(join(HOME, 'sdk', 'lib', '_internal', | 258 copyfile(join(HOME, 'sdk', 'lib', '_internal', |
| 252 'sdk_library_metadata', 'lib', 'libraries.dart'), | 259 'sdk_library_metadata', 'lib', 'libraries.dart'), |
| 253 join(LIB, '_internal', 'libraries.dart')) | 260 join(LIB, '_internal', 'libraries.dart')) |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 289 f.close() | 296 f.close() |
| 290 | 297 |
| 291 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) | 298 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) |
| 292 Copy(join(HOME, 'LICENSE'), join(SDK_tmp, 'LICENSE')) | 299 Copy(join(HOME, 'LICENSE'), join(SDK_tmp, 'LICENSE')) |
| 293 Copy(join(HOME, 'sdk', 'api_readme.md'), join(SDK_tmp, 'lib', 'api_readme.md') ) | 300 Copy(join(HOME, 'sdk', 'api_readme.md'), join(SDK_tmp, 'lib', 'api_readme.md') ) |
| 294 | 301 |
| 295 move(SDK_tmp, SDK) | 302 move(SDK_tmp, SDK) |
| 296 | 303 |
| 297 if __name__ == '__main__': | 304 if __name__ == '__main__': |
| 298 sys.exit(Main()) | 305 sys.exit(Main()) |
| OLD | NEW |