blob: 3d792dbdbb587886a04cedd58856123a7a1ff29e [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.
driver("hid-buttons") {
sources = [
"hid-buttons.cc",
]
deps = [
"$zx/system/banjo/ddk.protocol.composite",
"$zx/system/banjo/ddk.protocol.gpio",
"$zx/system/banjo/ddk.protocol.hidbus",
"$zx/system/ulib/ddk",
"$zx/system/ulib/ddktl",
"$zx/system/ulib/fbl",
"$zx/system/ulib/hid",
"$zx/system/ulib/sync",
"$zx/system/ulib/zircon",
"$zx/system/ulib/zx",
]
# TODO(ZX-2863): This driver violates the allowed shlib deps policy.
deprecated_inhibit_driver_shlib_allowlist = true
}
test("hid-buttons-test") {
output_name = "hid-buttons-test"
sources = [
"hid-buttons-test.cc",
"hid-buttons.cc",
]
deps = [
"$zx/system/banjo/ddk.protocol.composite",
"$zx/system/banjo/ddk.protocol.gpio",
"$zx/system/banjo/ddk.protocol.hidbus",
"$zx/system/dev/lib/fake_ddk",
"$zx/system/ulib/ddk",
"$zx/system/ulib/ddktl",
"$zx/system/ulib/fbl",
"$zx/system/ulib/hid",
"$zx/system/ulib/mock-function",
"$zx/system/ulib/sync",
"$zx/system/ulib/zircon",
"$zx/system/ulib/zx",
"$zx/system/ulib/zxtest",
]
}