Files
allwpilib/shared/bazel/rules/halsim_library.bzl
PJ Reiniger f8de482385 [bazel] Update toolchains to 2027-1 (#9016)
This updates to the 2027-1 toolchains. This also is the first version
with the `rules_bzlmodrio_toolchains -> wpilib_toolchains` rename, so
the surface area of the change is a little bit big.

The opencv dep has bzlmod'ified as part of this as well.
2026-06-26 22:44:00 -07:00

20 lines
655 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 arguments for creating the library.
"""
wpilib_cc_library(
name = name,
includes = ["src/main/native/include"],
include_license_files = True,
target_compatible_with = select({
"@wpilib_toolchains//constraints/is_systemcore:systemcore": ["@platforms//:incompatible"],
"//conditions:default": [],
}),
visibility = ["//visibility:public"],
**kwargs
)