Clone of https://chromium.googlesource.com/chromium/src/build with Mozilla's local modifications
Перейти к файлу
Sylvain Defresne c8b72be369 [ios] Fix build/config/ios/hardlink.py when output exists
shutil.rmtree fails if asked to delete a single file, so change
build/config/ios/hardlink.py to use os.unlink/shutil.rmtree based
on the output type (directory, file, symlink, ...).

Bug: none
Change-Id: I861c215e91b455e5b24f8159e162f21644a4bd47
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2390183
Auto-Submit: Sylvain Defresne <sdefresne@chromium.org>
Reviewed-by: Justin Cohen <justincohen@chromium.org>
Commit-Queue: Sylvain Defresne <sdefresne@chromium.org>
Cr-Commit-Position: refs/heads/master@{#803861}
GitOrigin-RevId: af8f4f5d6065be3c60bb5a1b3ccefb94bea6493f
2020-09-02 08:10:26 -07:00
android [Android] Make build style more strict about resource overriding 2020-09-01 22:56:07 -07:00
apple [ios] Add support for building .swift files 2020-08-24 02:11:30 -07:00
args Reland "Reland "Reland "X11 and Ozone: enable use_x11 and use_ozone""" 2020-09-01 04:31:24 -07:00
chromeos chromeos: Don't swallow test args when '--' is present. 2020-08-03 12:42:32 -07:00
cipd Revert "[cipd] Refactor CIPD template" 2020-04-13 10:03:51 +00:00
config [ios] Fix build/config/ios/hardlink.py when output exists 2020-09-02 08:10:26 -07:00
docs Delete old package_mac_toolchain.py script 2020-05-15 18:15:50 +00:00
fuchsia Roll Fuchsia SDK from 0.20200901.3.1 to 0.20200902.0.1 2020-09-01 23:16:57 -07:00
internal Remove GYP files in breakpad, build, and tools. 2016-09-12 19:55:25 +00:00
ios [ios] Assert that Xcode version is recent enough 2020-07-17 10:07:33 -07:00
lacros [Lacros] Suppress ignored params in lacros_resource_sizes.py. 2020-09-02 07:09:30 -07:00
linux Reland "Roll sysroots" 2020-08-27 18:31:30 -07:00
mac mac: Make it possible to download mac sdk on a linux host. 2020-07-01 12:50:04 -07:00
sanitizers Refactor OS_LINUX preprocessor directive for LaCrOS effort. 2020-08-18 11:19:38 -07:00
skia_gold_common Add Gold CRS arg 2020-08-21 11:32:16 -07:00
toolchain Handle toolchains with/without ..\.. in variables 2020-08-24 22:34:47 -07:00
util Revert "Update TrichromeChrome version code." 2020-08-28 07:36:54 -07:00
win Opt in to the Windows "segment heap" 2020-06-25 12:58:50 -07:00
.gitignore [Fuchsia] Switch to dynamic loading of loosely-coupled target modules. 2020-08-27 15:25:01 -07:00
.style.yapf Enable Python auto-formatting on common directories 2020-01-07 17:37:07 +00:00
BUILD.gn Move buildflag LACROS into //build and rename to IS_LACROS 2020-06-26 13:01:54 -07:00
OWNERS Remove 'dpranke@chromium.org' from OWNERS. 2020-08-04 13:04:50 -07:00
OWNERS.setnoparent Restrict ownership for critical lock/login components 2020-06-19 19:52:57 +00:00
OWNERS.status Add global status comments for owners 2017-04-07 07:03:46 +00:00
README.md //build/README.md: Add link to https://chromium.googlesource.com/ 2019-09-23 14:57:24 +00:00
apply_locales.py //build: Convert print statements to Python 3 style 2019-05-12 06:11:07 +00:00
build-ctags.sh Change build-ctags.sh output file name from ".tags" to "tags" 2014-12-09 20:36:25 +00:00
build_config.h Refactor OS_LINUX preprocessor directive for LaCrOS effort. 2020-08-23 16:58:55 -07:00
buildflag.h Tiny fix in buildflag.h comment 2016-03-31 21:02:11 +00:00
buildflag_header.gni Reformat all gn files in /build. 2020-01-14 04:52:17 +00:00
check_gn_headers.py //build: Convert print statements to Python 3 style 2019-05-12 06:11:07 +00:00
check_gn_headers_unittest.py Print detailed info in check_gn_headers.py 2017-06-13 10:21:23 +00:00
check_gn_headers_whitelist.txt Remove various references to third_party/cacheinvalidation 2020-07-20 13:01:10 -07:00
check_return_value.py //build: Convert print statements to Python 3 style 2019-05-12 06:11:07 +00:00
ciopfs.sha1 Download ciopfs from a hook in win/cross builds. 2018-02-01 20:36:45 +00:00
clobber.py [ios] Fix interaction of build/clobber.py & ios/build/tools/setup-gn.py 2020-07-08 02:07:35 -07:00
compiled_action.gni Add nasm support to Chromium, use it for boringssl. 2018-11-08 01:27:52 +00:00
compute_build_timestamp.py Update compute_build_timestamp.py comment 2020-04-17 17:30:01 +00:00
copy_test_data_ios.py //build: Use Python 3 style exception statements 2019-09-26 19:20:53 +00:00
cp.py
detect_host_arch.py //build: Convert print statements to Python 3 style 2019-05-12 06:11:07 +00:00
dir_exists.py
dotfile_settings.gni [ios] Add codesigning information in generated Xcode project 2020-06-26 07:08:08 -07:00
download_nacl_toolchains.py Improve Python 3 support in build scripts 2019-03-19 15:04:20 +00:00
env_dump.py Set Python shebang in build to /usr/bin/env python 2017-07-05 14:42:43 +00:00
extract_from_cab.py //build: Convert print statements to Python 3 style 2019-05-12 06:11:07 +00:00
extract_partition.py Implement DWARF Fission support in Chrome Android. 2020-08-24 21:43:00 -07:00
find_depot_tools.py //build: Convert print statements to Python 3 style 2019-05-12 06:11:07 +00:00
find_isolated_tests.py
fix_gn_headers.py //build: Convert print statements to Python 3 style 2019-05-12 06:11:07 +00:00
gdb-add-index gdb-add-index now removes its temp directory 2016-06-01 20:21:54 +00:00
get_landmines.py Improve Python 3 support in build scripts 2019-03-19 15:04:20 +00:00
get_symlink_targets.py Reland #2 chromeos: Add only the current SDK version's items to a test's data. 2020-06-10 23:31:04 +00:00
gn_helpers.py Reland "build_vars.txt: Changed to build_vars.json" 2020-08-10 11:15:55 -07:00
gn_helpers_unittest.py [Build] gn_helpers.py: ToGNString(): Add option for pretty print. 2020-06-05 21:44:34 +00:00
gn_logs.gni Report the value of concurrent_links from "gn gen" when on bots 2020-08-07 10:22:06 -07:00
gn_run_binary.py //build: Convert print statements to Python 3 style 2019-05-12 06:11:07 +00:00
install-build-deps-android.sh Remove java from install-build-deps-android.sh 2019-11-19 19:37:19 +00:00
install-build-deps.sh install-build-deps: Remove redundant dev_list 2020-08-31 16:33:40 -07:00
install-chroot.sh build: Fix common misspellings 2017-08-01 09:03:13 +00:00
landmine_utils.py [build] Remove gyp usage from landmines script 2018-02-20 23:27:59 +00:00
landmines.py Reland "[ios] Add --landmines-path to build/landmines.py script" 2020-07-08 10:35:47 -07:00
locale_tool.py [locales] refactor android specific locale variables 2020-02-08 02:37:10 +00:00
mac_toolchain.py mac/arm64: Update to Xcode 12b6 (12A8189n) 2020-08-25 23:58:48 -07:00
nocompile.gni [build] Add include_dirs option to nocompile_test 2020-08-13 11:33:46 -07:00
noop.py [ios/rbe] Fix iOS buildwith Goma RBE 2020-03-16 15:34:28 +00:00
partitioned_shared_library.gni Implement DWARF Fission support in Chrome Android. 2020-08-24 21:43:00 -07:00
precompile.cc
precompile.h Add base::stack, convert std::stack uses use it. 2017-10-02 18:55:28 +00:00
print_python_deps.py Finish converting all scripts from depfile -> .pydeps 2020-06-25 13:01:03 -07:00
protoc_java.py Finish converting all scripts from depfile -> .pydeps 2020-06-25 13:01:03 -07:00
protoc_java.pydeps Reland "Move build_utils.CallAndWriteDepfileIfStale -> md5_utils" 2019-12-12 20:47:03 +00:00
redirect_stdout.py //build: Convert print statements to Python 3 style 2019-05-12 06:11:07 +00:00
rm.py //build: Convert print statements to Python 3 style 2019-05-12 06:11:07 +00:00
run_swarming_xcode_install.py //build: Convert print statements to Python 3 style 2019-05-12 06:11:07 +00:00
sample_arg_file.gn Add support for customizing GN's args text. 2017-03-04 02:32:43 +00:00
sanitize-mac-build-log.sed
sanitize-mac-build-log.sh
sanitize-win-build-log.sed
sanitize-win-build-log.sh
shim_headers.gni Reformat all gn files in /build. 2020-01-14 04:52:17 +00:00
swarming_xcode_install.py //build: Convert print statements to Python 3 style 2019-05-12 06:11:07 +00:00
symlink.gni Reformat all gn files in /build. 2020-01-14 04:52:17 +00:00
symlink.py //build: Use Python 3 style exception statements 2019-09-26 19:20:53 +00:00
timestamp.gni Add arg to change script for computing build timestamp 2019-03-26 01:05:23 +00:00
tree_truth.sh Print project path in build/tree_truth.sh (fix typo) 2014-11-11 16:53:33 +00:00
update-linux-sandbox.sh Fix build/update-linux-sandbox.sh with POSIX sh 2018-08-28 04:54:31 +00:00
vs_toolchain.py Fix vs_toolchain.py for Python 3 2020-07-21 10:22:16 -07:00
whitespace_file.txt Add missing commit change footer 2020-07-22 11:10:02 -07:00
write_build_date_header.py Revert "win: Make chrome.7z generation more deterministic." 2018-11-05 12:14:55 +00:00
write_buildflag_header.py New build flag system, convert Google Now flag 2015-11-26 09:22:27 +00:00
xcode_binaries.yaml mac: Include atos in hermetic Xcode packages 2020-08-13 11:57:19 -07:00

README.md

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