blob: 220ce768a511230397e65769e378c1e34deedb78 [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/bind/bind.gni")
import("//build/config/fuchsia/rules.gni")
bind_rules("gpio_test_bind") {
rules = "gpio_test.bind"
output = "gpio_test_bind.h"
tests = "bind_tests.json"
deps = [ "//src/devices/bind/fuchsia.platform" ]
}
group("tests") {
testonly = true
deps = [ ":gpio_test_bind_test" ]
}
driver_module("gpio-test") {
configs += [
"//build/config:all_source",
"//build/config/fuchsia:enable_zircon_asserts",
]
configs += [ "//build/unification/config:zircon-migrated" ]
# TODO: testonly = true
sources = [ "gpio-test.cc" ]
deps = [
":gpio_test_bind",
"//sdk/banjo/fuchsia.hardware.gpio",
"//sdk/banjo/fuchsia.hardware.gpioimpl:fuchsia.hardware.gpioimpl_banjo_cpp",
"//src/devices/lib/driver",
"//src/lib/ddk",
"//src/lib/ddktl",
"//zircon/public/lib/fbl",
"//zircon/public/lib/sync",
"//zircon/public/lib/zx",
]
}