| # 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/rust/rustc_binary.gni") |
| import("//build/package.gni") |
| |
| rustc_binary("bin") { |
| name = "bt_snoop" |
| edition = "2018" |
| with_unit_tests = true |
| |
| deps = [ |
| "//garnet/lib/rust/fuchsia-bluetooth", |
| "//garnet/public/fidl/fuchsia.bluetooth:fuchsia.bluetooth-rustc", |
| "//garnet/public/fidl/fuchsia.bluetooth.snoop:fuchsia.bluetooth.snoop-rustc", |
| "//garnet/public/lib/fidl/rust/fidl", |
| "//garnet/public/rust/fuchsia-async", |
| "//garnet/public/rust/fuchsia-app", |
| "//garnet/public/rust/fuchsia-syslog", |
| "//garnet/public/rust/fuchsia-vfs/fuchsia-vfs-watcher", |
| "//garnet/public/rust/fuchsia-zircon", |
| "//third_party/rust-crates/rustc_deps:failure", |
| "//third_party/rust-crates/rustc_deps:futures-preview", |
| "//third_party/rust-crates/rustc_deps:structopt", |
| "//third_party/rust-crates/rustc_deps:pin-utils", |
| ] |
| } |
| |
| package("bt-snoop") { |
| deps = [ |
| ":bin", |
| ] |
| |
| binary = "rust_crates/bt_snoop" |
| |
| meta = [ |
| { |
| path = rebase_path("meta/bt-snoop.cmx") |
| dest = "bt-snoop.cmx" |
| }, |
| ] |
| } |
| |
| package("tests") { |
| testonly = true |
| |
| package_name = "bt-snoop-tests" |
| |
| deps = [ |
| ":bin" |
| ] |
| |
| tests = [ |
| { |
| name = "bt_snoop_bin_test_rustc" |
| dest = "bt-snoop-unittests" |
| } |
| ] |
| } |