mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-05 19:41:12 +08:00
This reverts commit86a7f83986. Reason for revert: fixed sync on Mac Original change's description: > Revert "Update to Node 16" > > This reverts commit69fd14af2a. > > Reason for revert: Breaks gclient sync on mac: https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8831691191675479761/+/u/gclient_runhooks/stdout > > Original change's description: > > Update to Node 16 > > > > Chromium updated to Node 16, so we can do so too. > > > > DISABLE_THIRD_PARTY_CHECK=Updating Node > > R=szuend@chromium.org > > > > Bug: 1248945 > > Change-Id: Ibd983d3e94a849aa19ffd8b4cf36951c61748c93 > > Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3253581 > > Reviewed-by: Simon Zünd <szuend@chromium.org> > > Commit-Queue: Simon Zünd <szuend@chromium.org> > > Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org> > > Bug: 1248945 > Change-Id: Ie30e45513212cd8e6a88532ee14431741c181057 > No-Presubmit: true > No-Tree-Checks: true > No-Try: true > Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3257541 > Auto-Submit: Simon Zünd <szuend@chromium.org> > Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> > Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> DISABLE_THIRD_PARTY_CHECK=Updating Node Bug: 1248945 Change-Id: I15473467092ddf463a941c2b5531ff53874981a5 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3257662 Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org> Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org> Reviewed-by: Simon Zünd <szuend@chromium.org>
252 lines
8.3 KiB
Python
252 lines
8.3 KiB
Python
# Copyright 2019 The Chromium Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
use_relative_paths = True
|
|
|
|
vars = {
|
|
'build_with_chromium': False,
|
|
|
|
# By default, do not checkout the re-client binaries.
|
|
'checkout_reclient': False,
|
|
|
|
'build_url': 'https://chromium.googlesource.com/chromium/src/build.git',
|
|
'build_revision': '21f6fd1856cd0b3bafdc4da221e4ad859cb38225',
|
|
|
|
'buildtools_url': 'https://chromium.googlesource.com/chromium/src/buildtools.git',
|
|
'buildtools_revision': '80e4f838faaf50e18629ae630df1d421f255a62a',
|
|
|
|
'depot_tools_url': 'https://chromium.googlesource.com/chromium/tools/depot_tools.git',
|
|
'depot_tools_revision': 'aebf6247c9f293c8461e22a6145649bc3d797b35',
|
|
|
|
'inspector_protocol_url': 'https://chromium.googlesource.com/deps/inspector_protocol',
|
|
'inspector_protocol_revision': 'd45d496fc94a2d7a2f79ccda3dc038bf5d9d62a7',
|
|
|
|
'clang_format_url': 'https://chromium.googlesource.com/external/github.com/llvm/llvm-project/clang/tools/clang-format.git',
|
|
'clang_format_revision': '99876cacf78329e5f99c244dbe42ccd1654517a0',
|
|
|
|
'emscripten_tag': '6ab7fc5622a67e6111d07c4ba61c8d3c8fc33ed2',
|
|
|
|
# GN CIPD package version.
|
|
'gn_version': 'git_revision:8926696a4186279489cc2b8d768533e61bba73d7',
|
|
|
|
# reclient CIPD package version
|
|
'reclient_version': 're_client_version:0.19.2.319f839',
|
|
|
|
# Chromium build number for unit tests. It should be regularly updated to
|
|
# the content of https://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64/LAST_CHANGE
|
|
'chromium_linux': '934421',
|
|
# the content of https://commondatastorage.googleapis.com/chromium-browser-snapshots/Win_x64/LAST_CHANGE
|
|
'chromium_win': '934420',
|
|
# the content of https://commondatastorage.googleapis.com/chromium-browser-snapshots/Mac/LAST_CHANGE
|
|
'chromium_mac': '934416',
|
|
}
|
|
|
|
# Only these hosts are allowed for dependencies in this DEPS file.
|
|
# If you need to add a new host, contact chrome infrastracture team.
|
|
allowed_hosts = [ 'chromium.googlesource.com' ]
|
|
|
|
deps = {
|
|
'buildtools/clang_format/script':
|
|
Var('clang_format_url') + '@' + Var('clang_format_revision'),
|
|
|
|
'buildtools':
|
|
Var('buildtools_url') + '@' + Var('buildtools_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-amd64',
|
|
'version': Var('gn_version'),
|
|
}
|
|
],
|
|
'dep_type': 'cipd',
|
|
'condition': 'host_os == "mac"',
|
|
},
|
|
'buildtools/win': {
|
|
'packages': [
|
|
{
|
|
'package': 'gn/gn/windows-amd64',
|
|
'version': Var('gn_version'),
|
|
}
|
|
],
|
|
'dep_type': 'cipd',
|
|
'condition': 'host_os == "win"',
|
|
},
|
|
'buildtools/reclient': {
|
|
'packages': [
|
|
{
|
|
'package': 'infra/rbe/client/${{platform}}',
|
|
'version': Var('reclient_version'),
|
|
}
|
|
],
|
|
'dep_type': 'cipd',
|
|
'condition': '(host_os == "linux" or host_os == "win") and checkout_reclient',
|
|
},
|
|
'build':
|
|
Var('build_url') + '@' + Var('build_revision'),
|
|
'third_party/depot_tools':
|
|
Var('depot_tools_url') + '@' + Var('depot_tools_revision'),
|
|
'third_party/inspector_protocol':
|
|
Var('inspector_protocol_url') + '@' + Var('inspector_protocol_revision'),
|
|
}
|
|
|
|
hooks = [
|
|
# Pull down Node binaries for WebUI toolchain.
|
|
{
|
|
'name': 'node_linux64',
|
|
'pattern': '.',
|
|
'condition': 'host_os == "linux" and build_with_chromium == False',
|
|
'action': [ 'python',
|
|
'third_party/depot_tools/download_from_google_storage.py',
|
|
'--no_resume',
|
|
'--extract',
|
|
'--no_auth',
|
|
'--bucket', 'chromium-nodejs/16.13.0',
|
|
'-s', 'third_party/node/linux/node-linux-x64.tar.gz.sha1',
|
|
],
|
|
},
|
|
{
|
|
'name': 'node_mac',
|
|
'pattern': '.',
|
|
'condition': 'host_os == "mac" and build_with_chromium == False',
|
|
'action': [ 'python',
|
|
'third_party/depot_tools/download_from_google_storage.py',
|
|
'--no_resume',
|
|
'--extract',
|
|
'--no_auth',
|
|
'--bucket', 'chromium-nodejs/16.13.0',
|
|
'-s', 'third_party/node/mac/node-darwin-x64.tar.gz.sha1',
|
|
],
|
|
},
|
|
{
|
|
'name': 'node_win',
|
|
'pattern': '.',
|
|
'condition': 'host_os == "win" and build_with_chromium == False',
|
|
'action': [ 'python',
|
|
'third_party/depot_tools/download_from_google_storage.py',
|
|
'--no_resume',
|
|
'--no_auth',
|
|
'--bucket', 'chromium-nodejs/16.13.0',
|
|
'-s', 'third_party/node/win/node.exe.sha1',
|
|
],
|
|
},
|
|
|
|
{
|
|
# Ensure that the DEPS'd "depot_tools" has its self-update capability
|
|
# disabled.
|
|
'name': 'disable_depot_tools_selfupdate',
|
|
'pattern': '.',
|
|
'action': [
|
|
'python',
|
|
'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" and build_with_chromium == False',
|
|
'action': [ 'python',
|
|
'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" and build_with_chromium == False',
|
|
'action': [ 'python',
|
|
'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" and build_with_chromium == False',
|
|
'action': [ 'python',
|
|
'third_party/depot_tools/download_from_google_storage.py',
|
|
'--no_resume',
|
|
'--no_auth',
|
|
'--bucket', 'chromium-clang-format',
|
|
'-s', 'buildtools/linux64/clang-format.sha1',
|
|
],
|
|
},
|
|
|
|
# Pull chromium from common storage
|
|
{
|
|
'name': 'download_chromium_win',
|
|
'pattern': '.',
|
|
'condition': 'host_os == "win" and build_with_chromium == False',
|
|
'action': [ 'python',
|
|
'scripts/deps/download_chromium.py',
|
|
'https://commondatastorage.googleapis.com/chromium-browser-snapshots/Win_x64/' + Var('chromium_win') + '/chrome-win.zip',
|
|
'third_party/chrome',
|
|
'chrome-win/chrome.exe',
|
|
Var('chromium_win'),
|
|
],
|
|
},
|
|
{
|
|
'name': 'download_chromium_mac',
|
|
'pattern': '.',
|
|
'condition': 'host_os == "mac" and build_with_chromium == False',
|
|
'action': [ 'python',
|
|
'scripts/deps/download_chromium.py',
|
|
'https://commondatastorage.googleapis.com/chromium-browser-snapshots/Mac/' + Var('chromium_mac') + '/chrome-mac.zip',
|
|
'third_party/chrome',
|
|
'chrome-mac/Chromium.app/Contents',
|
|
Var('chromium_mac'),
|
|
],
|
|
},
|
|
{
|
|
'name': 'download_chromium_linux',
|
|
'pattern': '.',
|
|
'condition': 'host_os == "linux" and build_with_chromium == False',
|
|
'action': [ 'python',
|
|
'scripts/deps/download_chromium.py',
|
|
'https://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64/' + Var('chromium_linux') + '/chrome-linux.zip',
|
|
'third_party/chrome',
|
|
'chrome-linux/chrome',
|
|
Var('chromium_linux'),
|
|
],
|
|
},
|
|
{
|
|
'name': 'sysroot_x64',
|
|
'pattern': '.',
|
|
'condition': 'checkout_linux and checkout_x64',
|
|
'action': ['python', 'build/linux/sysroot_scripts/install-sysroot.py',
|
|
'--arch=x64'],
|
|
},
|
|
{
|
|
'name': 'emscripten',
|
|
'pattern': '.',
|
|
'condition': 'build_with_chromium == False',
|
|
'action': ['python', 'scripts/deps/download_emscripten.py', Var('emscripten_tag'), 'third_party/emscripten-releases'],
|
|
},
|
|
{
|
|
'name': 'VS Code settings',
|
|
'pattern': '.',
|
|
'condition': 'build_with_chromium == False',
|
|
'action': ['python', 'third_party/node/node.py', '--output', 'scripts/deps/sync-vscode-settings.js']
|
|
},
|
|
]
|