tree: f8e5f3bb57aa11fa4795a9f5bf8f1d1548b5cc74
  1. .vscode/
  2. agents/
  3. bootstrap/
  4. fetch_configs/
  5. hooks/
  6. infra/
  7. infra_lib/
  8. jj/
  9. man/
  10. mcp/
  11. metadata/
  12. python-bin/
  13. python2-bin/
  14. recipes/
  15. testing_support/
  16. tests/
  17. third_party/
  18. win_toolchain/
  19. zsh-goodies/
  20. .cipd_impl.ps1
  21. .flake8
  22. .git-blame-ignore-revs
  23. .gitattributes
  24. .gitignore
  25. .isort.cfg
  26. .style.yapf
  27. .vpython3
  28. android_build_server_helper.py
  29. auth.py
  30. autoninja
  31. autoninja.bat
  32. autoninja.py
  33. bb
  34. bb.bat
  35. black
  36. bootstrap_python3
  37. breakpad.py
  38. BUILD_OWNERS
  39. build_telemetry
  40. build_telemetry.bat
  41. build_telemetry.py
  42. caffeinate.py
  43. cipd
  44. cipd.bat
  45. cipd_bin_setup.bat
  46. cipd_bin_setup.sh
  47. cipd_client_version
  48. cipd_client_version.digests
  49. cipd_manifest.txt
  50. cipd_manifest.versions
  51. cipd_manifest_cros_python2.txt
  52. cipd_manifest_cros_python2.versions
  53. clang-format
  54. clang-format.bat
  55. clang_format.py
  56. codereview.settings
  57. compile_single_file
  58. compile_single_file.bat
  59. compile_single_file.py
  60. cpplint.bat
  61. cpplint.py
  62. cpplint_chromium.py
  63. create_temp_file.py
  64. cros
  65. CROS_OWNERS
  66. cros_python2.vpython
  67. crowbar
  68. crowbar.bat
  69. detect_host_arch.py
  70. DIR_METADATA
  71. dirmd
  72. dirmd.bat
  73. download_from_google_storage
  74. download_from_google_storage.bat
  75. download_from_google_storage.py
  76. ensure_bootstrap
  77. fetch
  78. fetch.bat
  79. fetch.py
  80. gclient
  81. gclient-new-workdir.py
  82. gclient.bat
  83. gclient.py
  84. gclient_completion.sh
  85. gclient_eval.py
  86. gclient_paths.py
  87. gclient_scm.py
  88. gclient_utils.py
  89. gerrit_cache.py
  90. gerrit_client.py
  91. gerrit_util.py
  92. git-cache
  93. git-cl
  94. git-credential-luci
  95. git-credential-luci.bat
  96. git-crrev-parse
  97. git-drover
  98. git-find-releases
  99. git-footers
  100. git-freeze
  101. git-gs
  102. git-hyper-blame
  103. git-map
  104. git-map-branches
  105. git-mark-merge-base
  106. git-nav-downstream
  107. git-nav-upstream
  108. git-new-branch
  109. git-number
  110. git-rebase-update
  111. git-rename-branch
  112. git-reparent-branch
  113. git-retry
  114. git-runhooks
  115. git-squash-branch
  116. git-squash-branch-tree
  117. git-thaw
  118. git-upstream-diff
  119. git_auth.py
  120. git_cache.py
  121. git_cl.py
  122. git_cl_completion.sh
  123. git_common.py
  124. git_completion.sh
  125. git_dates.py
  126. git_find_releases.py
  127. git_footers.py
  128. git_freezer.py
  129. git_hyper_blame.py
  130. git_map.py
  131. git_map_branches.py
  132. git_mark_merge_base.py
  133. git_nav_downstream.py
  134. git_new_branch.py
  135. git_number.py
  136. git_rebase_update.py
  137. git_rename_branch.py
  138. git_reparent_branch.py
  139. git_retry.py
  140. git_squash_branch.py
  141. git_squash_branch_tree.py
  142. git_upstream_diff.py
  143. gn
  144. gn.bat
  145. gn.py
  146. gn_helper.py
  147. google-java-format
  148. google-java-format.bat
  149. google_java_format.py
  150. gsutil.py
  151. gsutil.py.bat
  152. gsutil.py.vpython3
  153. isort
  154. led
  155. led.bat
  156. LICENSE
  157. lockfile.py
  158. luci-auth
  159. luci-auth-fido2-plugin.bat
  160. luci-auth-ssh-helper
  161. luci-auth-ssh-helper.bat
  162. luci-auth-ssh-plugin
  163. luci-auth-ssh-plugin.bat
  164. luci-auth.bat
  165. luci_auth_fido2_plugin.py
  166. LUCI_OWNERS
  167. lucicfg
  168. lucicfg.bat
  169. mac_toolchain
  170. markdown_format.py
  171. metrics-xml-format
  172. metrics.py
  173. metrics.README.md
  174. metrics_utils.py
  175. metrics_xml_format.py
  176. my_activity.py
  177. newauth.py
  178. ninja
  179. ninja.bat
  180. ninja.py
  181. ninjalog_uploader.py
  182. OWNERS
  183. owners_client.py
  184. owners_finder.py
  185. pinpoint
  186. pinpoint.bat
  187. post_build_ninja_summary.py
  188. PRESUBMIT.py
  189. presubmit_canned_checks.py
  190. presubmit_diff.py
  191. presubmit_support.py
  192. prpc
  193. prpc.bat
  194. pylint-2.17
  195. pylint-2.17.bat
  196. pylint-2.6
  197. pylint-2.6.bat
  198. pylint-2.7
  199. pylint-2.7.bat
  200. pylint-3.2
  201. pylint-3.2.bat
  202. pylint_main.py
  203. pylintrc-2.17
  204. pylintrc-2.6
  205. pylintrc-2.7
  206. pylintrc-3.2
  207. pyproject.toml
  208. python_runner.sh
  209. rdb
  210. rdb.bat
  211. rdb_wrapper.py
  212. README.gclient.md
  213. README.git-cl.md
  214. README.google_cloud_storage.md
  215. README.md
  216. reclient_helper.py
  217. RECLIENT_OWNERS
  218. reclientreport
  219. reclientreport.bat
  220. reclientreport.py
  221. repo
  222. repo_launcher
  223. roll-dep
  224. roll-dep.bat
  225. roll_dep.py
  226. roll_downstream_gcs_deps.py
  227. rustfmt.py
  228. scm.py
  229. SECURITY_TEAM_OWNERS
  230. setup_btrfs_loop.sh
  231. setup_color.py
  232. siso
  233. siso.bat
  234. siso.py
  235. split_cl.py
  236. subcommand.py
  237. subprocess2.py
  238. swift-format
  239. swift_format.py
  240. update_depot_tools
  241. update_depot_tools.bat
  242. update_depot_tools_toggle.py
  243. upload_metrics.py
  244. upload_to_google_storage.py
  245. upload_to_google_storage_first_class.py
  246. utils.py
  247. vpython3
  248. vpython3.bat
  249. WATCHLISTS
  250. watchlists.py
  251. whitespace.txt
  252. win32imports.py
  253. yapf
  254. yapf.bat
