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-50-gd008523/mrclib-cpp-2027.1.0-alpha-1-50-gd008523-%s.zip" headers_integrity = "c71011e2c593749aca585eec308f394d5e7f34451c1a14cdd8e077ea3b1368b5" _LIB_ARTIFACTS = { "linuxarm64": ("linux", "**/*.so*", "4673c573c25d1d9a03f1cf3d73c1e8a121718291171213813b95b451eea53f3a"), "linuxx86-64": ("linux", "**/*.so*", "8d986ed0ffb03be1215a3cf88716c31da82848f4524e723ac89aee4eca45eb12"), "osxuniversal": ("osx", "**/*.dylib", "af05c46bffa58a1ca63bd18f4d8865b827746d1cdf94c8512c7f86d58731d16f"), "linuxsystemcore": ("linux", "**/*.so*", "c1cad49fb96caa73fddbc852588c67a2110402539b39dba40255c21974114e84"), "windowsarm64": ("windows", "**/*.dll", "8205701efbde585c6822981c7246c0a0d8e4b4cdb702097ec77674aa98aff7bb"), "windowsx86-64": ("windows", "**/*.dll", "dd4eef6e1aaba5b7034889a1646e259b3e91435b3084d43b3ff3b2c6adcc2122"), } # 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() ]