| # 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("//build/unification/zx_library.gni") |
| |
| zx_library("device-protocol-pdev") { |
| sdk = "source" |
| sdk_headers = [ "lib/device-protocol/pdev.h" ] |
| sources = [ "pdev.cc" ] |
| public_deps = [ |
| "//sdk/banjo/ddk.protocol.composite", |
| |
| # <lib/device-protocol/pdev.h> has #include <ddktl/protocol/platform/device.h>. |
| "//sdk/banjo/ddk.protocol.platform.device", |
| |
| # Banjo protocols have #include <ddk/driver.h>. |
| "//src/lib/ddk", |
| |
| # Banjo protocols have #include <ddktl/device-internal.h>. |
| "//src/lib/ddktl", |
| ] |
| |
| deps = [ |
| # pdev.cpp has #include <lib/mmio/mmio.h>. |
| "//src/devices/lib/mmio", |
| ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ "test:tests" ] |
| } |