Name Date Size #Lines LOC

..--

3pp_common/H25-Apr-2025-609459

android/H25-Apr-2025-72,71855,526

apple/H25-Apr-2025-1,134870

args/H25-Apr-2025-141113

chromeos/H25-Apr-2025-2,1721,679

cipd/H25-Apr-2025-207178

config/H25-Apr-2025-36,65932,655

docs/H25-Apr-2025-450369

fuchsia/H25-Apr-2025-8,3126,159

gn_ast/H25-Apr-2025-1,7111,360

internal/H25-Apr-2025-2517

ios/H25-Apr-2025-917722

mac/H25-Apr-2025-178132

private_code_test/H25-Apr-2025-329254

rust/H25-Apr-2025-10,5488,657

sanitizers/H25-Apr-2025-463190

skia_gold_common/H25-Apr-2025-2,4862,019

toolchain/H25-Apr-2025-9,9677,745

util/H25-Apr-2025-6,1904,725

win/H25-Apr-2025-858624

.clang-tidyH A D25-Apr-2025136 43

.clangdH A D25-Apr-2025145 54

.git-blame-ignore-revsH A D25-Apr-2025146 43

.gitignoreH A D25-Apr-2025522 2725

.style.yapfH A D25-Apr-2025146 75

BUILD.gnH A D25-Apr-20252.9 KiB12197

DEPSH A D25-Apr-20252.7 KiB8381

DIR_METADATAH A D25-Apr-2025114 87

OWNERSH A D25-Apr-20251.1 KiB3830

OWNERS.setnoparentH A D25-Apr-20253.7 KiB9273

OWNERS.statusH A D25-Apr-2025338 1210

PRESUBMIT.pyH A D25-Apr-20252 KiB5643

PRESUBMIT_test.pyH A D25-Apr-20251.2 KiB4325

README.mdH A D25-Apr-20251.6 KiB3730

action_helpers.pyH A D25-Apr-20253.9 KiB13299

action_helpers_unittest.pyH A D25-Apr-20252.6 KiB8857

add_rts_filters.pyH A D25-Apr-20251.5 KiB5440

build-ctags.shH A D25-Apr-20251.3 KiB5031

build_config.hH A D25-Apr-202512.3 KiB420295

buildflag.hH A D25-Apr-20251.7 KiB486

buildflag_header.gniH A D25-Apr-20254.5 KiB138129

check_gn_headers.pyH A D25-Apr-20258.9 KiB312234

check_gn_headers_unittest.pyH A D25-Apr-20252.2 KiB10281

check_gn_headers_whitelist.txtH A D25-Apr-20259.5 KiB228226

check_return_value.pyH A D25-Apr-2025431 1910

ciopfs.sha1H A D25-Apr-202540 11

clobber.pyH A D25-Apr-20254.4 KiB14286

clobber_unittest.pyH A D25-Apr-20254.3 KiB14999

compiled_action.gniH A D25-Apr-20255.9 KiB169151

compute_build_timestamp.pyH A D25-Apr-20255.3 KiB13979

copy_test_data_ios.pyH A D25-Apr-20253.1 KiB10776

cp.pyH A D25-Apr-2025567 2411

detect_host_arch.pyH A D25-Apr-20251.5 KiB5534

dir_exists.pyH A D25-Apr-2025544 2414

dotfile_settings.gniH A D25-Apr-20251.6 KiB4643

download_nacl_toolchains.pyH A D25-Apr-20252 KiB5633

env_dump.pyH A D25-Apr-20251.7 KiB5741

extract_from_cab.pyH A D25-Apr-20252 KiB6536

extract_partition.pyH A D25-Apr-20254.9 KiB167116

find_depot_tools.pyH A D25-Apr-20252.1 KiB7545

fix_gn_headers.pyH A D25-Apr-20256.5 KiB220173

gdb-add-indexH A D25-Apr-20255 KiB185130

get_landmines.pyH A D25-Apr-20253.8 KiB9562

get_symlink_targets.pyH A D25-Apr-2025691 2817

gn_editorH A D25-Apr-2025229 92

gn_helpers.pyH A D25-Apr-202517.7 KiB580435

gn_helpers_unittest.pyH A D25-Apr-202511.6 KiB354288

gn_logs.gniH A D25-Apr-20251.4 KiB4536

