| gclient_gn_args_file = 'build/config/gclient_args.gni' |
| gclient_gn_args = [ |
| 'build_with_chromium', |
| 'generate_location_tags', |
| ] |
| |
| skip_child_includes = [ |
| 'src', |
| ] |
| |
| vars = { |
| 'build_with_chromium': False, |
| 'generate_location_tags': False, |
| |
| 'chromium_git': 'https://chromium.googlesource.com', |
| |
| 'abseil_revision': 'cfdfe8d1453ed2762d8e68d06b2e0a9fbf0f57bb', |
| 'build_revision': '9d31c5f0204d7e806723266ed38b8485214a996b', |
| 'buildtools_revision': 'f78b4b9f33bd8ef9944d5ce643daff1c31880189', |
| 'catapult_revision': 'd90eeee99383928afa92d6960ad9d3b5f51f8b76', |
| 'chromium_testing_revision': '1b963e718e4b6945c8c86b558abcd67e34491ea2', |
| 'clang_format_revision': 'e435ad79c17b1888b34df88d6a30a094936e3836', |
| 'clang_revision': '946a41a51f44207941b3729a0733dfc1e236644e', |
| 'depot_tools_revision': 'd05a2e03953bf7e58696a0401ba41360b627401c', |
| 'gn_version': 'git_revision:0725d7827575b239594fbc8fd5192873a1d62f44', |
| 'chromium_googletest_revision': '2617f568c87dc512e52d686d9e2e61479e330991', |
| 'googletest_revision': 'f45d5865ed0b2b8912244627cdf508a24cc6ccb4', |
| 'libcxx_revision': '79a2e924d96e2fc1e4b937c42efd08898fa472d7', |
| 'libcxxabi_revision': 'df43e1b0396fbd3a0e511b804eeec54f3b62e3f0', |
| } |
| |
| deps = { |
| 'build': '{chromium_git}/chromium/src/build.git@{build_revision}', |
| 'buildtools': '{chromium_git}/chromium/src/buildtools.git@{buildtools_revision}', |
| |
| 'buildtools/clang_format/script': |
| '{chromium_git}/external/github.com/llvm/llvm-project/clang/tools/clang-format.git@' + |
| '{clang_format_revision}', |
| |
| 'buildtools/linux64': { |
| 'packages': [ |
| { |
| 'package': 'gn/gn/linux-amd64', |
| 'version': Var('gn_version'), |
| }, |
| ], |
| 'dep_type': 'cipd', |
| 'condition': 'host_os == "linux"', |
| }, |
| |
| 'buildtools/mac': { |
| 'packages': [ |
| { |
| 'package': 'gn/gn/mac-${{arch}}', |
| 'version': Var('gn_version'), |
| }, |
| ], |
| }, |
| |
| 'buildtools/third_party/libc++/trunk': |
| '{chromium_git}/external/github.com/llvm/llvm-project/libcxx.git@{libcxx_revision}', |
| |
| 'buildtools/third_party/libc++abi/trunk': |
| '{chromium_git}/external/github.com/llvm/llvm-project/libcxxabi.git@{libcxxabi_revision}', |
| |
| 'buildtools/win': { |
| 'packages': [ |
| { |
| 'package': 'gn/gn/windows-amd64', |
| 'version': Var('gn_version'), |
| } |
| ], |
| 'dep_type': 'cipd', |
| 'condition': 'host_os == "win"', |
| }, |
| |
| 'testing': '{chromium_git}/chromium/src/testing.git@{chromium_testing_revision}', |
| 'third_party/abseil-cpp': '{chromium_git}/chromium/src/third_party/abseil-cpp@{abseil_revision}', |
| 'third_party/catapult': '{chromium_git}/catapult.git@{catapult_revision}', |
| 'third_party/depot_tools': '{chromium_git}/chromium/tools/depot_tools.git@{depot_tools_revision}', |
| 'third_party/googletest': |
| '{chromium_git}/chromium/src/third_party/googletest.git@{chromium_googletest_revision}', |
| 'third_party/googletest/src': |
| '{chromium_git}/external/github.com/google/googletest@{googletest_revision}', |
| |
| 'tools/clang': { |
| 'url': '{chromium_git}/chromium/src/tools/clang.git@{clang_revision}', |
| 'condition': 'not build_with_chromium', |
| }, |
| } |
| |
| hooks = [ |
| # Download and initialize "vpython" VirtualEnv environment packages for |
| # Python2. We do this before running any other hooks so that any other |
| # hooks that might use vpython don't trip over unexpected issues and |
| # don't run slower than they might otherwise need to. |
| { |
| 'name': 'vpython_common', |
| 'pattern': '.', |
| # TODO(https://crbug.com/1205263): Run this on mac/arm too once it works. |
| 'condition': 'not (host_os == "mac" and host_cpu == "arm64")', |
| 'action': [ 'vpython', |
| '-vpython-spec', '.vpython', |
| '-vpython-tool', 'install', |
| ], |
| }, |
| # Download and initialize "vpython" VirtualEnv environment packages for |
| # Python3. We do this before running any other hooks so that any other |
| # hooks that might use vpython don't trip over unexpected issues and |
| # don't run slower than they might otherwise need to. |
| { |
| 'name': 'vpython3_common', |
| 'pattern': '.', |
| 'action': [ 'vpython3', |
| '-vpython-spec', '.vpython3', |
| '-vpython-tool', 'install', |
| ], |
| }, |
| |
| { |
| 'name': 'sysroot_x86', |
| 'pattern': '.', |
| 'condition': 'checkout_linux and (checkout_x86 or checkout_x64)', |
| 'action': ['python3', 'build/linux/sysroot_scripts/install-sysroot.py', |
| '--arch=x86'], |
| }, |
| { |
| 'name': 'sysroot_x64', |
| 'pattern': '.', |
| 'condition': 'checkout_linux and checkout_x64', |
| 'action': ['python3', 'build/linux/sysroot_scripts/install-sysroot.py', |
| '--arch=x64'], |
| }, |
| |
| { |
| # Case-insensitivity for the Win SDK. Must run before win_toolchain below. |
| 'name': 'ciopfs_linux', |
| 'pattern': '.', |
| 'condition': 'checkout_win and host_os == "linux"', |
| 'action': [ 'python3', |
| 'third_party/depot_tools/download_from_google_storage.py', |
| '--no_resume', |
| '--no_auth', |
| '--bucket', 'chromium-browser-clang/ciopfs', |
| '-s', 'build/ciopfs.sha1', |
| ] |
| }, |
| |
| { |
| # Update the Windows toolchain if necessary. Must run before 'clang' below. |
| 'name': 'win_toolchain', |
| 'pattern': '.', |
| 'condition': 'checkout_win', |
| 'action': ['python3', 'build/vs_toolchain.py', 'update', '--force'], |
| }, |
| { |
| # Update the Mac toolchain if necessary. |
| 'name': 'mac_toolchain', |
| 'pattern': '.', |
| 'condition': 'checkout_mac or checkout_ios', |
| 'action': ['python3', 'build/mac_toolchain.py'], |
| }, |
| |
| { |
| # Update the Windows toolchain if necessary. Must run before 'clang' below. |
| 'name': 'win_toolchain', |
| 'pattern': '.', |
| 'condition': 'checkout_win', |
| 'action': ['python3', 'build/vs_toolchain.py', 'update', '--force'], |
| }, |
| { |
| # Update the Mac toolchain if necessary. |
| 'name': 'mac_toolchain', |
| 'pattern': '.', |
| 'condition': 'checkout_mac or checkout_ios', |
| 'action': ['python3', 'build/mac_toolchain.py'], |
| }, |
| |
| { |
| # Update the prebuilt clang toolchain. |
| # Note: On Win, this should run after win_toolchain, as it may use it. |
| 'name': 'clang', |
| 'pattern': '.', |
| 'action': ['python3', 'tools/clang/scripts/update.py'], |
| }, |
| |
| # Update LASTCHANGE. |
| { |
| 'name': 'lastchange', |
| 'pattern': '.', |
| 'action': ['python3', 'build/util/lastchange.py', '-o', |
| 'build/util/LASTCHANGE'] |
| }, |
| |
| # Don't let the DEPS'd-in depot_tools self-update. |
| { |
| 'name': 'disable_depot_tools_selfupdate', |
| 'pattern': '.', |
| 'action': [ |
| 'python3', |
| 'third_party/depot_tools/update_depot_tools_toggle.py', |
| '--disable', |
| ], |
| }, |
| |
| # Pull clang-format binaries using checked-in hashes. |
| { |
| 'name': 'clang_format_win', |
| 'pattern': '.', |
| 'condition': 'host_os == "win"', |
| 'action': [ 'python3', |
| 'third_party/depot_tools/download_from_google_storage.py', |
| '--no_resume', |
| '--no_auth', |
| '--bucket', 'chromium-clang-format', |
| '-s', 'buildtools/win/clang-format.exe.sha1', |
| ], |
| }, |
| { |
| 'name': 'clang_format_mac', |
| 'pattern': '.', |
| 'condition': 'host_os == "mac"', |
| 'action': [ 'python3', |
| 'third_party/depot_tools/download_from_google_storage.py', |
| '--no_resume', |
| '--no_auth', |
| '--bucket', 'chromium-clang-format', |
| '-s', 'buildtools/mac/clang-format.sha1', |
| ], |
| }, |
| { |
| 'name': 'clang_format_linux', |
| 'pattern': '.', |
| 'condition': 'host_os == "linux"', |
| 'action': [ 'python3', |
| 'third_party/depot_tools/download_from_google_storage.py', |
| '--no_resume', |
| '--no_auth', |
| '--bucket', 'chromium-clang-format', |
| '-s', 'buildtools/linux64/clang-format.sha1', |
| ], |
| }, |
| |
| ] |
| |