[dart_component][hello_world] Add a hello world dart component. Following PRs will incorporate this in an integration test (flutter/engine#33465)
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
# 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.
|
||||
|
||||
group("tests") {
|
||||
testonly = true
|
||||
deps = [ "hello_world:hello_world_dart" ]
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
# 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.
|
||||
|
||||
import("//flutter/tools/fuchsia/dart/dart_component.gni")
|
||||
import("//flutter/tools/fuchsia/dart/dart_library.gni")
|
||||
import("//flutter/tools/fuchsia/gn-sdk/package.gni")
|
||||
|
||||
dart_library("lib") {
|
||||
testonly = true
|
||||
package_name = "hello_world"
|
||||
language_version = "2.12"
|
||||
source_dir = "."
|
||||
sources = [ "main.dart" ]
|
||||
deps = []
|
||||
}
|
||||
|
||||
dart_component("hello-world-dart-component") {
|
||||
testonly = true
|
||||
manifest = "meta/hello-world.cml"
|
||||
main_package = "hello_world"
|
||||
component_name = "hello_world"
|
||||
deps = [ ":lib" ]
|
||||
}
|
||||
|
||||
fuchsia_component("hello_world_dart") {
|
||||
testonly = true
|
||||
deps = [ ":hello-world-dart-component" ]
|
||||
manifest = "meta/hello-world.cml"
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// 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.
|
||||
|
||||
void main() {
|
||||
print("Hello, World!");
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
program: {
|
||||
data: "data/hello_world",
|
||||
runner: "dart_jit_runner"
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user