Name Date Size #Lines LOC

..--

3pp_common/H25-Apr-2025-168124

android/H25-Apr-2025-68,75752,480

apple/H25-Apr-2025-1,130867

args/H25-Apr-2025-142115

chromeos/H25-Apr-2025-1,9241,488

cipd/H25-Apr-2025-207178

config/H25-Apr-2025-35,48731,547

docs/H25-Apr-2025-450369

fuchsia/H25-Apr-2025-7,7205,749

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

internal/H25-Apr-2025-2517

ios/H25-Apr-2025-878687

lacros/H25-Apr-2025-1,8991,422

mac/H25-Apr-2025-176131

private_code_test/H25-Apr-2025-329254

rust/H25-Apr-2025-9,9078,226

sanitizers/H25-Apr-2025-448186

skia_gold_common/H25-Apr-2025-2,4842,018

toolchain/H25-Apr-2025-9,4517,313

util/H25-Apr-2025-5,0483,961

win/H25-Apr-2025-856622

.gitignoreH A D25-Apr-2025552 2927

.style.yapfH A D25-Apr-2025146 75

Android.bpH A D25-Apr-2025813 2321

BUILD.gnH A D25-Apr-20252.8 KiB11693

DIR_METADATAH A D25-Apr-2025114 87

OWNERS.setnoparentH A D25-Apr-20253.3 KiB8366

OWNERS.statusH A D25-Apr-2025380 1311

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

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

build_config.hH A D25-Apr-202512 KiB406287

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.6 KiB230228

check_return_value.pyH A D25-Apr-2025431 1910

ciopfs.sha1H A D25-Apr-202540 11

clobber.pyH A D25-Apr-20254.5 KiB14488

clobber_unittest.pyH A D25-Apr-20254.3 KiB14999

compiled_action.gniH A D25-Apr-20255.8 KiB168150

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

del_ninja_deps_cache.pyH A D25-Apr-20251.1 KiB4125

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 KiB4542

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 KiB9461

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-2025335 96

gn_run_binary.pyH A D25-Apr-20251.1 KiB3618

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

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

install-chroot.shH A D25-Apr-202530.6 KiB889675

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 KiB210140

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 KiB187137

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 KiB3426

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.6 KiB8378

symlink.pyH A D25-Apr-20253 KiB9367

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-202523.2 KiB590414

whitespace_file.txtH A D25-Apr-20257.8 KiB214165

write_buildflag_header.pyH A D25-Apr-20253.2 KiB9857

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