blob: e90c1169031c4c1fc8761f1d9a9e06a61a2f2ddb [file]
# Copyright 2024 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 = "2024"
output_name = "bt_map_mce"
with_unit_tests = true
deps = [
"//sdk/fidl/fuchsia.bluetooth:fuchsia.bluetooth_rust",
"//sdk/fidl/fuchsia.bluetooth.bredr:fuchsia.bluetooth.bredr_rust",
"//sdk/fidl/fuchsia.bluetooth.map:fuchsia.bluetooth.map_rust",
"//sdk/rust/zx",
"//src/connectivity/bluetooth/lib/bt-map",
"//src/connectivity/bluetooth/lib/bt-obex",
"//src/connectivity/bluetooth/lib/bt-obex/objects",
"//src/connectivity/bluetooth/lib/fuchsia-bluetooth",
"//src/connectivity/bluetooth/lib/profile-client",
"//src/lib/diagnostics/inspect/rust",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/fuchsia-sync",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:async-trait",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
"//third_party/rust_crates:uuid",
]
test_deps = [
"//src/connectivity/bluetooth/lib/async-helpers:async-test-helpers",
"//src/connectivity/bluetooth/lib/packet-encoding",
"//src/lib/async-utils",
]
sources = [
"src/main.rs",
"src/message_access_service.rs",
"src/message_notification_service.rs",
"src/messaging_client.rs",
"src/profile.rs",
]
configs += [ "//build/config/rust/lints:deny_unused_results" ]
}
fuchsia_component("component") {
component_name = "bt-map-mce"
manifest = "meta/bt-map-mce.cml"
deps = [ ":bin" ]
}
fuchsia_package("bt-map-mce") {
deps = [ ":component" ]
}
fuchsia_unittest_package("bt-map-mce-unittests") {
test_specs = {
log_settings = {
max_severity = "ERROR"
}
}
deps = [ ":bin_test" ]
}
group("tests") {
testonly = true
deps = [ ":bt-map-mce-unittests" ]
}