blob: da4632614a98f647e4e81c7ad9d2d1726bf15e0a [file] [log] [blame]
# Copyright 2022 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.
# This file was generated by the `fx create` command. The template
# is located at `//tools/create/templates/driver-default/BUILD.gn.tmpl-cpp`.
# If you find something broken, we are eager to review fixes.
import("//build/bind/bind.gni")
import("//build/components.gni")
import("//build/drivers.gni")
import("//build/test.gni")
driver_bind_rules("bind") {
testonly = true
rules = "meta/leaf.bind"
bind_output = "leaf.bindbc"
deps = [ "//src/devices/tests/v2/compat/bind:fuchsia.compat" ]
}
fuchsia_cc_driver("driver") {
testonly = true
output_name = "leaf"
sources = [ "leaf.cc" ]
deps = [
":bind",
"//src/devices/lib/driver",
"//src/devices/tests/v2/compat:fuchsia.hardware.compat_banjo_cpp",
"//src/devices/tests/v2/compat:fuchsia.hardware.compat_cpp",
"//src/devices/tests/v2/compat/bind:fuchsia.compat_cpp",
"//src/lib/ddktl",
"//zircon/system/ulib/fbl",
"//zircon/system/ulib/inspect",
"//zircon/system/ulib/zx",
]
}
fuchsia_driver_component("component") {
testonly = true
component_name = "leaf"
deps = [ ":driver" ]
info = "meta/leaf-info.json"
manifest = "meta/component.cml"
}