blob: 5b22478fe6a78278cf9e8fdc3133ac399c504eb7 [file] [log] [blame]
# 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.
executable("ihda") {
if (is_fuchsia) {
fdio_config = [ "//build/config/fuchsia:fdio_config" ]
if (configs + fdio_config - fdio_config != configs) {
configs -= fdio_config
}
}
sources = [
"ihda.cc",
"intel_hda_codec.cc",
"intel_hda_controller.cc",
"intel_hda_device.cc",
"print_codec_state.cc",
"zircon_device.cc",
]
deps = [
"//sdk/fidl/fuchsia.hardware.intel.hda:fuchsia.hardware.intel.hda_c",
"//sdk/lib/fdio",
"//src/media/audio/drivers/lib/intel-hda",
"//zircon/system/ulib/fbl",
"//zircon/system/ulib/fdio-caller",
"//zircon/system/ulib/fzl",
"//zircon/system/ulib/zx",
]
# TODO(fxbug.dev/95833): This target uses the deprecated C bindings.
# Consider switching to the C++ bindings. See linked bug for details.
configs += [ "//build/c:fidl-deprecated-c-bindings" ]
}