blob: 67a9240123ce2559568ae8501738eb9b9936f601 [file] [log] [blame]
# Copyright 2019 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("$zx_build/public/gn/library_shim.gni")
import("$zx_build/public/gn/test_driver_shim.gni")
library("ddktl") {
sdk = "static"
sdk_publishable = false
sdk_headers = [
"ddktl/device-internal.h",
"ddktl/device.h",
]
sources = []
public_deps = [
# <ddktl/device-internal.h> has #include <fbl/macros.h>.
"$zx/system/ulib/fbl:headers",
# <ddktl/protocol/display-controller.h> has #include <lib/zx/vmo.h>.
"$zx/system/ulib/zx:headers",
]
configs += [ "$zx_build/public/gn/config:visibility_hidden" ]
deps = [
"$zx/system/dev/lib/mmio",
"$zx/system/ulib/ddk",
"$zx/system/ulib/fbl",
"$zx/system/ulib/sync",
"$zx/system/ulib/zircon",
"$zx/system/ulib/zx",
]
}
test_driver("ddktl-test") {
sources = [
"test/ddktl-test-binding.c",
"test/ddktl-test.cc",
"test/device-tests.cc",
"test/ethernet-tests.cc",
]
deps = [
"$zx/system/banjo/ddk.protocol.ethernet",
"$zx/system/banjo/ddk.protocol.test",
"$zx/system/ulib/ddk",
"$zx/system/ulib/ddktl",
"$zx/system/ulib/fbl",
"$zx/system/ulib/fdio",
"$zx/system/ulib/unittest",
"$zx/system/ulib/zircon",
"$zx/system/ulib/zx",
]
# TODO(ZX-2863): This driver violates the allowed shlib deps policy.
deprecated_inhibit_driver_shlib_allowlist = true
}