Get Chromium Source code and environment configuration

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.