|
2 | 2 | # Use of this source code is governed by a BSD-style license that can be |
3 | 3 | # found in the LICENSE file. |
4 | 4 |
|
5 | | -if (!is_fuchsia_host && !is_fuchsia) { |
| 5 | +if (is_fuchsia_host || is_fuchsia) { |
| 6 | + import("//build/dart/dart_library.gni") |
| 7 | + import("//build/dart/dart_tool.gni") |
| 8 | + |
| 9 | + dart_library("flutter_frontend_server") { |
| 10 | + disable_analysis = true |
| 11 | + package_name = "flutter_frontend_server" |
| 12 | + |
| 13 | + sources = [ |
| 14 | + "server.dart", |
| 15 | + ] |
| 16 | + |
| 17 | + deps = [ |
| 18 | + "//third_party/dart-pkg/pub/args", |
| 19 | + "//third_party/dart-pkg/pub/path", |
| 20 | + "//third_party/dart-pkg/pub/usage", |
| 21 | + "//third_party/dart/pkg/build_integration", |
| 22 | + "//third_party/dart/pkg/dev_compiler", |
| 23 | + "//third_party/dart/pkg/front_end", |
| 24 | + "//third_party/dart/pkg/frontend_server", |
| 25 | + "//third_party/dart/pkg/kernel", |
| 26 | + "//third_party/dart/pkg/vm", |
| 27 | + ] |
| 28 | + } |
| 29 | + |
| 30 | + dart_tool("frontend_server_tool") { |
| 31 | + main_dart = "bin/starter.dart" |
| 32 | + source_dir = "." |
| 33 | + disable_analysis = true |
| 34 | + output_name = "frontend_server" |
| 35 | + |
| 36 | + sources = [] |
| 37 | + |
| 38 | + deps = [ |
| 39 | + ":flutter_frontend_server", |
| 40 | + ] |
| 41 | + |
| 42 | + } |
| 43 | +} else { |
6 | 44 | import("//third_party/dart/utils/application_snapshot.gni") |
7 | 45 |
|
8 | 46 | frontend_server_files = |
|
0 commit comments