From 2c23bcd91000298f5a7fd87b934665bfe5a3f062 Mon Sep 17 00:00:00 2001 From: Zachary Anderson Date: Fri, 28 Oct 2022 16:49:53 -0700 Subject: [PATCH] Add top-level target for Windows/Android gen_snapshot --- BUILD.gn | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/BUILD.gn b/BUILD.gn index e8e8699be07ed..60615f520c68c 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -251,3 +251,13 @@ if (is_fuchsia && enable_unittests) { deps = [ "//flutter/shell/platform/fuchsia:tests" ] } } + +# On Windows, when targeting Android, we only build gen_snapshot. This +# top-level target provides a convenient shorthand for the full path into the +# Dart tree, and is less ambiguous than specifying the binary to build since +# we can specify the toolchain to use, too. +if (host_os == "win") { + group("gen_snapshot") { + deps = [ "//third_party/dart/runtime/bin:gen_snapshot($host_toolchain)" ] + } +}