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

Side by Side Diff: tools/create_sdk.py

Issue 1216313002: keep old location of libraries.dart in the generated SDK (fixes 23755) (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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 | « sdk/lib/_internal/libraries.dart ('k') | utils/dartanalyzer/dartanalyzer.gyp » ('j') | 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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 join('indexed_db', 'dart2js'), join('indexed_db', 'dartium'), 213 join('indexed_db', 'dart2js'), join('indexed_db', 'dartium'),
214 'js', 'math', 'mirrors', 'profiler', 'typed_data', 214 'js', 'math', 'mirrors', 'profiler', 'typed_data',
215 join('svg', 'dart2js'), join('svg', 'dartium'), 215 join('svg', 'dart2js'), join('svg', 'dartium'),
216 join('web_audio', 'dart2js'), join('web_audio', 'dartium'), 216 join('web_audio', 'dart2js'), join('web_audio', 'dartium'),
217 join('web_gl', 'dart2js'), join('web_gl', 'dartium'), 217 join('web_gl', 'dart2js'), join('web_gl', 'dartium'),
218 join('web_sql', 'dart2js'), join('web_sql', 'dartium')]: 218 join('web_sql', 'dart2js'), join('web_sql', 'dartium')]:
219 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library), 219 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library),
220 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh', 220 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh',
221 '.gitignore')) 221 '.gitignore'))
222 222
223 # Copy libraries.dart to lib/_internal/libraries.dart for backwards
224 # compatibility.
225 #
226 # TODO(sigmund): stop copying libraries.dart. Old versions (<=0.25.1) of the
kevmoo 2015/07/01 00:00:21 so 0.25.1-alpha.4
Siggi Cherem (dart-lang) 2015/07/01 00:08:37 Done.
227 # analyzer package do not support the new location of this file. We should be
228 # able to remove the old file once we release a newer version of analyzer and
229 # popular frameworks have migrated to use it.
230 copyfile(join(HOME, 'sdk', 'lib', '_internal',
231 'sdk_library_metadata', 'lib', 'libraries.dart'),
232 join(LIB, '_internal', 'libraries.dart'))
233
223 # Create and copy tools. 234 # Create and copy tools.
224 UTIL = join(SDK_tmp, 'util') 235 UTIL = join(SDK_tmp, 'util')
225 os.makedirs(UTIL) 236 os.makedirs(UTIL)
226 237
227 RESOURCE = join(SDK_tmp, 'lib', '_internal', 'pub', 'asset') 238 RESOURCE = join(SDK_tmp, 'lib', '_internal', 'pub', 'asset')
228 os.makedirs(os.path.dirname(RESOURCE)) 239 os.makedirs(os.path.dirname(RESOURCE))
229 copytree(join(HOME, 'third_party', 'pkg', 'pub', 'lib', 'src', 240 copytree(join(HOME, 'third_party', 'pkg', 'pub', 'lib', 'src',
230 'asset'), 241 'asset'),
231 join(RESOURCE), 242 join(RESOURCE),
232 ignore=ignore_patterns('.svn')) 243 ignore=ignore_patterns('.svn'))
(...skipping 22 matching lines...) Expand all
255 f.write('%s\n' % revision) 266 f.write('%s\n' % revision)
256 f.close() 267 f.close()
257 268
258 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) 269 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README'))
259 Copy(join(HOME, 'sdk', 'api_readme.md'), join(SDK_tmp, 'lib', 'api_readme.md') ) 270 Copy(join(HOME, 'sdk', 'api_readme.md'), join(SDK_tmp, 'lib', 'api_readme.md') )
260 271
261 move(SDK_tmp, SDK) 272 move(SDK_tmp, SDK)
262 273
263 if __name__ == '__main__': 274 if __name__ == '__main__':
264 sys.exit(Main()) 275 sys.exit(Main())
OLDNEW
« no previous file with comments | « sdk/lib/_internal/libraries.dart ('k') | utils/dartanalyzer/dartanalyzer.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698