blob: e69ac08fd0cbfa06bb4cfe58ff217fc0b83fd892 [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")
import("//build/test/test_package.gni")
rustc_binary("bin") {
name = "telephony"
edition = "2018"
with_unit_tests = true
deps = [
"//garnet/lib/rust/io_util",
"//sdk/fidl/fuchsia.telephony.manager:fuchsia.telephony.manager-rustc",
"//sdk/fidl/fuchsia.telephony.ril:fuchsia.telephony.ril-rustc",
"//src/connectivity/telephony/lib/qmi",
"//src/connectivity/telephony/tests/tel-dev:tel_dev",
"//src/lib/fdio/rust:fdio",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/inspect/rust/fuchsia-inspect",
"//src/lib/storage/fuchsia-vfs-watcher",
"//src/lib/syslog/rust:syslog",
"//src/lib/zircon/rust:fuchsia-zircon",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
"//third_party/rust_crates:parking_lot",
"//third_party/rust_crates:thiserror",
"//zircon/system/fidl/fuchsia-io:fuchsia-io-rustc",
]
}
package("telephony") {
deps = [ ":bin" ]
binary = "telephony"
meta = [
{
path = rebase_path("meta/telephony.cmx")
dest = "telephony.cmx"
},
]
}
group("tests") {
testonly = true
deps = [ ":telephony_tests" ]
}
test_package("telephony_tests") {
deps = [ ":bin_test" ]
tests = [
{
name = "telephony_bin_test"
environments = basic_envs
},
]
}