Build Instructions (Windows) - The Chromium Projects

For Developers‎ > ‎ How-Tos‎ > ‎

Build Instructions (Windows)

Setting up Windows

You must set your Windows system locale to English, or else you may get build errors about "The file contains a character that cannot be represented in the current code page."

Setting up the environment for Visual Studio 2013

You must build with Visual Studio 2013 Update 4, no other versions are supported.

You must have Windows 7 x64 or later. x86 OSs are unsupported.

Step 1: Get depot_tools.

Step 2: Follow the appropriate path below:

Open source contributors

Install Visual Studio 2013 Community or Visual Studio 2013 Professional depending on which license is appropriate for you. You can deselect the default options if you want, but you must make sure to install "Microsoft Foundation Classes for C++".

Run set DEPOT_TOOLS_WIN_TOOLCHAIN=0, or set that variable in your global environment.

Note that Visual Studio Express is not supported and will not be able to build Chromium.

Google employees

Run: download_from_google_storage --config  and follow the authentication instructions.  Note that you must authenticate with your @google.com credentials , not @chromium.org. [Note also that the instructions tell you to "hit enter when prompted for a project-id", but this crashes the script - enter "1" instead.]

Once you've done this, the toolchain will be installed automatically for you in Step 3, below (near the end of the step).

The toolchain will be in depot_tools\win_toolchain, and windbg can be found in depot_tools\win_toolchain\vs2013_files\win8sdk\Debuggers.

If you want the IDE for debugging and editing, you will need to install it separately, but this is optional and not needed to build Chromium. 

Step 3:  Follow the steps to check out the code:  http://dev.chromium.org/developers/how-tos/get-the-code (largely "fetch chromium").

Step 4: ninja -C out\Debug chrome (or out\Debug_x64)

If you're primarily going to be doing debug dev builds, you'll want to  set GYP_DEFINES=component=shared_library , which uses a DLL build and incremental linking, which makes linking much faster in Debug.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值