| # Copyright 2021 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") |
| |
| group("tests") { |
| testonly = true |
| deps = [ ":input-pipeline-tests" ] |
| } |
| |
| rustc_binary("input-pipeline-bin") { |
| output_name = "input-pipeline" |
| with_unit_tests = true |
| edition = "2021" |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.input.injection:fuchsia.input.injection-rustc", |
| "//sdk/fidl/fuchsia.recovery.policy:fuchsia.recovery.policy-rustc", |
| "//sdk/fidl/fuchsia.recovery.ui:fuchsia.recovery.ui-rustc", |
| "//sdk/fidl/fuchsia.ui.policy:fuchsia.ui.policy-rustc", |
| "//sdk/fidl/fuchsia.ui.scenic:fuchsia.ui.scenic-rustc", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/fuchsia-async", |
| "//src/lib/fuchsia-component", |
| "//src/lib/syslog/rust:syslog", |
| "//src/lib/trace/rust:trace-provider", |
| "//src/ui/lib/input_pipeline", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:async-trait", |
| "//third_party/rust_crates:futures", |
| ] |
| |
| sources = [ |
| "src/input_handlers.rs", |
| "src/main.rs", |
| ] |
| } |
| |
| fuchsia_component("component-v2") { |
| component_name = "input-pipeline" |
| manifest = "meta/input-pipeline.cml" |
| deps = [ ":input-pipeline-bin" ] |
| } |
| |
| fuchsia_package("input-pipeline") { |
| deps = [ ":component-v2" ] |
| } |
| |
| fuchsia_unittest_package("input-pipeline-tests") { |
| deps = [ ":input-pipeline-bin_test" ] |
| } |