Supports building with RBE on a Windows host. (flutter/engine#49877)
Requires https://github.com/flutter/buildroot/pull/820
This commit is contained in:
20
DEPS
20
DEPS
@@ -50,7 +50,7 @@ vars = {
|
||||
# https://chrome-infra-packages.appspot.com/p/fuchsia/third_party/goma/client
|
||||
'goma_version': ' git_revision:41b3bcb64014144a844153fd5588c36411fffb56',
|
||||
|
||||
'reclient_version': 'git_revision:f3883c2237b0eb9cc9524cb571b5ab8378f257e4',
|
||||
'reclient_version': 'git_revision:f61c232b70bc425f0b562480312b114c444d460d',
|
||||
|
||||
'gcloud_version': 'version:2@444.0.0.chromium.3',
|
||||
|
||||
@@ -274,7 +274,10 @@ allowed_hosts = [
|
||||
]
|
||||
|
||||
deps = {
|
||||
'src': 'https://github.com/flutter/buildroot.git' + '@' + '71c9a9987171ef3f8b60a9e0b346bce30ee65933',
|
||||
'src': 'https://github.com/flutter/buildroot.git' + '@' + '4c8d0040fca0fff675b487618ebaa8b7a8259858',
|
||||
|
||||
'src/flutter/third_party/depot_tools':
|
||||
Var('chromium_git') + '/chromium/tools/depot_tools.git' + '@' + '580b4ff3f5cd0dcaa2eacda28cefe0f45320e8f7',
|
||||
|
||||
'src/flutter/third_party/rapidjson':
|
||||
Var('flutter_git') + '/third_party/rapidjson' + '@' + 'ef3564c5c8824989393b87df25355baf35ff544b',
|
||||
@@ -942,11 +945,22 @@ deps = {
|
||||
'dep_type': 'cipd',
|
||||
},
|
||||
|
||||
'src/buildtools/windows-x64/reclient': {
|
||||
'packages': [
|
||||
{
|
||||
'package': 'infra/rbe/client/${{platform}}',
|
||||
'version': Var('reclient_version'),
|
||||
}
|
||||
],
|
||||
'condition': 'use_rbe and download_windows_deps',
|
||||
'dep_type': 'cipd',
|
||||
},
|
||||
|
||||
'src/flutter/build/rbe': {
|
||||
'packages': [
|
||||
{
|
||||
'package': 'flutter_internal/rbe/reclient_cfgs',
|
||||
'version': 'U42C0v8jI-_YREjd8rbDEt0evvqvLWJ_NTkaiJ_Clt8C',
|
||||
'version': 'CWmlhStMKG4dZhy-dW1ZQbnEB7ZhBS04itNBL-0yLvEC',
|
||||
}
|
||||
],
|
||||
'condition': 'use_rbe',
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
"os=Windows-10"
|
||||
],
|
||||
"gclient_variables": {
|
||||
"download_android_deps": false
|
||||
"download_android_deps": false,
|
||||
"use_rbe": true
|
||||
},
|
||||
"dependencies": [
|
||||
{
|
||||
@@ -16,7 +17,9 @@
|
||||
"--runtime-mode",
|
||||
"debug",
|
||||
"--unoptimized",
|
||||
"--prebuilt-dart-sdk"
|
||||
"--prebuilt-dart-sdk",
|
||||
"--rbe",
|
||||
"--no-goma"
|
||||
],
|
||||
"name": "host_debug_unopt",
|
||||
"ninja": {
|
||||
|
||||
@@ -456,6 +456,7 @@
|
||||
../../../flutter/third_party/accessibility/gfx/range/range_unittest.cc
|
||||
../../../flutter/third_party/accessibility/gfx/test
|
||||
../../../flutter/third_party/benchmark
|
||||
../../../flutter/third_party/depot_tools
|
||||
../../../flutter/third_party/expat/.git
|
||||
../../../flutter/third_party/expat/.github
|
||||
../../../flutter/third_party/expat/.gitignore
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
Signature: f835ab00d16b708da196110898b39ac6
|
||||
Signature: 7910511393c57825374f577cbf765019
|
||||
|
||||
|
||||
@@ -215,13 +215,6 @@ def setup_rbe(args):
|
||||
if not args.rbe:
|
||||
return rbe_gn_args
|
||||
|
||||
if get_host_os() not in ['linux', 'mac']:
|
||||
print(
|
||||
'The --rbe flag has no effect. RBE is currently only supported on '
|
||||
'macOS and Linux.'
|
||||
)
|
||||
return rbe_gn_args
|
||||
|
||||
rbe_gn_args['use_rbe'] = True
|
||||
|
||||
# When running in CI, the recipes use their own rbe install, and take
|
||||
@@ -237,9 +230,15 @@ def setup_rbe(args):
|
||||
'reclient',
|
||||
)
|
||||
bootstrap_path = os.path.join(cipd_reclient_dir, 'bootstrap')
|
||||
bootstrap_path = bootstrap_path + '.exe' if get_host_os(
|
||||
) == 'win' else bootstrap_path
|
||||
reproxy_path = os.path.join(cipd_reclient_dir, 'reproxy')
|
||||
rbe_cfg_path = os.path.join(
|
||||
SRC_ROOT, 'flutter', 'build', 'rbe', 'reclient.cfg'
|
||||
SRC_ROOT,
|
||||
'flutter',
|
||||
'build',
|
||||
'rbe',
|
||||
'reclient-' + get_host_os() + '.cfg',
|
||||
)
|
||||
bootstrap_cmd = [
|
||||
bootstrap_path,
|
||||
|
||||
@@ -30,6 +30,7 @@ final Set<String> skippedPaths = <String>{
|
||||
r'flutter/prebuilts',
|
||||
r'flutter/sky/packages/sky_engine/LICENSE',
|
||||
r'flutter/third_party/benchmark', // only used by tests
|
||||
r'flutter/third_party/depot_tools', // only used for the Windows build system.
|
||||
r'flutter/third_party/expat/expat/doc',
|
||||
r'flutter/third_party/expat/expat/win32/expat.iss',
|
||||
r'flutter/third_party/flatbuffers/android',
|
||||
|
||||
Reference in New Issue
Block a user