blob: 3d761bae657d0efea2bee803072429377aed12f3 [file] [edit]
# Copyright 2019 The Fuchsia Authors
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/MIT
import("//build/components.gni")
import("//build/cpp/library_headers.gni")
import("//build/rust/rustc_library.gni")
import("//zircon/kernel/kernel_rust_mod.gni")
import("//zircon/kernel/params.gni")
static_library("cbuf") {
public_deps = [ ":headers" ]
complete_static_lib = true
sources = [ "cbuf.cc" ]
deps = [
":cbuf_rs",
"//zircon/kernel/lib/ktl",
"//zircon/system/ulib/zx",
]
}
library_headers("headers") {
headers = [ "lib/cbuf.h" ]
}
kernel_rust_mod("cbuf_rs") {
output_name = "cbuf"
source_root = "src/mod.rs"
sources = [ "src/mod.rs" ]
deps = [
"//sdk/rust/zx-status",
"//src/lib/ksync",
"//third_party/rust_crates:pin-init",
]
}
group("tests") {
testonly = true
deps = []
}
source_set("kernel-tests") {
testonly = true
sources = [ "cbuf_tests.cc" ]
deps = [
":cbuf",
"//zircon/kernel/lib/unittest",
]
}
group("phys-tests") {
testonly = true
}
group("boot_tests") {
testonly = true
}