From 5ff524e935d3f0e93ca7f2ab88975c8e09406a5d Mon Sep 17 00:00:00 2001 From: Mike Schuchardt Date: Fri, 27 Jan 2023 11:03:56 -0800 Subject: ci: Update GN toolchain --- .gn | 2 ++ build-gn/DEPS | 48 ++++++++++++++++++++++++------------------------ 2 files changed, 26 insertions(+), 24 deletions(-) diff --git a/.gn b/.gn index e190259e..5ac6b839 100644 --- a/.gn +++ b/.gn @@ -15,6 +15,8 @@ buildconfig = "//build/config/BUILDCONFIG.gn" secondary_source = "//build-gn/secondary/" +script_executable = "python3" + default_args = { clang_use_chrome_plugins = false use_custom_libcxx = false diff --git a/build-gn/DEPS b/build-gn/DEPS index 81cca43a..04feec57 100644 --- a/build-gn/DEPS +++ b/build-gn/DEPS @@ -1,57 +1,57 @@ +gclient_gn_args_file = 'build/config/gclient_args.gni' + vars = { 'chromium_git': 'https://chromium.googlesource.com', } deps = { - './build': { - 'url': '{chromium_git}/chromium/src/build.git@a660b0b9174e3a808f620222017566e8d1b2669b', + 'build': { + 'url': '{chromium_git}/chromium/src/build.git@1015724d82945f9ef7e51c6f804034ccf5f79951', + }, + + 'buildtools': { + 'url': '{chromium_git}/chromium/src/buildtools.git@3c7e3f1b8b1e4c0b6ec693430379cea682de78d6', }, - './buildtools': { - 'url': '{chromium_git}/chromium/src/buildtools.git@459baaf66bee809f6eb288e0215cf524f4d2429a', + 'buildtools/linux64': { + 'packages': [ + { + 'package': 'gn/gn/linux-${{arch}}', + 'version': 'git_revision:5e19d2fb166fbd4f6f32147fbb2f497091a54ad8', + } + ], + 'dep_type': 'cipd', + 'condition': 'host_os == "linux"', }, - './testing': { - 'url': '{chromium_git}/chromium/src/testing@083d633e752e7a57cbe62a468a06e51e28c49ee9', + 'testing': { + 'url': '{chromium_git}/chromium/src/testing@949b2864b6bd27656753b917c9aa7731dc7a06f6', }, - './tools/clang': { - 'url': '{chromium_git}/chromium/src/tools/clang.git@3114fbc11f9644c54dd0a4cdbfa867bac50ff983', + 'tools/clang': { + 'url': '{chromium_git}/chromium/src/tools/clang.git@566877f1ff1a5fa6beaca3ab4b47bd0b92eb614f', }, } hooks = [ - # Pull clang-format binaries using checked-in hashes. - { - 'name': 'clang_format_linux', - 'pattern': '.', - 'condition': 'host_os == "linux"', - 'action': [ 'download_from_google_storage', - '--no_resume', - '--platform=linux*', - '--no_auth', - '--bucket', 'chromium-clang-format', - '-s', './buildtools/linux64/clang-format.sha1', - ], - }, { 'name': 'sysroot_x64', 'pattern': '.', 'condition': 'checkout_linux and checkout_x64', - 'action': ['python', './build/linux/sysroot_scripts/install-sysroot.py', + 'action': ['python3', 'build/linux/sysroot_scripts/install-sysroot.py', '--arch=x64'], }, { # Note: On Win, this should run after win_toolchain, as it may use it. 'name': 'clang', 'pattern': '.', - 'action': ['python', './tools/clang/scripts/update.py'], + 'action': ['python3', 'tools/clang/scripts/update.py'], }, ] recursedeps = [ # buildtools provides clang_format. - './buildtools', + 'buildtools', ] -- cgit v1.2.3