blob: 94524a8d31f32bc0c972f68fecc2dd95eac1467b [file] [log] [blame]
# Copyright 2018 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/package.gni")
import("//build/rust/rustc_binary.gni")
import("//build/testing/environments.gni")
rustc_binary("bin") {
name = "power_manager"
with_unit_tests = true
edition = "2018"
deps = [
"//garnet/public/lib/fidl/rust/fidl",
"//garnet/public/rust/fdio",
"//garnet/public/rust/fuchsia-async",
"//garnet/public/rust/fuchsia-component",
"//garnet/public/rust/fuchsia-syslog",
"//garnet/public/rust/fuchsia-vfs/fuchsia-vfs-watcher",
"//garnet/public/rust/fuchsia-zircon",
"//sdk/fidl/fuchsia.power:fuchsia.power-rustc",
"//third_party/rust_crates:failure",
"//third_party/rust_crates:futures-preview",
"//third_party/rust_crates:libc",
"//third_party/rust_crates:parking_lot",
]
}
package("power_manager") {
deps = [
":bin",
]
binary = "power_manager"
meta = [
{
path = rebase_path("meta/power_manager.cmx")
dest = "power_manager.cmx"
},
]
}
package("power_manager_tests") {
testonly = true
deps = [
":bin",
]
tests = [
{
name = "power_manager_bin_test"
environments = basic_envs
},
]
}