| OLD | NEW |
| 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 Loading... |
| 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()) |
| OLD | NEW |