Files
708d5fe414 chore: bump chromium to 158.0.8127.0 (main) (#55378)
* chore: bump chromium in DEPS to 158.0.8126.0

* chore: update siso revision

* chore: update patches

* build: rebase siso patches onto siso dfc32e4

Upstream https://chromium-review.googlesource.com/c/build/+/8609448
(146ec3de) passes grpc.WaitForHandlers(true) to the reapitest fake
server, conflicting with our UnaryInterceptor plumbing on the same
grpc.NewServer() call. Seed our server options with upstream's.

Skip-Lint: siso patch rebase; siso CLs don't map to Chromium versions
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore: bump chromium in DEPS to 158.0.8127.0

* chore: update patches

---------

Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com>
Co-authored-by: electron-claude[bot] <279139701+electron-claude[bot]@users.noreply.github.com>
Co-authored-by: clavin <clavin@electronjs.org>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 12:28:28 -04:00

248 lines
7.9 KiB
Python

gclient_gn_args_from = 'src'
vars = {
'chromium_version':
'158.0.8127.0',
'node_version':
'v24.22.1',
'nan_version':
'a1b4ba8f4bf2f46d2f270dbbb7bc0af482dc3e32',
'squirrel.mac_version':
'5c9e2133c09d6f8e2e3c5a45c5b0ffc00448c58a',
'reactiveobjc_version':
'74ab5baccc6f7202c8ac69a8d1e152c29dc1ea76',
'mantle_version':
'2a8e2123a3931038179ee06105c9e6ec336b12ea',
'sparkle_version':
'79bc9e872948e47877e76f194cb0c8e0412b0b90',
'chromium_git': 'https://chromium.googlesource.com',
'electron_git': 'https://github.com/electron',
'nodejs_git': 'https://github.com/nodejs',
'squirrel_git': 'https://github.com/Squirrel',
'reactiveobjc_git': 'https://github.com/ReactiveCocoa',
'mantle_git': 'https://github.com/Mantle',
'sparkle_git': 'https://github.com/sparkle-project',
# The path of the sysroots.json file.
'sysroots_json_path': 'electron/script/sysroots.json',
# To be able to build clean Chromium from sources.
'apply_patches': True,
# To use an mtime cache for patched files to speed up builds.
'use_mtime_cache': True,
# To allow in-house builds to checkout those manually.
'checkout_chromium': True,
'checkout_node': True,
'checkout_nan': True,
# Chrome's published PGO profiles are not consumed - Electron release
# builds use Electron-generated profiles (see build/pgo_profiles/). Set to
# True (and set the pgo_data_path GN arg) to build against Chrome's
# profiles instead.
'checkout_pgo_profiles': False,
# Can be used to disable the sysroot hooks.
'install_sysroot': True,
'use_rts': False,
'mac_xcode_version': 'default',
'generate_location_tags': False,
# To allow running hooks without parsing the DEPS tree
'process_deps': True,
'checkout_nacl':
False,
'checkout_openxr':
False,
'build_with_chromium':
True,
'checkout_android':
False,
'checkout_android_native_support':
False,
'checkout_clang_tidy':
True,
}
deps = {
'src': {
'url': (Var("chromium_git")) + '/chromium/src.git@' + (Var("chromium_version")),
'condition': 'checkout_chromium and process_deps',
},
'src/third_party/nan': {
'url': (Var("nodejs_git")) + '/nan.git@' + (Var("nan_version")),
'condition': 'checkout_nan and process_deps',
},
'src/third_party/electron_node': {
'url': (Var("nodejs_git")) + '/node.git@' + (Var("node_version")),
'condition': 'checkout_node and process_deps',
},
'src/third_party/squirrel.mac': {
'url': Var("squirrel_git") + '/Squirrel.Mac.git@' + Var("squirrel.mac_version"),
'condition': 'process_deps',
},
'src/third_party/squirrel.mac/vendor/ReactiveObjC': {
'url': Var("reactiveobjc_git") + '/ReactiveObjC.git@' + Var("reactiveobjc_version"),
'condition': 'process_deps'
},
'src/third_party/squirrel.mac/vendor/Mantle': {
'url': Var("mantle_git") + '/Mantle.git@' + Var("mantle_version"),
'condition': 'process_deps',
},
'src/third_party/squirrel.mac/vendor/Sparkle': {
'url': Var("sparkle_git") + '/Sparkle.git@' + Var("sparkle_version"),
'condition': 'process_deps',
},
}
pre_deps_hooks = [
{
'name': 'generate_mtime_cache',
'condition': '(checkout_chromium and apply_patches and use_mtime_cache) and process_deps',
'pattern': 'src/electron',
'action': [
'python3',
'src/electron/script/patches-mtime-cache.py',
'generate',
'--cache-file',
'src/electron/patches/mtime-cache.json',
'--patches-config',
'src/electron/patches/config.json',
],
},
]
hooks = [
{
'name': 'patch_chromium',
'condition': '(checkout_chromium and apply_patches) and process_deps',
'pattern': 'src/electron',
'action': [
'python3',
'src/electron/script/apply_all_patches.py',
'src/electron/patches/config.json',
],
},
{
'name': 'apply_mtime_cache',
'condition': '(checkout_chromium and apply_patches and use_mtime_cache) and process_deps',
'pattern': 'src/electron',
'action': [
'python3',
'src/electron/script/patches-mtime-cache.py',
'apply',
'--cache-file',
'src/electron/patches/mtime-cache.json',
],
},
{
'name': 'electron_npm_deps',
'pattern': 'src/electron/package.json',
'action': [
'python3',
'-c',
'import os, subprocess; os.chdir(os.path.join("src", "electron")); subprocess.check_call(["node", ".yarn/releases/yarn-4.18.0.cjs", "install", "--immutable"]);',
],
},
{
# Keep src/electron/build/siso_revision in step with the siso commit this
# Chromium pins; CI builds siso from that file (see the script header).
'name': 'gen_siso_revision',
'condition': 'checkout_chromium and process_deps',
'pattern': 'src/electron',
'action': [
'node',
'src/electron/script/gen-siso-revision.js',
],
},
{
'name': 'sysroot_arm',
'pattern': '.',
'condition': 'install_sysroot and checkout_linux and checkout_arm',
'action': ['python3', 'src/build/linux/sysroot_scripts/install-sysroot.py',
'--sysroots-json-path=' + Var('sysroots_json_path'),
'--arch=arm'],
},
{
'name': 'sysroot_arm64',
'pattern': '.',
'condition': 'install_sysroot and checkout_linux and checkout_arm64',
'action': ['python3', 'src/build/linux/sysroot_scripts/install-sysroot.py',
'--sysroots-json-path=' + Var('sysroots_json_path'),
'--arch=arm64'],
},
{
'name': 'sysroot_x86',
'pattern': '.',
'condition': 'install_sysroot and checkout_linux and (checkout_x86 or checkout_x64)',
'action': ['python3', 'src/build/linux/sysroot_scripts/install-sysroot.py',
'--sysroots-json-path=' + Var('sysroots_json_path'),
'--arch=x86'],
},
{
'name': 'sysroot_mips',
'pattern': '.',
'condition': 'install_sysroot and checkout_linux and checkout_mips',
'action': ['python3', 'src/build/linux/sysroot_scripts/install-sysroot.py',
'--sysroots-json-path=' + Var('sysroots_json_path'),
'--arch=mips'],
},
{
'name': 'sysroot_mips64',
'pattern': '.',
'condition': 'install_sysroot and checkout_linux and checkout_mips64',
'action': ['python3', 'src/build/linux/sysroot_scripts/install-sysroot.py',
'--sysroots-json-path=' + Var('sysroots_json_path'),
'--arch=mips64el'],
},
{
'name': 'sysroot_x64',
'pattern': '.',
'condition': 'install_sysroot and checkout_linux and checkout_x64',
'action': ['python3', 'src/build/linux/sysroot_scripts/install-sysroot.py',
'--sysroots-json-path=' + Var('sysroots_json_path'),
'--arch=x64'],
},
# Electron-collected PGO profiles, consumed by official builds in place of
# Chrome's published profiles (which cannot cover Electron's code). The
# state files in src/electron/build/pgo_profiles name the profile to use;
# these hooks download them.
{
'name': 'electron_pgo_profiles_linux',
'pattern': 'src/electron/build/pgo_profiles',
'condition': 'checkout_linux and process_deps',
'action': ['python3', 'src/electron/script/pgo/download-profiles.py',
'--targets', 'linux-x64,linux-arm64'],
},
{
'name': 'electron_pgo_profiles_win',
'pattern': 'src/electron/build/pgo_profiles',
'condition': 'checkout_win and process_deps',
'action': ['python3', 'src/electron/script/pgo/download-profiles.py',
'--targets', 'win-x64,win-arm64'],
},
{
'name': 'electron_pgo_profiles_mac',
'pattern': 'src/electron/build/pgo_profiles',
'condition': 'checkout_mac and process_deps',
'action': ['python3', 'src/electron/script/pgo/download-profiles.py',
'--targets', 'macos-x64,macos-arm64'],
},
{
'name': 'electron_pgo_profiles_v8_builtins',
'pattern': 'src/electron/build/pgo_profiles',
'condition': 'process_deps',
'action': ['python3', 'src/electron/script/pgo/download-profiles.py',
'--targets', 'v8-builtins'],
},
]
recursedeps = [
'src',
]