Clone of https://chromium.googlesource.com/chromium/src/build with Mozilla's local modifications
Перейти к файлу
Mirko Bonadei 42a74754e7 Switch to VS 2019.
Goma no longer supports cl.exe and the cl.exe version update in this CL hasn't
been uploaded to goma's servers. Everyone who has bots that use cl.exe must make
sure that these bots don't use goma before rolling this CL in.

This change switches the MSVC toolchain to VS 2019 16.3.29324.

Windows SDK is mostly 10.0.18362
Debuggers from 10.0.17763
d3dcompiler_47.dll from 10.0.17134

The instructions for the previous package are included below:

Packaging was done on a Windows Server 2019 VM, cleanly created for this
purpose.

The package was created by downloading VS 2019 Update 3.29324, from
https://visualstudio.microsoft.com/downloads/ and downloading
the 16.3 Visual Studio Professional 2019, and then running the installer
like this:

$ PATH_TO_INSTALLER.EXE ^
    --add Microsoft.VisualStudio.Workload.NativeDesktop ^
    --add Microsoft.VisualStudio.Component.VC.ATLMFC ^
    --add Microsoft.VisualStudio.Component.VC.Tools.ARM64 ^
    --add Microsoft.VisualStudio.Component.VC.MFC.ARM64 ^
    --includeRecommended --passive

Then the 10.0.18362.0 SDK was installed from:
https://developer.microsoft.com/en-US/windows/downloads/windows-10-sdk.

Then Add or Remove Programs was used to modify the 10.0.18362.0 SDK to add
the Debuggers package.

Then the packaging script was run like this:

  python depot_tools\win_toolchain\package_from_installed.py 2019 -w 10.0.18362.0

Since the new d3dcompiler_47.dll uses the UCRT and we want to avoid shipping
that the final packaging step was to unzip the package, copy over the two copies
of that DLL from win_sdk\Redist, replace the Debuggers directory with the
10.0.17763 SDK, and then repackage the toolchain with:
  > python package_from_installed.py --repackage=<full-path-to-toolchain-dir>

