blob: c38d4a21d364a11832d288a1abf83ce52adb7647 [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("//src/sys/build/components.gni")
rustc_binary("element_manager_bin") {
name = "element_manager"
with_unit_tests = true
edition = "2018"
deps = [
"//sdk/fidl/fuchsia.element:fuchsia.element-rustc",
"//sdk/fidl/fuchsia.sys2:fuchsia.sys2-rustc",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/syslog/rust:syslog",
"//src/lib/zircon/rust:fuchsia-zircon",
"//src/session/lib/element_management",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:thiserror",
]
test_deps = [
"//src/lib/test_util",
"//third_party/rust_crates:lazy_static",
]
sources = [ "src/main.rs" ]
}
fuchsia_package_with_single_component("element_manager") {
manifest = "meta/element_manager.cml"
deps = [ ":element_manager_bin" ]
}
fuchsia_unittest_package("element_manager_tests") {
manifest = "meta/element_manager_bin_test.cml"
deps = [ ":element_manager_bin_test" ]
}