• Home
Name Date Size #Lines LOC

..--

3pp/03-May-2024-158113

android/03-May-2024-69,31352,863

apple/03-May-2024-1,131870

args/03-May-2024-145117

chromeos/03-May-2024-1,8521,415

cipd/03-May-2024-207178

config/03-May-2024-33,39529,630

docs/03-May-2024-436357

fuchsia/03-May-2024-7,7945,826

gn_ast/03-May-2024-554432

internal/03-May-2024-2517

ios/03-May-2024-874683

lacros/03-May-2024-1,8961,418

mac/03-May-2024-178132

private_code_test/03-May-2024-329254

rust/03-May-2024-7,9086,588

sanitizers/03-May-2024-441184

skia_gold_common/03-May-2024-2,4641,999

toolchain/03-May-2024-8,9196,914

util/03-May-2024-4,7223,675

win/03-May-2024-854621

.gitignoreD03-May-2024570 3028

.style.yapfD03-May-2024146 75

BUILD.gnD03-May-20241.8 KiB8165

DIR_METADATAD03-May-202468 64

OWNERSD03-May-20241 KiB3730

OWNERS.setnoparentD03-May-20243.4 KiB8668

OWNERS.statusD03-May-2024380 1311

PRESUBMIT.pyD03-May-20242 KiB5643

PRESUBMIT_test.pyD03-May-20241.2 KiB4325

README.mdD03-May-20241.6 KiB3730

action_helpers.pyD03-May-20243.8 KiB12795

action_helpers_unittest.pyD03-May-20242.6 KiB8857

add_rts_filters.pyD03-May-20241.5 KiB5741

build-ctags.shD03-May-20241.3 KiB5031

build_config.hD03-May-202411.3 KiB386271

buildflag.hD03-May-20241.7 KiB486

buildflag_header.gniD03-May-20244.5 KiB138129

check_gn_headers.pyD03-May-20248.9 KiB312234

check_gn_headers_unittest.pyD03-May-20242.2 KiB10281

check_gn_headers_whitelist.txtD03-May-20249.7 KiB233231

check_return_value.pyD03-May-2024431 1910

ciopfs.sha1D03-May-202440 11

clobber.pyD03-May-20244.5 KiB14488

clobber_unittest.pyD03-May-20244.3 KiB14999

compiled_action.gniD03-May-20245.8 KiB168150

compute_build_timestamp.pyD03-May-20245.3 KiB13878

copy_test_data_ios.pyD03-May-20243.1 KiB10776

cp.pyD03-May-2024567 2411

del_ninja_deps_cache.pyD03-May-20241.1 KiB4125

detect_host_arch.pyD03-May-20241.5 KiB5534

dir_exists.pyD03-May-2024544 2414

dotfile_settings.gniD03-May-20241.6 KiB4441

download_nacl_toolchains.pyD03-May-20242 KiB5633

env_dump.pyD03-May-20241.7 KiB5741

extract_from_cab.pyD03-May-20242 KiB6536

extract_partition.pyD03-May-20245.4 KiB177121

find_depot_tools.pyD03-May-20242.1 KiB7545

fix_gn_headers.pyD03-May-20246.5 KiB220173

gdb-add-indexD03-May-20245 KiB185130

get_landmines.pyD03-May-20243.7 KiB9259

get_symlink_targets.pyD03-May-2024691 2817

gn_helpers.pyD03-May-202417.5 KiB575431

gn_helpers_unittest.pyD03-May-202411.6 KiB354288

gn_logs.gniD03-May-2024335 96

gn_run_binary.pyD03-May-20241.1 KiB3618

install-build-deps.pyD03-May-202425.4 KiB914747

install-build-deps.shD03-May-2024218 81

install-chroot.shD03-May-202430.6 KiB889675

landmine_utils.pyD03-May-2024642 3420

landmines.pyD03-May-20245 KiB152118

locale_tool.pyD03-May-202449.3 KiB1,5121,098

mac_toolchain.pyD03-May-20247.2 KiB211141

metadata.json.inD03-May-202497 76

nocompile.gniD03-May-20246 KiB199183

noop.pyD03-May-2024185 51

partitioned_shared_library.gniD03-May-20245.6 KiB143129

precompile.ccD03-May-2024334 80

precompile.hD03-May-20241.1 KiB5441

print_python_deps.pyD03-May-20246.8 KiB187137

protoc_java.pyD03-May-20243.5 KiB11078

protoc_java.pydepsD03-May-2024246 98

redirect_stdout.pyD03-May-2024869 2912

rm.pyD03-May-2024874 4025

sample_arg_file.gnD03-May-2024216 76

sanitize-mac-build-log.sedD03-May-20241.1 KiB3426

sanitize-mac-build-log.shD03-May-2024201 61

sanitize-win-build-log.sedD03-May-2024465 1611

sanitize-win-build-log.shD03-May-2024201 61

shim_headers.gniD03-May-20241 KiB4236

symlink.gniD03-May-20242.6 KiB8378

symlink.pyD03-May-20243 KiB9367

timestamp.gniD03-May-20241.3 KiB3530

tree_truth.shD03-May-20242.8 KiB10362

update-linux-sandbox.shD03-May-20242.6 KiB8365

vs_toolchain.pyD03-May-202423.2 KiB590414

whitespace_file.txtD03-May-20247.8 KiB212164

write_buildflag_header.pyD03-May-20243.2 KiB9857

xcode_binaries.yamlD03-May-20244.1 KiB6443

zip_helpers.pyD03-May-20248.2 KiB239183

zip_helpers_unittest.pyD03-May-20241.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