blob: c02821d8cae9fc8ddea3127f17ae037ffc9b51b5 [file] [log] [blame]
# 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/test.gni")
executable("sdio") {
sources = [
"main.cc",
"sdio.cc",
]
deps = [
"//sdk/fidl/fuchsia.hardware.sdio:fuchsia.hardware.sdio_llcpp",
"//sdk/lib/fdio",
"//zircon/system/ulib/fbl",
"//zircon/system/ulib/zx",
]
# TODO(fxbug.dev/69585): This target uses raw zx::channel with LLCPP which is deprecated.
# Please migrate to typed channel APIs (fidl::ClientEnd<T>, fidl::ServerEnd<T>).
# See linked bug for details.
configs += [ "//build/cpp:fidl-llcpp-deprecated-raw-channels" ]
}
test("sdio-test-bin") {
output_name = "sdio-test"
sources = [
"sdio-test.cc",
"sdio.cc",
]
include_dirs = [ "." ]
deps = [
"//sdk/fidl/fuchsia.hardware.sdio:fuchsia.hardware.sdio_llcpp",
"//sdk/lib/fdio",
"//zircon/system/ulib/async-loop:async-loop-cpp",
"//zircon/system/ulib/async-loop:async-loop-default",
"//zircon/system/ulib/fidl-async:fidl-async-cpp",
"//zircon/system/ulib/zxtest",
]
# TODO(fxbug.dev/69585): This target uses raw zx::channel with LLCPP which is deprecated.
# Please migrate to typed channel APIs (fidl::ClientEnd<T>, fidl::ServerEnd<T>).
# See linked bug for details.
configs += [ "//build/cpp:fidl-llcpp-deprecated-raw-channels" ]
}
fuchsia_unittest_package("sdio-test") {
deps = [ ":sdio-test-bin" ]
test_specs = {
environments = basic_envs
}
}
group("tests") {
testonly = true
deps = [ ":sdio-test" ]
}