Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit a94ed34

Browse files
Merge the Fuchsia frontend_server build script into the new flutter_frontend_server target (#13145)
1 parent c482ff6 commit a94ed34

File tree

2 files changed

+39
-42
lines changed

2 files changed

+39
-42
lines changed

flutter_frontend_server/BUILD.gn

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,45 @@
22
# Use of this source code is governed by a BSD-style license that can be
33
# found in the LICENSE file.
44

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 {
644
import("//third_party/dart/utils/application_snapshot.gni")
745

846
frontend_server_files =

frontend_server/BUILD.gn

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)