blob: 7fc86a873e9def1c892279a2ee8a9bfbeb04cad0 [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")
rustc_binary("bin") {
name = "bt_pairing_tool"
edition = "2018"
deps = [
"//sdk/fidl/fuchsia.bluetooth.sys:fuchsia.bluetooth.sys-rustc",
"//src/connectivity/bluetooth/lib/fuchsia-bluetooth",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/zircon/rust:fuchsia-zircon",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:argh",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:thiserror",
]
sources = [
"src/main.rs",
"src/pairing.rs",
]
}
package("bt-pairing-tool") {
name = "bt_pairing_tool"
deps = [ ":bin" ]
binaries = [
{
name = "bt_pairing_tool"
dest = "bt-pairing-tool"
shell = true
},
]
}