blob: 449d054eb5f9b91a7904377d6562777b994466a9 [file] [log] [blame]
# Copyright 2023 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")
group("drivers") {
testonly = true
deps = [
":root",
":spec-composite-1",
":spec-composite-2",
]
}
bind_library("multibind.test") {
source = "multibind.test.bind"
}
driver_bind_rules("root-driver-bind") {
rules = "root-driver.bind"
bind_output = "root-driver.bindbc"
deps = [ "//src/devices/bind/fuchsia.test" ]
}
fuchsia_driver("root-driver") {
output_name = "multibind-root-driver"
sources = [ "root-driver.cc" ]
deps = [
":multibind.test_cpp",
":root-driver-bind",
"//src/devices/bind/fuchsia:fuchsia_cpp",
"//src/devices/bind/fuchsia.test:fuchsia.test_cpp",
"//src/devices/lib/driver",
"//src/lib/ddktl",
]
}
fuchsia_driver_component("root") {
component_name = "root-driver"
deps = [ ":root-driver" ]
info = "root-driver-info.json"
manifest = "meta/root.cml"
}
driver_bind_rules("spec-composite-1-bind") {
rules = "spec-composite-1.bind"
bind_output = "spec-composite-1.bindbc"
deps = [ ":multibind.test" ]
}
fuchsia_driver("spec-composite-1-driver") {
output_name = "spec-composite-1"
sources = [ "composite.cc" ]
deps = [
":spec-composite-1-bind",
"//src/devices/bind/fuchsia:fuchsia_cpp",
"//src/devices/lib/driver",
"//src/lib/ddktl",
]
}
fuchsia_driver_component("spec-composite-1") {
component_name = "spec-composite-1-driver"
deps = [ ":spec-composite-1-driver" ]
info = "composite-info.json"
manifest = "meta/spec-composite-1.cml"
}
driver_bind_rules("spec-composite-2-bind") {
rules = "spec-composite-2.bind"
bind_output = "spec-composite-2.bindbc"
deps = [ ":multibind.test" ]
}
fuchsia_driver("spec-composite-2-driver") {
output_name = "spec-composite-2"
sources = [ "composite.cc" ]
deps = [
":spec-composite-2-bind",
"//src/devices/bind/fuchsia:fuchsia_cpp",
"//src/devices/lib/driver",
"//src/lib/ddktl",
]
}
fuchsia_driver_component("spec-composite-2") {
component_name = "spec-composite-2"
deps = [ ":spec-composite-2-driver" ]
info = "composite-info.json"
manifest = "meta/spec-composite-2.cml"
}