Descriptiontools addition to automate setting up windows toolchain
Attempting to make it easier and more reliable to set up a windows build toolchain. No need to acquire/install IDEs, service packs, patch things, etc. This tool downloads and unpacks sdks and compiler from various freely available sources.
On a clean machine, after getting depot_tools, and running "gclient" (which installs python), and "git clone ..." or "svn co ..." to get the main chromium repo:
c:\chrome>python src\tools\win\toolchain\toolchain.py
...wait 2-10 minutes depending on download speed...
c:\chrome>win_toolchain\env.bat
c:\chrome>cd src
c:\chrome\src>gclient sync
c:\chrome\src>ninja -C out\Debug chrome
This script does not run any "installation" steps, it only extracts tools, and so avoids changing any global machine state. This way, it (intends to) avoid mucking up other compiler installations, and being mucked up by them.
Requires gyp patch at https://codereview.chromium.org/11637025 to avoid needing to add fake registry keys.
BUG=windows compilers is hard, let's go shopping
TEST=on clean vmware win7 x64, and many rollbacks to 'fresh install' snapshot. http://crbug.com/166949 is in progress for a bot that does this.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175004
Patch Set 1 #Patch Set 2 : fixes and add dll #Patch Set 3 : more fixes #Patch Set 4 : mt in path #Patch Set 5 : x64, atl #Patch Set 6 : simplify a bit #Patch Set 7 : more fixes, progress to download, can build chrome now #Patch Set 8 : shared_library #Patch Set 9 : and more fixes #Patch Set 10 : smaller chunks, fix download path #Patch Set 11 : fix path to win 8 sdk for x64 #Patch Set 12 : pull dxsdk #Patch Set 13 : move win8 sdk to first download so elevation prompt happens right away #Patch Set 14 : download less of win8 sdk #Patch Set 15 : fix dxsdk name #Patch Set 16 : add retries for win8sdk, servers were failing #Patch Set 17 : help text amendment #Patch Set 18 : reorganize a bit and docstrings #
Total comments: 18
Patch Set 19 : some review fixes #
Total comments: 6
Patch Set 20 : break main() up #Patch Set 21 : actually test download path #
Total comments: 4
Patch Set 22 : quote 7z path, restore sdk extract order #Patch Set 23 : optional output dir for toolchain, centralize running #Patch Set 24 : move 7z into subdir and add license file #Patch Set 25 : more fiddling to get right compiler rev and right header set from sp1 update #Patch Set 26 : shorten url #
Messages
Total messages: 13 (0 generated)
|