blob: 685fea2d565f30b215da4c05e6fa24158d686db6 [file] [log] [blame]
# Copyright 2021 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//fuchsia:defs.bzl",
"fuchsia_component",
"fuchsia_component_manifest",
"fuchsia_package",
"fuchsia_package_archive",
"fuchsia_package_resource",
)
fuchsia_component_manifest(
name = "v2_manifest",
src = "my_component.cml",
includes = ["my_component_include.cml"],
)
fuchsia_component(
name = "component_v1",
manifest = "my_component.cmx",
)
fuchsia_component(
name = "component_v2",
manifest = ":v2_manifest",
deps = [
":resource",
],
)
fuchsia_package_resource(
name = "resource",
src = "text_file.txt",
dest = "data/text_file.txt",
)
fuchsia_package(
name = "my_package",
deps = [
":component_v1",
":component_v2",
],
)
fuchsia_package_archive(
name = "my_package_archive",
package = ":my_package",
)