blob: 7bc4af5af05d823f8a70294da607f2365b38e17e [file] [log] [blame]
# 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_library.gni")
rustc_library("keymaps") {
name = "keymaps"
with_unit_tests = true
version = "0.1.0"
edition = "2021"
deps = [
"//sdk/fidl/fuchsia.input:fuchsia.input-rustc",
"//sdk/fidl/fuchsia.ui.input3:fuchsia.ui.input3-rustc",
"//src/lib/syslog/rust:syslog",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:assert_matches",
"//third_party/rust_crates:lazy_static",
"//third_party/rust_crates:test-case",
]
sources = [
"src/config.rs",
"src/defs.rs",
"src/inverse_keymap.rs",
"src/lib.rs",
"src/usages.rs",
]
}
fuchsia_unittest_package("keymaps-tests") {
deps = [ ":keymaps_test" ]
}
group("tests") {
testonly = true
deps = [ ":keymaps-tests" ]
}