mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-28 00:45:04 +08:00
Bug: none Change-Id: Ib1bd7c39388001e1ea7bfa8b7ea447006929e4ad Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4211397 Bot-Commit: Devtools Autoroller <devtools-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com> Commit-Queue: Devtools Autoroller <devtools-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
310 lines
11 KiB
Python
310 lines
11 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
|
|
gclient_gn_args_file = 'build/config/gclient_args.gni'
|
|
gclient_gn_args = [
|
|
]
|
|
|
|
vars = {
|
|
'build_with_chromium': False,
|
|
|
|
'build_url': 'https://chromium.googlesource.com/chromium/src/build.git',
|
|
'build_revision': 'e0df145ecb560e48381b6dccf3b9c8b31aa95bcd',
|
|
|
|
'buildtools_url': 'https://chromium.googlesource.com/chromium/src/buildtools.git',
|
|
'buildtools_revision': '295c6e5037e358904aef73a21409896d58547ba6',
|
|
|
|
'depot_tools_url': 'https://chromium.googlesource.com/chromium/tools/depot_tools.git',
|
|
'depot_tools_revision': '3d072ab6fb49fd3d2116a41cee66d47c3d409299',
|
|
|
|
'inspector_protocol_url': 'https://chromium.googlesource.com/deps/inspector_protocol',
|
|
'inspector_protocol_revision': '231d3578b4bf2bec1c3d306e53621430003b4bae',
|
|
|
|
'clang_format_url': 'https://chromium.googlesource.com/external/github.com/llvm/llvm-project/clang/tools/clang-format.git',
|
|
'clang_format_revision': 'f97059df7f8b205064625cdb5f97b56668a125ef',
|
|
|
|
'emscripten_tag': 'ade9d780ff17c88d81aa13860361743e3c1e1396',
|
|
|
|
# GN CIPD package version.
|
|
'gn_version': 'git_revision:84c8431f3e03cc6226c59dd49637c15ea31169a1',
|
|
|
|
# ninja CIPD package version.
|
|
# https://chrome-infra-packages.appspot.com/p/infra/3pp/tools/ninja
|
|
'ninja_version': 'version:2@1.11.1.chromium.6',
|
|
|
|
# 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': '1099626',
|
|
# the content of https://commondatastorage.googleapis.com/chromium-browser-snapshots/Win_x64/LAST_CHANGE
|
|
'chromium_win': '1099561',
|
|
# the content of https://commondatastorage.googleapis.com/chromium-browser-snapshots/Mac/LAST_CHANGE
|
|
'chromium_mac': '1099615',
|
|
# the content of https://commondatastorage.googleapis.com/chromium-browser-snapshots/Mac_Arm/LAST_CHANGE
|
|
'chromium_mac_arm': '1099608',
|
|
}
|
|
|
|
# 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', 'chrome-infra-packages.appspot.com' ]
|
|
|
|
deps = {
|
|
'buildtools/clang_format/script': {
|
|
'url': Var('clang_format_url') + '@' + Var('clang_format_revision'),
|
|
'condition': 'build_with_chromium == False',
|
|
},
|
|
|
|
'buildtools': {
|
|
'url': Var('buildtools_url') + '@' + Var('buildtools_revision'),
|
|
'condition': 'build_with_chromium == False',
|
|
},
|
|
|
|
'buildtools/linux64': {
|
|
'packages': [
|
|
{
|
|
'package': 'gn/gn/linux-${{arch}}',
|
|
'version': Var('gn_version'),
|
|
}
|
|
],
|
|
'dep_type': 'cipd',
|
|
'condition': 'host_os == "linux" and build_with_chromium == False',
|
|
},
|
|
'buildtools/mac': {
|
|
'packages': [
|
|
{
|
|
'package': 'gn/gn/mac-${{arch}}',
|
|
'version': Var('gn_version'),
|
|
}
|
|
],
|
|
'dep_type': 'cipd',
|
|
'condition': 'host_os == "mac" and build_with_chromium == False',
|
|
},
|
|
'buildtools/win': {
|
|
'packages': [
|
|
{
|
|
'package': 'gn/gn/windows-${{arch}}',
|
|
'version': Var('gn_version'),
|
|
}
|
|
],
|
|
'dep_type': 'cipd',
|
|
'condition': 'host_os == "win" and build_with_chromium == False',
|
|
},
|
|
'third_party/esbuild': {
|
|
'packages': [
|
|
{
|
|
'package': 'infra/3pp/tools/esbuild/${{platform}}',
|
|
'version': 'version:2@0.14.13.chromium.2',
|
|
}
|
|
],
|
|
'dep_type': 'cipd',
|
|
},
|
|
|
|
'build': {
|
|
'url': Var('build_url') + '@' + Var('build_revision'),
|
|
'condition': 'build_with_chromium == False',
|
|
},
|
|
'third_party/depot_tools': {
|
|
'url': Var('depot_tools_url') + '@' + Var('depot_tools_revision'),
|
|
'condition': 'build_with_chromium == False',
|
|
},
|
|
'third_party/inspector_protocol': {
|
|
'url': Var('inspector_protocol_url') + '@' + Var('inspector_protocol_revision'),
|
|
'condition': 'build_with_chromium == False',
|
|
},
|
|
'third_party/ninja': {
|
|
'packages': [
|
|
{
|
|
'package': 'infra/3pp/tools/ninja/${{platform}}',
|
|
'version': Var('ninja_version'),
|
|
}
|
|
],
|
|
'dep_type': 'cipd',
|
|
'condition': 'build_with_chromium == False',
|
|
},
|
|
}
|
|
|
|
hooks = [
|
|
# Pull down Node binaries for WebUI toolchain.
|
|
{
|
|
'name': 'node_linux64',
|
|
'pattern': '.',
|
|
'condition': 'host_os == "linux" and build_with_chromium == False',
|
|
'action': [ 'python3',
|
|
'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': [ 'python3',
|
|
'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': [ 'python3',
|
|
'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': '.',
|
|
'condition': 'build_with_chromium == False',
|
|
'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" and build_with_chromium == False',
|
|
'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_x64',
|
|
'pattern': '.',
|
|
'condition': 'host_os == "mac" and build_with_chromium == False and host_cpu == "x64"',
|
|
'action': [ 'python3',
|
|
'third_party/depot_tools/download_from_google_storage.py',
|
|
'--no_resume',
|
|
'--no_auth',
|
|
'--bucket', 'chromium-clang-format',
|
|
'-s', 'buildtools/mac/clang-format.x64.sha1',
|
|
'-o', 'buildtools/mac/clang-format',
|
|
],
|
|
},
|
|
{
|
|
'name': 'clang_format_mac_arm64',
|
|
'pattern': '.',
|
|
'condition': 'host_os == "mac" and build_with_chromium == False and host_cpu == "arm64"',
|
|
'action': [ 'python3',
|
|
'third_party/depot_tools/download_from_google_storage.py',
|
|
'--no_resume',
|
|
'--no_auth',
|
|
'--bucket', 'chromium-clang-format',
|
|
'-s', 'buildtools/mac/clang-format.arm64.sha1',
|
|
'-o', 'buildtools/mac/clang-format',
|
|
],
|
|
},
|
|
{
|
|
'name': 'clang_format_linux',
|
|
'pattern': '.',
|
|
'condition': 'host_os == "linux" and build_with_chromium == False',
|
|
'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',
|
|
],
|
|
},
|
|
|
|
# Pull chromium from common storage
|
|
{
|
|
'name': 'download_chromium_win',
|
|
'pattern': '.',
|
|
'condition': 'host_os == "win" and build_with_chromium == False',
|
|
'action': [ 'python3',
|
|
'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 and host_cpu != "arm64"',
|
|
'action': [ 'python3',
|
|
'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_mac',
|
|
'pattern': '.',
|
|
'condition': 'host_os == "mac" and build_with_chromium == False and host_cpu == "arm64"',
|
|
'action': [ 'python3',
|
|
'scripts/deps/download_chromium.py',
|
|
'https://commondatastorage.googleapis.com/chromium-browser-snapshots/Mac_Arm/' + Var('chromium_mac_arm') + '/chrome-mac.zip',
|
|
'third_party/chrome',
|
|
'chrome-mac/Chromium.app/Contents',
|
|
Var('chromium_mac_arm'),
|
|
],
|
|
},
|
|
{
|
|
'name': 'download_chromium_linux',
|
|
'pattern': '.',
|
|
'condition': 'host_os == "linux" and build_with_chromium == False',
|
|
'action': [ 'python3',
|
|
'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'),
|
|
],
|
|
},
|
|
{
|
|
# Update LASTCHANGE for build script timestamps
|
|
'name': 'lastchange',
|
|
'condition': 'build_with_chromium == False',
|
|
'pattern': '.',
|
|
'action': ['python3', 'build/util/lastchange.py',
|
|
'-o', 'build/util/LASTCHANGE'],
|
|
},
|
|
{
|
|
'name': 'sysroot_x64',
|
|
'pattern': '.',
|
|
'condition': 'checkout_linux and checkout_x64 and build_with_chromium == False',
|
|
'action': ['python3', 'build/linux/sysroot_scripts/install-sysroot.py',
|
|
'--arch=x64'],
|
|
},
|
|
{
|
|
'name': 'emscripten',
|
|
'pattern': '.',
|
|
'condition': 'build_with_chromium == False',
|
|
'action': ['python3', 'scripts/deps/download_emscripten.py', Var('emscripten_tag'), 'third_party/emscripten-releases'],
|
|
},
|
|
{
|
|
'name': 'VS Code settings',
|
|
'pattern': '.',
|
|
'condition': 'build_with_chromium == False',
|
|
'action': ['python3', 'third_party/node/node.py', '--output', 'scripts/deps/sync-vscode-settings.js']
|
|
},
|
|
]
|