| # 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/rust/rustc_library.gni") |
| import("//src/sys/build/components.gni") |
| |
| rustc_library("input-synthesis") { |
| name = "input-synthesis" |
| with_unit_tests = true |
| version = "0.1.0" |
| edition = "2018" |
| deps = [ |
| "//sdk/fidl/fuchsia.input:fuchsia.input-rustc", |
| "//sdk/fidl/fuchsia.input.injection:fuchsia.input.injection-rustc", |
| "//sdk/fidl/fuchsia.input.report:fuchsia.input.report-rustc", |
| "//sdk/fidl/fuchsia.ui.input:fuchsia.ui.input-rustc", |
| "//sdk/fidl/fuchsia.ui.input2:fuchsia.ui.input2-rustc", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/fuchsia-async", |
| "//src/lib/fuchsia-component", |
| "//src/lib/zircon/rust:fuchsia-zircon", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:async-trait", |
| "//third_party/rust_crates:futures", |
| "//third_party/rust_crates:matches", |
| "//third_party/rust_crates:proptest", |
| "//third_party/rust_crates:test-case", |
| ] |
| |
| sources = [ |
| "src/inverse_keymap.rs", |
| "src/keymaps.rs", |
| "src/legacy_backend.rs", |
| "src/lib.rs", |
| "src/modern_backend/input_device.rs", |
| "src/modern_backend/input_device_registry.rs", |
| "src/modern_backend/input_reports_reader.rs", |
| "src/modern_backend/mod.rs", |
| "src/synthesizer.rs", |
| "src/usages.rs", |
| ] |
| } |
| |
| fuchsia_unittest_package("input-synthesis-tests") { |
| deps = [ ":input-synthesis_test" ] |
| } |