| # Copyright 2024 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/drivers.gni") |
| |
| driver_bind_rules("bind") { |
| rules = "meta/driver.bind" |
| deps = [ "//src/devices/bind/fuchsia.test" ] |
| bind_output = "power-system-integration-example-test-driver.bindbc" |
| } |
| |
| fuchsia_cc_driver("driver") { |
| output_name = "power-system-integration-example-test-driver" |
| sources = [ "driver.cc" ] |
| deps = [ |
| "//sdk/fidl/fuchsia.power.broker:fuchsia.power.broker_cpp", |
| "//sdk/fidl/fuchsia.power.system:fuchsia.power.system_cpp", |
| "//sdk/lib/driver/component/cpp", |
| "//src/devices/lib/driver:driver_runtime", |
| ] |
| } |
| |
| fuchsia_driver_component("component") { |
| manifest = "meta/driver.cml" |
| component_name = "power-system-integration-example-test-driver" |
| deps = [ |
| ":bind", |
| ":driver", |
| ] |
| info = "meta/info.json" |
| } |
| |
| fuchsia_driver_package("power-system-integration-example-test-driver") { |
| driver_components = [ ":component" ] |
| } |