Google chromium source code compilation steps in Windows

Source: Internet
Author: User

Want to see the Google Chrome browserSource code, Long knowledge, download SourceCodeThere are always some problems with package compilation and reference of some documents on the Internet. According to the compilation steps provided by chromium, normal compilation and debugging can finally be performed.

Environment preparation

1. Install Microsoft Visual Studio 2005 Service Pack 1.

2. Install Microsoft Windows SDK v6.1.

3. Start-> AllProgram-> Microsoft Windows SDK v6.1-> Visual Studio registration-> Windows SDK Configuration tool, and add the SDK to Visual Studio 2005.

4. Download depot_tools to download the updated source code.

Install depot_tools

1. Download depot_tools.zip.

2. Decompress depot_tools.zip.

3. add the decompressed directory to the path of the system environment variable, for example, C: \ bin \ depot_tools (my computer-> properties-> advanced-> environment variables-> system variables-> path, double-click the entry and add the corresponding directory to it, separated by semicolons ).

Obtain source code

1. Create a directory for storing Source Code. For example, c: \ chromiumtrunk. ensure that there is sufficient space (preferably 10 Gb or above, my last 5 GB ).

2. In the command line window, run the following command:

Cd c: \ chromiumtrunk

Gclient config http://src.chromium.org/svn/trunk/src

3. Download the initial code to download and update the source code.

Obtain the chromium source code of the latest version.

In the command line window, run the following command:

CD [your chromium source Directory] // enter the directory where the source code is stored

Gclient sync

At this point, SVN starts to automatically download the source code of the latest version to this directory. Ensure that the network is smooth. If it ends normally, the command line should display the updated version number.

Compile source code

1. Open Visual Studio 2005.

2. File-> open project/solution, and select SRC \ chrome. sln under the source code directory(Note: Google provides one Deployment Tool depot_tools for chrome, including downloading code, synchronizing code, and uploading code. This tool is written in Python and contains some JavaScript scripts. Depot_tools contains a gclient tool, which is the focus of attention .)

3. In the solution tree on the left, select the app entry, right-click chrome_exe, and set it to start the project.

4. Configure the compilation:

1. Right-click chrome_exe and select Properties.

2. In the left-side entry, choose configuration Properties> debug.

3. In the right-side entry, SET command parameters, for example, -- User-data-Dir = C: \ TMP \ debugprofile

4. Click OK to save.

5. Press F5 to generate the chrome_exe solution and enter the debugging mode.

6. Chrome will appear in front of you.

The documents prepared by chromium for developers include the above compilation steps. For more information, see.
Chromium developer documentation http://dev.chromium.org/

Related Article

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.