| # Copyright 2023 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/components.gni") | 
 | import("//build/rust/rustc_binary.gni") | 
 |  | 
 | rustc_binary("bin") { | 
 |   edition = "2021" | 
 |   output_name = "bt_opp_client" | 
 |   with_unit_tests = true | 
 |  | 
 |   deps = [ | 
 |     "//sdk/fidl/fuchsia.bluetooth.bredr:fuchsia.bluetooth.bredr_rust", | 
 |     "//src/connectivity/bluetooth/lib/bt-obex", | 
 |     "//src/connectivity/bluetooth/lib/fuchsia-bluetooth", | 
 |     "//src/connectivity/bluetooth/lib/profile-client", | 
 |     "//src/lib/fuchsia", | 
 |     "//src/lib/fuchsia-component", | 
 |     "//third_party/rust_crates:anyhow", | 
 |     "//third_party/rust_crates:futures", | 
 |     "//third_party/rust_crates:log", | 
 |   ] | 
 |  | 
 |   sources = [ "src/main.rs" ] | 
 |  | 
 |   configs -= [ "//build/config/rust/lints:allow_unused_results" ] | 
 | } | 
 |  | 
 | fuchsia_component("component") { | 
 |   component_name = "bt-opp-client" | 
 |   manifest = "meta/bt-opp-client.cml" | 
 |   deps = [ ":bin" ] | 
 | } | 
 |  | 
 | fuchsia_package("bt-opp-client") { | 
 |   deps = [ ":component" ] | 
 | } | 
 |  | 
 | fuchsia_unittest_package("bt-opp-client-tests") { | 
 |   deps = [ ":bin_test" ] | 
 | } | 
 |  | 
 | group("tests") { | 
 |   testonly = true | 
 |   deps = [ ":bt-opp-client-tests" ] | 
 | } |