| # 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_library.gni") |
| import("//build/test/test_package.gni") |
| import("//build/testing/environments.gni") |
| |
| rustc_library("fuchsia-bluetooth") { |
| name = "fuchsia_bluetooth" |
| version = "0.1.0" |
| edition = "2018" |
| with_unit_tests = true |
| |
| deps = [ |
| "//garnet/public/lib/fidl/rust/fidl", |
| "//garnet/public/rust/fdio", |
| "//garnet/public/rust/fuchsia-async", |
| "//garnet/public/rust/fuchsia-zircon", |
| "//sdk/fidl/fuchsia.bluetooth:fuchsia.bluetooth-rustc", |
| "//sdk/fidl/fuchsia.bluetooth.control:fuchsia.bluetooth.control-rustc", |
| "//sdk/fidl/fuchsia.bluetooth.host:fuchsia.bluetooth.host-rustc", |
| "//sdk/fidl/fuchsia.bluetooth.le:fuchsia.bluetooth.le-rustc", |
| "//third_party/rust_crates:failure", |
| "//third_party/rust_crates:futures-preview", |
| "//third_party/rust_crates:lazy_static", |
| "//third_party/rust_crates:parking_lot", |
| "//third_party/rust_crates:slab", |
| "//zircon/public/fidl/fuchsia-device:fuchsia-device-rustc", |
| "//zircon/public/fidl/fuchsia-device-test:fuchsia-device-test-rustc", |
| "//zircon/public/fidl/fuchsia-hardware-bluetooth:fuchsia-hardware-bluetooth-rustc", |
| ] |
| } |
| |
| test_package("tests") { |
| package_name = "bluetooth-crate-tests" |
| |
| deps = [ |
| ":fuchsia-bluetooth_test", |
| ] |
| |
| tests = [ |
| { |
| name = "fuchsia_bluetooth_lib_test" |
| dest = "bluetooth-crate-unittests" |
| environments = basic_envs |
| }, |
| ] |
| } |