README.md

depot_tools

Tools for Chromium development. Requires Python 3.8+.

gsutil: Python 3.9–3.13 required.

Tools

The most important tools are:

  • fetch: A gclient wrapper to checkout a project. Use fetch --help for more details.
  • gclient: A meta-checkout tool. Think repo or git submodules, except that it support OS-specific rules, e.g. do not checkout Windows only dependencies when checking out for Android. Use gclient help for more details and README.gclient.md.
  • git cl: A code review tool to interact with Rietveld or Gerrit. Use git cl help for more details and README.git-cl.md.
  • roll-dep: A gclient dependency management tool to submit a dep roll, updating a dependency to a newer revision.

There are a lot of git utilities included.

Also, includes shell script/batch file for tools required to build chromium, e.g.

  • gn: a meta-build system that generates build files for Ninja
  • autoninja: a wrapper for siso and ninja.
  • siso: a build tool that aims to significantly speed up Chromium's build.
  • ninja: a small build system with a focus on speed. deprecated by Siso.

These shell script/batch file runs python script with python-bin/python3 that find binaries in chromium checkout, and run with proper setup/check. To use these wrappers, you need to initialize/bootstrap depot_tools (using gclient, update_depot_tools or ensure_bootstrap).

Installing

See set-up documentation.

depot_tools is also available in

These depot_tools would not be initialized/bootstrapped (i.e. no python-bin/python3 binary available), so the build tool wrapper won't work, unless it is explicitly initialized by ensure_bootstrap. Or, directly call the python script instead of using the shell script/batch file.

Updating

depot_tools updates itself automatically when running gclient tool. To disable auto update, set the environment variable DEPOT_TOOLS_UPDATE=0 or run ./update_depot_tools_toggle.py --disable.

To update package manually, run update_depot_tools.bat on Windows, or ./update_depot_tools on Linux or Mac.

Running gclient will install python3 binary.

Contributing

To contribute change for review:

git new-branch <somename>
# Hack
git add .
git commit -a -m "Fixes goat teleporting"
# find reviewers
git cl owners
git log -- <yourfiles>

# Request a review.
git cl upload -r reviewer1@chromium.org,reviewer2@chromium.org --send-mail

# Edit change description if needed.
git cl desc

# If change is approved, flag it to be committed.
git cl set-commit

# If change needs more work.
git rebase-update
...
git cl upload -t "Fixes goat teleporter destination to be Australia"

See also open bugs, open reviews, forum or report problems.

cpplint.py

Until 2018, our cpplint.py was a copy of the upstream version at https://github.com/google/styleguide/tree/gh-pages/cpplint. Unfortunately, that repository is not maintained any more. If you want to update cpplint.py in depot_tools, just upload a patch to do so. We will figure out a long-term strategy via issue https://crbug.com/916550.