Files
allwpilib/shared/bazel/rules/halsim_library.bzl
2025-06-13 20:53:09 -07:00

19 lines
625 B
Python

load("//shared/bazel/rules:cc_rules.bzl", "wpilib_cc_library")
def wpilib_halsim_extension(
name,
**kwargs):
"""
Helper wrapper for creating a HALSIM extension. Provides some of the default argments for creating the library.
"""
wpilib_cc_library(
name = name,
includes = ["src/main/native/include"],
target_compatible_with = select({
"@rules_bzlmodrio_toolchains//constraints/is_systemcore:systemcore": ["@platforms//:incompatible"],
"//conditions:default": [],
}),
visibility = ["//visibility:public"],
**kwargs
)