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

Commit c831bc6

Browse files
lin-eriknaudzghebre
authored andcommitted
Use fuchsia_component
1 parent 3345497 commit c831bc6

File tree

1 file changed

+45
-0
lines changed
  • shell/platform/fuchsia/dart_runner/tests/startup_integration_test/dart_jit_runner/dart_jit_echo_server

1 file changed

+45
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Copyright 2013 The Flutter Authors. All rights reserved.
2+
# Use of this source code is governed by a BSD-style license that can be
3+
# found in the LICENSE file.
4+
5+
import("//build/fuchsia/sdk.gni")
6+
7+
import("//flutter/tools/fuchsia/dart/dart_component.gni")
8+
import("//flutter/tools/fuchsia/dart/dart_library.gni")
9+
import("//flutter/tools/fuchsia/gn-sdk/package.gni")
10+
11+
dart_library("lib") {
12+
testonly = true
13+
package_name = "dart_jit_echo_server"
14+
null_safe = true
15+
16+
source_dir = "."
17+
sources = [ "main.dart" ]
18+
19+
deps = [
20+
"//flutter/shell/platform/fuchsia/dart_runner/tests/fidl/flutter.example.echo:echo",
21+
"//flutter/tools/fuchsia/dart:fidl",
22+
"//flutter/tools/fuchsia/dart:fuchsia_services",
23+
"//flutter/tools/fuchsia/fidl:fuchsia.logger",
24+
"//flutter/tools/fuchsia/fidl:fuchsia.test",
25+
]
26+
}
27+
28+
# Dart component that launches a simple "Hello World" application using JIT
29+
dart_component("component") {
30+
testonly = true
31+
null_safe = true
32+
33+
manifest = "meta/dart-jit-echo-server.cml"
34+
main_package = "dart_jit_echo_server"
35+
component_name = "dart_jit_echo_server"
36+
37+
deps = [ ":lib" ]
38+
}
39+
40+
fuchsia_component("package") {
41+
testonly = true
42+
#package_name = "dart_jit_echo_server"
43+
deps = [ ":component" ]
44+
manifest = "meta/dart-jit-echo-server.cml"
45+
}

0 commit comments

Comments
 (0)