| # 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_mgr" |
| edition = "2018" |
| |
| deps = [ |
| "//garnet/lib/bluetooth/fidl:fuchsia.bluetooth.host-rustc", |
| "//garnet/lib/rust/fuchsia-bluetooth", |
| "//garnet/public/fidl/fuchsia.bluetooth:fuchsia.bluetooth-rustc", |
| "//garnet/public/fidl/fuchsia.bluetooth.bredr:fuchsia.bluetooth.bredr-rustc", |
| "//garnet/public/fidl/fuchsia.bluetooth.control:fuchsia.bluetooth.control-rustc", |
| "//garnet/public/fidl/fuchsia.bluetooth.gatt:fuchsia.bluetooth.gatt-rustc", |
| "//garnet/public/fidl/fuchsia.bluetooth.le:fuchsia.bluetooth.le-rustc", |
| "//garnet/public/fidl/fuchsia.bluetooth.snoop:fuchsia.bluetooth.snoop-rustc", |
| "//garnet/public/lib/fidl/rust/fidl", |
| "//garnet/public/rust/fdio", |
| "//garnet/public/rust/fuchsia-app", |
| "//garnet/public/rust/fuchsia-async", |
| "//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:log", |
| "//third_party/rust-crates/rustc_deps:parking_lot", |
| "//third_party/rust-crates/rustc_deps:serde", |
| "//third_party/rust-crates/rustc_deps:serde_derive", |
| "//third_party/rust-crates/rustc_deps:serde_json", |
| "//third_party/rust-crates/rustc_deps:toml", |
| ] |
| } |
| |
| package("bt-mgr") { |
| deps = [ |
| ":bin", |
| ] |
| |
| binary = "rust_crates/bt_mgr" |
| |
| meta = [ |
| { |
| path = rebase_path("meta/bt-mgr.cmx") |
| dest = "bt-mgr.cmx" |
| }, |
| ] |
| |
| resources = [ |
| { |
| path = rebase_path("config/default.json") |
| dest = "default.json" |
| }, |
| ] |
| } |