blob: b718598812370d75b7e295c30427d59868bb842a [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.
import("//build/zircon/zx_library.gni")
group("tests") {
testonly = true
deps = [ "tests" ]
}
zx_library("rtc") {
sdk = "source"
sdk_headers = [ "librtc.h" ]
sources = [ "librtc.c" ]
deps = [
"//sdk/fidl/fuchsia.hardware.rtc:fuchsia.hardware.rtc_c",
"//src/devices/lib/driver",
"//src/lib/ddk",
]
# 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" ]
}
zx_library("rtc_llcpp") {
sdk = "source"
sdk_headers = [ "librtc_llcpp.h" ]
sources = [ "librtc_llcpp.cc" ]
deps = [
"//sdk/fidl/fuchsia.hardware.rtc:fuchsia.hardware.rtc_llcpp",
"//src/lib/ddk",
]
}