blob: 189339ab403391e815ecb29cf2314a054c4472f4 [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/bind/bind.gni")
import("//build/config/fuchsia/rules.gni")
bind_rules("clock-bind") {
rules = "clock.bind"
output = "clock-bind.h"
tests = "bind-tests.json"
deps = [ "//src/devices/bind/fuchsia.clockimpl" ]
}
driver_module("clock") {
configs += [
"//build/config:all_source",
"//build/config/fuchsia:enable_zircon_asserts",
]
configs += [ "//build/unification/config:zircon-migrated" ]
sources = [ "clock.cc" ]
deps = [
":clock-bind",
"//sdk/banjo/fuchsia.hardware.clock:fuchsia.hardware.clock_banjo_cpp",
"//sdk/banjo/fuchsia.hardware.clockimpl",
"//src/devices/lib/driver",
"//src/lib/ddk",
"//src/lib/ddk:ddk-metadata-headers",
"//src/lib/ddktl",
"//zircon/public/lib/fbl",
"//zircon/public/lib/zx",
]
}
group("tests") {
testonly = true
deps = [ ":clock-bind_test" ]
}