Bug: 1006238
Change-Id: I623632bd72f018a74ab513d2c79e89199915e647
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1836195
Reviewed-by: Nico Weber <thakis@chromium.org>
Reviewed-by: Bruce Dawson <brucedawson@chromium.org>
Commit-Queue: Mirko Bonadei <mbonadei@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#704569}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 8e82c6ab1bc2223fa25f1a127b65071d2d58ae36
2019-10-10 11:42:21 +00:00
android android: make avd screens 960x480. 2019-10-10 02:42:58 +00:00
args Set v8_enable_lazy_source_positions to false for headless 2019-09-30 22:04:47 +00:00
chromeos Extend timeout for chrome_all_tast_tests_informational as it takes longer 2019-10-09 05:30:21 +00:00
cipd [android] Move CIPD dependencies into DEPS. (RELAND) 2018-03-24 00:23:27 +00:00
config Switch to VS 2019. 2019-10-10 11:42:21 +00:00
docs writing_gn_templates.md: target_gen_dir vs target_out_dir 2018-11-27 16:07:55 +00:00
fuchsia Roll Fuchsia SDK from 890004575397 to 890001936330 2019-10-10 05:56:10 +00:00
internal Remove GYP files in breakpad, build, and tools. 2016-09-12 19:55:25 +00:00
ios Set Python shebang in build to /usr/bin/env python 2017-07-05 14:42:43 +00:00
linux Add armel support to building sysroots. 2019-10-08 21:45:29 +00:00
mac Compile on macOS using binaries from Xcode, rather than a full install. 2019-07-17 21:47:00 +00:00
sanitizers [v8] Remove obsolete TSAN suppression for V8 zones. 2019-08-28 08:01:02 +00:00
toolchain win: Assert goma is not used with cl.exe, and stop setting symbol_level to 1 in non-clang goma builds. 2019-10-10 02:51:54 +00:00
util build/util/generate_wrapper.py: Use Python 3 compatible octal syntax 2019-09-30 17:52:50 +00:00
win build: Assert that Win cross-builds from Mac are 64-bit. 2019-10-07 14:14:35 +00:00
.gitignore Ignore compiled Python files. 2018-08-27 17:55:15 +00:00
BUILD.gn Add BUILDFLAG(GOOGLE_CHROME_BRANDING) and start using it in a few places. 2019-07-29 17:30:40 +00:00
OWNERS Fix typos, clarify comment 2019-02-20 02:07:05 +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 Support WebAssembly in build/build_config.h. 2019-08-27 03:36:10 +00:00
buildflag.h Tiny fix in buildflag.h comment 2016-03-31 21:02:11 +00:00
buildflag_header.gni Fix build with BLINK_ANIMATION_USE_TIME_DELTA enabled 2019-08-14 08:02:13 +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 Refactor cc painted scrollbar 2019-10-02 21:43:37 +00: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 Fix src/build/clobber.py 2018-04-09 15:32:48 +00:00
common.croc
compiled_action.gni Add nasm support to Chromium, use it for boringssl. 2018-11-08 01:27:52 +00:00
compute_build_timestamp.py Don't quantize build timestamps on official builds 2019-08-15 18:23:05 +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 gyp performance: don't invoke python to check dir existance 2014-04-16 21:52:49 +00:00
dotfile_settings.gni Move the "atspi2" target to a separate BUILD.gn file 2018-11-30 23:10:19 +00:00
download_nacl_toolchains.py Improve Python 3 support in build scripts 2019-03-19 15:04:20 +00:00
download_translation_unit_tool.py Modify download_translation_unit_tool.py to work on Windows. 2018-05-22 22:53:13 +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 Modules: Fix generation of partitioned feature libraries 2019-05-09 15:39:23 +00: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 Add a script that can discover *.isolated files in a directory. 2014-02-28 19:46:52 +00:00
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
gn_helpers.py Improve Python 3 support in build scripts 2019-03-19 15:04:20 +00:00
gn_helpers_unittest.py Make gn_helpers.py safely ignore comments. 2018-11-06 00:42:09 +00: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 support for Artful+add support for Disco+first code for Java 11 2019-04-24 21:40:17 +00:00
install-build-deps.sh Remove g++ and git-svn from install-build-deps.sh 2019-08-21 18:07:22 +00: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 Make landmines.py Python 3-compatible 2019-08-08 19:58:25 +00:00
locale_tool.py //build: Convert print statements to Python 3 style 2019-05-12 06:11:07 +00:00
mac_toolchain.py Roll macOS Toolchain. 2019-09-03 19:30:08 +00:00
nocompile.gni Roll clang 365097:369647. 2019-08-22 19:07:46 +00:00
package_mac_toolchain.py //build: Convert print statements to Python 3 style 2019-05-12 06:11:07 +00:00
partitioned_shared_library.gni Roll clang 370156:371202. 2019-09-06 22:28:01 +00: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 Reland "Allow .pydeps files to detect use of vpython" 2019-03-26 15:08:10 +00:00
protoc_java.py //build: Convert print statements to Python 3 style 2019-05-12 06:11:07 +00:00
protoc_java.pydeps android: build: Use .pydeps file to store Python dependencies. 2018-08-07 07:12:36 +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 Remove removed (and outdated anyway) Perl IDL compiler line from sed script 2014-02-27 15:00:45 +00:00
sanitize-win-build-log.sh
shim_headers.gni Unbundle openh264 2017-05-22 12:52:46 +00:00
split_static_library.gni Don't use split_static_library when lld is used 2018-07-18 15:27:42 +00:00
swarming_xcode_install.py //build: Convert print statements to Python 3 style 2019-05-12 06:11:07 +00:00
symlink.gni [android] Tweak data deps to include two chromium tool binaries. (RELAND) 2016-11-11 19:19:23 +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 Switch to VS 2019. 2019-10-10 11:42:21 +00:00
whitespace_file.txt First commit to test how it works 2019-07-24 10:26:55 +00: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 build: use copy mode for xcode_binaries cipd package 2019-08-30 14:45:54 +00: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