| # 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/components.gni") |
| import("//build/drivers.gni") |
| import("//build/test.gni") |
| |
| executable("aml-g12-tdm-test-bin") { |
| configs += [ "//build/config:all_source" ] |
| testonly = true |
| sources = [ |
| "../aml-tdm-config-device.cc", |
| "../aml-tdm-config-device.h", |
| "../audio-stream.cc", |
| "stream-test.cc", |
| ] |
| deps = [ |
| "../:aml-g12-tdm-bind", |
| "//sdk/fidl/fuchsia.hardware.audio:fuchsia.hardware.audio_cpp", |
| "//sdk/fidl/fuchsia.hardware.clock:fuchsia.hardware.clock_cpp", |
| "//sdk/fidl/fuchsia.hardware.gpio:fuchsia.hardware.gpio_cpp", |
| "//sdk/lib/async_patterns/testing/cpp", |
| "//sdk/lib/component/outgoing/cpp", |
| "//sdk/lib/inspect/testing/cpp:zxtest", |
| "//src/devices/bus/lib/device-protocol-pdev", |
| "//src/devices/bus/testing/fake-pdev", |
| "//src/devices/gpio/testing/fake-gpio", |
| "//src/devices/i2c/lib/device-protocol-i2c-channel", |
| "//src/devices/lib/amlogic", |
| "//src/devices/lib/mmio", |
| "//src/devices/testing/fake-mmio-reg", |
| "//src/devices/testing/mock-ddk", |
| "//src/devices/testing/mock-mmio-reg:mock-mmio-reg-zxtest", |
| "//src/lib/ddk", |
| "//src/lib/ddktl", |
| "//src/media/audio/drivers/lib/audio-driver-proto", |
| "//src/media/audio/drivers/lib/audio-proto-utils", |
| "//src/media/audio/lib/simple-audio-stream", |
| "//src/media/audio/lib/simple-codec", |
| "//zircon/system/ulib/async-loop:async-loop-default", |
| "//zircon/system/ulib/fzl", |
| "//zircon/system/ulib/inspect", |
| "//zircon/system/ulib/pretty", |
| "//zircon/system/ulib/sync", |
| "//zircon/system/ulib/zircon-internal", |
| "//zircon/system/ulib/zx", |
| "//zircon/system/ulib/zxtest", |
| ] |
| |
| # TODO(https://fxbug.dev/42136089): delete the below and fix compiler warnings |
| configs += [ "//build/config:Wno-conversion" ] |
| |
| # TODO(https://fxbug.dev/42176699): This target uses mutable tables which are deprecated, |
| # rather than builders. |
| configs += [ "//build/cpp:fidl-wire-deprecated-mutable-tables" ] |
| } |
| |
| executable("aml-g12-tdm-dai-test-bin") { |
| configs += [ "//build/config:all_source" ] |
| testonly = true |
| sources = [ |
| "../aml-tdm-config-device.cc", |
| "../aml-tdm-config-device.h", |
| "../dai.cc", |
| "dai-test.cc", |
| ] |
| deps = [ |
| "../:aml-g12-tdm-dai-bind", |
| "//sdk/banjo/fuchsia.hardware.audio:fuchsia.hardware.audio_banjo_cpp", |
| "//sdk/fidl/fuchsia.hardware.audio:fuchsia.hardware.audio_cpp", |
| "//sdk/fidl/fuchsia.hardware.audio:fuchsia.hardware.audio_hlcpp", |
| "//sdk/lib/async_patterns/testing/cpp", |
| "//sdk/lib/component/outgoing/cpp", |
| "//src/devices/bus/lib/device-protocol-pdev", |
| "//src/devices/bus/testing/fake-pdev", |
| "//src/devices/lib/amlogic", |
| "//src/devices/lib/mmio", |
| "//src/devices/testing/fake-mmio-reg", |
| "//src/devices/testing/mock-ddk", |
| "//src/lib/ddk", |
| "//src/lib/ddktl", |
| "//zircon/system/ulib/async-loop:async-loop-cpp", |
| "//zircon/system/ulib/async-loop:async-loop-default", |
| "//zircon/system/ulib/fbl", |
| "//zircon/system/ulib/fzl", |
| "//zircon/system/ulib/pretty", |
| "//zircon/system/ulib/sync", |
| "//zircon/system/ulib/zircon-internal", |
| "//zircon/system/ulib/zx", |
| "//zircon/system/ulib/zxtest", |
| |
| # TODO(andresoportus): Remove depedency on TLS (maybe done by C++ bindings unification). |
| "//zircon/system/ulib/async-loop:async-loop-default", |
| ] |
| |
| # TODO(https://fxbug.dev/42136089): delete the below and fix compiler warnings |
| configs += [ "//build/config:Wno-conversion" ] |
| |
| # TODO(https://fxbug.dev/42176699): This target uses mutable tables which are deprecated, |
| # rather than builders. |
| configs += [ "//build/cpp:fidl-wire-deprecated-mutable-tables" ] |
| } |
| |
| test("aml-g12-composite-test-bin") { |
| sources = [ "composite-test.cc" ] |
| deps = [ |
| "..:aml-g12-composite-common", |
| "//sdk/lib/async_patterns/testing/cpp", |
| "//sdk/lib/driver/incoming/cpp", |
| "//sdk/lib/driver/testing/cpp", |
| "//src/devices/testing/fake-bti", |
| "//zircon/system/ulib/fzl", |
| "//zircon/system/ulib/zxtest", |
| ] |
| } |
| |
| fuchsia_unittest_package("stream-test-package") { |
| package_name = "aml-g12-tdm-test" |
| deps = [ ":aml-g12-tdm-test-bin" ] |
| test_specs = { |
| environments = basic_envs |
| log_settings = { |
| max_severity = "ERROR" |
| } |
| } |
| } |
| |
| fuchsia_unittest_package("dai-test-package") { |
| package_name = "aml-g12-tdm-dai-test" |
| deps = [ ":aml-g12-tdm-dai-test-bin" ] |
| test_specs = { |
| environments = basic_envs |
| log_settings = { |
| max_severity = "ERROR" |
| } |
| } |
| } |
| |
| fuchsia_unittest_package("composite-test-package") { |
| package_name = "aml-g12-composite-test" |
| deps = [ ":aml-g12-composite-test-bin" ] |
| test_specs = { |
| environments = basic_envs |
| log_settings = { |
| max_severity = "ERROR" |
| } |
| } |
| } |