blob: 23386135d675457de3cf3a059e438e3246f8f93f [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.
import("//build/zircon/zx_library.gni")
zx_library("hid") {
sdk = "static"
sdk_headers = [
"hid/acer12.h",
"hid/ambient-light.h",
"hid/atlas-touchpad.h",
"hid/boot.h",
"hid/buttons.h",
"hid/visalia-touch.h",
"hid/descriptor.h",
"hid/egalax.h",
"hid/eyoyo.h",
"hid/ft3x27.h",
"hid/ft5726.h",
"hid/gt92xx.h",
"hid/hid.h",
"hid/ltr-578als.h",
"hid/multi-sensor.h",
"hid/paradise.h",
"hid/samsung.h",
"hid/usages.h",
"hid/mouse.h",
"hid/virtio-mouse.h",
]
sources = [
"acer12.c",
"ambient-light.c",
"atlas-touchpad.c",
"bma253.c",
"boot.c",
"buttons.c",
"egalax.c",
"eyoyo.c",
"ft3x27.c",
"ft5726.c",
"ft6336.c",
"gt92xx.c",
"hid.c",
"keymaps.c",
"ltr-578als.c",
"mouse.c",
"multi-sensor.c",
"paradise.c",
"samsung.c",
"virtio-mouse.c",
"visalia-touch.c",
]
deps = [
"//sdk/fidl/fuchsia.hardware.input:fuchsia.hardware.input_c",
"//src/lib/ddk:ddk-metadata-headers",
"//src/lib/ddktl",
]
# TODO(https://fxbug.dev/58162): delete the below and fix compiler warnings
configs += [ "//build/config:Wno-conversion" ]
# TODO(fxbug.dev/95833): This target uses the deprecated C bindings.
# Consider switching to the C++ bindings. See linked bug for details.
configs += [ "//build/c:fidl-deprecated-c-bindings" ]
}