From 47e891cc1d475c89eae873523e2a46f4541e69b0 Mon Sep 17 00:00:00 2001 From: "P.Y. Laligand" Date: Wed, 26 Apr 2017 10:37:28 -0700 Subject: [PATCH] Don't build the full FlutterTester bundle on Fuchsia. (flutter/engine#3629) The flutter_tester executable works just fine. --- .../flutter/shell/platform/darwin/BUILD.gn | 6 ++- .../shell/platform/darwin/desktop/BUILD.gn | 39 ++++++++++--------- 2 files changed, 26 insertions(+), 19 deletions(-) diff --git a/engine/src/flutter/shell/platform/darwin/BUILD.gn b/engine/src/flutter/shell/platform/darwin/BUILD.gn index 0055ace692..2b2518377c 100644 --- a/engine/src/flutter/shell/platform/darwin/BUILD.gn +++ b/engine/src/flutter/shell/platform/darwin/BUILD.gn @@ -7,9 +7,13 @@ assert(is_mac || is_ios) group("darwin") { if (is_mac) { deps = [ - "desktop:shell_application_bundle", "desktop:shell_standalone", ] + if (!is_fuchsia_host) { + deps += [ + "desktop:shell_application_bundle", + ] + } } else if (is_ios) { deps = [ "ios:flutter_framework", diff --git a/engine/src/flutter/shell/platform/darwin/desktop/BUILD.gn b/engine/src/flutter/shell/platform/darwin/desktop/BUILD.gn index 0c2b632a7f..ab0b781bcc 100644 --- a/engine/src/flutter/shell/platform/darwin/desktop/BUILD.gn +++ b/engine/src/flutter/shell/platform/darwin/desktop/BUILD.gn @@ -2,8 +2,6 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. -import("//build/config/mac/rules.gni") - assert(is_mac) source_set("mac_desktop_platform") { @@ -44,23 +42,28 @@ executable("shell_standalone") { ] } -resource_copy_mac("mac_desktop_resources") { - app_name = "FlutterTester" - if (is_fuchsia_host) { - resources = [ "//third_party/icu/common/icudtl.dat" ] - } else { - resources = [ "//third_party/icu/android/icudtl.dat" ] +if (!is_fuchsia_host) { + + import("//build/config/mac/rules.gni") + + resource_copy_mac("mac_desktop_resources") { + app_name = "FlutterTester" + if (is_fuchsia_host) { + resources = [ "//third_party/icu/common/icudtl.dat" ] + } else { + resources = [ "//third_party/icu/android/icudtl.dat" ] + } + bundle_directory = "." } - bundle_directory = "." -} -mac_app("shell_application_bundle") { - app_name = "FlutterTester" - info_plist = "Info.plist" - xibs = [ "flutter_mac.xib" ] + mac_app("shell_application_bundle") { + app_name = "FlutterTester" + info_plist = "Info.plist" + xibs = [ "flutter_mac.xib" ] - deps = [ - ":mac_desktop_platform", - ":mac_desktop_resources", - ] + deps = [ + ":mac_desktop_platform", + ":mac_desktop_resources", + ] + } }