| # 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", | |
| "//zircon/kernel/lib/debug", | |
| ] | |
| test_deps = [ "//sdk/rust/zx-types" ] | |
| } | |
| group("tests") { | |
| testonly = true | |
| deps = [] | |
| } | |
| group("kernel-tests") { | |
| testonly = true | |
| } | |
| group("phys-tests") { | |
| testonly = true | |
| } | |
| group("boot_tests") { | |
| testonly = true | |
| } |