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

Commit 2c23bcd

Browse files
committed
Add top-level target for Windows/Android gen_snapshot
1 parent 2f8b4e7 commit 2c23bcd

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

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)