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

Issue 11633012: tools addition to automate setting up windows toolchain (Closed)

Created:
8 years ago by scottmg
Modified:
7 years, 11 months ago
CC:
chromium-reviews, pam+watch_chromium.org
Visibility:
Public.

Description

tools 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+529 lines, --2 lines) Patch
A tools/win/toolchain/7z/7z.dll View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 0 chunks +-1 lines, --1 lines 0 comments Download
A tools/win/toolchain/7z/7z.exe View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 0 chunks +-1 lines, --1 lines 0 comments Download
A tools/win/toolchain/7z/LICENSE View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +57 lines, -0 lines 0 comments Download
A tools/win/toolchain/toolchain.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +474 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
scottmg
rogerm: Could you do the main review? It's a bit long, but relatively simple code. ...
7 years, 11 months ago (2013-01-02 17:32:10 UTC) #1
Roger McFarlane (Chromium)
Nice! https://codereview.chromium.org/11633012/diff/17001/tools/win/toolchain/toolchain.py File tools/win/toolchain/toolchain.py (right): https://codereview.chromium.org/11633012/diff/17001/tools/win/toolchain/toolchain.py#newcode41 tools/win/toolchain/toolchain.py:41: sys.stdout.write('Downloading %s...' % url) You're got print and ...
7 years, 11 months ago (2013-01-02 18:46:23 UTC) #2
alexeypa (please no reviews)
Nice script! I like that it does not modify the global environment. It makes it ...
7 years, 11 months ago (2013-01-02 19:33:57 UTC) #3
scottmg
Thanks both. https://codereview.chromium.org/11633012/diff/17001/tools/win/toolchain/toolchain.py File tools/win/toolchain/toolchain.py (right): https://codereview.chromium.org/11633012/diff/17001/tools/win/toolchain/toolchain.py#newcode41 tools/win/toolchain/toolchain.py:41: sys.stdout.write('Downloading %s...' % url) On 2013/01/02 18:46:23, ...
7 years, 11 months ago (2013-01-02 21:00:47 UTC) #4
Roger McFarlane (Chromium)
lgtm with a nit https://codereview.chromium.org/11633012/diff/21002/tools/win/toolchain/toolchain.py File tools/win/toolchain/toolchain.py (right): https://codereview.chromium.org/11633012/diff/21002/tools/win/toolchain/toolchain.py#newcode165 tools/win/toolchain/toolchain.py:165: '%s x "%s" -y "-o%s" ...
7 years, 11 months ago (2013-01-02 22:41:31 UTC) #5
scottmg
https://codereview.chromium.org/11633012/diff/21002/tools/win/toolchain/toolchain.py File tools/win/toolchain/toolchain.py (right): https://codereview.chromium.org/11633012/diff/21002/tools/win/toolchain/toolchain.py#newcode165 tools/win/toolchain/toolchain.py:165: '%s x "%s" -y "-o%s" > nul' % (sz_path, ...
7 years, 11 months ago (2013-01-02 23:31:09 UTC) #6
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
7 years, 11 months ago (2013-01-02 23:32:56 UTC) #7
scottmg
On 2013/01/02 23:32:56, I haz the power (commit-bot) wrote: > No LGTM from a valid ...
7 years, 11 months ago (2013-01-02 23:40:35 UTC) #8
Roger McFarlane (Chromium)
On 2013/01/02 23:32:56, I haz the power (commit-bot) wrote: > No LGTM from a valid ...
7 years, 11 months ago (2013-01-03 16:45:28 UTC) #9
cpu_(ooo_6.6-7.5)
lgtm
7 years, 11 months ago (2013-01-03 20:37:26 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scottmg@chromium.org/11633012/27001
7 years, 11 months ago (2013-01-03 20:38:27 UTC) #11
commit-bot: I haz the power
Presubmit check for 11633012-27001 failed and returned exit status 1. Running presubmit commit checks ...
7 years, 11 months ago (2013-01-03 20:38:35 UTC) #12
scottmg
7 years, 11 months ago (2013-01-03 20:39:31 UTC) #13
M-A, I'm going to land this now. Once you're back in-office and have time to
look, let me know if you have any comments/concerns and I'll take care of them.

Powered by Google App Engine
This is Rietveld 408576698