| # 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/components.gni") |
| import("//build/test.gni") |
| |
| executable("bin") { |
| output_name = "print-input-report" |
| |
| sources = [ |
| "devices.cc", |
| "main.cc", |
| ] |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.input.report:fuchsia.input.report_cpp", |
| "//sdk/lib/component/incoming/cpp", |
| "//src/lib/ddk", |
| "//src/lib/files", |
| "//src/lib/fsl", |
| "//src/lib/fxl:fxl_cli", |
| "//zircon/system/ulib/async-loop:async-loop-cpp", |
| "//zircon/system/ulib/async-loop:async-loop-default", |
| "//zircon/system/ulib/fzl", |
| "//zircon/system/ulib/trace", |
| "//zircon/system/ulib/trace-provider", |
| ] |
| } |
| |
| fuchsia_shell_package("print-input-report") { |
| deps = [ ":bin" ] |
| } |
| |
| test("print-input-report-test-bin") { |
| output_name = "print-input-report-test-bin" |
| testonly = true |
| |
| sources = [ |
| "devices.cc", |
| "test/print-test.cc", |
| ] |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.input.report:fuchsia.input.report_cpp", |
| "//src/lib/ddk", |
| "//src/lib/fxl/test:gtest_main", |
| "//src/ui/input/lib/hid-input-report", |
| "//src/ui/input/lib/hid-parser", |
| "//src/ui/input/testing/fake_input_report_device", |
| "//zircon/system/ulib/async-loop:async-loop-cpp", |
| "//zircon/system/ulib/async-loop:async-loop-default", |
| "//zircon/system/ulib/fbl", |
| "//zircon/system/ulib/sync", |
| "//zircon/system/ulib/trace", |
| ] |
| } |
| |
| fuchsia_unittest_package("print-input-report-test") { |
| deps = [ ":print-input-report-test-bin" ] |
| } |