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

Unified Diff: win_toolchain/toolchain2013.py

Issue 168603004: Move toolchain update control into src, but keep download logic in depot_tools (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: reitveld 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « win_toolchain/get_toolchain_if_necessary.py ('k') | win_toolchain/toolchain_vs2013.hash » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: win_toolchain/toolchain2013.py
diff --git a/win_toolchain/toolchain2013.py b/win_toolchain/toolchain2013.py
index 147c9d3cf2a5af419f27076ca3912ab5679bba0f..1ed216cd4f71b448e297f5457ba87ecd6416e928 100755
--- a/win_toolchain/toolchain2013.py
+++ b/win_toolchain/toolchain2013.py
@@ -7,6 +7,7 @@
import ctypes
+import json
import optparse
import os
import shutil
@@ -456,8 +457,18 @@ def main():
CopyToFinalLocation(extracted, target_dir)
GenerateSetEnvCmd(target_dir, not options.express)
- with open(os.path.join(target_dir, '.version'), 'w') as f:
- f.write('express' if options.express else 'pro')
+ data = {
+ 'path': target_dir,
+ 'version': '2013e' if options.express else '2013',
+ 'win8sdk': os.path.join(target_dir, 'win8sdk'),
+ 'wdk': os.path.join(target_dir, 'wdk'),
+ 'runtime_dirs': [
+ os.path.join(target_dir, 'sys64'),
+ os.path.join(target_dir, 'sys32'),
+ ],
+ }
+ with open(os.path.join(target_dir, 'data.json'), 'w') as f:
+ json.dump(data, f)
finally:
if options.clean:
DeleteAllTempDirs()
« no previous file with comments | « win_toolchain/get_toolchain_if_necessary.py ('k') | win_toolchain/toolchain_vs2013.hash » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698