Skip to content

uftrace for chromium

Honggyu Kim edited this page Aug 10, 2019 · 21 revisions

1. Download depot_tools

Chromium uses a package of scripts called depot_tools to manage checkouts and code reviews.
The depot_tools package includes gclient, gcl, git-cl, repo, and others. Chromium uses a package of scripts called depot_tools to manage checkouts and code reviews.

# download depot_tools
$ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git

# environment setup for depot_tools
$ export PATH=`pwd`/depot_tools:$PATH

2. Download chromium

First, create a directory chromium.

$ mkdir chromium
$ cd chromium

Then, create a .gclient file as follows:

$ cat .gclient
solutions = [
  {
    "url": "https://chromium.googlesource.com/chromium/src.git",
    "managed": False,
    "name": "src",
    "custom_deps": {},
  },
]

Do (shallow) git clone for chromium source code.

$ git clone --depth=1 https://chromium.googlesource.com/chromium/src.git
$ cd src

Then, download third party modules.

$ gclient sync -j 8
Clone this wiki locally