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

Side by Side Diff: win_toolchain/toolchain2013.py

Issue 173523005: Move data.json to win_toolchain to its abs paths aren't hashed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « win_toolchain/get_toolchain_if_necessary.py ('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 2013 The Chromium Authors. All rights reserved. 2 # Copyright 2013 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 """Extracts a Windows VS2013 toolchain from various downloadable pieces.""" 6 """Extracts a Windows VS2013 toolchain from various downloadable pieces."""
7 7
8 8
9 import ctypes 9 import ctypes
10 import json 10 import json
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 data = { 460 data = {
461 'path': target_dir, 461 'path': target_dir,
462 'version': '2013e' if options.express else '2013', 462 'version': '2013e' if options.express else '2013',
463 'win8sdk': os.path.join(target_dir, 'win8sdk'), 463 'win8sdk': os.path.join(target_dir, 'win8sdk'),
464 'wdk': os.path.join(target_dir, 'wdk'), 464 'wdk': os.path.join(target_dir, 'wdk'),
465 'runtime_dirs': [ 465 'runtime_dirs': [
466 os.path.join(target_dir, 'sys64'), 466 os.path.join(target_dir, 'sys64'),
467 os.path.join(target_dir, 'sys32'), 467 os.path.join(target_dir, 'sys32'),
468 ], 468 ],
469 } 469 }
470 with open(os.path.join(target_dir, 'data.json'), 'w') as f: 470 with open(os.path.join(target_dir, '..', 'data.json'), 'w') as f:
471 json.dump(data, f) 471 json.dump(data, f)
472 finally: 472 finally:
473 if options.clean: 473 if options.clean:
474 DeleteAllTempDirs() 474 DeleteAllTempDirs()
475 475
476 476
477 if __name__ == '__main__': 477 if __name__ == '__main__':
478 sys.exit(main()) 478 sys.exit(main())
OLDNEW
« no previous file with comments | « win_toolchain/get_toolchain_if_necessary.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698