blob: 5a74e6a807af487eb29caa892676bf07ba499504 [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")
rustc_binary("bin") {
name = "ril_qmi"
edition = "2018"
with_unit_tests = true
deps = [
"//garnet/lib/telephony/qmi-protocol",
"//garnet/public/fidl/fuchsia.telephony.ril:fuchsia.telephony.ril-rustc",
"//garnet/public/lib/fidl/rust/fidl",
"//garnet/public/rust/fuchsia-app",
"//garnet/public/rust/fuchsia-async",
"//garnet/public/rust/fuchsia-syslog",
"//garnet/public/rust/fuchsia-zircon",
"//third_party/rust-crates/rustc_deps:bytes",
"//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:pretty_assertions",
"//third_party/rust-crates/rustc_deps:slab",
]
}
package("ril-qmi") {
deps = [
":bin",
]
binary = "rust_crates/ril_qmi"
meta = [
{
path = rebase_path("meta/ril-qmi.cmx")
dest = "ril-qmi.cmx"
},
]
}
package("ril-qmi-tests") {
testonly = true
package_name = "ril-qmi-tests"
deps = [
":bin",
]
tests = [
{
name = "ril_qmi_bin_test"
dest = "ril-qmi-tests"
},
]
}