| # 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 | |
| }, | |
| ] | |
| } |