| # Copyright 2023 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/bazel/drivers/bazel_driver_package.gni") |
| import("//build/bind/bind.gni") |
| |
| bazel_driver_package("bazel_package") { |
| bazel_target = "//src/ui/input/drivers/adc-buttons:adc-buttons" |
| package_name = "adc-buttons" |
| inputs = [ |
| "adc-buttons.cc", |
| "adc-buttons.h", |
| "adc-buttons-device.cc", |
| "adc-buttons-device.h", |
| ] |
| } |
| |
| driver_bind_rules("adc-buttons-bind") { |
| rules = "meta/adc-buttons.bind" |
| bind_output = "adc-buttons.bindbc" |
| tests = "meta/bind-tests.json" |
| deps = [ |
| "//sdk/fidl/fuchsia.hardware.adc:fuchsia.hardware.adc_bindlib", |
| "//src/devices/bind/fuchsia.adc", |
| "//src/devices/bind/fuchsia.devicetree", |
| "//src/devices/bind/fuchsia.platform", |
| ] |
| } |
| |
| # Note: Don't add additional bazel tests into this group as it will introduce |
| # more bazel actions into build graph. Instead, add them into |
| # //src:bazel_tests |
| group("tests") { |
| testonly = true |
| deps = [ ":adc-buttons-bind_test" ] |
| } |