blob: 76dcc1f9fdac547269f70b8ff4910a0e3a0c2dc7 [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",
"//garnet/public/rust/fuchsia-merkle",
"//third_party/rust-crates/rustc_deps:failure",
"//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:byteorder",
"//third_party/rust_crates:lazy_static",
"//third_party/rust_crates:libc",
"//third_party/rust_crates:log",
]
}
package("odu") {
deps = [
":bin",
]
binaries = [
{
name = "odu"
shell = true
},
]
meta = [
{
path = rebase_path("meta/odu.cmx")
dest = "odu.cmx"
},
]
}
package("odu_tests") {
testonly = true
deps = [
":bin",
]
tests = [
{
name = "odu_bin_test"
dest = "odu_bin_test"
environments = basic_envs
},
]
}