@@ -221,15 +221,7 @@ def GetRunnerTarget(runner_type, product, aot):
221
221
target += 'runner'
222
222
return base + target
223
223
224
-
225
- def GetTargetsToBuild (product = False , additional_targets = []):
226
- targets_to_build = [
227
- 'flutter/shell/platform/fuchsia:fuchsia' ,
228
- ] + additional_targets
229
- return targets_to_build
230
-
231
-
232
- def BuildTarget (runtime_mode , arch , product , enable_lto , additional_targets = []):
224
+ def BuildTarget (runtime_mode , arch , enable_lto , additional_targets = []):
233
225
out_dir = 'fuchsia_%s_%s' % (runtime_mode , arch )
234
226
flags = [
235
227
'--fuchsia' ,
@@ -243,7 +235,7 @@ def BuildTarget(runtime_mode, arch, product, enable_lto, additional_targets=[]):
243
235
flags .append ('--no-lto' )
244
236
245
237
RunGN (out_dir , flags )
246
- BuildNinjaTargets (out_dir , GetTargetsToBuild ( product ) )
238
+ BuildNinjaTargets (out_dir , [ 'flutter' ] + additional_targets )
247
239
248
240
return
249
241
@@ -305,8 +297,7 @@ def main():
305
297
product = product_modes [i ]
306
298
if build_mode == 'all' or runtime_mode == build_mode :
307
299
if not args .skip_build :
308
- BuildTarget (runtime_mode , arch , product , enable_lto ,
309
- args .targets .split ("," ))
300
+ BuildTarget (runtime_mode , arch , enable_lto , args .targets .split ("," ))
310
301
BuildBucket (runtime_mode , arch , product )
311
302
312
303
if args .upload :
0 commit comments