1. Get code
A) do not download the code, browse directly, here: http://src.chromium.org/viewvc/chrome/ or here: http://code.google.com/p/chromium/source/search
B) quickly download the code package (tarball), here: http://chromium-browser-source.commondatastorage.googleapis.com/chromium_tarball.html, you can continue to use step C to complete the operation after downloading the code package.
C) use the tool gclient check out code, download this tool: https://src.chromium.org/svn/trunk/tools/depot_tools.zip
I. decompress the package and add the PATH environment variable.
Ii. Run the following command line to obtain the Code:
Cd c: \ chromiumtrunk
Gclient config https://src.chromium.org/chrome/trunk/src
Gclient sync
Iii. Run the following command line to generate the SLN File
Gclient runhooks -- force
Iv. specific use of the tool here: http://www.chromium.org/developers/how-tos/depottools
2. Configure the Windows compiling environment, compile the code (original address: http://www.chromium.org/developers/how-tos/build-instructions-windows)
A) install vs2010
B) install vs2010 SP1
C) install Win SDK 8
I. If your installation directory is not the default directory, add the following environment variables:
Gyp_defines = windows_sdk_path = "path to SDK"
D) install dxdsdk jun10
I. Add $ (dxsdk_dir) \ include; to the beginning of the 'includepath' property in % localappdata % \ Microsoft \ msbuild \ v4.0 \ microsoft. cpp. win32.user. Props.
Ii. Add $ (dxsdk_dir) \ Lib \ x86; to the beginning of the 'librarypath' property in the same file. At this point the. Props file will look like this:
<? XML version = "1.0" encoding = "UTF-8"?>
<Project defaulttargets = "build" toolsversion = "4.0" xmlns = "http://schemas.microsoft.com/developer/msbuild/2003">
<Propertygroup> <includepath >$ (dxsdk_dir) \ include; $ (includepath) </includepath> <librarypath >$ (dxsdk_dir) \ Lib \ x86; $ (librarypath) </librarypath>
</Propertygroup>
</Project>
III. The same editing file: % localappdata % \ Microsoft \ msbuild \ v4.0 \ microsoft. cpp. x64.user. Props:
<? XML version = "1.0" encoding = "UTF-8"?>
<Project defaulttargets = "build" toolsversion = "4.0" xmlns = "http://schemas.microsoft.com/developer/msbuild/2003"> <propertygroup>
<Shortdepath >$ (dxsdk_dir) \ include; $ (shortdepath) </shortdepath> <librarypath >$ (dxsdk_dir) \ Lib \ x64; $ (librarypath) </librarypath>
</Propertygroup>
</Project>
Iv. Do not use vs for editing. use Notepad directly, because Vs will add some encoding.
V. Ensure that the DirectX SDK is the first in the search order. Otherwise, some compilation errors may occur.
Open chrome. sln for compilation. The initial compilation is expected to be more than five hours, depending on the machine performance.