From 7a9c86b8d5e94a71f00948ff9282c87d521db6c7 Mon Sep 17 00:00:00 2001 From: Kaushik Iska Date: Thu, 24 Oct 2019 12:34:40 -0700 Subject: [PATCH] [fuchsia] [packaging] undle host binaries per runtime_mode (#13335) --- tools/fuchsia/fuchsia_host_bundle.gni | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/fuchsia/fuchsia_host_bundle.gni b/tools/fuchsia/fuchsia_host_bundle.gni index a7d99fbdb..c933d893d 100644 --- a/tools/fuchsia/fuchsia_host_bundle.gni +++ b/tools/fuchsia/fuchsia_host_bundle.gni @@ -2,9 +2,13 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. +import("$flutter_root/common/fuchsia_config.gni") + template("fuchsia_host_bundle") { assert(defined(invoker.name), "'name' must be defined for $target_name.") - dest_dir = "${root_out_dir}/host_bundle/${invoker.name}-${host_os}-${host_cpu}" + + _dest_dir_base = "${root_out_dir}/host_bundle" + _dest_dir = "${_dest_dir_base}/${invoker.name}-${flutter_runtime_mode}-${host_os}-${host_cpu}" copy(target_name) { if (defined(invoker.deps)) { @@ -14,7 +18,7 @@ template("fuchsia_host_bundle") { sources = invoker.sources outputs = [ - "$dest_dir/{{source_file_part}}", + "${_dest_dir}/{{source_file_part}}", ] } } -- GitLab