mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
20 lines
664 B
Python
20 lines
664 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({
|
|
"@rules_bzlmodrio_toolchains//constraints/is_systemcore:systemcore": ["@platforms//:incompatible"],
|
|
"//conditions:default": [],
|
|
}),
|
|
visibility = ["//visibility:public"],
|
|
**kwargs
|
|
)
|