Files
allwpilib/shared/bazel/rules/halsim_library.bzl

20 lines
664 B
Python
Raw Normal View History

2025-06-13 23:53:09 -04:00
load("//shared/bazel/rules:cc_rules.bzl", "wpilib_cc_library")
def wpilib_halsim_extension(
name,
**kwargs):
"""
2026-04-14 00:51:36 -04:00
Helper wrapper for creating a HALSIM extension. Provides some of the default arguments for creating the library.
2025-06-13 23:53:09 -04:00
"""
wpilib_cc_library(
name = name,
includes = ["src/main/native/include"],
include_license_files = True,
2025-06-13 23:53:09 -04:00
target_compatible_with = select({
"@rules_bzlmodrio_toolchains//constraints/is_systemcore:systemcore": ["@platforms//:incompatible"],
"//conditions:default": [],
}),
visibility = ["//visibility:public"],
**kwargs
)