blob: e4bdf071032ed0d52cd8d586e81b6f0af4dd1a8d [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/rust/rustc_binary.gni")
import("//build/rust/rustc_test.gni")
import("//src/sys/build/components.gni")
rustc_test("shutdown_integration_test_bin") {
name = "shutdown_integration_test"
edition = "2018"
source_root = "shutdown_integration.rs"
deps = [
"//src/lib/fuchsia-async",
"//src/sys/component_manager/testing:test_utils_lib",
"//third_party/rust_crates:anyhow",
]
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-async",
"//src/lib/fuchsia-component",
"//src/lib/syslog/rust:syslog",
"//third_party/rust_crates:anyhow",
]
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.cmx"
deps = [
":shutdown_integration_root",
":shutdown_integration_test_bin",
":system_controller_consumer",
]
}