blob: c4d72b405568fbb9c17998fb50a6301fb3e1fc39 [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/components.gni")
import("//build/rust/rustc_binary.gni")
import("//build/rust/rustc_test.gni")
rustc_test("shutdown_integration_test_bin") {
name = "shutdown_integration_test"
edition = "2018"
source_root = "shutdown_integration.rs"
deps = [
"//sdk/fidl/fuchsia.sys2:fuchsia.sys2-rustc",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component-test",
"//src/sys/lib/component-events",
]
sources = [ "shutdown_integration.rs" ]
}
rustc_binary("system_controller_client_bin") {
name = "system_controller_client"
edition = "2018"
source_root = "system_controller_client.rs"
deps = [
"//sdk/fidl/fuchsia.sys2:fuchsia.sys2-rustc",
"//src/lib/fuchsia",
"//src/lib/fuchsia-component",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:tracing",
]
sources = [ "system_controller_client.rs" ]
}
fuchsia_component("shutdown_integration_root") {
manifest = "meta/shutdown_integration_root.cml"
}
fuchsia_component("system_controller_consumer") {
deps = [ ":system_controller_client_bin" ]
manifest = "meta/system_controller_consumer.cml"
}
fuchsia_unittest_package("shutdown_integration_test") {
manifest = "meta/shutdown_integration_test.cml"
deps = [
":shutdown_integration_root",
":shutdown_integration_test_bin",
":system_controller_consumer",
"//src/sys/component_manager:component-manager-realm-builder-cmp",
]
}