| # 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/config/fuchsia/rules.gni") |
| import("//build/test.gni") |
| |
| driver_module("virtio_socket") { |
| configs += [ |
| "//build/config:all_source", |
| "//build/config/fuchsia:enable_zircon_asserts", |
| ] |
| if (is_fuchsia) { |
| configs += [ "//build/unification/config:zircon-migrated" ] |
| } |
| sources = [ |
| "socket.cc", |
| "socket_driver.cc", |
| ] |
| deps = [ |
| "//sdk/fidl/fuchsia.hardware.vsock:fuchsia.hardware.vsock_c", |
| "//src/devices/bus/lib/virtio", |
| "//src/devices/lib/driver", |
| "//src/lib/ddktl", |
| "//zircon/public/lib/async-cpp", |
| "//zircon/system/ulib/async-loop:async-loop-cpp", |
| "//zircon/system/ulib/async-loop:async-loop-default", |
| ] |
| } |