blob: 8c38a1fc1ff6051b729fa0a583c53b1696416d2e [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.
import("//build/bind/bind.gni")
import("//build/components.gni")
import("//build/drivers.gni")
import("//build/test.gni")
driver_bind_rules("bind") {
rules = "fake_driver.bind"
header_output = "fake_driver-bind.h"
bind_output = "fake_driver.bindbc"
deps = [ "//src/devices/bind/fuchsia.test" ]
}
fuchsia_driver("driver") {
output_name = "driver-test-realm-fake-driver"
sources = [ "fake_driver.cc" ]
deps = [
":bind",
"//src/lib/ddktl",
]
}
fuchsia_driver_component("component") {
component_name = "driver-test-realm-fake-driver"
deps = [ ":driver" ]
info = "component-info.json"
colocate = true
}
fuchsia_driver_package("driver_package") {
package_name = "driver-test-realm-fake-driver"
driver_components = [ ":component" ]
}