blob: 624e4c5b43b1cf7532559c390c9c1531ccc79f58 [file] [log] [blame]
# Copyright 2022 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
load("@rules_fuchsia//flutter:defs.bzl", "dart_package", "flutter_application")
load(
"@rules_fuchsia//fuchsia:defs.bzl",
"fuchsia_component",
"fuchsia_component_manifest",
"fuchsia_package_resource",
)
dart_package(
name = "pkg",
package_name = "hello_world_flutter",
srcs = glob(["lib/**/*.dart"]),
deps = [
"//third_party/dart-pkg:flutter",
],
)
flutter_application(
name = "app",
application_name = "flutter",
dart_pkg = ":pkg",
script_file = "lib/main.dart",
)
fuchsia_component_manifest(
name = "manifest",
src = "meta/flutter.cml",
)
fuchsia_package_resource(
name = "resource",
src = "resources/hello.txt",
dest = "data/hello.txt",
)
fuchsia_component(
name = "flutter",
manifest = ":manifest",
visibility = [
"//src/examples/hello_workstation:__pkg__",
],
deps = [
":app",
":resource",
],
)