Files
allwpilib/shared/bazel/thirdparty/mrclib/mrclib.MODULE.bazel
2026-06-20 10:28:24 -07:00

57 lines
2.1 KiB
Plaintext

http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
################################################################################
# Generated by shared/bazel/thirdparty/integrity_helper.py
url_pattern = "https://frcmaven.wpi.edu/artifactory/development-2027/org/wpilib/mrclib/mrclib-cpp/2027.1.0-alpha-1-65-g21f308e/mrclib-cpp-2027.1.0-alpha-1-65-g21f308e-%s.zip"
headers_integrity = "a8b38a00d584b50c3bb84800121df1022ac1500f59e4ecac85068adca7c0ac49"
_LIB_ARTIFACTS = {
"linuxarm64": ("linux", "**/*.so*", "38009110f0deeaeaec08b59fe37ce7e87d3ee4f3d86bd70a7003b22a75bcb43e"),
"linuxx86-64": ("linux", "**/*.so*", "503b3107febd35d32d28e5a3135c48fbd8c09d49d0b1f404182bc9b3c6877d12"),
"osxuniversal": ("osx", "**/*.dylib", "422a52e4b5f859ef3afb7a97e66ba72572894a73abd88126e09647929b1701c1"),
"linuxsystemcore": ("linux", "**/*.so*", "f84d4a6852d52da5535c054944b45f6f0c3d98271756ebfa28103a6f45e073e5"),
"windowsarm64": ("windows", "**/*.dll", "8fd028fa1144c1c18adf9facf4dd690f6d888565c73498bfae01849d0400dad0"),
"windowsx86-64": ("windows", "**/*.dll", "6e905f298fd261e68abb2bfcad7d47334d57f8b6dd14046bf2b98f55c7a657d7"),
}
# End auto-gen
################################################################################
http_archive(
name = "mrclib_headers",
url = url_pattern % "headers",
sha256 = headers_integrity,
build_file_content = """
cc_library(
name = "headers",
hdrs = glob(["**"]),
includes = ["."],
visibility = ["//visibility:public"],
)
""",
)
library_build_content = """
filegroup(
name = "shared_interface",
srcs = glob(["**/*.lib"], allow_empty=True),
visibility = ["//visibility:public"],
)
filegroup(
name = "shared_libs",
srcs = glob(["%s"]),
visibility = ["//visibility:public"],
)
"""
[
http_archive(
name = "mrclib_" + artifact,
url = url_pattern % artifact,
sha256 = integrity,
build_file_content = library_build_content % glob_pattern,
)
for artifact, (prefix, glob_pattern, integrity) in _LIB_ARTIFACTS.items()
]