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

Side by Side Diff: trunk/tools/depot_tools/win_toolchain/toolchain2013.py

Issue 424813003: Revert 284349 "Add winrt to the INCLUDE directories of the toolc..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 4 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 | « no previous file | 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 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 This is normally generated by a full install of the SDK, but we 376 This is normally generated by a full install of the SDK, but we
377 do it here manually since we do not do a full install.""" 377 do it here manually since we do not do a full install."""
378 with open(os.path.join( 378 with open(os.path.join(
379 target_dir, r'win8sdk\bin\SetEnv.cmd'), 'w') as f: 379 target_dir, r'win8sdk\bin\SetEnv.cmd'), 'w') as f:
380 f.write('@echo off\n' 380 f.write('@echo off\n'
381 ':: Generated by win_toolchain\\toolchain2013.py.\n' 381 ':: Generated by win_toolchain\\toolchain2013.py.\n'
382 # Common to x86 and x64 382 # Common to x86 and x64
383 'set PATH=%~dp0..\\..\\Common7\\IDE;%PATH%\n' 383 'set PATH=%~dp0..\\..\\Common7\\IDE;%PATH%\n'
384 'set INCLUDE=%~dp0..\\..\\win8sdk\\Include\\um;' 384 'set INCLUDE=%~dp0..\\..\\win8sdk\\Include\\um;'
385 '%~dp0..\\..\\win8sdk\\Include\\shared;' 385 '%~dp0..\\..\\win8sdk\\Include\\shared;'
386 '%~dp0..\\..\\win8sdk\\Include\\winrt;'
387 '%~dp0..\\..\\VC\\include;' 386 '%~dp0..\\..\\VC\\include;'
388 '%~dp0..\\..\\VC\\atlmfc\\include\n' 387 '%~dp0..\\..\\VC\\atlmfc\\include\n'
389 'if "%1"=="/x64" goto x64\n') 388 'if "%1"=="/x64" goto x64\n')
390 389
391 # x86. If we're Pro, then use the amd64_x86 cross (we don't support x86 390 # x86. If we're Pro, then use the amd64_x86 cross (we don't support x86
392 # host at all). 391 # host at all).
393 if pro: 392 if pro:
394 f.write('set PATH=%~dp0..\\..\\win8sdk\\bin\\x86;' 393 f.write('set PATH=%~dp0..\\..\\win8sdk\\bin\\x86;'
395 '%~dp0..\\..\\VC\\bin\\amd64_x86;' 394 '%~dp0..\\..\\VC\\bin\\amd64_x86;'
396 '%~dp0..\\..\\VC\\bin\\amd64;' # Needed for mspdb120.dll. 395 '%~dp0..\\..\\VC\\bin\\amd64;' # Needed for mspdb120.dll.
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 } 485 }
487 with open(os.path.join(target_dir, '..', 'data.json'), 'w') as f: 486 with open(os.path.join(target_dir, '..', 'data.json'), 'w') as f:
488 json.dump(data, f) 487 json.dump(data, f)
489 finally: 488 finally:
490 if options.clean: 489 if options.clean:
491 DeleteAllTempDirs() 490 DeleteAllTempDirs()
492 491
493 492
494 if __name__ == '__main__': 493 if __name__ == '__main__':
495 sys.exit(main()) 494 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698