blob: 0d1695619f1bef67f6f055d0028e82389d618df7 [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")
import("//build/test/test_package.gni")
import("//build/testing/environments.gni")
rustc_binary("bin") {
name = "bt_snoop"
edition = "2018"
with_unit_tests = true
deps = [
"//garnet/public/lib/fidl/rust/fidl",
"//garnet/public/rust/fuchsia-async",
"//garnet/public/rust/fuchsia-component",
"//garnet/public/rust/fuchsia-syslog",
"//garnet/public/rust/fuchsia-vfs/fuchsia-vfs-watcher",
"//garnet/public/rust/fuchsia-zircon",
"//sdk/fidl/fuchsia.bluetooth:fuchsia.bluetooth-rustc",
"//sdk/fidl/fuchsia.bluetooth.snoop:fuchsia.bluetooth.snoop-rustc",
"//src/connectivity/bluetooth/lib/fuchsia-bluetooth",
"//third_party/rust_crates:failure",
"//third_party/rust_crates:futures-preview",
"//third_party/rust_crates:pin-utils",
"//third_party/rust_crates:structopt",
]
}
package("bt-snoop") {
deps = [
":bin",
]
binary = "bt_snoop"
meta = [
{
path = rebase_path("meta/bt-snoop.cmx")
dest = "bt-snoop.cmx"
},
]
}
unittest_package("tests") {
package_name = "bt-snoop-tests"
deps = [
":bin_test",
]
tests = [
{
name = "bt_snoop_bin_test"
dest = "bt-snoop-unittests"
environments = basic_envs
},
]
}