Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 7aa1ac1

Browse files
download_fuchsia_deps
1 parent 9e928f6 commit 7aa1ac1

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

DEPS

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,12 @@ vars = {
107107
# //flutter/tools/gn.
108108
'mac_sdk_min': '10.14',
109109

110+
# Checkout Fuchsia dependencies only on Linux. This is the umbrella flag which
111+
# controls the behavior of all fuchsia related flags. I.e. any fuchsia related
112+
# logic or condition may not work if this flag is False.
113+
# TODO(zijiehe): Make this condition more strict to only download fuchsia
114+
# dependencies when necessary: b/40935282
115+
'download_fuchsia_deps': 'host_os == "linux"',
110116
# Downloads the fuchsia SDK as listed in fuchsia_sdk_path var. This variable
111117
# is currently only used for the Fuchsia LSC process and is not intended for
112118
# local development.
@@ -1013,7 +1019,7 @@ deps = {
10131019
'version': 'L6_XzizcJqjneCvGA941vq-Dpu0FPwhdyfqJ0qXDUG0C'
10141020
}
10151021
],
1016-
'condition': 'host_os == "linux" and not download_fuchsia_sdk',
1022+
'condition': 'download_fuchsia_deps and not download_fuchsia_sdk',
10171023
'dep_type': 'cipd',
10181024
},
10191025

@@ -1024,7 +1030,7 @@ deps = {
10241030
'version': Var('fuchsia_test_scripts_version'),
10251031
}
10261032
],
1027-
'condition': 'host_os == "linux"',
1033+
'condition': 'download_fuchsia_deps',
10281034
'dep_type': 'cipd',
10291035
},
10301036

@@ -1035,7 +1041,7 @@ deps = {
10351041
'version': Var('fuchsia_gn_sdk_version'),
10361042
}
10371043
],
1038-
'condition': 'host_os == "linux"',
1044+
'condition': 'download_fuchsia_deps',
10391045
'dep_type': 'cipd',
10401046
},
10411047

@@ -1129,7 +1135,7 @@ hooks = [
11291135
{
11301136
'name': 'Download Fuchsia SDK',
11311137
'pattern': '.',
1132-
'condition': 'download_fuchsia_sdk',
1138+
'condition': 'download_fuchsia_deps and download_fuchsia_sdk',
11331139
'action': [
11341140
'python3',
11351141
'src/flutter/tools/download_fuchsia_sdk.py',
@@ -1244,7 +1250,7 @@ hooks = [
12441250
{
12451251
'name': 'Generate Fuchsia GN build rules',
12461252
'pattern': '.',
1247-
'condition': 'host_os == "linux"',
1253+
'condition': 'download_fuchsia_deps',
12481254
'action': [
12491255
'python3',
12501256
'src/flutter/tools/fuchsia/with_envs.py',

0 commit comments

Comments
 (0)