Changes to support RBE in Windows builds (#820)

This PR does a few things:
1. It changes how the Windows toolchain and SDK are fetched and where
they are stored. Previously, the Windows toolchain and SDK were
downloaded under `depot_tools`, which typically exists outside of the
engine source root both locally and in CI. That setup makes the Windows
SDK inaccessible to RBE builds. Instead, this PR checks out
`depot_tools` under `flutter/third_party/depot_tools` by listing it in
the `DEPS` file. This location is under the engine source root, and is
therefore accessible to RBE builds. This change has the downside of
breaking how CI does caching of the `depot_tools` Windows toolchain and
SDK, which will add some time to builds.
2. It updates Windows GN toolchain setup logic to match what is in the
Chrome tree. Updates to `build/find_depot_tools.py`,
`build/toolchain/win/BUILD.gn`, and
`build/toolchain/win/setup_toolchain.py` are copied from there and
adapted to the Flutter engine repo.
7 files changed
tree: 74a4884a6c2ff01d9114a76506f5ec065cf4e0c6
  1. .github/
  2. build/
  3. build_overrides/
  4. tools/
  5. .clang-format
  6. .gitattributes
  7. .gitignore
  8. .gn
  9. AUTHORS
  10. BUILD.gn
  11. CODEOWNERS
  12. LICENSE
  13. README.md
README.md

OpenSSF Scorecard

buildroot

Build environment for the Flutter engine

This repository is used by the flutter/engine repository. For instructions on how to use it, see that repository's CONTRIBUTING.md file.

To update your checkout to use the latest buildroot, run gclient sync.

To submit patches to this buildroot repository, create a branch, push to that branch, then submit a PR on GitHub for that branch.

To point the engine to a new version of buildroot after your patch is merged, update the buildroot hash in the engine's DEPS file.