blob: 062460dcaf4c36abe00e31af5106bcf9b9266a73 [file] [log] [blame]
# Copyright 2020 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")
import("//build/test.gni")
driver_bind_rules("virtio_console_bind") {
rules = "virtio_console.bind"
header_output = "virtio_console_bind.h"
tests = "bind_tests.json"
deps = [ "//src/devices/bind/fuchsia.pci" ]
}
group("tests") {
testonly = true
deps = [ ":virtio_console_bind_test" ]
}
fuchsia_driver("virtio_console-driver") {
output_name = "virtio_console"
configs += [
"//build/config:all_source",
"//build/config/fuchsia:enable_zircon_asserts",
]
sources = [
"console.cc",
"console_driver.cc",
]
deps = [
":virtio_console_bind",
"//sdk/fidl/fuchsia.hardware.pty:fuchsia.hardware.pty_c",
"//sdk/fidl/fuchsia.hardware.virtioconsole:fuchsia.hardware.virtioconsole_llcpp",
"//src/devices/bus/lib/virtio",
"//src/devices/lib/driver",
"//src/lib/ddktl",
"//src/lib/storage/vfs/cpp",
"//zircon/system/ulib/async-loop:async-loop-cpp",
"//zircon/system/ulib/async-loop:async-loop-default",
"//zircon/system/ulib/fs-pty",
]
# TODO(fxbug.dev/69585): This target uses raw zx::channel with LLCPP which is deprecated.
# Please migrate to typed channel APIs (fidl::ClientEnd<T>, fidl::ServerEnd<T>).
# See linked bug for details.
configs += [ "//build/cpp:fidl-llcpp-deprecated-raw-channels" ]
# TODO(fxbug.dev/95833): This target uses the deprecated C bindings.
# Consider switching to the C++ bindings. See linked bug for details.
configs += [ "//build/c:fidl-deprecated-c-bindings" ]
}
fuchsia_driver_component("virtio_console") {
info = "virtio_console-info.json"
component_name = "virtio_console"
deps = [ ":virtio_console-driver" ]
colocate = true
}