| # 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/components.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/fuchsia-runtime", |
| "//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", |
| ] |
| |
| sources = [ |
| "src/main.rs", |
| "src/storage_unlock.rs", |
| ] |
| } |
| |
| fuchsia_component("dev_authenticator_always_succeed") { |
| deps = [ ":bin" ] |
| manifest = "meta/dev_authenticator_always_succeed.cmx" |
| } |
| |
| fuchsia_component("dev_authenticator_always_fail_authentication") { |
| deps = [ ":bin" ] |
| manifest = "meta/dev_authenticator_always_fail_authentication.cmx" |
| } |
| |
| fuchsia_package("dev_authenticator") { |
| deps = [ |
| ":dev_authenticator_always_fail_authentication", |
| ":dev_authenticator_always_succeed", |
| ] |
| } |