How to build Chromium


I've followed to build browser Chromium.
Here is my steps to get a Release build of Chromium Mac Stable. This build will be used for Portable Chromium OS X.
For more and detailed info read the official Chromium Mac build instractions wiki page


  • An Intel Mac running 10.6 (“Snow Leopard”).
  • XCode 3.2 (Snow Leopard). Thankfully, Apple’s build tools are free. All you need is a free Apple Developer Connection account. The optional "Unix Developer Tools" are required.
  • Install gclient, part of the depot_tools package (download). gclient is a wrapper around svn that is used to manage Chromium working copies.
  • Choose/create a folder to hold source code. Important: make sure the directory path has no spaces. I use ~/chromium.

So install XCode 3.2 with "Unix Developer Tools". Download gclient and decompress it, I put it on my home directory in the build machine.
Add depot_tools to your PATH typing in terminal (or using gclient path accordingly):

export PATH="$PATH":"$HOME"/depot_tools

Getting the code

To get the actual (Dec. 2010) Stable Release 8.0.552.231 from a shell in the Terminal, execute the following commands:

$ cd ~/chromium
$ gclient config
$ gclient sync

Get your coffee as it take about 1 hours and half to download the sources.
Full info on

Reducing the size of your checkout

You can reduce the download size editing your .gclient (pico .gclient) file to avoid pulling down certain pieces of the checkout that you may not want. For example, inserting something like:

"custom_deps": {
"src/third_party/WebKit/LayoutTests": None,
"src/chrome/tools/test/reference_build/chrome": None,
"src/chrome_frame/tools/test/reference_build/chrome": None,
"src/chrome/tools/test/reference_build/chrome_linux": None,
"src/chrome/tools/test/reference_build/chrome_mac": None,
"src/third_party/hunspell_dictionaries": None,

Building from the command line

Assuming ~/chromium/ is the check out directory, to build just chrome using the Release configuration (Debug is the other option):

$ cd ~/chromium/src/chrome
$ xcodebuild -project chrome.xcodeproj -configuration Release -target chrome

It take about half an hour on 2.66 Ghz Quad- Core Intel Xenon 3GB Ram.
Release configuration give you about 73 MB binary file and Debug about 174 MB.

When build succeeded you will find binary in ~/chromium/src/xcodebuild/Release folder.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License