I've followed http://code.google.com/p/chromium/wiki/MacBuildInstructions 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):
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 http://src.chromium.org/svn/releases/8.0.552.231
$ gclient sync
Get your coffee as it take about 1 hours and half to download the sources.
Full info on http://dev.chromium.org/developers/how-tos/get-the-code
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:
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 Chromium.app binary in ~/chromium/src/xcodebuild/Release folder.