blob: 9d7e1121ed6092ad64a5f7019a6bba53f65c7ffe [file] [log] [blame]
# Copyright 2020 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.
import("//build/component/config.gni")
import("//build/components.gni")
import("//build/rust/rustc_binary.gni")
import("//build/rust/rustc_test.gni")
rustc_binary("empty") {
edition = "2024"
source_root = "empty.rs"
name = "empty"
sources = [ "empty.rs" ]
}
rustc_binary("use-unoffered") {
edition = "2024"
source_root = "use-unoffered.rs"
output_name = "use_unoffered"
deps = [
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/sys/component_manager/tests/fidl:components_rust",
"//third_party/rust_crates:futures",
]
sources = [ "use-unoffered.rs" ]
}
rustc_binary("archive-reader") {
edition = "2024"
source_root = "archive-reader.rs"
output_name = "archive_reader"
deps = [
"//src/lib/diagnostics/data",
"//src/lib/diagnostics/reader",
"//src/lib/fuchsia",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
]
sources = [ "archive-reader.rs" ]
}
fuchsia_component("reader") {
testonly = true
manifest = "meta/reader.cml"
component_name = "reader"
deps = [ ":archive-reader" ]
}
fuchsia_component("empty-component") {
testonly = true
manifest = "meta/empty.cml"
component_name = "empty"
deps = [ ":empty" ]
}
fuchsia_component("without-use") {
testonly = true
manifest = "meta/without-use.cml"
component_name = "without-use"
deps = [ ":use-unoffered" ]
}
fuchsia_component("use-unoffered-component") {
testonly = true
manifest = "meta/use-unoffered.cml"
component_name = "use-unoffered"
deps = [ ":use-unoffered" ]
}
fuchsia_component("optional-use-unoffered-component") {
testonly = true
manifest = "meta/optional-use-unoffered.cml"
component_name = "optional-use-unoffered"
deps = [ ":use-unoffered" ]
}
fuchsia_component("optional-use-from-void-component") {
testonly = true
manifest = "meta/optional-use-from-void.cml"
component_name = "optional-use-from-void"
deps = [ ":use-unoffered" ]
}
fuchsia_component("offers-to-children-unavailable") {
testonly = true
manifest = "meta/offers-to-children-unavailable.cml"
component_name = "offers-to-children-unavailable"
}
fuchsia_component("offers-to-children-unavailable-but-optional") {
testonly = true
manifest = "meta/offers-to-children-unavailable-but-optional.cml"
component_name = "offers-to-children-unavailable-but-optional"
}
fuchsia_component("routing-tests") {
testonly = true
manifest = "meta/routing-tests.cml"
component_name = "routing-tests"
}
group("all-components") {
testonly = true
deps = [
":empty-component",
":offers-to-children-unavailable",
":offers-to-children-unavailable-but-optional",
":optional-use-from-void-component",
":optional-use-unoffered-component",
":reader",
":routing-tests",
":use-unoffered-component",
":without-use",
]
}