| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2015 The Chromium Authors. All rights reserved. | 2 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 import argparse | 6 import argparse |
| 7 from datetime import datetime | 7 from datetime import datetime |
| 8 import logging | 8 import logging |
| 9 import os | 9 import os |
| 10 import shutil | 10 import shutil |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 copy_or_link(src_path('sky/engine/bindings/builtin.dart'), | 163 copy_or_link(src_path('sky/engine/bindings/builtin.dart'), |
| 164 sdk_path('packages/sky/sdk_additions/dart_sky_builtins.dart')) | 164 sdk_path('packages/sky/sdk_additions/dart_sky_builtins.dart')) |
| 165 bindings_path = os.path.join(build_dir, 'gen/sky/bindings') | 165 bindings_path = os.path.join(build_dir, 'gen/sky/bindings') |
| 166 # dart_sky.dart has many supporting files: | 166 # dart_sky.dart has many supporting files: |
| 167 copy(bindings_path, sdk_path('packages/sky/sdk_additions'), | 167 copy(bindings_path, sdk_path('packages/sky/sdk_additions'), |
| 168 dart_filter) | 168 dart_filter) |
| 169 | 169 |
| 170 # Mojo package, lots of overlap with gen, must be copied: | 170 # Mojo package, lots of overlap with gen, must be copied: |
| 171 copy(src_path('mojo/public'), sdk_path('packages/mojo/lib/public'), | 171 copy(src_path('mojo/public'), sdk_path('packages/mojo/lib/public'), |
| 172 dart_filter) | 172 dart_filter) |
| 173 copy(os.path.join(build_dir, 'gen/mojo'), sdk_path('packages/mojo/lib'), | 173 copy(os.path.join(build_dir, 'gen/dart-gen/mojo'), |
| 174 gen_filter) | 174 sdk_path('packages/mojo/lib'), gen_filter) |
| 175 | 175 |
| 176 # Mojo SDK additions: | 176 # Mojo SDK additions: |
| 177 copy_or_link(src_path('mojo/public/dart/bindings.dart'), | 177 copy_or_link(src_path('mojo/public/dart/bindings.dart'), |
| 178 sdk_path('packages/mojo/sdk_additions/dart_mojo_bindings.dart')) | 178 sdk_path('packages/mojo/sdk_additions/dart_mojo_bindings.dart')) |
| 179 copy_or_link(src_path('mojo/public/dart/core.dart'), | 179 copy_or_link(src_path('mojo/public/dart/core.dart'), |
| 180 sdk_path('packages/mojo/sdk_additions/dart_mojo_core.dart')) | 180 sdk_path('packages/mojo/sdk_additions/dart_mojo_core.dart')) |
| 181 | 181 |
| 182 if not skip_apks: | 182 if not skip_apks: |
| 183 ensure_dir_exists(sdk_path('packages/sky/apks')) | 183 ensure_dir_exists(sdk_path('packages/sky/apks')) |
| 184 shutil.copy(os.path.join(build_dir, 'apks', 'SkyDemo.apk'), | 184 shutil.copy(os.path.join(build_dir, 'apks', 'SkyDemo.apk'), |
| (...skipping 25 matching lines...) Expand all Loading... |
| 210 'git', 'commit', | 210 'git', 'commit', |
| 211 '-m', '%s from %s' % (rel_build_dir, git_revision()) | 211 '-m', '%s from %s' % (rel_build_dir, git_revision()) |
| 212 ], cwd=sdk_root) | 212 ], cwd=sdk_root) |
| 213 | 213 |
| 214 time_delta = datetime.now() - start_time | 214 time_delta = datetime.now() - start_time |
| 215 print 'SDK built at %s in %ss' % (sdk_root, time_delta.total_seconds()) | 215 print 'SDK built at %s in %ss' % (sdk_root, time_delta.total_seconds()) |
| 216 | 216 |
| 217 | 217 |
| 218 if __name__ == '__main__': | 218 if __name__ == '__main__': |
| 219 main() | 219 main() |
| OLD | NEW |