0
Files
src/build
Fumitoshi Ukai 90083ae0ac make build/util/version.py restat friendly
build/util/version.py's WriteIfChanged didn't work as expected,
and always update the output file, even if contents is the same.
So, restat=1 doesn't work and always output file is considered
as dirty.

This is because st_mode includes file type bits, but mode
only includes permission bits.

Use stat.S_IMODE to compare permission bits with mode.

Bug: b/314726036
Change-Id: I7cf42944533179c39d4472918d954e7780d77429
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5133019
Reviewed-by: Takuto Ikuta <tikuta@chromium.org>
Auto-Submit: Fumitoshi Ukai <ukai@google.com>
Commit-Queue: Fumitoshi Ukai <ukai@google.com>
Cr-Commit-Position: refs/heads/main@{#1239085}
2023-12-19 12:53:32 +00:00
..
2023-02-23 19:40:56 +00:00
2023-12-18 20:15:43 +00:00
2023-08-09 16:48:03 +00:00
2023-09-07 22:20:50 +00:00
2023-09-19 16:47:03 +00:00

About

//build contains:

  • Core GN templates and configuration
  • Core Python build scripts

Since this directory is DEPS'ed in by some other repositories (webrtc, pdfium, v8, etc), it should be kept as self-contained as possible by not referring to files outside of it. Some exceptions exist (//testing, select //third_party subdirectories), but new dependencies tend to break these other projects, and so should be avoided.

Changes to //build should be landed in the Chromium repo. They will then be replicated to the stand-alone build repo by the gsubtreed tool. Note: You can find all directories already available through gsubtreed in the list of all chromium repos.

Contents

  • //build/config - Common templates via .gni files.
  • //build/toolchain - GN toolchain definitions.
  • Other .py files - Some are used by GN/Ninja. Some by gclient hooks, some are just random utilities.

Files referenced by //.gn:

  • //build/BUILDCONFIG.gn - Included by all BUILD.gn files.
  • //build/secondary - An overlay for BUILD.gn files. Enables adding BUILD.gn to directories that live in sub-repositories.
  • //build_overrides - Refer to //build_overrides/README.md.

Docs