Google Chrome is built with open source code from Chromium.

Except as otherwise noted, the content of this page is licensed under a Creative Commons Attribution 2.5 license, and examples are licensed under the BSD License.
For Developers‎ > ‎How-Tos‎ > ‎

Install the depot_tools

Chromium uses a package of scripts, called the depot_tools, to manage checkouts and code reviews. This package includes gclient, gcl, and hammer. To install the package, follow the steps for your operating system below.

Note: By default, the depot_tools automatically update to the latest version every time you run gclient. See the depot_tools page if you want to disable this behavior.

More information about gclient is available from the gclient wiki.

Steps

  1. Retrieve depot_tools; select one of these ways:
    • svn co http://src.chromium.org/svn/trunk/tools/depot_tools

    • Download depot_tools.zip or depot_tools.tar.gz and decompress it.

      Windows users: If you don't have Subversion installed already, use the download option, and the first run of gclient will install svn for you. Make sure not to use Cygwin's unzip when expanding the depot_tools archive.

  2. Add depot_tools to your PATH:

    • For example, for the default bash shell, use:
      $ export PATH=`pwd`/depot_tools:"$PATH"

    • Optional: You may want to add this to your .profile file or your shell’s equivalent so that you don’t need to reset your $PATH manually each time you open a new shell.