Modify depot_tools instructions regarding %PATH%

The old depot_tools instructions insisted that depot_tools be the last
entry in the PATH environment variable, for reasons that are unclear and
may only have applied to Linux. Meanwhile, there is a gn issue that can
cause unnecessary building if depot_tools is not near the front of the
path - ahead of other Python installs. This change alters the
instructions for Windows.

This also removes some obsolete instructions regarding building Chrome
on Windows XP - Chrome doesn't even *run* on Windows XP anymore.

BUG=611087

Review-Url: https://codereview.chromium.org/2371333002
3 files changed
tree: a9e78ce0286729094850267de962118d5af06ad4
  1. bootstrap/
  2. fetch_configs/
  3. git-templates/
  4. infra/
  5. man/
  6. recipe_modules/
  7. support/
  8. testing_support/
  9. tests/
  10. third_party/
  11. win_toolchain/
  12. zsh-goodies/
  13. .gitignore
  14. .style.yapf
  15. annotated_gclient.py
  16. apply_issue
  17. apply_issue.bat
  18. apply_issue.py
  19. auth.py
  20. breakpad.py
  21. buildbucket.py
  22. checkout.py
  23. cit
  24. cit.bat
  25. cit.py
  26. clang-format
  27. clang-format.bat
  28. clang_format.py
  29. clang_format_merge_driver
  30. clang_format_merge_driver.bat
  31. clang_format_merge_driver.py
  32. codereview.settings
  33. commit_queue
  34. commit_queue.bat
  35. commit_queue.py
  36. cpplint.bat
  37. cpplint.py
  38. cpplint_chromium.py
  39. create-ntfs-junction.c
  40. create-ntfs-junction.exe
  41. dart_format.py
  42. depot-tools-auth
  43. depot-tools-auth.bat
  44. depot-tools-auth.py
  45. download_from_google_storage
  46. download_from_google_storage.bat
  47. download_from_google_storage.py
  48. fetch
  49. fetch.bat
  50. fetch.py
  51. fix_encoding.py
  52. gclient
  53. gclient-new-workdir.py
  54. gclient.bat
  55. gclient.py
  56. gclient_completion.sh
  57. gclient_scm.py
  58. gclient_utils.py
  59. gerrit_util.py
  60. git-cache
  61. git-cherry-pick-upload
  62. git-cl
  63. git-crrev-parse
  64. git-crsync
  65. git-drover
  66. git-find-releases
  67. git-footers
  68. git-freeze
  69. git-gs
  70. git-hyper-blame
  71. git-map
  72. git-map-branches
  73. git-mark-merge-base
  74. git-nav-downstream
  75. git-nav-upstream
  76. git-new-branch
  77. git-number
  78. git-rebase-update
  79. git-rename-branch
  80. git-reparent-branch
  81. git-retry
  82. git-runhooks
  83. git-squash-branch
  84. git-thaw
  85. git-upstream-diff
  86. git_cache.py
  87. git_cherry_pick_upload.py
  88. git_cl.py
  89. git_cl_completion.sh
  90. git_common.py
  91. git_dates.py
  92. git_drover.py
  93. git_find_releases.py
  94. git_footers.py
  95. git_freezer.py
  96. git_hyper_blame.py
  97. git_map.py
  98. git_map_branches.py
  99. git_mark_merge_base.py
  100. git_nav_downstream.py
  101. git_new_branch.py
  102. git_number.py
  103. git_rebase_update.py
  104. git_rename_branch.py
  105. git_reparent_branch.py
  106. git_retry.py
  107. git_squash_branch.py
  108. git_upstream_diff.py
  109. gn
  110. gn.bat
  111. gn.py
  112. gsutil.py
  113. LICENSE
  114. my_activity.py
  115. my_reviews.py
  116. ninja
  117. ninja-linux32
  118. ninja-linux64
  119. ninja-mac
  120. ninja.exe
  121. OWNERS
  122. owners.py
  123. owners_finder.py
  124. patch.py
  125. PRESUBMIT.py
  126. presubmit_canned_checks.py
  127. presubmit_support.py
  128. profile.xml
  129. pylint
  130. pylint.py
  131. pylintrc
  132. python_runner.sh
  133. README.gclient.md
  134. README.git-cl.md
  135. README.md
  136. README.testing
  137. recipes.py
  138. repo
  139. rietveld.py
  140. roll-dep
  141. roll-dep-svn
  142. roll-dep-svn.bat
  143. roll-dep.bat
  144. roll_dep.py
  145. roll_dep_svn.py
  146. scm.py
  147. setup_color.py
  148. subcommand.py
  149. subprocess2.py
  150. update_depot_tools
  151. update_depot_tools.bat
  152. upload_to_google_storage.py
  153. WATCHLISTS
  154. watchlists.py
  155. weekly
  156. wtf
README.md

depot_tools

This package contains tools for working with Chromium development. It requires python 2.7.

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.

Updating

depot_tools updates itself automatically when running gclient tool. To disable auto update, set the environment variable DEPOT_TOOLS_UPDATE=0.

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

On Windows only, running gclient will install git and python.

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 commited.
git cl set-commit

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

cpplint.py

To update cpplint.py, please submit the change upstream first at https://github.com/google/styleguide/tree/gh-pages/cpplint then copy it down.