blob: 774826d1df6e64702ede74ca1ea70a53778ea132 [file] [log] [blame]
# Copyright 2021 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/components.gni")
import("//build/drivers.gni")
import("//build/test.gni")
driver_bind_rules("bind") {
rules = "test_root.bind"
header_output = "test_root-bind.h"
bind_output = "test_root.bindbc"
deps = [ "//src/devices/bind/fuchsia.test" ]
}
fuchsia_driver("driver") {
testonly = true
output_name = "test-root"
sources = [ "test_root.cc" ]
deps = [
":bind",
"//sdk/lib/sys/component/cpp",
"//src/devices/lib/driver",
"//src/devices/tests/composite-driver-v1:fuchsia.composite.test_llcpp",
"//src/lib/ddktl",
"//zircon/system/ulib/async-loop:async-loop-cpp",
"//zircon/system/ulib/async-loop:async-loop-default",
"//zircon/system/ulib/fbl",
"//zircon/system/ulib/inspect",
"//zircon/system/ulib/zx",
]
}
fuchsia_driver_component("component") {
testonly = true
component_name = "test-root"
deps = [ ":driver" ]
info = "component-info.json"
colocate = true
}