| OLD | NEW |
| 1 # Checking out and Building Chromium for Windows | 1 # Checking out and Building Chromium for Windows |
| 2 | 2 |
| 3 There are instructions for other platforms linked from the | 3 There are instructions for other platforms linked from the |
| 4 [get the code](get_the_code.md) page. | 4 [get the code](get_the_code.md) page. |
| 5 | 5 |
| 6 ## Instructions for Google Employees | 6 ## Instructions for Google Employees |
| 7 | 7 |
| 8 Are you a Google employee? See | 8 Are you a Google employee? See |
| 9 [go/building-chrome-win](https://goto.google.com/building-chrome-win) instead. | 9 [go/building-chrome-win](https://goto.google.com/building-chrome-win) instead. |
| 10 | 10 |
| 11 [TOC] | 11 [TOC] |
| 12 | 12 |
| 13 ## System requirements | 13 ## System requirements |
| 14 | 14 |
| 15 * A 64-bit Intel machine with at least 8GB of RAM. More than 16GB is highly | 15 * A 64-bit Intel machine with at least 8GB of RAM. More than 16GB is highly |
| 16 recommended. | 16 recommended. |
| 17 * At least 100GB of free disk space. | 17 * At least 100GB of free disk space on an NTFS-formatted hard drive. FAT32 |
| 18 will not work, as some of the Git packfiles are larger than 4GB. |
| 18 * Visual Studio 2015 Update 3, see below (no other version is supported). | 19 * Visual Studio 2015 Update 3, see below (no other version is supported). |
| 19 * Windows 7 or newer. | 20 * Windows 7 or newer. |
| 20 | 21 |
| 21 ## Setting up Windows | 22 ## Setting up Windows |
| 22 | 23 |
| 23 ### Visual Studio | 24 ### Visual Studio |
| 24 | 25 |
| 25 As of December 8, 2016 Chromium requires Visual Studio 2015, with the 14393 | 26 As of December 8, 2016 Chromium requires Visual Studio 2015, with the 14393 |
| 26 Windows SDK to build. | 27 Windows SDK to build. |
| 27 | 28 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 45 and extract it somewhere. | 46 and extract it somewhere. |
| 46 | 47 |
| 47 *** note | 48 *** note |
| 48 **Warning:** **DO NOT** use drag-n-drop or copy-n-paste extract from Explorer, | 49 **Warning:** **DO NOT** use drag-n-drop or copy-n-paste extract from Explorer, |
| 49 this will not extract the hidden “.git” folder which is necessary for | 50 this will not extract the hidden “.git” folder which is necessary for |
| 50 depot_tools to autoupdate itself. You can use “Extract all…” from the | 51 depot_tools to autoupdate itself. You can use “Extract all…” from the |
| 51 context menu though. | 52 context menu though. |
| 52 *** | 53 *** |
| 53 | 54 |
| 54 Add depot_tools to the start of your PATH (must be ahead of any installs of | 55 Add depot_tools to the start of your PATH (must be ahead of any installs of |
| 55 Python). Assuming you unzipped the bundle to C:\src\depot_tools: | 56 Python). Assuming you unzipped the bundle to C:\src\depot_tools, open: |
| 56 | |
| 57 With Administrator access: | |
| 58 | 57 |
| 59 Control Panel → System and Security → System → Advanced system settings | 58 Control Panel → System and Security → System → Advanced system settings |
| 60 | 59 |
| 61 Modify the PATH system variable to include C:\src\depot_tools. | 60 If you have Administrator access, Modify the PATH system variable and |
| 61 put `C:\src\depot_tools` at the front (or at least in front of any directory |
| 62 that might already have a copy of Python or Git). |
| 62 | 63 |
| 63 Without Administrator access: | 64 If you don't have Administrator access, you can add a user-level PATH |
| 64 | 65 environment variable and put `C:\src\depot_tools` at the front, but |
| 65 Control Panel → User Accounts → User Accounts → Change my environment variables | 66 if your system PATH has a Python in it, you will be out of luck. |
| 66 | |
| 67 Add a PATH user variable (or modify the existing one to include): | |
| 68 `C:\src\depot_tools`. | |
| 69 | 67 |
| 70 Also, add a DEPOT_TOOLS_WIN_TOOLCHAIN system variable in the same way, and set | 68 Also, add a DEPOT_TOOLS_WIN_TOOLCHAIN system variable in the same way, and set |
| 71 it to 0. This tells depot_tools to use your locally installed version of Visual | 69 it to 0. This tells depot_tools to use your locally installed version of Visual |
| 72 Studio (by default, depot_tools will try to use a google-internal version). | 70 Studio (by default, depot_tools will try to use a google-internal version). |
| 73 | 71 |
| 74 From a cmd.exe shell, run the command gclient (without arguments). On first | 72 From a cmd.exe shell, run the command gclient (without arguments). On first |
| 75 run, gclient will install all the Windows-specific bits needed to work with | 73 run, gclient will install all the Windows-specific bits needed to work with |
| 76 the code, including msysgit and python. | 74 the code, including msysgit and python. |
| 77 | 75 |
| 78 * If you run gclient from a non-cmd shell (e.g., cygwin, PowerShell), | 76 * If you run gclient from a non-cmd shell (e.g., cygwin, PowerShell), |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 $ gclient sync | 226 $ gclient sync |
| 229 ``` | 227 ``` |
| 230 | 228 |
| 231 The first command updates the primary Chromium source repository and rebases | 229 The first command updates the primary Chromium source repository and rebases |
| 232 any of your local branches on top of tip-of-tree (aka the Git branch `origin/mas
ter`). | 230 any of your local branches on top of tip-of-tree (aka the Git branch `origin/mas
ter`). |
| 233 If you don't want to use this script, you can also just use `git pull` or | 231 If you don't want to use this script, you can also just use `git pull` or |
| 234 other common Git commands to update the repo. | 232 other common Git commands to update the repo. |
| 235 | 233 |
| 236 The second command syncs the subrepositories to the appropriate versions and | 234 The second command syncs the subrepositories to the appropriate versions and |
| 237 re-runs the hooks as needed. | 235 re-runs the hooks as needed. |
| OLD | NEW |