From 135615dd3d69542d06d049f9908e82bf3ddc1e26 Mon Sep 17 00:00:00 2001 From: Zachary Anderson Date: Mon, 31 Oct 2022 12:55:05 -0700 Subject: [PATCH] Add top-level target for Windows/Android gen_snapshot (flutter/engine#37134) --- engine/src/flutter/BUILD.gn | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/engine/src/flutter/BUILD.gn b/engine/src/flutter/BUILD.gn index e8e8699be0..60615f520c 100644 --- a/engine/src/flutter/BUILD.gn +++ b/engine/src/flutter/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)" ] + } +}