@@ -107,6 +107,12 @@ vars = {
107
107
# //flutter/tools/gn.
108
108
'mac_sdk_min' : '10.14' ,
109
109
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"' ,
110
116
# Downloads the fuchsia SDK as listed in fuchsia_sdk_path var. This variable
111
117
# is currently only used for the Fuchsia LSC process and is not intended for
112
118
# local development.
@@ -1013,7 +1019,7 @@ deps = {
1013
1019
'version' : 'L6_XzizcJqjneCvGA941vq-Dpu0FPwhdyfqJ0qXDUG0C'
1014
1020
}
1015
1021
],
1016
- 'condition' : 'host_os == "linux" and not download_fuchsia_sdk' ,
1022
+ 'condition' : 'download_fuchsia_deps and not download_fuchsia_sdk' ,
1017
1023
'dep_type' : 'cipd' ,
1018
1024
},
1019
1025
@@ -1024,7 +1030,7 @@ deps = {
1024
1030
'version' : Var ('fuchsia_test_scripts_version' ),
1025
1031
}
1026
1032
],
1027
- 'condition' : 'host_os == "linux" ' ,
1033
+ 'condition' : 'download_fuchsia_deps ' ,
1028
1034
'dep_type' : 'cipd' ,
1029
1035
},
1030
1036
@@ -1035,7 +1041,7 @@ deps = {
1035
1041
'version' : Var ('fuchsia_gn_sdk_version' ),
1036
1042
}
1037
1043
],
1038
- 'condition' : 'host_os == "linux" ' ,
1044
+ 'condition' : 'download_fuchsia_deps ' ,
1039
1045
'dep_type' : 'cipd' ,
1040
1046
},
1041
1047
@@ -1129,7 +1135,7 @@ hooks = [
1129
1135
{
1130
1136
'name' : 'Download Fuchsia SDK' ,
1131
1137
'pattern' : '.' ,
1132
- 'condition' : 'download_fuchsia_sdk' ,
1138
+ 'condition' : 'download_fuchsia_deps and download_fuchsia_sdk' ,
1133
1139
'action' : [
1134
1140
'python3' ,
1135
1141
'src/flutter/tools/download_fuchsia_sdk.py' ,
@@ -1244,7 +1250,7 @@ hooks = [
1244
1250
{
1245
1251
'name' : 'Generate Fuchsia GN build rules' ,
1246
1252
'pattern' : '.' ,
1247
- 'condition' : 'host_os == "linux" ' ,
1253
+ 'condition' : 'download_fuchsia_deps ' ,
1248
1254
'action' : [
1249
1255
'python3' ,
1250
1256
'src/flutter/tools/fuchsia/with_envs.py' ,
0 commit comments