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

Commit 1a8ba7c

Browse files
authored
Add top-level target for Windows/Android gen_snapshot (#37134)
1 parent 96c0353 commit 1a8ba7c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

BUILD.gn

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,3 +251,13 @@ if (is_fuchsia && enable_unittests) {
251251
deps = [ "//flutter/shell/platform/fuchsia:tests" ]
252252
}
253253
}
254+
255+
# On Windows, when targeting Android, we only build gen_snapshot. This
256+
# top-level target provides a convenient shorthand for the full path into the
257+
# Dart tree, and is less ambiguous than specifying the binary to build since
258+
# we can specify the toolchain to use, too.
259+
if (host_os == "win") {
260+
group("gen_snapshot") {
261+
deps = [ "//third_party/dart/runtime/bin:gen_snapshot($host_toolchain)" ]
262+
}
263+
}

0 commit comments

Comments
 (0)