blob: b530a04f7a679e54ffcbe935d06b012b668fb744 [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/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_llcpp",
"//sdk/lib/fdio",
"//src/lib/ddk",
"//src/lib/files",
"//src/lib/fsl",
"//src/lib/fxl",
"//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:trace-provider-with-fdio",
]
# TODO(fxbug.dev/69585): This target uses raw zx::channel with LLCPP which is deprecated.
# Please migrate to typed channel APIs (fidl::ClientEnd<T>, fidl::ServerEnd<T>).
# See linked bug for details.
configs += [ "//build/cpp:fidl-llcpp-deprecated-raw-channels" ]
}
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_llcpp",
"//src/lib/ddk",
"//src/lib/fxl/test:gtest_main",
"//src/ui/input/lib/hid-input-report",
"//src/ui/input/testing/fake_input_report_device",
"//zircon/public/lib/fbl",
"//zircon/public/lib/sync",
"//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-parser",
"//zircon/system/ulib/trace",
]
# TODO(fxbug.dev/69585): This target uses raw zx::channel with LLCPP which is deprecated.
# Please migrate to typed channel APIs (fidl::ClientEnd<T>, fidl::ServerEnd<T>).
# See linked bug for details.
configs += [ "//build/cpp:fidl-llcpp-deprecated-raw-channels" ]
}
fuchsia_unittest_package("print-input-report-test") {
deps = [ ":print-input-report-test-bin" ]
}