提交 faa4aba8 编写于 作者: P P.Y. Laligand 提交者: GitHub

Don't build the full FlutterTester bundle on Fuchsia. (#3629)

The flutter_tester executable works just fine.
上级 cfcf10bb
...@@ -7,9 +7,13 @@ assert(is_mac || is_ios) ...@@ -7,9 +7,13 @@ assert(is_mac || is_ios)
group("darwin") { group("darwin") {
if (is_mac) { if (is_mac) {
deps = [ deps = [
"desktop:shell_application_bundle",
"desktop:shell_standalone", "desktop:shell_standalone",
] ]
if (!is_fuchsia_host) {
deps += [
"desktop:shell_application_bundle",
]
}
} else if (is_ios) { } else if (is_ios) {
deps = [ deps = [
"ios:flutter_framework", "ios:flutter_framework",
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
# Use of this source code is governed by a BSD-style license that can be # Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file. # found in the LICENSE file.
import("//build/config/mac/rules.gni")
assert(is_mac) assert(is_mac)
source_set("mac_desktop_platform") { source_set("mac_desktop_platform") {
...@@ -44,7 +42,11 @@ executable("shell_standalone") { ...@@ -44,7 +42,11 @@ executable("shell_standalone") {
] ]
} }
resource_copy_mac("mac_desktop_resources") { if (!is_fuchsia_host) {
import("//build/config/mac/rules.gni")
resource_copy_mac("mac_desktop_resources") {
app_name = "FlutterTester" app_name = "FlutterTester"
if (is_fuchsia_host) { if (is_fuchsia_host) {
resources = [ "//third_party/icu/common/icudtl.dat" ] resources = [ "//third_party/icu/common/icudtl.dat" ]
...@@ -52,9 +54,9 @@ resource_copy_mac("mac_desktop_resources") { ...@@ -52,9 +54,9 @@ resource_copy_mac("mac_desktop_resources") {
resources = [ "//third_party/icu/android/icudtl.dat" ] resources = [ "//third_party/icu/android/icudtl.dat" ]
} }
bundle_directory = "." bundle_directory = "."
} }
mac_app("shell_application_bundle") { mac_app("shell_application_bundle") {
app_name = "FlutterTester" app_name = "FlutterTester"
info_plist = "Info.plist" info_plist = "Info.plist"
xibs = [ "flutter_mac.xib" ] xibs = [ "flutter_mac.xib" ]
...@@ -63,4 +65,5 @@ mac_app("shell_application_bundle") { ...@@ -63,4 +65,5 @@ mac_app("shell_application_bundle") {
":mac_desktop_platform", ":mac_desktop_platform",
":mac_desktop_resources", ":mac_desktop_resources",
] ]
}
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册