| # 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/config/fuchsia/rules.gni") |
| import("//build/package.gni") |
| import("//build/test.gni") |
| import("//build/test/test_package.gni") |
| |
| driver_module("hid-input-report") { |
| sources = [ |
| "input-report.cc", |
| "input-reports-reader.cc", |
| ] |
| deps = [ |
| "//sdk/banjo/ddk.protocol.hiddevice", |
| "//sdk/fidl/fuchsia.hardware.input:fuchsia.hardware.input_c", |
| "//sdk/fidl/fuchsia.input.report:fuchsia.input.report_llcpp", |
| "//src/devices/lib/driver", |
| "//src/lib/ddk", |
| |
| # TODO(fxb/38132): Migrate to the new bind rules and delete the below |
| "//src/lib/ddk:ddk-deprecated-binding-headers", |
| "//src/lib/ddktl", |
| "//src/ui/input/lib/hid-input-report", |
| "//zircon/public/lib/fbl", |
| "//zircon/public/lib/fidl", |
| "//zircon/public/lib/zx", |
| "//zircon/system/ulib/async-loop:async-loop-cpp", |
| "//zircon/system/ulib/async-loop:async-loop-default", |
| "//zircon/system/ulib/hid", |
| "//zircon/system/ulib/hid-parser", |
| "//zircon/system/ulib/trace:trace-driver", |
| ] |
| } |
| |
| test("hid-input-report-test-bin") { |
| sources = [ |
| "input-report.cc", |
| "input-reports-reader.cc", |
| "test.cc", |
| ] |
| deps = [ |
| "//sdk/banjo/ddk.protocol.hiddevice", |
| "//sdk/fidl/fuchsia.hardware.input:fuchsia.hardware.input_c", |
| "//sdk/fidl/fuchsia.input.report:fuchsia.input.report_llcpp", |
| "//src/devices/lib/driver", |
| "//src/devices/testing/fake_ddk", |
| "//src/lib/ddk", |
| |
| # TODO(fxb/38132): Migrate to the new bind rules and delete the below |
| "//src/lib/ddk:ddk-deprecated-binding-headers", |
| "//src/lib/ddktl", |
| "//src/ui/input/lib/hid-input-report", |
| "//zircon/public/lib/fbl", |
| "//zircon/public/lib/fidl", |
| "//zircon/public/lib/sync", |
| "//zircon/public/lib/zx", |
| "//zircon/public/lib/zxtest", |
| "//zircon/system/ulib/async-loop:async-loop-cpp", |
| "//zircon/system/ulib/async-loop:async-loop-default", |
| "//zircon/system/ulib/fidl-async:fidl-async-cpp", |
| "//zircon/system/ulib/hid", |
| "//zircon/system/ulib/hid-parser", |
| "//zircon/system/ulib/trace:trace-driver", |
| ] |
| |
| # TODO(fxbug.dev/46730): Fix the leaks and remove this. |
| deps += [ "//build/config/sanitizers:suppress-lsan.DO-NOT-USE-THIS" ] |
| } |
| |
| test_package("hid-input-report-test") { |
| deps = [ ":hid-input-report-test-bin" ] |
| tests = [ |
| { |
| name = "hid-input-report-test-bin" |
| dest = "hid-input-report-test" |
| environments = basic_envs |
| }, |
| ] |
| } |