blob: 2305620b7a3b2e40acb241f7074596cfbc4aea47 [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") {
configs += [ "//build/unification/config:zircon-migrated" ]
sources = [
"main.cc",
"sdio.cc",
]
deps = [
"//sdk/fidl/fuchsia.hardware.sdio:fuchsia.hardware.sdio_llcpp",
"//sdk/lib/fdio",
"//zircon/public/lib/fbl",
"//zircon/public/lib/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") {
configs += [ "//build/unification/config:zircon-migrated" ]
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/public/lib/zxtest",
"//zircon/system/ulib/async-loop:async-loop-cpp",
"//zircon/system/ulib/async-loop:async-loop-default",
"//zircon/system/ulib/fidl-async:fidl-async-cpp",
]
# 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" ]
}