First, get the 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) Quick Download Code Pack (tarball), here: http://chromium-browser-source.commondatastorage.googleapis.com/chromium_tarball.html, You can also continue to use step c to complete the operation after downloading the code package.
c) using the tool gclient check out code, download this tool: Https://src.chromium.org/svn/trunk/tools/depot_tools.zip
I. Unzip, add PATH environment variable
II. Run the following command-line substitution 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 tools see here: Http://www.chromium.org/developers/how-tos/depottools
http://hovertree.com/
Second, configure the Windows compilation environment, compile code (original address: Http://www.chromium.org/developers/how-tos/build-instructions-windows)
A) Install VS2010
b) Install VS2010 SP1
c) Install the 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 the the. props file would 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>
<includepath>$ (Dxsdk_dir) \include;$ (Includepath) </IncludePath> <librarypath>$ (Dxsdk_dir) \lib\ x64;$ (LibraryPath) </LibraryPath>
</PropertyGroup>
</Project>
Iv. don't use vs to edit, just use Notepad, because vs will add some coding.
V. Ensure that the DirectX SDK is the first in the lookup order, or there will be some compilation errors.
Open Chrome.sln to compile, the initial compilation is expected more than 5 hours, see machine performance.
Recommendation: http://www.cnblogs.com/roucheng/p/texiao.html
Get Chromium Source code and environment configuration