blob: 665eea4fae09756e4c70ea6cc6cf87e9f77ed3f7 [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/rust/rustc_binary.gni")
import("//build/package.gni")
rustc_binary("bin") {
name = "sl4f"
with_unit_tests = true
deps = [
"//garnet/lib/rust/crates/fuchsia-bluetooth",
"//garnet/public/fidl/fuchsia.bluetooth:fuchsia.bluetooth-rustc",
"//garnet/public/fidl/fuchsia.bluetooth.gatt:fuchsia.bluetooth.gatt-rustc",
"//garnet/public/fidl/fuchsia.bluetooth.le:fuchsia.bluetooth.le-rustc",
"//garnet/public/lib/fidl/rust/fidl",
"//garnet/public/rust/crates/fdio",
"//garnet/public/rust/crates/fuchsia-app",
"//garnet/public/rust/crates/fuchsia-async",
"//garnet/public/rust/crates/fuchsia-syslog",
"//garnet/public/rust/crates/fuchsia-vfs/fuchsia-vfs-watcher",
"//garnet/public/rust/crates/fuchsia-zircon",
"//third_party/rust-crates/rustc_deps:failure",
"//third_party/rust-crates/rustc_deps:futures-preview",
"//third_party/rust-crates/rustc_deps:parking_lot",
"//third_party/rust-crates/rustc_deps:rand",
"//third_party/rust-crates/rustc_deps:rouille",
"//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:slab",
]
}
package("sl4f") {
deps = [
":bin",
]
binary = "rust_crates/sl4f"
}
package("sl4f-tests") {
testonly = true
deps = [
":bin"
]
tests = [
{
name = "sl4f_bin_test_rustc"
dest = "sl4f_bin_test_rustc"
}
]
}