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

Side by Side Diff: sky/tools/deploy_sdk.py

Issue 1071693003: Uses mojom module names as Dart's package: import URI (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Merge Created 5 years, 8 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 | « sky/tests/services/network.sky ('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 # 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
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
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()
OLDNEW
« no previous file with comments | « sky/tests/services/network.sky ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698