| # 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("i2c-hid") { |
| sources = [ |
| "i2c-hid.cc", |
| ] |
| deps = [ |
| "$zx/system/banjo/ddk.protocol.hidbus", |
| "$zx/system/banjo/ddk.protocol.i2c", |
| "$zx/system/dev/lib/device-protocol-i2c", |
| "$zx/system/dev/lib/device-protocol-i2c-channel", |
| "$zx/system/ulib/ddk", |
| "$zx/system/ulib/fbl", |
| "$zx/system/ulib/hid", |
| "$zx/system/ulib/sync", |
| "$zx/system/ulib/trace:trace-driver", |
| "$zx/system/ulib/zircon", |
| |
| # TODO(BLD-353): This is actually a transitive dependency of the ddk |
| # library, but the library doesn't express it properly because of |
| # legacy complications. |
| "$zx/system/ulib/trace:headers", |
| ] |
| |
| # TODO(ZX-2863): This driver violates the allowed shlib deps policy. |
| deprecated_inhibit_driver_shlib_allowlist = true |
| } |
| |
| test("i2c-hid-test") { |
| sources = [ |
| "i2c-hid-test.cc", |
| "i2c-hid.cc", |
| ] |
| deps = [ |
| "$zx/system/banjo/ddk.protocol.hidbus", |
| "$zx/system/banjo/ddk.protocol.i2c", |
| "$zx/system/dev/lib/device-protocol-i2c", |
| "$zx/system/dev/lib/device-protocol-i2c-channel", |
| "$zx/system/dev/lib/fake-hidbus-ifc", |
| "$zx/system/dev/lib/fake-i2c", |
| "$zx/system/dev/lib/fake_ddk", |
| "$zx/system/ulib/ddk", |
| "$zx/system/ulib/fbl", |
| "$zx/system/ulib/hid", |
| "$zx/system/ulib/sync", |
| "$zx/system/ulib/trace:trace-driver", |
| "$zx/system/ulib/zircon", |
| "$zx/system/ulib/zxtest", |
| |
| # TODO(BLD-353): This is actually a transitive dependency of the ddk |
| # library, but the library doesn't express it properly because of |
| # legacy complications. |
| "$zx/system/ulib/trace:headers", |
| ] |
| } |