blob: 9750638b4267a8d0ea591f13d571a3256159143c [file]
# Copyright 2021 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/components.gni")
group("tests") {
testonly = true
deps = [ ":linux_uapi-tests" ]
}
fuchsia_unittest_package("linux_uapi-tests") {
deps = [ ":linux_uapi_test" ]
}
## BAZEL2GN SENTINEL - DO NOT EDIT BELOW THIS LINE ##
#
# ________ _________ ________ ________
# |\ ____\|\___ ___\\ __ \|\ __ \
# \ \ \___|\|___ \ \_\ \ \|\ \ \ \|\ \
# \ \_____ \ \ \ \ \ \ \\\ \ \ ____\
# \|____|\ \ \ \ \ \ \ \\\ \ \ \___|
# ____\_\ \ \ \__\ \ \_______\ \__\
# |\_________\ \|__| \|_______|\|__|
# \|_________|
#
#
# AUTO-GENERATED - DO NOT EDIT
#
# The targets below are auto-generated based on the targets defined in the
# BUILD.bazel file from the same directory. If you made changes to targets in
# Bazel, instead of editing this file manually, run:
#
# > fx bazel2gn
#
# Please do NOT edit this file directly. Instead, edit the BUILD.bazel file and
# rerun bazel2gn.
import("//build/tools/bazel2gn/bazel_migration.gni")
rustc_library("linux_uapi") {
sources = []
sources += [
"src/lib.rs",
"src/macros.rs",
"src/manual.rs",
"src/types.rs",
]
if (current_cpu == "x64") {
sources += [
"src/arch32_stub.rs",
"src/x86_64.rs",
]
} else if (current_cpu == "arm64") {
sources += [
"src/arm.rs",
"src/arm64.rs",
"src/arm_manual.rs",
"src/arm_manual_kgsl.rs",
]
} else if (current_cpu == "riscv64") {
sources += [
"src/arch32_stub.rs",
"src/riscv64.rs",
]
}
crate_name = "linux_uapi"
disable_clippy = true
edition = "2024"
lint_config = "//src/starnix/build:kernel_library_config"
with_unit_tests = true
deps = [
"//third_party/rust_crates:static_assertions",
"//third_party/rust_crates:zerocopy",
]
}