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

Commit b0c2356

Browse files
committed
Fix targets in build_fuchsia_artifacts
1 parent 86f1b64 commit b0c2356

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

tools/fuchsia/build_fuchsia_artifacts.py

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -221,15 +221,7 @@ def GetRunnerTarget(runner_type, product, aot):
221221
target += 'runner'
222222
return base + target
223223

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, build_tests, additional_targets=[]):
233225
out_dir = 'fuchsia_%s_%s' % (runtime_mode, arch)
234226
flags = [
235227
'--fuchsia',
@@ -243,7 +235,7 @@ def BuildTarget(runtime_mode, arch, product, enable_lto, additional_targets=[]):
243235
flags.append('--no-lto')
244236

245237
RunGN(out_dir, flags)
246-
BuildNinjaTargets(out_dir, GetTargetsToBuild(product))
238+
BuildNinjaTargets(out_dir, [ 'flutter' ] + additional_targets)
247239

248240
return
249241

@@ -283,6 +275,12 @@ def main():
283275
default=False,
284276
help='If set, skips building and just creates packages.')
285277

278+
parser.add_argument(
279+
'--build-tests',
280+
action='store_true',
281+
default=False,
282+
help='If set, adds the test fars to the build.')
283+
286284
parser.add_argument(
287285
'--targets',
288286
default='',
@@ -305,7 +303,7 @@ def main():
305303
product = product_modes[i]
306304
if build_mode == 'all' or runtime_mode == build_mode:
307305
if not args.skip_build:
308-
BuildTarget(runtime_mode, arch, product, enable_lto,
306+
BuildTarget(runtime_mode, arch, enable_lto, args.build_tests,
309307
args.targets.split(","))
310308
BuildBucket(runtime_mode, arch, product)
311309

0 commit comments

Comments
 (0)