blob: c7e9ed523c31d7b5901401aef9195bec50202cea [file] [log] [blame]
# Copyright 2019 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 = "dev_authenticator"
with_unit_tests = true
edition = "2018"
deps = [
"//sdk/fidl/fuchsia.auth:fuchsia.auth-rustc",
"//sdk/fidl/fuchsia.identity.authentication:fuchsia.identity.authentication-rustc",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//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:getopts",
"//third_party/rust_crates:lazy_static",
"//third_party/rust_crates:log",
]
}
package("dev_authenticator") {
deps = [ ":bin" ]
binary = "dev_authenticator"
meta = [
{
path = rebase_path("meta/dev_authenticator_always_succeed.cmx")
dest = "dev_authenticator_always_succeed.cmx"
},
{
path =
rebase_path("meta/dev_authenticator_always_fail_authentication.cmx")
dest = "dev_authenticator_always_fail_authentication.cmx"
},
]
}