Obtain the chromium source code and environment Configuration

Source: Internet
Author: User

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.

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.