gn_run_binary.pyH A D25-Apr-20251.1 KiB3618

install-build-deps.pyH A D25-Apr-202526.6 KiB947762

install-build-deps.shH A D25-Apr-2025218 81

install-chroot.shH A D25-Apr-202530.3 KiB883672

landmine_utils.pyH A D25-Apr-2025642 3420

landmines.pyH A D25-Apr-20255 KiB152118

locale_tool.pyH A D25-Apr-202549.3 KiB1,5121,098

mac_toolchain.pyH A D25-Apr-20257.1 KiB208140

metadata.json.inH A D25-Apr-202597 76

nocompile.gniH A D25-Apr-20255.9 KiB191169

noop.pyH A D25-Apr-2025185 51

partitioned_shared_library.gniH A D25-Apr-20256.1 KiB160145

precompile.ccH A D25-Apr-2025334 80

precompile.hH A D25-Apr-20251.1 KiB5441

print_python_deps.pyH A D25-Apr-20256.8 KiB189138

protoc_java.pyH A D25-Apr-20253.5 KiB11078

protoc_java.pydepsH A D25-Apr-2025246 98

redirect_stdout.pyH A D25-Apr-2025869 2912

rm.pyH A D25-Apr-2025874 4025

sample_arg_file.gnH A D25-Apr-2025222 76

sanitize-mac-build-log.sedH A D25-Apr-20251.1 KiB3124

sanitize-mac-build-log.shH A D25-Apr-2025201 61

sanitize-win-build-log.sedH A D25-Apr-2025465 1611

sanitize-win-build-log.shH A D25-Apr-2025201 61

shim_headers.gniH A D25-Apr-20251 KiB4236

symlink.gniH A D25-Apr-20252.5 KiB8075

symlink.pyH A D25-Apr-20252.8 KiB8662

timestamp.gniH A D25-Apr-20251.3 KiB3530

tree_truth.shH A D25-Apr-20252.8 KiB10362

update-linux-sandbox.shH A D25-Apr-20252.6 KiB8365

vs_toolchain.pyH A D25-Apr-202525.8 KiB657449

whitespace_file.txtH A D25-Apr-20258.6 KiB233177

write_buildflag_header.pyH A D25-Apr-20253.4 KiB10158

xcode_binaries.yamlH A D25-Apr-20254.1 KiB6443

zip_helpers.pyH A D25-Apr-20258.2 KiB239183

zip_helpers_unittest.pyH A D25-Apr-20251.7 KiB5940

README.md

1# About
2`//build` contains:
3 * Core GN templates and configuration
4 * Core Python build scripts
5
6Since this directory is DEPS'ed in by some other repositories (webrtc, pdfium,
7v8, etc), it should be kept as self-contained as possible by not referring
8to files outside of it. Some exceptions exist (`//testing`, select
9`//third_party` subdirectories), but new dependencies tend to break these other
10projects, and so should be avoided.
11
12Changes to `//build` should be landed in the Chromium repo. They will then be
13replicated to the stand-alone [build repo](https://chromium.googlesource.com/chromium/src/build)
14by the [gsubtreed tool.](https://chromium.googlesource.com/infra/infra/+/main/infra/services/gsubtreed)
15Note: You can find all directories already  available through gsubtreed in the
16[list of all chromium repos](https://chromium.googlesource.com/).
17
18## Contents
19 * `//build/config` - Common templates via `.gni` files.
20 * `//build/toolchain` - GN toolchain definitions.
21 * `Other .py files` - Some are used by GN/Ninja. Some by gclient hooks, some
22   are just random utilities.
23
24Files referenced by `//.gn`:
25 * `//build/BUILDCONFIG.gn` - Included by all `BUILD.gn` files.
26 * `//build/secondary` - An overlay for `BUILD.gn` files. Enables adding
27   `BUILD.gn` to directories that live in sub-repositories.
28 * `//build_overrides` -
29   Refer to [//build_overrides/README.md](../build_overrides/README.md).
30
31## Docs
32
33* [Writing GN Templates](docs/writing_gn_templates.md)
34* [Debugging Slow Builds](docs/debugging_slow_builds.md)
35* [Mac Hermetic Toolchains](docs/mac_hermetic_toolchain.md)
36* [Android Build Documentation](android/docs/README.md)
37