Obtain the Chromium source code, Environment configuration, and chromium source code.

Source: Internet
Author: User

Obtain the Chromium source code, Environment configuration, and chromium source code.

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

Http://hovertree.com/

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.

Recommended: http://www.cnblogs.com/roucheng/p/texiao.html

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.