diff --git a/flutter_frontend_server/BUILD.gn b/flutter_frontend_server/BUILD.gn index 37740acaab8f1..7aa7f2751d54a 100644 --- a/flutter_frontend_server/BUILD.gn +++ b/flutter_frontend_server/BUILD.gn @@ -2,7 +2,45 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. -if (!is_fuchsia_host && !is_fuchsia) { +if (is_fuchsia_host || is_fuchsia) { + import("//build/dart/dart_library.gni") + import("//build/dart/dart_tool.gni") + + dart_library("flutter_frontend_server") { + disable_analysis = true + package_name = "flutter_frontend_server" + + sources = [ + "server.dart", + ] + + deps = [ + "//third_party/dart-pkg/pub/args", + "//third_party/dart-pkg/pub/path", + "//third_party/dart-pkg/pub/usage", + "//third_party/dart/pkg/build_integration", + "//third_party/dart/pkg/dev_compiler", + "//third_party/dart/pkg/front_end", + "//third_party/dart/pkg/frontend_server", + "//third_party/dart/pkg/kernel", + "//third_party/dart/pkg/vm", + ] + } + + dart_tool("frontend_server_tool") { + main_dart = "bin/starter.dart" + source_dir = "." + disable_analysis = true + output_name = "frontend_server" + + sources = [] + + deps = [ + ":flutter_frontend_server", + ] + + } +} else { import("//third_party/dart/utils/application_snapshot.gni") frontend_server_files = diff --git a/frontend_server/BUILD.gn b/frontend_server/BUILD.gn deleted file mode 100644 index c4060a5df66ba..0000000000000 --- a/frontend_server/BUILD.gn +++ /dev/null @@ -1,41 +0,0 @@ -# Copyright 2013 The Flutter Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -if (is_fuchsia_host || is_fuchsia) { - import("//build/dart/dart_library.gni") - import("//build/dart/dart_tool.gni") - - dart_library("flutter_frontend_server") { - disable_analysis = true - package_name = "flutter_frontend_server" - - sources = [ - "server.dart", - ] - - deps = [ - "//third_party/dart-pkg/pub/args", - "//third_party/dart-pkg/pub/path", - "//third_party/dart-pkg/pub/usage", - "//third_party/dart/pkg/build_integration", - "//third_party/dart/pkg/front_end", - "//third_party/dart/pkg/frontend_server", - "//third_party/dart/pkg/kernel", - "//third_party/dart/pkg/vm", - ] - } - - dart_tool("frontend_server_tool") { - main_dart = "bin/starter.dart" - source_dir = "../flutter_frontend_server" - disable_analysis = true - output_name = "frontend_server" - - sources = [] - - deps = [ - ":flutter_frontend_server", - ] - } -}