blob: 492bd2f67100c0f94f04e187f62af1e4fd1a9ba7 [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/drivers.gni")
driver_bind_rules("parent_driver_bind") {
testonly = true
rules = "meta/parent_driver.bind"
bind_output = "parent_driver.bindbc"
deps = [ "//src/devices/bind/fuchsia.test" ]
}
fuchsia_cc_driver("driver") {
legacy = true
testonly = true
output_name = "fidl-bindlib-generation-parent"
sources = [ "parent_driver.cc" ]
deps = [
":parent_driver_bind",
"//src/devices/bind/fuchsia:fuchsia_cpp",
"//src/devices/bind/fuchsia.test:fuchsia.test_cpp",
"//src/devices/lib/driver",
"//src/lib/ddktl",
"//tools/bindc/src/tests/fidl:test_fidl_bindlib_cpp",
"//zircon/system/ulib/fbl",
"//zircon/system/ulib/inspect",
"//zircon/system/ulib/zx",
]
}
fuchsia_driver_component("parent-driver") {
testonly = true
component_name = "fidl-bindlib-generation-parent"
deps = [ ":driver" ]
info = "meta/component-info.json"
manifest = "meta/parent-driver.cml"
}