blob: d5c9f17b084e18fb09684a75bd9c1e0315add765 [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")
import("//build/testing/environments.gni")
rustc_binary("bin") {
name = "odu"
with_unit_tests = true
edition = "2018"
deps = [
"//garnet/public/lib/fidl/rust/fidl",
"//garnet/public/rust/fdio",
"//garnet/public/rust/fuchsia-app",
"//garnet/public/rust/fuchsia-async",
"//garnet/public/rust/fuchsia-zircon",
"//third_party/rust_crates:byteorder",
"//third_party/rust_crates:failure",
"//third_party/rust_crates:lazy_static",
"//third_party/rust_crates:libc",
"//third_party/rust_crates:log",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:serde_derive",
"//third_party/rust_crates:serde_json",
]
}
package("odu") {
deps = [
":bin",
]
binaries = [
{
name = "odu"
shell = true
},
]
meta = [
{
path = rebase_path("meta/odu.cmx")
dest = "odu.cmx"
},
]
}
test_package("odu_tests") {
deps = [
":bin_test",
]
tests = [
{
name = "odu_bin_test"
dest = "odu_bin_test"
environments = basic_envs
},
]
}