[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:
Naud Ghebre
2022-05-18 17:30:57 -04:00
committed by GitHub
parent a922fa305e
commit d11e96acfe
4 changed files with 51 additions and 0 deletions

View File

@@ -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" ]
}

View File

@@ -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"
}

View File

@@ -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!");
}

View File

@@ -0,0 +1,6 @@
{
program: {
data: "data/hello_world",
runner: "dart_jit_runner"
},
}