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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
166 copy(os.path.join(build_dir, 'gen/sky'), | 166 copy(os.path.join(build_dir, 'gen/sky'), |
167 sdk_path('packages/sky/lib'), gen_filter) | 167 sdk_path('packages/sky/lib'), gen_filter) |
168 | 168 |
169 # Sky SDK additions: | 169 # Sky SDK additions: |
170 copy_or_link(src_path('sky/engine/bindings/builtin.dart'), | 170 copy_or_link(src_path('sky/engine/bindings/builtin.dart'), |
171 sdk_path('packages/sky/sdk_additions/dart_sky_builtins.dart')) | 171 sdk_path('packages/sky/sdk_additions/dart_sky_builtins.dart')) |
172 bindings_path = os.path.join(build_dir, 'gen/sky/bindings') | 172 bindings_path = os.path.join(build_dir, 'gen/sky/bindings') |
173 copy_or_link(os.path.join(bindings_path, 'dart_sky.dart'), | 173 copy_or_link(os.path.join(bindings_path, 'dart_sky.dart'), |
174 sdk_path('packages/sky/sdk_additions/dart_sky.dart')) | 174 sdk_path('packages/sky/sdk_additions/dart_sky.dart')) |
175 | 175 |
176 # Not used in the dev environment. | |
177 copy_or_link(src_path('sky/sdk/tools/sky'), | |
178 sdk_path('packages/sky/bin/sky')) | |
abarth-chromium
2015/03/18 20:36:49
Did you mean to remove this?
| |
179 | |
180 # Mojo package, lots of overlap with gen, must be copied: | 176 # Mojo package, lots of overlap with gen, must be copied: |
181 copy(src_path('mojo/public'), sdk_path('packages/mojo/lib/public'), | 177 copy(src_path('mojo/public'), sdk_path('packages/mojo/lib/public'), |
182 dart_filter) | 178 dart_filter) |
183 copy(os.path.join(build_dir, 'gen/mojo'), sdk_path('packages/mojo/lib'), | 179 copy(os.path.join(build_dir, 'gen/mojo'), sdk_path('packages/mojo/lib'), |
184 gen_filter) | 180 gen_filter) |
185 | 181 |
186 # Mojo SDK additions: | 182 # Mojo SDK additions: |
187 copy_or_link(src_path('mojo/public/dart/bindings.dart'), | 183 copy_or_link(src_path('mojo/public/dart/bindings.dart'), |
188 sdk_path('packages/mojo/sdk_additions/dart_mojo_bindings.dart')) | 184 sdk_path('packages/mojo/sdk_additions/dart_mojo_bindings.dart')) |
189 copy_or_link(src_path('mojo/public/dart/dart_mojo_core.dart'), | 185 copy_or_link(src_path('mojo/public/dart/dart_mojo_core.dart'), |
(...skipping 30 matching lines...) Expand all Loading... | |
220 'git', 'commit', | 216 'git', 'commit', |
221 '-m', '%s from %s' % (rel_build_dir, git_revision()) | 217 '-m', '%s from %s' % (rel_build_dir, git_revision()) |
222 ], cwd=sdk_root) | 218 ], cwd=sdk_root) |
223 | 219 |
224 time_delta = datetime.now() - start_time | 220 time_delta = datetime.now() - start_time |
225 print 'SDK built at %s in %ss' % (sdk_root, time_delta.total_seconds()) | 221 print 'SDK built at %s in %ss' % (sdk_root, time_delta.total_seconds()) |
226 | 222 |
227 | 223 |
228 if __name__ == '__main__': | 224 if __name__ == '__main__': |
229 main() | 225 main() |
OLD | NEW |