| # 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/config/fuchsia/rules.gni") |
| |
| bind_rules("dai-test-bind") { |
| rules = "dai_test.bind" |
| output = "dai_test_bind.h" |
| tests = "tests.json" |
| deps = [ "//src/devices/bind/fuchsia.platform" ] |
| } |
| |
| driver_module("dai-test") { |
| configs += [ |
| "//build/config:all_source", |
| "//build/config/fuchsia:enable_zircon_asserts", |
| ] |
| configs += [ "//build/unification/config:zircon-migrated" ] |
| sources = [ "dai-test.cc" ] |
| |
| deps = [ |
| ":dai-test-bind", |
| "//sdk/banjo/fuchsia.hardware.audio", |
| "//sdk/banjo/fuchsia.hardware.platform.device", |
| "//sdk/fidl/fuchsia.hardware.audio", |
| "//sdk/fidl/fuchsia.hardware.audio:fuchsia.hardware.audio_llcpp", |
| "//src/devices/bus/lib/device-protocol-pdev", |
| "//src/devices/lib/amlogic", |
| "//src/devices/lib/driver", |
| "//src/devices/lib/mmio", |
| "//src/lib/ddk", |
| "//src/lib/ddktl", |
| "//zircon/public/lib/async-cpp", |
| "//zircon/public/lib/fbl", |
| "//zircon/public/lib/fit", |
| "//zircon/public/lib/zx", |
| "//zircon/system/ulib/async-loop:async-loop-cpp", |
| "//zircon/system/ulib/fzl", |
| |
| # TODO(andresoportus): Remove depedency on TLS (maybe done by C++ bindings unification). |
| "//zircon/system/ulib/async-loop:async-loop-default", |
| ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ ":dai-test-bind_test" ] |
| } |