Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 1 | workspace(name = "org_frc971") |
Brian Silverman | d1c19fb | 2016-07-07 00:10:57 -0700 | [diff] [blame] | 2 | |
Philipp Schrader | cc016b3 | 2021-12-30 08:59:58 -0800 | [diff] [blame] | 3 | load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository") |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 4 | load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file") |
Philipp Schrader | 6efe573 | 2022-02-12 15:11:13 -0800 | [diff] [blame] | 5 | load("@bazel_tools//tools/jdk:remote_java_repository.bzl", "remote_java_repository") |
Philipp Schrader | 9670a2a | 2023-01-11 01:20:16 -0800 | [diff] [blame] | 6 | load("//tools/ci:repo_defs.bzl", "ci_configure") |
| 7 | |
| 8 | ci_configure(name = "ci_configure") |
| 9 | |
| 10 | load("@ci_configure//:ci.bzl", "RUNNING_IN_CI") |
| 11 | |
| 12 | http_archive( |
| 13 | name = "platforms", |
| 14 | sha256 = "2c8d8347427e6bb0ba7cf9f933c08fe2be2b62ff2454546ad852f7bf267aad87", |
| 15 | strip_prefix = "platforms-e658a6af526089406d0057160542597501ba65d7", |
| 16 | url = "https://github.com/bazelbuild/platforms/archive/e658a6af526089406d0057160542597501ba65d7.zip", |
| 17 | ) |
| 18 | |
| 19 | http_archive( |
| 20 | name = "bazel_skylib", |
Philipp Schrader | 35bb153 | 2023-03-05 13:49:12 -0800 | [diff] [blame] | 21 | sha256 = "b8a1527901774180afc798aeb28c4634bdccf19c4d98e7bdd1ce79d1fe9aaad7", |
Philipp Schrader | 9670a2a | 2023-01-11 01:20:16 -0800 | [diff] [blame] | 22 | urls = [ |
Philipp Schrader | 35bb153 | 2023-03-05 13:49:12 -0800 | [diff] [blame] | 23 | "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.4.1/bazel-skylib-1.4.1.tar.gz", |
| 24 | "https://github.com/bazelbuild/bazel-skylib/releases/download/1.4.1/bazel-skylib-1.4.1.tar.gz", |
Philipp Schrader | 9670a2a | 2023-01-11 01:20:16 -0800 | [diff] [blame] | 25 | ], |
| 26 | ) |
| 27 | |
Philipp Schrader | 35bb153 | 2023-03-05 13:49:12 -0800 | [diff] [blame] | 28 | load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") |
| 29 | |
| 30 | bazel_skylib_workspace() |
| 31 | |
Philipp Schrader | 9670a2a | 2023-01-11 01:20:16 -0800 | [diff] [blame] | 32 | http_archive( |
Philipp Schrader | 55dd6b4 | 2023-02-22 20:44:23 -0800 | [diff] [blame] | 33 | name = "aspect_bazel_lib", |
| 34 | sha256 = "80897b673c2b506d21f861ae316689aa8abcc3e56947580a41bf9e68ff13af58", |
| 35 | strip_prefix = "bazel-lib-1.27.1", |
| 36 | url = "https://github.com/aspect-build/bazel-lib/releases/download/v1.27.1/bazel-lib-v1.27.1.tar.gz", |
| 37 | ) |
| 38 | |
Philipp Schrader | 175a93c | 2023-02-19 13:13:40 -0800 | [diff] [blame] | 39 | load("@aspect_bazel_lib//lib:repositories.bzl", "aspect_bazel_lib_dependencies", "register_jq_toolchains") |
Philipp Schrader | 55dd6b4 | 2023-02-22 20:44:23 -0800 | [diff] [blame] | 40 | |
| 41 | aspect_bazel_lib_dependencies() |
| 42 | |
Philipp Schrader | 175a93c | 2023-02-19 13:13:40 -0800 | [diff] [blame] | 43 | register_jq_toolchains() |
| 44 | |
Philipp Schrader | 55dd6b4 | 2023-02-22 20:44:23 -0800 | [diff] [blame] | 45 | http_archive( |
Philipp Schrader | 9670a2a | 2023-01-11 01:20:16 -0800 | [diff] [blame] | 46 | name = "rules_python", |
| 47 | patch_args = ["-p1"], |
| 48 | patches = [ |
| 49 | "//third_party:rules_python/0001-Support-overriding-individual-packages.patch", |
| 50 | "//third_party:rules_python/0002-Allow-user-to-patch-wheels.patch", |
| 51 | ], |
| 52 | sha256 = "497ca47374f48c8b067d786b512ac10a276211810f4a580178ee9b9ad139323a", |
| 53 | strip_prefix = "rules_python-0.16.1", |
| 54 | url = "https://github.com/bazelbuild/rules_python/archive/refs/tags/0.16.1.tar.gz", |
| 55 | ) |
| 56 | |
| 57 | load("@rules_python//python:repositories.bzl", "python_register_toolchains") |
| 58 | |
| 59 | python_register_toolchains( |
| 60 | name = "python3_9", |
| 61 | python_version = "3.9", |
| 62 | register_toolchains = False, |
| 63 | ) |
| 64 | |
James Kuszmaul | 9776b39 | 2023-01-14 14:08:08 -0800 | [diff] [blame] | 65 | load( |
| 66 | "@python3_9//:defs.bzl", |
| 67 | python_interpreter = "interpreter", |
| 68 | ) |
Philipp Schrader | 9670a2a | 2023-01-11 01:20:16 -0800 | [diff] [blame] | 69 | load("@rules_python//python:pip.bzl", "pip_parse") |
James Kuszmaul | 9776b39 | 2023-01-14 14:08:08 -0800 | [diff] [blame] | 70 | load( |
| 71 | "//tools/python:package_annotations.bzl", |
| 72 | PYTHON_ANNOTATIONS = "ANNOTATIONS", |
| 73 | ) |
Philipp Schrader | 9670a2a | 2023-01-11 01:20:16 -0800 | [diff] [blame] | 74 | |
| 75 | pip_parse( |
| 76 | name = "pip_deps", |
| 77 | annotations = PYTHON_ANNOTATIONS, |
| 78 | enable_implicit_namespace_pkgs = True, |
| 79 | overrides = "//tools/python:whl_overrides.json", |
| 80 | patch_spec = "//tools/python:patches.json", |
| 81 | python_interpreter_target = python_interpreter, |
| 82 | require_overrides = RUNNING_IN_CI, |
| 83 | requirements_lock = "//tools/python:requirements.lock.txt", |
| 84 | ) |
| 85 | |
| 86 | # Load the starlark macro which will define your dependencies. |
James Kuszmaul | 9776b39 | 2023-01-14 14:08:08 -0800 | [diff] [blame] | 87 | load( |
| 88 | "@pip_deps//:requirements.bzl", |
| 89 | install_pip_deps = "install_deps", |
| 90 | ) |
Philipp Schrader | 9670a2a | 2023-01-11 01:20:16 -0800 | [diff] [blame] | 91 | |
| 92 | install_pip_deps() |
| 93 | |
| 94 | load("//tools/python:repo_defs.bzl", "pip_configure") |
| 95 | |
| 96 | pip_configure( |
| 97 | name = "pip", |
| 98 | ) |
| 99 | |
| 100 | http_archive( |
| 101 | name = "rules_pkg", |
Philipp Schrader | 973fd3f | 2023-03-07 21:21:36 -0800 | [diff] [blame] | 102 | sha256 = "8c20f74bca25d2d442b327ae26768c02cf3c99e93fad0381f32be9aab1967675", |
Philipp Schrader | 9670a2a | 2023-01-11 01:20:16 -0800 | [diff] [blame] | 103 | urls = [ |
Philipp Schrader | 973fd3f | 2023-03-07 21:21:36 -0800 | [diff] [blame] | 104 | "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.8.1/rules_pkg-0.8.1.tar.gz", |
| 105 | "https://github.com/bazelbuild/rules_pkg/releases/download/0.8.1/rules_pkg-0.8.1.tar.gz", |
Philipp Schrader | 9670a2a | 2023-01-11 01:20:16 -0800 | [diff] [blame] | 106 | ], |
| 107 | ) |
| 108 | |
| 109 | load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies") |
| 110 | |
| 111 | rules_pkg_dependencies() |
| 112 | |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 113 | load( |
Philipp Schrader | d0e33a4 | 2022-01-22 21:55:15 -0800 | [diff] [blame] | 114 | "//debian:apache2.bzl", |
| 115 | apache2_debs = "files", |
| 116 | ) |
| 117 | load( |
Philipp Schrader | 41011a1 | 2022-03-13 12:49:32 -0700 | [diff] [blame] | 118 | "//debian:postgresql_amd64.bzl", |
| 119 | postgresql_amd64_debs = "files", |
| 120 | ) |
| 121 | load( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 122 | "//debian:patch.bzl", |
| 123 | patch_debs = "files", |
| 124 | ) |
Brian Silverman | 7297c0c | 2018-08-05 13:43:00 -0700 | [diff] [blame] | 125 | load( |
Austin Schuh | 71f6fa7 | 2019-08-31 18:23:02 -0700 | [diff] [blame] | 126 | "//debian:rsync.bzl", |
| 127 | rsync_debs = "files", |
| 128 | ) |
| 129 | load( |
| 130 | "//debian:ssh.bzl", |
| 131 | ssh_debs = "files", |
| 132 | ) |
| 133 | load( |
Brian Silverman | 7297c0c | 2018-08-05 13:43:00 -0700 | [diff] [blame] | 134 | "//debian:pandoc.bzl", |
| 135 | pandoc_debs = "files", |
| 136 | ) |
Brian Silverman | 4f6ba44 | 2018-08-05 14:34:58 -0700 | [diff] [blame] | 137 | load( |
| 138 | "//debian:libusb.bzl", |
| 139 | libusb_debs = "files", |
| 140 | ) |
Brian Silverman | b80dc9f | 2018-08-05 14:59:24 -0700 | [diff] [blame] | 141 | load( |
| 142 | "//debian:mingw_compiler.bzl", |
| 143 | mingw_compiler_debs = "files", |
| 144 | ) |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 145 | load( |
| 146 | "//debian:patchelf.bzl", |
| 147 | patchelf_debs = "files", |
| 148 | ) |
| 149 | load( |
Brian Silverman | 50b9ac0 | 2018-08-12 13:24:10 -0700 | [diff] [blame] | 150 | "//debian:arm_frc_gnueabi_deps.bzl", |
| 151 | arm_frc_gnueabi_deps_debs = "files", |
| 152 | ) |
Brian Silverman | b0ebf1d | 2018-10-17 23:36:40 -0700 | [diff] [blame] | 153 | load( |
Philipp Schrader | fd5489f | 2022-09-17 17:31:09 -0700 | [diff] [blame] | 154 | "//debian:gtk_runtime.bzl", |
| 155 | gtk_runtime_debs = "files", |
| 156 | ) |
| 157 | load( |
Brian Silverman | d97a47c | 2020-01-16 00:47:53 -0800 | [diff] [blame] | 158 | "//debian:opencv_amd64.bzl", |
| 159 | opencv_amd64_debs = "files", |
| 160 | ) |
Tyler Chatow | 60671d3 | 2020-02-26 19:49:30 -0800 | [diff] [blame] | 161 | load( |
| 162 | "//debian:gstreamer_amd64.bzl", |
James Kuszmaul | c91e440 | 2020-05-10 18:47:20 -0700 | [diff] [blame] | 163 | gstreamer_amd64_debs = "files", |
Tyler Chatow | 60671d3 | 2020-02-26 19:49:30 -0800 | [diff] [blame] | 164 | ) |
| 165 | load( |
Tyler Chatow | 6eda82c | 2022-03-27 22:37:38 -0700 | [diff] [blame] | 166 | "//debian:gstreamer_arm64.bzl", |
| 167 | gstreamer_arm64_debs = "files", |
| 168 | ) |
| 169 | load( |
Austin Schuh | 023e7f5 | 2020-08-18 21:24:37 -0700 | [diff] [blame] | 170 | "//debian:m4.bzl", |
| 171 | m4_debs = "files", |
| 172 | ) |
Brian Silverman | f59fe3f | 2020-09-22 21:04:09 -0700 | [diff] [blame] | 173 | load( |
| 174 | "//debian:lzma_amd64.bzl", |
| 175 | lzma_amd64_debs = "files", |
| 176 | ) |
| 177 | load( |
| 178 | "//debian:lzma_arm64.bzl", |
| 179 | lzma_arm64_debs = "files", |
| 180 | ) |
Tyler Chatow | 8a51ac6 | 2022-03-15 13:23:12 -0700 | [diff] [blame] | 181 | load( |
| 182 | "//debian:libtinfo5_amd64.bzl", |
| 183 | libtinfo5_amd64_debs = "files", |
| 184 | ) |
Tyler Chatow | ec100e2 | 2022-03-22 16:23:04 -0700 | [diff] [blame] | 185 | load( |
| 186 | "//debian:libtinfo5_arm64.bzl", |
| 187 | libtinfo5_arm64_debs = "files", |
| 188 | ) |
Philipp Schrader | f60e7d7 | 2023-02-19 17:07:22 -0800 | [diff] [blame] | 189 | load( |
| 190 | "//debian:xvfb_amd64.bzl", |
| 191 | xvfb_amd64_debs = "files", |
| 192 | ) |
Philipp Schrader | 0e19c60 | 2018-03-07 21:07:22 -0800 | [diff] [blame] | 193 | load("//debian:packages.bzl", "generate_repositories_for_debs") |
| 194 | |
Austin Schuh | 71f6fa7 | 2019-08-31 18:23:02 -0700 | [diff] [blame] | 195 | generate_repositories_for_debs(rsync_debs) |
| 196 | |
| 197 | generate_repositories_for_debs(ssh_debs) |
| 198 | |
Philipp Schrader | d0e33a4 | 2022-01-22 21:55:15 -0800 | [diff] [blame] | 199 | generate_repositories_for_debs(apache2_debs) |
| 200 | |
Philipp Schrader | 41011a1 | 2022-03-13 12:49:32 -0700 | [diff] [blame] | 201 | generate_repositories_for_debs(postgresql_amd64_debs) |
| 202 | |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 203 | generate_repositories_for_debs(patch_debs) |
| 204 | |
Brian Silverman | 7297c0c | 2018-08-05 13:43:00 -0700 | [diff] [blame] | 205 | generate_repositories_for_debs(pandoc_debs) |
| 206 | |
Brian Silverman | 4f6ba44 | 2018-08-05 14:34:58 -0700 | [diff] [blame] | 207 | generate_repositories_for_debs(libusb_debs) |
| 208 | |
Brian Silverman | b80dc9f | 2018-08-05 14:59:24 -0700 | [diff] [blame] | 209 | generate_repositories_for_debs(mingw_compiler_debs) |
| 210 | |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 211 | generate_repositories_for_debs(patchelf_debs) |
| 212 | |
Brian Silverman | 50b9ac0 | 2018-08-12 13:24:10 -0700 | [diff] [blame] | 213 | generate_repositories_for_debs(arm_frc_gnueabi_deps_debs) |
| 214 | |
Philipp Schrader | fd5489f | 2022-09-17 17:31:09 -0700 | [diff] [blame] | 215 | generate_repositories_for_debs(gtk_runtime_debs) |
| 216 | |
Brian Silverman | d97a47c | 2020-01-16 00:47:53 -0800 | [diff] [blame] | 217 | generate_repositories_for_debs(opencv_amd64_debs) |
| 218 | |
Tyler Chatow | 6eda82c | 2022-03-27 22:37:38 -0700 | [diff] [blame] | 219 | generate_repositories_for_debs( |
| 220 | gstreamer_amd64_debs, |
Maxwell Henderson | 7a93a65 | 2023-06-24 15:17:09 -0700 | [diff] [blame] | 221 | base_url = "https://software.frc971.org/Build-Dependencies/gstreamer_bullseye_amd64_deps", |
Tyler Chatow | 6eda82c | 2022-03-27 22:37:38 -0700 | [diff] [blame] | 222 | ) |
Tyler Chatow | 60671d3 | 2020-02-26 19:49:30 -0800 | [diff] [blame] | 223 | |
Tyler Chatow | 6eda82c | 2022-03-27 22:37:38 -0700 | [diff] [blame] | 224 | generate_repositories_for_debs( |
| 225 | gstreamer_arm64_debs, |
Maxwell Henderson | 7a93a65 | 2023-06-24 15:17:09 -0700 | [diff] [blame] | 226 | base_url = "https://software.frc971.org/Build-Dependencies/gstreamer_bullseye_arm64_deps", |
Tyler Chatow | 6eda82c | 2022-03-27 22:37:38 -0700 | [diff] [blame] | 227 | ) |
| 228 | |
Austin Schuh | 023e7f5 | 2020-08-18 21:24:37 -0700 | [diff] [blame] | 229 | generate_repositories_for_debs(m4_debs) |
| 230 | |
Brian Silverman | f59fe3f | 2020-09-22 21:04:09 -0700 | [diff] [blame] | 231 | generate_repositories_for_debs(lzma_amd64_debs) |
| 232 | |
| 233 | generate_repositories_for_debs(lzma_arm64_debs) |
| 234 | |
Tyler Chatow | 8a51ac6 | 2022-03-15 13:23:12 -0700 | [diff] [blame] | 235 | generate_repositories_for_debs(libtinfo5_amd64_debs) |
| 236 | |
Tyler Chatow | ec100e2 | 2022-03-22 16:23:04 -0700 | [diff] [blame] | 237 | generate_repositories_for_debs(libtinfo5_arm64_debs) |
| 238 | |
Philipp Schrader | f60e7d7 | 2023-02-19 17:07:22 -0800 | [diff] [blame] | 239 | generate_repositories_for_debs(xvfb_amd64_debs) |
| 240 | |
Brian Silverman | c0309a0 | 2022-01-01 23:57:03 -0800 | [diff] [blame] | 241 | local_repository( |
| 242 | name = "com_grail_bazel_toolchain", |
| 243 | path = "third_party/bazel-toolchain", |
| 244 | ) |
| 245 | |
James Kuszmaul | f35eb98 | 2023-12-09 17:50:01 -0800 | [diff] [blame] | 246 | http_archive( |
| 247 | name = "RangeHTTPServer", |
| 248 | sha256 = "98a8e4980f91d048dc9159cfc5f115280d0b5ec59a5b01df0422b887212fa4f0", |
| 249 | strip_prefix = "RangeHTTPServer-9070394508a135789238a33259793f3c6f3c127a", |
| 250 | url = "https://github.com/jkuszmaul/RangeHTTPServer/archive/9070394508a135789238a33259793f3c6f3c127a.zip", |
| 251 | ) |
| 252 | |
Brian Silverman | 4c7235a | 2021-11-17 19:04:37 -0800 | [diff] [blame] | 253 | load("@com_grail_bazel_toolchain//toolchain:rules.bzl", "llvm", "llvm_toolchain") |
| 254 | |
Austin Schuh | 612d95d | 2023-10-21 00:01:40 -0700 | [diff] [blame] | 255 | llvm_version = "17.0.2" |
Brian Silverman | 4c7235a | 2021-11-17 19:04:37 -0800 | [diff] [blame] | 256 | |
| 257 | llvm( |
| 258 | name = "llvm_k8", |
Austin Schuh | 50e3dca | 2023-07-23 14:34:27 -0700 | [diff] [blame] | 259 | distribution = "clang+llvm-%s-x86_64-linux-gnu-ubuntu-22.04.tar.xz" % llvm_version, |
Brian Silverman | 4c7235a | 2021-11-17 19:04:37 -0800 | [diff] [blame] | 260 | llvm_version = llvm_version, |
| 261 | ) |
| 262 | |
| 263 | llvm( |
Philipp Schrader | f1bbf34 | 2022-02-05 14:30:15 -0800 | [diff] [blame] | 264 | name = "llvm_aarch64", |
| 265 | distribution = "clang+llvm-%s-aarch64-linux-gnu.tar.xz" % llvm_version, |
| 266 | llvm_version = llvm_version, |
| 267 | ) |
| 268 | |
Brian Silverman | 4c7235a | 2021-11-17 19:04:37 -0800 | [diff] [blame] | 269 | llvm_conlyopts = [ |
| 270 | "-std=gnu99", |
| 271 | ] |
| 272 | |
| 273 | llvm_copts = [ |
| 274 | "-D__STDC_FORMAT_MACROS", |
| 275 | "-D__STDC_CONSTANT_MACROS", |
| 276 | "-D__STDC_LIMIT_MACROS", |
| 277 | "-D_FILE_OFFSET_BITS=64", |
| 278 | "-fmessage-length=100", |
| 279 | "-fmacro-backtrace-limit=0", |
Brian Silverman | 4c7235a | 2021-11-17 19:04:37 -0800 | [diff] [blame] | 280 | "-ggdb3", |
Brian Silverman | 4c7235a | 2021-11-17 19:04:37 -0800 | [diff] [blame] | 281 | ] |
| 282 | |
| 283 | llvm_cxxopts = [ |
Philipp Schrader | f43b18b | 2023-08-23 20:05:10 -0700 | [diff] [blame] | 284 | "-std=gnu++20", |
Brian Silverman | 4c7235a | 2021-11-17 19:04:37 -0800 | [diff] [blame] | 285 | ] |
| 286 | |
Brian Silverman | 1e7c897 | 2022-02-03 23:15:41 -0800 | [diff] [blame] | 287 | llvm_opt_copts = [ |
| 288 | "-DAOS_DEBUG=0", |
| 289 | ] |
| 290 | |
| 291 | llvm_fastbuild_copts = [ |
| 292 | "-DAOS_DEBUG=0", |
| 293 | ] |
| 294 | |
Brian Silverman | 4c7235a | 2021-11-17 19:04:37 -0800 | [diff] [blame] | 295 | llvm_dbg_copts = [ |
| 296 | "-DAOS_DEBUG=1", |
| 297 | ] |
Brian Silverman | c0309a0 | 2022-01-01 23:57:03 -0800 | [diff] [blame] | 298 | |
| 299 | llvm_toolchain( |
| 300 | name = "llvm_toolchain", |
Austin Schuh | 1e69d42 | 2023-06-25 16:57:01 -0700 | [diff] [blame] | 301 | additional_target_compatible_with = {}, |
Brian Silverman | 4c7235a | 2021-11-17 19:04:37 -0800 | [diff] [blame] | 302 | conlyopts = { |
| 303 | "linux-x86_64": llvm_conlyopts, |
Philipp Schrader | f1bbf34 | 2022-02-05 14:30:15 -0800 | [diff] [blame] | 304 | "linux-aarch64": llvm_conlyopts, |
Brian Silverman | 4c7235a | 2021-11-17 19:04:37 -0800 | [diff] [blame] | 305 | }, |
| 306 | copts = { |
| 307 | "linux-x86_64": llvm_copts, |
Philipp Schrader | f1bbf34 | 2022-02-05 14:30:15 -0800 | [diff] [blame] | 308 | "linux-aarch64": llvm_copts, |
Brian Silverman | 4c7235a | 2021-11-17 19:04:37 -0800 | [diff] [blame] | 309 | }, |
| 310 | cxxopts = { |
| 311 | "linux-x86_64": llvm_cxxopts, |
Philipp Schrader | f1bbf34 | 2022-02-05 14:30:15 -0800 | [diff] [blame] | 312 | "linux-aarch64": llvm_cxxopts, |
Brian Silverman | 4c7235a | 2021-11-17 19:04:37 -0800 | [diff] [blame] | 313 | }, |
| 314 | dbg_copts = { |
| 315 | "linux-x86_64": llvm_dbg_copts, |
Philipp Schrader | f1bbf34 | 2022-02-05 14:30:15 -0800 | [diff] [blame] | 316 | "linux-aarch64": llvm_dbg_copts, |
Brian Silverman | 1e7c897 | 2022-02-03 23:15:41 -0800 | [diff] [blame] | 317 | }, |
| 318 | fastbuild_copts = { |
| 319 | "linux-x86_64": llvm_fastbuild_copts, |
Philipp Schrader | f1bbf34 | 2022-02-05 14:30:15 -0800 | [diff] [blame] | 320 | "linux-aarch64": llvm_fastbuild_copts, |
Brian Silverman | 4c7235a | 2021-11-17 19:04:37 -0800 | [diff] [blame] | 321 | }, |
| 322 | llvm_version = llvm_version, |
Brian Silverman | 1e7c897 | 2022-02-03 23:15:41 -0800 | [diff] [blame] | 323 | opt_copts = { |
| 324 | "linux-x86_64": llvm_opt_copts, |
Philipp Schrader | f1bbf34 | 2022-02-05 14:30:15 -0800 | [diff] [blame] | 325 | "linux-aarch64": llvm_opt_copts, |
Brian Silverman | 1e7c897 | 2022-02-03 23:15:41 -0800 | [diff] [blame] | 326 | }, |
Brian Silverman | 4c7235a | 2021-11-17 19:04:37 -0800 | [diff] [blame] | 327 | standard_libraries = { |
Austin Schuh | 0bd410a | 2023-11-05 12:38:12 -0800 | [diff] [blame] | 328 | "linux-x86_64": "libstdc++-12", |
Austin Schuh | 86d980e | 2023-10-20 22:44:47 -0700 | [diff] [blame] | 329 | "linux-aarch64": "libstdc++-12", |
Brian Silverman | 4c7235a | 2021-11-17 19:04:37 -0800 | [diff] [blame] | 330 | }, |
| 331 | static_libstdcxx = False, |
Brian Silverman | c0309a0 | 2022-01-01 23:57:03 -0800 | [diff] [blame] | 332 | sysroot = { |
| 333 | "linux-x86_64": "@amd64_debian_sysroot//:sysroot_files", |
Austin Schuh | 86d980e | 2023-10-20 22:44:47 -0700 | [diff] [blame] | 334 | "linux-aarch64": "@arm64_debian_sysroot//:sysroot_files", |
Brian Silverman | 4c7235a | 2021-11-17 19:04:37 -0800 | [diff] [blame] | 335 | }, |
| 336 | target_toolchain_roots = { |
| 337 | "linux-x86_64": "@llvm_k8//", |
Philipp Schrader | f1bbf34 | 2022-02-05 14:30:15 -0800 | [diff] [blame] | 338 | "linux-aarch64": "@llvm_aarch64//", |
Brian Silverman | 4c7235a | 2021-11-17 19:04:37 -0800 | [diff] [blame] | 339 | }, |
| 340 | toolchain_roots = { |
| 341 | "linux-x86_64": "@llvm_k8//", |
Tyler Chatow | 486ad3e | 2022-03-23 13:32:03 -0700 | [diff] [blame] | 342 | "linux-aarch64": "@llvm_aarch64//", |
Brian Silverman | c0309a0 | 2022-01-01 23:57:03 -0800 | [diff] [blame] | 343 | }, |
| 344 | ) |
| 345 | |
Brian Silverman | 4c7235a | 2021-11-17 19:04:37 -0800 | [diff] [blame] | 346 | load("@llvm_toolchain//:toolchains.bzl", "llvm_register_toolchains") |
| 347 | |
| 348 | llvm_register_toolchains() |
| 349 | |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 350 | register_toolchains( |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 351 | "//tools/cpp:cc-toolchain-roborio", |
| 352 | "//tools/cpp:cc-toolchain-cortex-m4f", |
Austin Schuh | 0a96ea3 | 2022-01-01 22:29:30 -0800 | [diff] [blame] | 353 | "//tools/cpp:cc-toolchain-rp2040", |
James Kuszmaul | 5a72856 | 2023-12-28 21:45:01 -0800 | [diff] [blame] | 354 | "//tools/cpp:cc-toolchain-cortex-m4f-imu", |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 355 | # Find a good way to select between these two M4F toolchains. |
| 356 | #"//tools/cpp:cc-toolchain-cortex-m4f-k22", |
Philipp Schrader | f198a15 | 2021-12-05 09:18:23 -0800 | [diff] [blame] | 357 | "//tools/python:python_toolchain", |
Philipp Schrader | 73e5660 | 2021-12-06 21:37:30 -0800 | [diff] [blame] | 358 | "//tools/go:noop_go_toolchain", |
Brian Silverman | 847121b | 2022-03-09 15:48:08 -0800 | [diff] [blame] | 359 | "//tools/rust:rust-toolchain-x86", |
| 360 | "//tools/rust:rust-toolchain-armv7", |
| 361 | "//tools/rust:rust-toolchain-arm64", |
Brian Silverman | a8ad1af | 2022-07-23 16:05:12 -0700 | [diff] [blame] | 362 | # TODO(Brian): Make this work. See the comment on |
| 363 | # //tools/platforms:linux_roborio for details. |
| 364 | #"//tools/rust:rust-toolchain-roborio", |
Ravago Jones | 1680980 | 2021-11-18 20:40:03 -0800 | [diff] [blame] | 365 | "//tools/rust:noop_rust_toolchain", |
Philipp Schrader | 5404796 | 2022-02-16 21:05:11 -0800 | [diff] [blame] | 366 | "//tools/ts:noop_node_toolchain", |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 367 | ) |
| 368 | |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 369 | http_archive( |
Austin Schuh | 7466fe1 | 2020-12-29 23:01:47 -0800 | [diff] [blame] | 370 | name = "com_github_stevengj_nlopt", |
| 371 | build_file = "@//debian:nlopt.BUILD", |
| 372 | patch_args = ["-p1"], |
| 373 | patches = ["//debian:nlopt.patch"], |
| 374 | sha256 = "2d65815b21c30813499fe19c63947f7da56b10c0d4a459dce05417899b43e461", |
| 375 | strip_prefix = "nlopt-496be736b8b249273838b891f4c8ca3669551127", |
Maxwell Henderson | 7a93a65 | 2023-06-24 15:17:09 -0700 | [diff] [blame] | 376 | url = "https://software.frc971.org/Build-Dependencies/nlopt-496be736b8b249273838b891f4c8ca3669551127.zip", |
Austin Schuh | 7466fe1 | 2020-12-29 23:01:47 -0800 | [diff] [blame] | 377 | ) |
| 378 | |
James Kuszmaul | 203bfc2 | 2023-01-13 22:37:06 -0800 | [diff] [blame] | 379 | http_archive( |
Austin Schuh | d57edc4 | 2019-09-21 17:52:38 -0700 | [diff] [blame] | 380 | name = "com_google_absl", |
James Kuszmaul | 203bfc2 | 2023-01-13 22:37:06 -0800 | [diff] [blame] | 381 | patch_args = ["-p1"], |
| 382 | patches = ["//third_party/abseil:abseil.patch"], |
Adam Snaider | 13d48d9 | 2023-08-03 12:20:15 -0700 | [diff] [blame] | 383 | sha256 = "ea1d31db00eb37e607bfda17ffac09064670ddf05da067944c4766f517876390", |
| 384 | strip_prefix = "abseil-cpp-c2435f8342c2d0ed8101cb43adfd605fdc52dca2", |
| 385 | url = "https://github.com/abseil/abseil-cpp/archive/c2435f8342c2d0ed8101cb43adfd605fdc52dca2.zip", |
Austin Schuh | 36244a1 | 2019-09-21 17:52:38 -0700 | [diff] [blame] | 386 | ) |
| 387 | |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 388 | local_repository( |
| 389 | name = "org_tuxfamily_eigen", |
| 390 | path = "third_party/eigen", |
| 391 | ) |
| 392 | |
James Kuszmaul | bc02ff4 | 2021-01-15 20:41:30 -0800 | [diff] [blame] | 393 | local_repository( |
| 394 | name = "com_github_rawrtc_re", |
| 395 | path = "third_party/rawrtc/re", |
| 396 | ) |
| 397 | |
| 398 | local_repository( |
| 399 | name = "com_github_rawrtc_rew", |
| 400 | path = "third_party/rawrtc/rew", |
| 401 | ) |
| 402 | |
| 403 | local_repository( |
| 404 | name = "com_github_rawrtc_usrsctp", |
| 405 | path = "third_party/rawrtc/usrsctp", |
| 406 | ) |
| 407 | |
| 408 | local_repository( |
| 409 | name = "com_github_rawrtc_rawrtc_common", |
| 410 | path = "third_party/rawrtc/rawrtc-common", |
| 411 | ) |
| 412 | |
| 413 | local_repository( |
| 414 | name = "com_github_rawrtc_rawrtc_data_channel", |
| 415 | path = "third_party/rawrtc/rawrtc-data-channel", |
| 416 | ) |
| 417 | |
| 418 | local_repository( |
| 419 | name = "com_github_rawrtc_rawrtc", |
| 420 | path = "third_party/rawrtc/rawrtc", |
| 421 | ) |
| 422 | |
Austin Schuh | 36244a1 | 2019-09-21 17:52:38 -0700 | [diff] [blame] | 423 | # C++ rules for Bazel. |
| 424 | http_archive( |
| 425 | name = "rules_cc", |
Austin Schuh | 968174a | 2021-03-31 20:04:01 -0700 | [diff] [blame] | 426 | sha256 = "ed36cc7a6f46b7c28ab4009db4a37e350e1ba367446b0886bcc9cdc1df92752e", |
| 427 | strip_prefix = "rules_cc-608c7b605fb844a20e96a3eddc9b49ad2542adab", |
Austin Schuh | 36244a1 | 2019-09-21 17:52:38 -0700 | [diff] [blame] | 428 | urls = [ |
Maxwell Henderson | 7a93a65 | 2023-06-24 15:17:09 -0700 | [diff] [blame] | 429 | "https://software.frc971.org/Build-Dependencies/rules_cc-608c7b605fb844a20e96a3eddc9b49ad2542adab.zip", |
Austin Schuh | 36244a1 | 2019-09-21 17:52:38 -0700 | [diff] [blame] | 430 | ], |
| 431 | ) |
Austin Schuh | d57edc4 | 2019-09-21 17:52:38 -0700 | [diff] [blame] | 432 | |
Austin Schuh | 4759ffc | 2015-10-07 20:39:56 -0700 | [diff] [blame] | 433 | new_local_repository( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 434 | name = "usr_repo", |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 435 | build_file = "@//debian:usr.BUILD", |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 436 | path = "/usr", |
Austin Schuh | 4759ffc | 2015-10-07 20:39:56 -0700 | [diff] [blame] | 437 | ) |
| 438 | |
Austin Schuh | 1f9aeb4 | 2015-11-12 23:34:49 -0800 | [diff] [blame] | 439 | new_git_repository( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 440 | name = "slycot_repo", |
Tyler Chatow | 2584bb1 | 2018-10-27 20:48:35 -0700 | [diff] [blame] | 441 | build_file = "@//debian:slycot.BUILD", |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 442 | commit = "5af5f283cb23cbe23c4dfea4d5e56071bdbd6e70", |
| 443 | remote = "https://github.com/avventi/Slycot.git", |
Austin Schuh | 1f9aeb4 | 2015-11-12 23:34:49 -0800 | [diff] [blame] | 444 | ) |
| 445 | |
James Kuszmaul | 9776b39 | 2023-01-14 14:08:08 -0800 | [diff] [blame] | 446 | # TODO(Ravago, Max, Alex): https://github.com/wpilibsuite/opensdk |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 447 | http_archive( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 448 | name = "arm_frc_linux_gnueabi_repo", |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 449 | build_file = "@//tools/cpp/arm-frc-linux-gnueabi:arm-frc-linux-gnueabi.BUILD", |
Austin Schuh | e991fe2 | 2020-11-18 16:53:39 -0800 | [diff] [blame] | 450 | patches = ["//debian:fts.patch"], |
James Kuszmaul | 686f62c | 2023-11-22 20:38:56 -0800 | [diff] [blame] | 451 | sha256 = "10349791e4f9fa33100ee52a84e7f9ba4df581963818334771253369b0d12061", |
James Kuszmaul | 9776b39 | 2023-01-14 14:08:08 -0800 | [diff] [blame] | 452 | strip_prefix = "roborio-academic", |
James Kuszmaul | 686f62c | 2023-11-22 20:38:56 -0800 | [diff] [blame] | 453 | url = "https://github.com/wpilibsuite/opensdk/releases/download/v2024-1/cortexa9_vfpv3-roborio-academic-2024-x86_64-linux-gnu-Toolchain-12.1.0.tgz", |
Austin Schuh | 55139fe | 2015-10-14 23:55:24 -0700 | [diff] [blame] | 454 | ) |
Austin Schuh | e456f15 | 2015-11-27 13:44:39 -0800 | [diff] [blame] | 455 | |
Austin Schuh | 86d980e | 2023-10-20 22:44:47 -0700 | [diff] [blame] | 456 | # The main partition built from //frc971/orin/build_rootfs.py. |
Brian Silverman | bf4c131 | 2020-01-12 11:35:45 -0800 | [diff] [blame] | 457 | http_archive( |
Austin Schuh | 86d980e | 2023-10-20 22:44:47 -0700 | [diff] [blame] | 458 | name = "arm64_debian_sysroot", |
| 459 | build_file = "@//:compilers/orin_debian_rootfs.BUILD", |
Austin Schuh | cf1dda5 | 2024-01-01 20:19:21 -0800 | [diff] [blame] | 460 | sha256 = "b775e1256ab9921a27eef9a738a6f38d900873e07332ad2149dc97eb04ecbdf5", |
| 461 | url = "https://software.frc971.org/Build-Dependencies/2024-01-01-bookworm-arm64-nvidia-rootfs.tar.xz", |
Philipp Schrader | f1bbf34 | 2022-02-05 14:30:15 -0800 | [diff] [blame] | 462 | ) |
| 463 | |
Austin Schuh | 0bd410a | 2023-11-05 12:38:12 -0800 | [diff] [blame] | 464 | # Sysroot generated using //frc971/amd64/build_rootfs.py |
Brian Silverman | 60606c9 | 2020-01-15 22:45:04 -0800 | [diff] [blame] | 465 | http_archive( |
| 466 | name = "amd64_debian_sysroot", |
Austin Schuh | 0bd410a | 2023-11-05 12:38:12 -0800 | [diff] [blame] | 467 | build_file = "@//:compilers/amd64_debian_rootfs.BUILD", |
Austin Schuh | 4522580 | 2023-12-10 22:17:57 -0800 | [diff] [blame] | 468 | sha256 = "5d9d4131f3997d8543d45e673bfb15e21d7ca4c64923da91ee8d06f801dddb59", |
| 469 | url = "https://software.frc971.org/Build-Dependencies/2023-12-10-bookworm-amd64-nvidia-rootfs.tar.xz", |
Brian Silverman | 60606c9 | 2020-01-15 22:45:04 -0800 | [diff] [blame] | 470 | ) |
| 471 | |
Brian Silverman | 16a923c | 2018-10-31 19:40:51 -0700 | [diff] [blame] | 472 | local_repository( |
| 473 | name = "com_github_gflags_gflags", |
| 474 | path = "third_party/gflags", |
| 475 | ) |
| 476 | |
Brian Silverman | 82a12b9 | 2019-01-19 21:52:10 -0800 | [diff] [blame] | 477 | # Generated with: |
Austin Schuh | 9950f68 | 2021-11-06 15:27:58 -0700 | [diff] [blame] | 478 | # git fetch https://github.com/wpilibsuite/ni-libraries main |
Austin Schuh | d3c7291 | 2022-02-22 18:05:32 -0800 | [diff] [blame] | 479 | # git archive --output=allwpilib_ni-libraries_776db4e8aed31a651fa2f590e7468c69b384b42a.tar.gz --format=tar.gz 776db4e8aed31a651fa2f590e7468c69b384b42a |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 480 | http_archive( |
James Kuszmaul | c9c46b3 | 2019-12-08 21:10:00 -0800 | [diff] [blame] | 481 | name = "allwpilib_ni_libraries", |
| 482 | build_file = "@//debian:ni-libraries.BUILD", |
Maxwell Henderson | 6ec6573 | 2024-01-09 16:43:37 -0800 | [diff] [blame] | 483 | sha256 = "86458884701c817351b2ec651a2f13591258da54b4f54f05d8f1ce04eb214ba5", |
| 484 | strip_prefix = "ni-libraries-2024.2.1", |
| 485 | url = "https://github.com/wpilibsuite/ni-libraries/archive/refs/tags/v2024.2.1.zip", |
Brian Silverman | 82a12b9 | 2019-01-19 21:52:10 -0800 | [diff] [blame] | 486 | ) |
| 487 | |
Brian Silverman | 3fca9d7 | 2016-02-20 02:32:51 -0500 | [diff] [blame] | 488 | # For protobuf. Don't use these. |
| 489 | bind( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 490 | name = "six", |
Philipp Schrader | 01535ee | 2023-01-08 13:19:03 -0800 | [diff] [blame] | 491 | actual = "@pip//six", |
Brian Silverman | 3fca9d7 | 2016-02-20 02:32:51 -0500 | [diff] [blame] | 492 | ) |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 493 | |
Brian Silverman | 3fca9d7 | 2016-02-20 02:32:51 -0500 | [diff] [blame] | 494 | bind( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 495 | name = "gtest", |
James Kuszmaul | 3aabc1c | 2023-01-13 21:33:43 -0800 | [diff] [blame] | 496 | actual = "@com_google_googletest//:gtest", |
Brian Silverman | 3fca9d7 | 2016-02-20 02:32:51 -0500 | [diff] [blame] | 497 | ) |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 498 | |
Brian Silverman | 3fca9d7 | 2016-02-20 02:32:51 -0500 | [diff] [blame] | 499 | bind( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 500 | name = "gtest_main", |
James Kuszmaul | 3aabc1c | 2023-01-13 21:33:43 -0800 | [diff] [blame] | 501 | actual = "@com_google_googletest//:gtest_main", |
Brian Silverman | 3fca9d7 | 2016-02-20 02:32:51 -0500 | [diff] [blame] | 502 | ) |
| 503 | |
James Kuszmaul | 59a308f | 2023-01-28 19:14:07 -0800 | [diff] [blame] | 504 | http_archive( |
| 505 | name = "april_tag_test_image", |
| 506 | build_file_content = """ |
| 507 | filegroup( |
| 508 | name = "april_tag_test_image", |
| 509 | srcs = ["test.bfbs", "expected.jpeg", "expected.png"], |
| 510 | visibility = ["//visibility:public"], |
| 511 | )""", |
| 512 | sha256 = "5312c79b19e9883b3cebd9d65b4438a2bf05b41da0bcd8c35e19d22c3b2e1859", |
Maxwell Henderson | 7a93a65 | 2023-06-24 15:17:09 -0700 | [diff] [blame] | 513 | urls = ["https://software.frc971.org/Build-Dependencies/test_image_frc971.vision.CameraImage_2023.01.28.tar.gz"], |
James Kuszmaul | 59a308f | 2023-01-28 19:14:07 -0800 | [diff] [blame] | 514 | ) |
| 515 | |
Filip Kujawa | 8c76e5d | 2023-04-08 16:20:27 -0700 | [diff] [blame] | 516 | http_file( |
| 517 | name = "game_pieces_edgetpu_model", |
| 518 | downloaded_file_path = "edgetpu_model.tflite", |
Filip Kujawa | ec433e1 | 2023-04-09 19:58:59 -0700 | [diff] [blame] | 519 | sha256 = "3d37f34805d017153064076519aaf4b532658a3b8f2518bce8787f27a5c3064c", |
Maxwell Henderson | 7a93a65 | 2023-06-24 15:17:09 -0700 | [diff] [blame] | 520 | urls = ["https://software.frc971.org/Build-Dependencies/models/2023/model_edgetpu_2023.04.09_3.tflite"], |
Filip Kujawa | 8c76e5d | 2023-04-08 16:20:27 -0700 | [diff] [blame] | 521 | ) |
| 522 | |
Brian Silverman | 4aa8304 | 2018-01-05 12:47:31 -0800 | [diff] [blame] | 523 | # Recompressed from libusb-1.0.21.7z. |
| 524 | http_file( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 525 | name = "libusb_1_0_windows", |
Austin Schuh | 4ac96a8 | 2019-08-14 20:24:23 -0700 | [diff] [blame] | 526 | downloaded_file_path = "libusb-1.0.21-windows.tar.xz", |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 527 | sha256 = "fc2ba03992f343aabbaf9eb90559c6e00cdc6a2bd914d7cebea85857d5244015", |
Maxwell Henderson | 7a93a65 | 2023-06-24 15:17:09 -0700 | [diff] [blame] | 528 | urls = ["https://software.frc971.org/Build-Dependencies/libusb-1.0.21-windows.tar.xz"], |
Brian Silverman | 4aa8304 | 2018-01-05 12:47:31 -0800 | [diff] [blame] | 529 | ) |
Brian Silverman | d3ad165 | 2018-02-18 22:16:29 -0500 | [diff] [blame] | 530 | |
| 531 | # The data tarball of the same-named Debian package. |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 532 | http_archive( |
Brian Silverman | d3ad165 | 2018-02-18 22:16:29 -0500 | [diff] [blame] | 533 | name = "f2c", |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 534 | build_file = "@//debian:f2c.BUILD", |
Brian Silverman | d3ad165 | 2018-02-18 22:16:29 -0500 | [diff] [blame] | 535 | sha256 = "2c677437f8217a2e2b23e41b33995d0571644fc1bea46de858f8913a5053e3f4", |
Maxwell Henderson | 7a93a65 | 2023-06-24 15:17:09 -0700 | [diff] [blame] | 536 | url = "https://software.frc971.org/Build-Dependencies/f2c_20100827-1_amd64.xz.tar.xz", |
Brian Silverman | d3ad165 | 2018-02-18 22:16:29 -0500 | [diff] [blame] | 537 | ) |
| 538 | |
| 539 | # Downloaded from http://www.netlib.org/clapack/. |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 540 | http_archive( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 541 | name = "clapack", |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 542 | build_file = "@//debian:clapack.BUILD", |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 543 | sha256 = "6dc4c382164beec8aaed8fd2acc36ad24232c406eda6db462bd4c41d5e455fac", |
| 544 | strip_prefix = "CLAPACK-3.2.1/", |
Maxwell Henderson | 7a93a65 | 2023-06-24 15:17:09 -0700 | [diff] [blame] | 545 | url = "https://software.frc971.org/Build-Dependencies/clapack-3.2.1.tgz", |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 546 | ) |
| 547 | |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 548 | http_archive( |
Philipp Schrader | 41011a1 | 2022-03-13 12:49:32 -0700 | [diff] [blame] | 549 | name = "postgresql_amd64", |
| 550 | build_file = "@//debian:postgresql_amd64.BUILD", |
Austin Schuh | b7775c0 | 2023-06-02 18:12:02 -0700 | [diff] [blame] | 551 | sha256 = "483e199d0e7feae7cca0df132c649b5c20ddcc1a17760e656c25709f44f57a65", |
Maxwell Henderson | 7a93a65 | 2023-06-24 15:17:09 -0700 | [diff] [blame] | 552 | url = "https://software.frc971.org/Build-Dependencies/postgresql_amd64_v2.tar.gz", |
Philipp Schrader | 41011a1 | 2022-03-13 12:49:32 -0700 | [diff] [blame] | 553 | ) |
| 554 | |
| 555 | http_archive( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 556 | name = "patch", |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 557 | build_file = "@//debian:patch.BUILD", |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 558 | sha256 = "b5ce139648a2e04f5585948ddad2fdae24dd4ee7976ac5a22d6ae7bd5674631e", |
Maxwell Henderson | 7a93a65 | 2023-06-24 15:17:09 -0700 | [diff] [blame] | 559 | url = "https://software.frc971.org/Build-Dependencies/patch.tar.gz", |
Brian Silverman | d3ad165 | 2018-02-18 22:16:29 -0500 | [diff] [blame] | 560 | ) |
Brian Silverman | 7297c0c | 2018-08-05 13:43:00 -0700 | [diff] [blame] | 561 | |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 562 | http_archive( |
Austin Schuh | 71f6fa7 | 2019-08-31 18:23:02 -0700 | [diff] [blame] | 563 | name = "rsync", |
| 564 | build_file = "@//debian:rsync.BUILD", |
James Kuszmaul | c6ea63a | 2023-09-06 20:36:46 -0700 | [diff] [blame] | 565 | sha256 = "75ea8ce442c94fd12c0d00eb24860ac1de5ea6af56154bb1b195a96018c9e8a2", |
| 566 | url = "https://software.frc971.org/Build-Dependencies/rsync-2023.09.06.tar.gz", |
Austin Schuh | 71f6fa7 | 2019-08-31 18:23:02 -0700 | [diff] [blame] | 567 | ) |
| 568 | |
Brian Silverman | bd7860e | 2020-01-05 17:52:40 -0800 | [diff] [blame] | 569 | # //debian:ssh |
Austin Schuh | 71f6fa7 | 2019-08-31 18:23:02 -0700 | [diff] [blame] | 570 | http_archive( |
| 571 | name = "ssh", |
| 572 | build_file = "@//debian:ssh.BUILD", |
James Kuszmaul | c6ea63a | 2023-09-06 20:36:46 -0700 | [diff] [blame] | 573 | sha256 = "9c4a9eefa605283486fb15a44ef9977d4a95b55c3a41c4e71cfbacd1cf20a4b5", |
| 574 | url = "https://software.frc971.org/Build-Dependencies/ssh-2023.09.06.tar.gz", |
Austin Schuh | 71f6fa7 | 2019-08-31 18:23:02 -0700 | [diff] [blame] | 575 | ) |
| 576 | |
| 577 | http_archive( |
Philipp Schrader | d0e33a4 | 2022-01-22 21:55:15 -0800 | [diff] [blame] | 578 | name = "apache2", |
| 579 | build_file = "@//debian:apache2.BUILD", |
| 580 | sha256 = "98b0ad6d911751ba0aa486429e6278f995e7bbabd928c7d3d44c888fa2bf371b", |
Maxwell Henderson | 7a93a65 | 2023-06-24 15:17:09 -0700 | [diff] [blame] | 581 | url = "https://software.frc971.org/Build-Dependencies/apache2.tar.gz", |
Philipp Schrader | d0e33a4 | 2022-01-22 21:55:15 -0800 | [diff] [blame] | 582 | ) |
| 583 | |
| 584 | http_archive( |
Brian Silverman | 7297c0c | 2018-08-05 13:43:00 -0700 | [diff] [blame] | 585 | name = "pandoc", |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 586 | build_file = "@//debian:pandoc.BUILD", |
Stephan Pleines | ecfddf9 | 2023-12-14 19:14:40 -0800 | [diff] [blame] | 587 | sha256 = "3c98503f29f2a7f771647b24a4b591bbe5539119b6b5a006ff09be7bec47bc0e", |
| 588 | url = "https://software.frc971.org/Build-Dependencies/pandoc-2023.12.14.tar.gz", |
Brian Silverman | 7297c0c | 2018-08-05 13:43:00 -0700 | [diff] [blame] | 589 | ) |
Brian Silverman | 4f6ba44 | 2018-08-05 14:34:58 -0700 | [diff] [blame] | 590 | |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 591 | http_archive( |
Brian Silverman | 4f6ba44 | 2018-08-05 14:34:58 -0700 | [diff] [blame] | 592 | name = "libusb", |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 593 | build_file = "@//debian:libusb.BUILD", |
Brian Silverman | 4f6ba44 | 2018-08-05 14:34:58 -0700 | [diff] [blame] | 594 | sha256 = "3ca5cc2d317226f6646866ff9e8c443db3b0f6c82f828e800240982727531590", |
Maxwell Henderson | 7a93a65 | 2023-06-24 15:17:09 -0700 | [diff] [blame] | 595 | url = "https://software.frc971.org/Build-Dependencies/libusb.tar.gz", |
Brian Silverman | 4f6ba44 | 2018-08-05 14:34:58 -0700 | [diff] [blame] | 596 | ) |
Brian Silverman | b80dc9f | 2018-08-05 14:59:24 -0700 | [diff] [blame] | 597 | |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 598 | http_archive( |
Brian Silverman | b80dc9f | 2018-08-05 14:59:24 -0700 | [diff] [blame] | 599 | name = "mingw_compiler", |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 600 | build_file = "@//debian:mingw_compiler.BUILD", |
Brian Silverman | b80dc9f | 2018-08-05 14:59:24 -0700 | [diff] [blame] | 601 | sha256 = "45e86a8460f2151a4f0306e7ae7b06761029d2412ee16f63d1e8d2d29354e378", |
Maxwell Henderson | 7a93a65 | 2023-06-24 15:17:09 -0700 | [diff] [blame] | 602 | url = "https://software.frc971.org/Build-Dependencies/mingw_compiler.tar.gz", |
Brian Silverman | b80dc9f | 2018-08-05 14:59:24 -0700 | [diff] [blame] | 603 | ) |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 604 | |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 605 | http_archive( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 606 | name = "patchelf", |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 607 | build_file = "@//debian:patchelf.BUILD", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 608 | sha256 = "bf8b709909d7d9e30815dd228eeded7dc282e3ce3919d0589ccbb56ac8632abc", |
Maxwell Henderson | 7a93a65 | 2023-06-24 15:17:09 -0700 | [diff] [blame] | 609 | url = "https://software.frc971.org/Build-Dependencies/patchelf.tar.gz", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 610 | ) |
Brian Silverman | 50b9ac0 | 2018-08-12 13:24:10 -0700 | [diff] [blame] | 611 | |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 612 | http_archive( |
Brian Silverman | 50b9ac0 | 2018-08-12 13:24:10 -0700 | [diff] [blame] | 613 | name = "arm_frc_gnueabi_deps", |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 614 | build_file = "@//debian:arm_frc_gnueabi_deps.BUILD", |
Brian Silverman | 50b9ac0 | 2018-08-12 13:24:10 -0700 | [diff] [blame] | 615 | sha256 = "4b26fe45010817dc136488ee1604ade21bd7c264c29f17d864fc6eba9d7442c4", |
Maxwell Henderson | 7a93a65 | 2023-06-24 15:17:09 -0700 | [diff] [blame] | 616 | url = "https://software.frc971.org/Build-Dependencies/arm_frc_gnueabi_deps.tar.gz", |
Brian Silverman | 50b9ac0 | 2018-08-12 13:24:10 -0700 | [diff] [blame] | 617 | ) |
Brian Silverman | 6c8b88b | 2018-09-03 18:17:02 -0700 | [diff] [blame] | 618 | |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 619 | http_archive( |
Philipp Schrader | fd5489f | 2022-09-17 17:31:09 -0700 | [diff] [blame] | 620 | name = "gtk_runtime", |
| 621 | build_file = "@//debian:gtk_runtime.BUILD", |
Philipp Schrader | 7520ee6 | 2022-12-10 14:04:40 -0800 | [diff] [blame] | 622 | sha256 = "5a6014d1783363be6bc95843d03bbb6513e650eaea60be2b1a4c65bf21981f9b", |
Maxwell Henderson | 7a93a65 | 2023-06-24 15:17:09 -0700 | [diff] [blame] | 623 | url = "https://software.frc971.org/Build-Dependencies/gtk_runtime-4.tar.gz", |
Philipp Schrader | fd5489f | 2022-09-17 17:31:09 -0700 | [diff] [blame] | 624 | ) |
| 625 | |
Brian Silverman | 6c8b88b | 2018-09-03 18:17:02 -0700 | [diff] [blame] | 626 | # Downloaded from |
James Kuszmaul | ef420da | 2023-12-27 12:02:15 -0800 | [diff] [blame] | 627 | # From https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 628 | http_archive( |
Brian Silverman | 6c8b88b | 2018-09-03 18:17:02 -0700 | [diff] [blame] | 629 | name = "gcc_arm_none_eabi", |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 630 | build_file = "@//:compilers/gcc_arm_none_eabi.BUILD", |
James Kuszmaul | ef420da | 2023-12-27 12:02:15 -0800 | [diff] [blame] | 631 | sha256 = "6cd1bbc1d9ae57312bcd169ae283153a9572bd6a8e4eeae2fedfbc33b115fdbb", |
| 632 | strip_prefix = "arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi", |
| 633 | url = "https://developer.arm.com/-/media/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-x86_64-arm-none-eabi.tar.xz", |
Brian Silverman | 6c8b88b | 2018-09-03 18:17:02 -0700 | [diff] [blame] | 634 | ) |
Austin Schuh | ad59622 | 2018-01-31 23:34:03 -0800 | [diff] [blame] | 635 | |
Tyler Chatow | fba5782 | 2022-03-22 19:38:41 -0700 | [diff] [blame] | 636 | # Java11 JDK. |
Philipp Schrader | 6efe573 | 2022-02-12 15:11:13 -0800 | [diff] [blame] | 637 | remote_java_repository( |
Austin Schuh | e18baff | 2018-10-20 17:40:42 -0700 | [diff] [blame] | 638 | name = "openjdk_linux_archive", |
Philipp Schrader | 6efe573 | 2022-02-12 15:11:13 -0800 | [diff] [blame] | 639 | prefix = "openjdk", |
Tyler Chatow | fba5782 | 2022-03-22 19:38:41 -0700 | [diff] [blame] | 640 | sha256 = "60e65d32e38876f81ddb623e87ac26c820465b637e263e8bed1acdecb4ca9be2", |
| 641 | strip_prefix = "zulu11.54.25-ca-jdk11.0.14.1-linux_x64", |
Philipp Schrader | 9670a2a | 2023-01-11 01:20:16 -0800 | [diff] [blame] | 642 | target_compatible_with = [ |
| 643 | "@platforms//cpu:x86_64", |
| 644 | "@platforms//os:linux", |
| 645 | ], |
Austin Schuh | e18baff | 2018-10-20 17:40:42 -0700 | [diff] [blame] | 646 | urls = [ |
Maxwell Henderson | 7a93a65 | 2023-06-24 15:17:09 -0700 | [diff] [blame] | 647 | "https://software.frc971.org/Build-Dependencies/zulu11.54.25-ca-jdk11.0.14.1-linux_x64.tar.gz", |
Austin Schuh | e18baff | 2018-10-20 17:40:42 -0700 | [diff] [blame] | 648 | ], |
Tyler Chatow | fba5782 | 2022-03-22 19:38:41 -0700 | [diff] [blame] | 649 | version = "11", |
| 650 | ) |
| 651 | |
| 652 | remote_java_repository( |
| 653 | name = "openjdk_linux_archive_aarch64", |
Tyler Chatow | fba5782 | 2022-03-22 19:38:41 -0700 | [diff] [blame] | 654 | prefix = "openjdk", |
| 655 | sha256 = "b0fb0bc303bb05b5042ef3d0939b9489f4a49a13a2d1c8f03c5d8ab23099454d", |
| 656 | strip_prefix = "zulu11.54.25-ca-jdk11.0.14.1-linux_aarch64", |
Philipp Schrader | 9670a2a | 2023-01-11 01:20:16 -0800 | [diff] [blame] | 657 | target_compatible_with = [ |
| 658 | "@platforms//cpu:aarch64", |
| 659 | "@platforms//os:linux", |
| 660 | ], |
Tyler Chatow | fba5782 | 2022-03-22 19:38:41 -0700 | [diff] [blame] | 661 | urls = [ |
Maxwell Henderson | 7a93a65 | 2023-06-24 15:17:09 -0700 | [diff] [blame] | 662 | "https://software.frc971.org/Build-Dependencies/zulu11.54.25-ca-jdk11.0.14.1-linux_aarch64.tar.gz", |
Tyler Chatow | fba5782 | 2022-03-22 19:38:41 -0700 | [diff] [blame] | 663 | ], |
| 664 | version = "11", |
Austin Schuh | e18baff | 2018-10-20 17:40:42 -0700 | [diff] [blame] | 665 | ) |
| 666 | |
Austin Schuh | f972444 | 2018-10-28 20:30:21 -0700 | [diff] [blame] | 667 | local_repository( |
Austin Schuh | 10358f2 | 2019-01-21 20:25:11 -0800 | [diff] [blame] | 668 | name = "com_github_google_glog", |
| 669 | path = "third_party/google-glog", |
| 670 | ) |
Austin Schuh | 6defdeb | 2019-01-21 21:00:30 -0800 | [diff] [blame] | 671 | |
James Kuszmaul | 3aabc1c | 2023-01-13 21:33:43 -0800 | [diff] [blame] | 672 | http_archive( |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 673 | name = "com_google_googletest", |
James Kuszmaul | 3aabc1c | 2023-01-13 21:33:43 -0800 | [diff] [blame] | 674 | patch_args = ["-p1"], |
| 675 | patches = ["//third_party/googletest:googletest.patch"], |
| 676 | sha256 = "5c6d595243de011f8ce8cc68050cc0490726786e80cdfd6555ebfe148d920407", |
| 677 | strip_prefix = "googletest-356fc301251378e0f6fa6aa794d73714202887ac", |
| 678 | urls = ["https://github.com/google/googletest/archive/356fc301251378e0f6fa6aa794d73714202887ac.zip"], |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 679 | ) |
| 680 | |
Austin Schuh | 6defdeb | 2019-01-21 21:00:30 -0800 | [diff] [blame] | 681 | # External dependency: Google Benchmark; has no Bazel build. |
James Kuszmaul | 38169b9 | 2023-01-13 21:17:05 -0800 | [diff] [blame] | 682 | http_archive( |
Austin Schuh | 6defdeb | 2019-01-21 21:00:30 -0800 | [diff] [blame] | 683 | name = "com_github_google_benchmark", |
James Kuszmaul | 38169b9 | 2023-01-13 21:17:05 -0800 | [diff] [blame] | 684 | patch_args = ["-p1"], |
| 685 | patches = ["//third_party/google-benchmark:benchmark.patch"], |
| 686 | sha256 = "6430e4092653380d9dc4ccb45a1e2dc9259d581f4866dc0759713126056bc1d7", |
| 687 | strip_prefix = "benchmark-1.7.1", |
| 688 | urls = ["https://github.com/google/benchmark/archive/refs/tags/v1.7.1.tar.gz"], |
Austin Schuh | cbc1740 | 2019-01-21 21:00:30 -0800 | [diff] [blame] | 689 | ) |
Austin Schuh | 033df09 | 2019-01-21 19:46:48 -0800 | [diff] [blame] | 690 | |
| 691 | local_repository( |
| 692 | name = "com_google_ceres_solver", |
| 693 | path = "third_party/ceres", |
Austin Schuh | 70cc955 | 2019-01-21 19:46:48 -0800 | [diff] [blame] | 694 | ) |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 695 | |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 696 | http_archive( |
Maxwell Henderson | fcc0d12 | 2023-08-05 17:03:34 -0700 | [diff] [blame] | 697 | name = "ctre_phoenix6_api_cpp_headers", |
James Kuszmaul | 9776b39 | 2023-01-14 14:08:08 -0800 | [diff] [blame] | 698 | build_file_content = """ |
| 699 | cc_library( |
| 700 | name = 'api-cpp', |
| 701 | visibility = ['//visibility:public'], |
James Kuszmaul | cd622d5 | 2023-11-22 20:44:04 -0800 | [diff] [blame] | 702 | hdrs = glob(['ctre/phoenix6/**/*.hpp']), |
James Kuszmaul | 9776b39 | 2023-01-14 14:08:08 -0800 | [diff] [blame] | 703 | includes = ["."], |
| 704 | deps = ["@//third_party/allwpilib/wpimath"], |
| 705 | ) |
| 706 | """, |
Maxwell Henderson | ac681cd | 2024-01-09 15:36:45 -0800 | [diff] [blame] | 707 | sha256 = "1b9295ac868d619d0263f285b372a22297798e45c8fdeb83ca99154a097c5c98", |
James Kuszmaul | 9776b39 | 2023-01-14 14:08:08 -0800 | [diff] [blame] | 708 | urls = [ |
Maxwell Henderson | ac681cd | 2024-01-09 15:36:45 -0800 | [diff] [blame] | 709 | "https://maven.ctr-electronics.com/release/com/ctre/phoenix6/api-cpp/24.1.0/api-cpp-24.1.0-headers.zip", |
James Kuszmaul | 9776b39 | 2023-01-14 14:08:08 -0800 | [diff] [blame] | 710 | ], |
| 711 | ) |
| 712 | |
| 713 | http_archive( |
Maxwell Henderson | fcc0d12 | 2023-08-05 17:03:34 -0700 | [diff] [blame] | 714 | name = "ctre_phoenix6_api_cpp_athena", |
James Kuszmaul | 9776b39 | 2023-01-14 14:08:08 -0800 | [diff] [blame] | 715 | build_file_content = """ |
| 716 | filegroup( |
| 717 | name = 'shared_libraries', |
| 718 | srcs = [ |
Maxwell Henderson | fcc0d12 | 2023-08-05 17:03:34 -0700 | [diff] [blame] | 719 | 'linux/athena/shared/libCTRE_Phoenix6.so', |
James Kuszmaul | 9776b39 | 2023-01-14 14:08:08 -0800 | [diff] [blame] | 720 | ], |
| 721 | visibility = ['//visibility:public'], |
| 722 | ) |
| 723 | |
| 724 | cc_library( |
| 725 | name = 'api-cpp', |
| 726 | visibility = ['//visibility:public'], |
Maxwell Henderson | fcc0d12 | 2023-08-05 17:03:34 -0700 | [diff] [blame] | 727 | srcs = ['linux/athena/shared/libCTRE_Phoenix6.so'], |
James Kuszmaul | 9776b39 | 2023-01-14 14:08:08 -0800 | [diff] [blame] | 728 | target_compatible_with = ['@//tools/platforms/hardware:roborio'], |
| 729 | ) |
| 730 | """, |
Maxwell Henderson | ac681cd | 2024-01-09 15:36:45 -0800 | [diff] [blame] | 731 | sha256 = "51f4921f8995e3e80ba347a90f6fa5c0cb7d0e438923a1a736554f263e2d5b8e", |
James Kuszmaul | 9776b39 | 2023-01-14 14:08:08 -0800 | [diff] [blame] | 732 | urls = [ |
Maxwell Henderson | ac681cd | 2024-01-09 15:36:45 -0800 | [diff] [blame] | 733 | "https://maven.ctr-electronics.com/release/com/ctre/phoenix6/api-cpp/24.1.0/api-cpp-24.1.0-linuxathena.zip", |
James Kuszmaul | 9776b39 | 2023-01-14 14:08:08 -0800 | [diff] [blame] | 734 | ], |
| 735 | ) |
| 736 | |
| 737 | http_archive( |
Maxwell Henderson | fcc0d12 | 2023-08-05 17:03:34 -0700 | [diff] [blame] | 738 | name = "ctre_phoenix6_tools_headers", |
James Kuszmaul | 9776b39 | 2023-01-14 14:08:08 -0800 | [diff] [blame] | 739 | build_file_content = """ |
| 740 | cc_library( |
| 741 | name = 'tools', |
| 742 | visibility = ['//visibility:public'], |
| 743 | hdrs = glob(['ctre/**/*.h', 'ctre/**/*.hpp']), |
| 744 | ) |
| 745 | """, |
Maxwell Henderson | ac681cd | 2024-01-09 15:36:45 -0800 | [diff] [blame] | 746 | sha256 = "72be3e50205e2546736361e3aba9c0de5d5318b263c195600f9b558c3d92cb9e", |
James Kuszmaul | 9776b39 | 2023-01-14 14:08:08 -0800 | [diff] [blame] | 747 | urls = [ |
Maxwell Henderson | ac681cd | 2024-01-09 15:36:45 -0800 | [diff] [blame] | 748 | "https://maven.ctr-electronics.com/release/com/ctre/phoenix6/tools/24.1.0/tools-24.1.0-headers.zip", |
James Kuszmaul | 9776b39 | 2023-01-14 14:08:08 -0800 | [diff] [blame] | 749 | ], |
| 750 | ) |
| 751 | |
| 752 | http_archive( |
Maxwell Henderson | fcc0d12 | 2023-08-05 17:03:34 -0700 | [diff] [blame] | 753 | name = "ctre_phoenix6_tools_athena", |
James Kuszmaul | 9776b39 | 2023-01-14 14:08:08 -0800 | [diff] [blame] | 754 | build_file_content = """ |
| 755 | filegroup( |
| 756 | name = 'shared_libraries', |
| 757 | srcs = [ |
| 758 | 'linux/athena/shared/libCTRE_PhoenixTools.so', |
| 759 | ], |
| 760 | visibility = ['//visibility:public'], |
| 761 | ) |
| 762 | |
| 763 | cc_library( |
| 764 | name = 'tools', |
| 765 | visibility = ['//visibility:public'], |
| 766 | srcs = ['linux/athena/shared/libCTRE_PhoenixTools.so'], |
| 767 | target_compatible_with = ['@//tools/platforms/hardware:roborio'], |
| 768 | ) |
| 769 | """, |
Maxwell Henderson | ac681cd | 2024-01-09 15:36:45 -0800 | [diff] [blame] | 770 | sha256 = "76d30cb8c0988eb6accab10e77ceae492782edb64c06f7df628b8c161cf0220a", |
James Kuszmaul | 9776b39 | 2023-01-14 14:08:08 -0800 | [diff] [blame] | 771 | urls = [ |
Maxwell Henderson | ac681cd | 2024-01-09 15:36:45 -0800 | [diff] [blame] | 772 | "https://maven.ctr-electronics.com/release/com/ctre/phoenix6/tools/24.1.0/tools-24.1.0-linuxathena.zip", |
James Kuszmaul | 9776b39 | 2023-01-14 14:08:08 -0800 | [diff] [blame] | 773 | ], |
| 774 | ) |
| 775 | |
| 776 | http_archive( |
James Kuszmaul | 02eb05e | 2019-12-22 12:32:18 -0800 | [diff] [blame] | 777 | name = "ctre_phoenix_api_cpp_headers", |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 778 | build_file_content = """ |
| 779 | cc_library( |
| 780 | name = 'api-cpp', |
| 781 | visibility = ['//visibility:public'], |
| 782 | hdrs = glob(['ctre/phoenix/**/*.h']), |
| 783 | ) |
| 784 | """, |
Maxwell Henderson | ac681cd | 2024-01-09 15:36:45 -0800 | [diff] [blame] | 785 | sha256 = "d2790e2495a59a3b14ab4b0fd03c2e25292d6874168f5642165acb0d1bab2f99", |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 786 | urls = [ |
Maxwell Henderson | ac681cd | 2024-01-09 15:36:45 -0800 | [diff] [blame] | 787 | "https://maven.ctr-electronics.com/release/com/ctre/phoenix/api-cpp/5.33.0/api-cpp-5.33.0-headers.zip", |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 788 | ], |
| 789 | ) |
| 790 | |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 791 | http_archive( |
James Kuszmaul | 02eb05e | 2019-12-22 12:32:18 -0800 | [diff] [blame] | 792 | name = "ctre_phoenix_api_cpp_athena", |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 793 | build_file_content = """ |
Austin Schuh | de605f1 | 2022-02-23 23:08:19 -0800 | [diff] [blame] | 794 | filegroup( |
| 795 | name = 'shared_libraries', |
| 796 | srcs = [ |
| 797 | 'linux/athena/shared/libCTRE_Phoenix.so', |
| 798 | ], |
| 799 | visibility = ['//visibility:public'], |
| 800 | ) |
| 801 | |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 802 | cc_library( |
| 803 | name = 'api-cpp', |
| 804 | visibility = ['//visibility:public'], |
Austin Schuh | de605f1 | 2022-02-23 23:08:19 -0800 | [diff] [blame] | 805 | srcs = ['linux/athena/shared/libCTRE_Phoenix.so'], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 806 | target_compatible_with = ['@//tools/platforms/hardware:roborio'], |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 807 | ) |
| 808 | """, |
Maxwell Henderson | ac681cd | 2024-01-09 15:36:45 -0800 | [diff] [blame] | 809 | sha256 = "e67348b0db1e61797700b5c4e50b38b745f91899665b740b09fde879e4d8ad7a", |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 810 | urls = [ |
Maxwell Henderson | ac681cd | 2024-01-09 15:36:45 -0800 | [diff] [blame] | 811 | "https://maven.ctr-electronics.com/release/com/ctre/phoenix/api-cpp/5.33.0/api-cpp-5.33.0-linuxathena.zip", |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 812 | ], |
| 813 | ) |
| 814 | |
James Kuszmaul | 02eb05e | 2019-12-22 12:32:18 -0800 | [diff] [blame] | 815 | http_archive( |
| 816 | name = "ctre_phoenix_cci_headers", |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 817 | build_file_content = """ |
| 818 | cc_library( |
| 819 | name = 'cci', |
| 820 | visibility = ['//visibility:public'], |
| 821 | hdrs = glob(['ctre/phoenix/**/*.h']), |
| 822 | ) |
| 823 | """, |
Maxwell Henderson | ac681cd | 2024-01-09 15:36:45 -0800 | [diff] [blame] | 824 | sha256 = "56cb8272d623721560eea360730d2508f4f365e2ac1060aec5fbd546cffc0771", |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 825 | urls = [ |
Maxwell Henderson | ac681cd | 2024-01-09 15:36:45 -0800 | [diff] [blame] | 826 | "https://maven.ctr-electronics.com/release/com/ctre/phoenix/cci/5.33.0/cci-5.33.0-headers.zip", |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 827 | ], |
| 828 | ) |
| 829 | |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 830 | http_archive( |
James Kuszmaul | 02eb05e | 2019-12-22 12:32:18 -0800 | [diff] [blame] | 831 | name = "ctre_phoenix_cci_athena", |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 832 | build_file_content = """ |
Austin Schuh | de605f1 | 2022-02-23 23:08:19 -0800 | [diff] [blame] | 833 | filegroup( |
| 834 | name = 'shared_libraries', |
| 835 | srcs = [ |
| 836 | 'linux/athena/shared/libCTRE_PhoenixCCI.so', |
| 837 | ], |
| 838 | visibility = ['//visibility:public'], |
| 839 | ) |
| 840 | |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 841 | cc_library( |
| 842 | name = 'cci', |
| 843 | visibility = ['//visibility:public'], |
Austin Schuh | de605f1 | 2022-02-23 23:08:19 -0800 | [diff] [blame] | 844 | srcs = ['linux/athena/shared/libCTRE_PhoenixCCI.so'], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 845 | target_compatible_with = ['@//tools/platforms/hardware:roborio'], |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 846 | ) |
| 847 | """, |
Maxwell Henderson | ac681cd | 2024-01-09 15:36:45 -0800 | [diff] [blame] | 848 | sha256 = "7bd8e9950c3e62a3c6ce967e3491c438ba08effde51d434f85b756fa004fbec9", |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 849 | urls = [ |
Maxwell Henderson | ac681cd | 2024-01-09 15:36:45 -0800 | [diff] [blame] | 850 | "https://maven.ctr-electronics.com/release/com/ctre/phoenix/cci/5.33.0/cci-5.33.0-linuxathena.zip", |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 851 | ], |
| 852 | ) |
Austin Schuh | eed1444 | 2019-03-23 14:42:46 -0700 | [diff] [blame] | 853 | |
| 854 | http_archive( |
Philipp Schrader | 175a93c | 2023-02-19 13:13:40 -0800 | [diff] [blame] | 855 | name = "aspect_rules_js", |
| 856 | sha256 = "9fadde0ae6e0101755b8aedabf7d80b166491a8de297c60f6a5179cd0d0fea58", |
| 857 | strip_prefix = "rules_js-1.20.0", |
| 858 | url = "https://github.com/aspect-build/rules_js/releases/download/v1.20.0/rules_js-v1.20.0.tar.gz", |
Austin Schuh | da9d060 | 2019-09-15 17:29:38 -0700 | [diff] [blame] | 859 | ) |
Austin Schuh | eed1444 | 2019-03-23 14:42:46 -0700 | [diff] [blame] | 860 | |
Philipp Schrader | 175a93c | 2023-02-19 13:13:40 -0800 | [diff] [blame] | 861 | load("@aspect_rules_js//npm:npm_import.bzl", "npm_translate_lock", "pnpm_repository") |
Austin Schuh | eed1444 | 2019-03-23 14:42:46 -0700 | [diff] [blame] | 862 | |
Philipp Schrader | 175a93c | 2023-02-19 13:13:40 -0800 | [diff] [blame] | 863 | pnpm_repository(name = "pnpm") |
Austin Schuh | eed1444 | 2019-03-23 14:42:46 -0700 | [diff] [blame] | 864 | |
Philipp Schrader | 175a93c | 2023-02-19 13:13:40 -0800 | [diff] [blame] | 865 | load("@aspect_rules_js//js:repositories.bzl", "rules_js_dependencies") |
Philipp Schrader | 87277f4 | 2022-01-01 07:45:12 -0800 | [diff] [blame] | 866 | |
Philipp Schrader | 175a93c | 2023-02-19 13:13:40 -0800 | [diff] [blame] | 867 | rules_js_dependencies() |
Philipp Schrader | 5404796 | 2022-02-16 21:05:11 -0800 | [diff] [blame] | 868 | |
Alex Perry | b316808 | 2022-01-22 13:36:13 -0800 | [diff] [blame] | 869 | http_archive( |
Philipp Schrader | 175a93c | 2023-02-19 13:13:40 -0800 | [diff] [blame] | 870 | name = "aspect_rules_esbuild", |
| 871 | sha256 = "b98cde83e9e6a006d8300e88e2f09da56b5a6c18166465a224cfe36bdcbc03e0", |
| 872 | strip_prefix = "aspect-build-rules_esbuild-110b94c", |
| 873 | type = "tar.gz", |
| 874 | url = "https://github.com/aspect-build/rules_esbuild/tarball/110b94c7f16f328a0eab8aa0b862030055b86564", |
| 875 | ) |
| 876 | |
| 877 | load("@aspect_rules_esbuild//esbuild:dependencies.bzl", "rules_esbuild_dependencies") |
| 878 | |
| 879 | rules_esbuild_dependencies() |
| 880 | |
| 881 | load("@rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains") |
| 882 | |
| 883 | nodejs_register_toolchains( |
| 884 | name = "nodejs", |
| 885 | node_version = DEFAULT_NODE_VERSION, |
| 886 | ) |
| 887 | |
| 888 | npm_translate_lock( |
| 889 | name = "npm", |
| 890 | data = [ |
| 891 | "@//:package.json", |
| 892 | "@//:pnpm-workspace.yaml", |
| 893 | "@//scouting/www:package.json", |
| 894 | "@//scouting/www/counter_button:package.json", |
| 895 | "@//scouting/www/driver_ranking:package.json", |
| 896 | "@//scouting/www/entry:package.json", |
Philipp Schrader | 175a93c | 2023-02-19 13:13:40 -0800 | [diff] [blame] | 897 | "@//scouting/www/match_list:package.json", |
| 898 | "@//scouting/www/notes:package.json", |
| 899 | "@//scouting/www/rpc:package.json", |
| 900 | "@//scouting/www/shift_schedule:package.json", |
| 901 | "@//scouting/www/view:package.json", |
Philipp Schrader | 5404796 | 2022-02-16 21:05:11 -0800 | [diff] [blame] | 902 | ], |
Philipp Schrader | 175a93c | 2023-02-19 13:13:40 -0800 | [diff] [blame] | 903 | |
| 904 | # Running lifecycle hooks on npm package fsevents@2.3.2 fails in a dramatic way: |
| 905 | # ``` |
| 906 | # SyntaxError: Unexpected strict mode reserved word |
| 907 | # at ESMLoader.moduleStrategy (node:internal/modules/esm/translators:117:18) |
| 908 | # at ESMLoader.moduleProvider (node:internal/modules/esm/loader:337:14) |
| 909 | # at async link (node:internal/modules/esm/module_job:70:21) |
| 910 | # ``` |
| 911 | lifecycle_hooks_no_sandbox = False, |
| 912 | npmrc = "@//:.npmrc", |
| 913 | pnpm_lock = "//:pnpm-lock.yaml", |
| 914 | quiet = False, |
| 915 | update_pnpm_lock = False, |
| 916 | verify_node_modules_ignored = "//:.bazelignore", |
| 917 | ) |
| 918 | |
| 919 | load("@aspect_rules_esbuild//esbuild:repositories.bzl", "esbuild_register_toolchains", LATEST_ESBUILD_VERSION = "LATEST_VERSION") |
| 920 | |
| 921 | esbuild_register_toolchains( |
| 922 | name = "esbuild", |
| 923 | esbuild_version = LATEST_ESBUILD_VERSION, |
| 924 | ) |
| 925 | |
| 926 | http_archive( |
| 927 | name = "aspect_rules_rollup", |
| 928 | patch_args = [ |
| 929 | "-p1", |
| 930 | ], |
| 931 | patches = [ |
| 932 | "//third_party:rules_rollup/0001-Fix-resolving-files.patch", |
| 933 | ], |
| 934 | sha256 = "4c43d20ce377b93cd43a3553e6159a17b85ce80c36a564b55051c2320d32b777", |
| 935 | strip_prefix = "rules_rollup-0.13.1", |
| 936 | url = "https://github.com/aspect-build/rules_rollup/releases/download/v0.13.1/rules_rollup-v0.13.1.tar.gz", |
| 937 | ) |
| 938 | |
| 939 | load("@aspect_rules_rollup//rollup:dependencies.bzl", "rules_rollup_dependencies") |
| 940 | |
| 941 | # Fetches the rules_rollup dependencies. |
| 942 | # If you want to have a different version of some dependency, |
| 943 | # you should fetch it *before* calling this. |
| 944 | # Alternatively, you can skip calling this function, so long as you've |
| 945 | # already fetched all the dependencies. |
| 946 | rules_rollup_dependencies() |
| 947 | |
| 948 | load("@aspect_rules_rollup//rollup:repositories.bzl", "rollup_repositories") |
| 949 | |
| 950 | rollup_repositories(name = "rollup") |
| 951 | |
| 952 | load("@rollup//:npm_repositories.bzl", rollup_npm_repositories = "npm_repositories") |
| 953 | |
| 954 | rollup_npm_repositories() |
| 955 | |
| 956 | http_archive( |
| 957 | name = "aspect_rules_terser", |
| 958 | sha256 = "918e7ac036eca1402cae4d4ddba75ecdcdd886ac35bc0624d9f1ebc7527e369b", |
| 959 | strip_prefix = "rules_terser-0.13.0", |
| 960 | url = "https://github.com/aspect-build/rules_terser/archive/refs/tags/v0.13.0.tar.gz", |
| 961 | ) |
| 962 | |
| 963 | load("@aspect_rules_terser//terser:dependencies.bzl", "rules_terser_dependencies") |
| 964 | |
| 965 | rules_terser_dependencies() |
| 966 | |
| 967 | # Fetch and register a nodejs interpreter, if you haven't already |
| 968 | |
| 969 | nodejs_register_toolchains( |
| 970 | name = "node", |
| 971 | node_version = DEFAULT_NODE_VERSION, |
| 972 | ) |
| 973 | |
| 974 | # Fetch and register the terser tool |
| 975 | load("@aspect_rules_terser//terser:repositories.bzl", "terser_repositories") |
| 976 | |
| 977 | terser_repositories(name = "terser") |
| 978 | |
| 979 | load("@terser//:npm_repositories.bzl", terser_npm_repositories = "npm_repositories") |
| 980 | |
| 981 | terser_npm_repositories() |
| 982 | |
| 983 | http_archive( |
| 984 | name = "aspect_rules_ts", |
| 985 | sha256 = "db77d904284d21121ae63dbaaadfd8c75ff6d21ad229f92038b415c1ad5019cc", |
| 986 | strip_prefix = "rules_ts-1.3.0", |
| 987 | url = "https://github.com/aspect-build/rules_ts/releases/download/v1.3.0/rules_ts-v1.3.0.tar.gz", |
| 988 | ) |
| 989 | |
| 990 | load("@aspect_rules_ts//ts:repositories.bzl", "rules_ts_dependencies") |
| 991 | |
| 992 | rules_ts_dependencies(ts_version_from = "//:package.json") |
| 993 | |
| 994 | load("@npm//:repositories.bzl", "npm_repositories") |
| 995 | |
| 996 | npm_repositories() |
| 997 | |
| 998 | http_archive( |
| 999 | name = "aspect_rules_cypress", |
| 1000 | sha256 = "06d70a2960108607d2e70f9bc6863af6b82317fdfcf7a5a30fd226a5abc46782", |
| 1001 | strip_prefix = "aspect-build-rules_cypress-3db1b74", |
| 1002 | type = "tar.gz", |
| 1003 | urls = [ |
| 1004 | "https://github.com/aspect-build/rules_cypress/tarball/3db1b74818ac4ce1b9d489a6e0065b36c1076761", |
| 1005 | ], |
| 1006 | ) |
| 1007 | |
| 1008 | load("@aspect_rules_cypress//cypress:dependencies.bzl", "rules_cypress_dependencies") |
| 1009 | load("@aspect_rules_cypress//cypress:repositories.bzl", "cypress_register_toolchains") |
| 1010 | |
| 1011 | rules_cypress_dependencies() |
| 1012 | |
| 1013 | cypress_register_toolchains( |
| 1014 | name = "cypress", |
| 1015 | cypress_version = "12.3.0", |
| 1016 | ) |
| 1017 | |
| 1018 | # Copied from: |
| 1019 | # https://github.com/aspect-build/rules_cypress/blob/3db1b74818ac4ce1b9d489a6e0065b36c1076761/internal_deps.bzl#L47 |
| 1020 | # |
| 1021 | # To update CHROME_REVISION, use the below script |
| 1022 | # |
| 1023 | # LASTCHANGE_URL="https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/Linux_x64%2FLAST_CHANGE?alt=media" |
| 1024 | # CHROME_REVISION=$(curl -s -S $LASTCHANGE_URL) |
| 1025 | # echo "latest CHROME_REVISION_LINUX is $CHROME_REVISION" |
| 1026 | CHROME_REVISION_LINUX = "1072361" |
| 1027 | |
| 1028 | http_archive( |
| 1029 | name = "chrome_linux", |
| 1030 | build_file_content = """filegroup( |
| 1031 | name = "all", |
| 1032 | srcs = glob(["**"]), |
| 1033 | visibility = ["//visibility:public"], |
| 1034 | )""", |
| 1035 | sha256 = "0df22f743facd1e090eff9b7f8d8bdc293fb4dc31ce9156d2ef19b515974a72b", |
| 1036 | strip_prefix = "chrome-linux", |
| 1037 | urls = [ |
| 1038 | "https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/Linux_x64%2F" + CHROME_REVISION_LINUX + "%2Fchrome-linux.zip?alt=media", |
| 1039 | ], |
Alex Perry | b316808 | 2022-01-22 13:36:13 -0800 | [diff] [blame] | 1040 | ) |
| 1041 | |
Brian Silverman | e84b0cf | 2022-08-13 19:36:21 -0700 | [diff] [blame] | 1042 | http_archive( |
| 1043 | name = "rules_rust_tinyjson", |
| 1044 | build_file = "@rules_rust//util/process_wrapper:BUILD.tinyjson.bazel", |
| 1045 | sha256 = "1a8304da9f9370f6a6f9020b7903b044aa9ce3470f300a1fba5bc77c78145a16", |
| 1046 | strip_prefix = "tinyjson-2.3.0", |
| 1047 | type = "tar.gz", |
| 1048 | url = "https://crates.io/api/v1/crates/tinyjson/2.3.0/download", |
| 1049 | ) |
| 1050 | |
Adam Snaider | 770b97b | 2023-08-04 21:07:48 -0700 | [diff] [blame] | 1051 | # Flatbuffers |
| 1052 | local_repository( |
| 1053 | name = "com_github_google_flatbuffers", |
| 1054 | path = "third_party/flatbuffers", |
| 1055 | ) |
| 1056 | |
Brian Silverman | 01dfd87 | 2022-04-06 22:20:40 -0700 | [diff] [blame] | 1057 | local_repository( |
Ravago Jones | 1680980 | 2021-11-18 20:40:03 -0800 | [diff] [blame] | 1058 | name = "rules_rust", |
Brian Silverman | 01dfd87 | 2022-04-06 22:20:40 -0700 | [diff] [blame] | 1059 | path = "third_party/rules_rust", |
Ravago Jones | 1680980 | 2021-11-18 20:40:03 -0800 | [diff] [blame] | 1060 | ) |
| 1061 | |
Adam Snaider | b809745 | 2023-07-10 23:18:26 -0400 | [diff] [blame] | 1062 | load("@rules_rust//rust:repositories.bzl", "rust_analyzer_toolchain_repository", "rust_repository_set") |
| 1063 | |
| 1064 | RUST_VERSION = "1.70.0" |
Ravago Jones | 1680980 | 2021-11-18 20:40:03 -0800 | [diff] [blame] | 1065 | |
Brian Silverman | e84b0cf | 2022-08-13 19:36:21 -0700 | [diff] [blame] | 1066 | rust_repository_set( |
Ravago Jones | 1680980 | 2021-11-18 20:40:03 -0800 | [diff] [blame] | 1067 | name = "rust", |
Brian Silverman | 8751d48 | 2022-05-18 23:28:44 -0700 | [diff] [blame] | 1068 | allocator_library = "@//tools/rust:forward_allocator", |
Ravago Jones | 1680980 | 2021-11-18 20:40:03 -0800 | [diff] [blame] | 1069 | edition = "2021", |
| 1070 | exec_triple = "x86_64-unknown-linux-gnu", |
| 1071 | extra_target_triples = [ |
| 1072 | "arm-unknown-linux-gnueabi", |
| 1073 | "armv7-unknown-linux-gnueabihf", |
Philipp Schrader | f1bbf34 | 2022-02-05 14:30:15 -0800 | [diff] [blame] | 1074 | "aarch64-unknown-linux-gnu", |
Ravago Jones | 1680980 | 2021-11-18 20:40:03 -0800 | [diff] [blame] | 1075 | ], |
Brian Silverman | e84b0cf | 2022-08-13 19:36:21 -0700 | [diff] [blame] | 1076 | register_toolchain = False, |
Adam Snaider | b809745 | 2023-07-10 23:18:26 -0400 | [diff] [blame] | 1077 | rustfmt_version = RUST_VERSION, |
| 1078 | versions = [RUST_VERSION], |
Ravago Jones | 1680980 | 2021-11-18 20:40:03 -0800 | [diff] [blame] | 1079 | ) |
| 1080 | |
Adam Snaider | 770b97b | 2023-08-04 21:07:48 -0700 | [diff] [blame] | 1081 | load("@rules_rust//crate_universe:repositories.bzl", "crate_universe_dependencies") |
| 1082 | |
| 1083 | crate_universe_dependencies() |
| 1084 | |
| 1085 | load("@rules_rust//crate_universe:defs.bzl", "crate", "crates_repository") |
| 1086 | |
| 1087 | # Run `CARGO_BAZEL_REPIN=1 bazel sync --only=crate_index` to update the lock file |
| 1088 | # after adding or removing any dependencies. |
| 1089 | crates_repository( |
| 1090 | name = "crate_index", |
| 1091 | annotations = { |
| 1092 | "link-cplusplus": [ |
| 1093 | # Bazel toolchains take care of linking the C++ standard library, so don't add |
| 1094 | # an extra flag via Rust by enabling the `nothing` feature. I'm not even sure |
| 1095 | # it would end up on the link command line, but this crate's build.rs attempts |
| 1096 | # to find a C++ compiler itself otherwise which definitely doesn't work. |
| 1097 | crate.annotation( |
| 1098 | crate_features = ["nothing"], |
| 1099 | ), |
| 1100 | ], |
| 1101 | "cxx": [ |
| 1102 | crate.annotation( |
| 1103 | additive_build_file = "@//third_party/cargo:cxx/include.BUILD.bazel", |
| 1104 | extra_aliased_targets = ["cxx_cc"], |
| 1105 | gen_build_script = False, |
| 1106 | ), |
| 1107 | ], |
| 1108 | "log": [ |
| 1109 | crate.annotation( |
| 1110 | rustc_flags = ["--cfg=atomic_cas"], |
| 1111 | ), |
| 1112 | ], |
| 1113 | }, |
| 1114 | cargo_lockfile = "//:Cargo.lock", |
| 1115 | generator_sha256s = {"x86_64-unknown-linux-gnu": "1987a00e7ae12c705fa010b340410230ae8a47d7d95c02900191968b2e745649"}, |
| 1116 | generator_urls = { |
| 1117 | "x86_64-unknown-linux-gnu": "https://software.frc971.org/Build-Dependencies/cargo-bazel-x86_64-unknown-linux-gnu", |
| 1118 | }, |
| 1119 | lockfile = "//:Cargo.Bazel.lock", |
| 1120 | manifests = [ |
| 1121 | "//:Cargo.toml", |
| 1122 | "//third_party/autocxx:Cargo.toml", |
| 1123 | "//third_party/autocxx:engine/Cargo.toml", |
| 1124 | "//third_party/autocxx:parser/Cargo.toml", |
| 1125 | "//third_party/autocxx:gen/cmd/Cargo.toml", |
| 1126 | "//third_party/autocxx:macro/Cargo.toml", |
| 1127 | "//third_party/autocxx:integration-tests/Cargo.toml", |
| 1128 | "@com_github_google_flatbuffers//rust:flatbuffers/Cargo.toml", |
| 1129 | ], |
| 1130 | rust_toolchain_cargo_template = "@rust__{triple}__{channel}_tools//:bin/{tool}", |
| 1131 | rust_toolchain_rustc_template = "@rust__{triple}__{channel}_tools//:bin/{tool}", |
Adam Snaider | b809745 | 2023-07-10 23:18:26 -0400 | [diff] [blame] | 1132 | rust_version = RUST_VERSION, |
Adam Snaider | 770b97b | 2023-08-04 21:07:48 -0700 | [diff] [blame] | 1133 | supported_platform_triples = [ |
| 1134 | "x86_64-unknown-linux-gnu", |
| 1135 | "arm-unknown-linux-gnueabi", |
| 1136 | "armv7-unknown-linux-gnueabihf", |
| 1137 | "aarch64-unknown-linux-gnu", |
| 1138 | ], |
Austin Schuh | 4ac96a8 | 2019-08-14 20:24:23 -0700 | [diff] [blame] | 1139 | ) |
James Kuszmaul | 7daef36 | 2019-12-31 18:28:17 -0800 | [diff] [blame] | 1140 | |
Adam Snaider | 770b97b | 2023-08-04 21:07:48 -0700 | [diff] [blame] | 1141 | load("@crate_index//:defs.bzl", "crate_repositories") |
| 1142 | |
| 1143 | crate_repositories() |
| 1144 | |
Adam Snaider | b809745 | 2023-07-10 23:18:26 -0400 | [diff] [blame] | 1145 | load("@rules_rust//tools/rust_analyzer:deps.bzl", "rust_analyzer_dependencies") |
| 1146 | |
| 1147 | rust_analyzer_dependencies() |
| 1148 | |
| 1149 | register_toolchains(rust_analyzer_toolchain_repository( |
| 1150 | name = "rust_analyzer_toolchain", |
| 1151 | version = RUST_VERSION, |
| 1152 | )) |
| 1153 | |
Adam Snaider | 770b97b | 2023-08-04 21:07:48 -0700 | [diff] [blame] | 1154 | http_archive( |
| 1155 | name = "cxxbridge-cmd", |
| 1156 | build_file = "//third_party/cargo:cxxbridge-cmd/include.BUILD.bazel", |
| 1157 | sha256 = "df13eece12ed9e7bd4fb071a6af4c44421bb9024d339d029f5333bcdaca00000", |
| 1158 | strip_prefix = "cxxbridge-cmd-1.0.100", |
| 1159 | type = "tar.gz", |
| 1160 | urls = ["https://crates.io/api/v1/crates/cxxbridge-cmd/1.0.100/download"], |
| 1161 | ) |
| 1162 | |
| 1163 | crates_repository( |
| 1164 | name = "cxxbridge_cmd_deps", |
| 1165 | cargo_lockfile = "//third_party/cargo:cxxbridge-cmd/Cargo.lock", |
| 1166 | generator_sha256s = {"x86_64-unknown-linux-gnu": "1987a00e7ae12c705fa010b340410230ae8a47d7d95c02900191968b2e745649"}, |
| 1167 | generator_urls = { |
| 1168 | "x86_64-unknown-linux-gnu": "https://software.frc971.org/Build-Dependencies/cargo-bazel-x86_64-unknown-linux-gnu", |
| 1169 | }, |
| 1170 | lockfile = "//third_party/cargo:cxxbridge-cmd/Cargo.Bazel.lock", |
| 1171 | manifests = ["@cxxbridge-cmd//:Cargo.toml"], |
| 1172 | rust_toolchain_cargo_template = "@rust__{triple}__{channel}_tools//:bin/{tool}", |
| 1173 | rust_toolchain_rustc_template = "@rust__{triple}__{channel}_tools//:bin/{tool}", |
| 1174 | rust_version = "1.70.0", |
| 1175 | supported_platform_triples = [ |
| 1176 | "x86_64-unknown-linux-gnu", |
| 1177 | "arm-unknown-linux-gnueabi", |
| 1178 | "armv7-unknown-linux-gnueabihf", |
| 1179 | "aarch64-unknown-linux-gnu", |
| 1180 | ], |
| 1181 | ) |
| 1182 | |
| 1183 | load("@cxxbridge_cmd_deps//:defs.bzl", cxxbridge_cmd_deps = "crate_repositories") |
| 1184 | |
| 1185 | cxxbridge_cmd_deps() |
| 1186 | |
James Kuszmaul | 7daef36 | 2019-12-31 18:28:17 -0800 | [diff] [blame] | 1187 | http_file( |
| 1188 | name = "sample_logfile", |
| 1189 | downloaded_file_path = "log.fbs", |
milind | 945708b | 2021-07-03 13:30:15 -0700 | [diff] [blame] | 1190 | sha256 = "45d1d19fb82786c476d3f21a8d62742abaeeedf4c16a00ec37ae350dcb61f1fc", |
Maxwell Henderson | 7a93a65 | 2023-06-24 15:17:09 -0700 | [diff] [blame] | 1191 | urls = ["https://software.frc971.org/Build-Dependencies/small_sample_logfile2.fbs"], |
James Kuszmaul | 7daef36 | 2019-12-31 18:28:17 -0800 | [diff] [blame] | 1192 | ) |
Brian Silverman | d4260c7 | 2020-01-14 00:08:02 -0800 | [diff] [blame] | 1193 | |
James Kuszmaul | 9c12812 | 2021-03-22 22:24:36 -0700 | [diff] [blame] | 1194 | http_archive( |
James Kuszmaul | 531609d | 2020-02-18 17:12:23 -0800 | [diff] [blame] | 1195 | name = "drivetrain_replay", |
James Kuszmaul | 9c12812 | 2021-03-22 22:24:36 -0700 | [diff] [blame] | 1196 | build_file_content = """ |
| 1197 | filegroup( |
| 1198 | name = "drivetrain_replay", |
| 1199 | srcs = glob(["**/*.bfbs"]), |
| 1200 | visibility = ["//visibility:public"], |
| 1201 | ) |
| 1202 | """, |
| 1203 | sha256 = "115dcd2fe005cb9cad3325707aa7f4466390c43a08555edf331c06c108bdf692", |
Maxwell Henderson | 7a93a65 | 2023-06-24 15:17:09 -0700 | [diff] [blame] | 1204 | url = "https://software.frc971.org/Build-Dependencies/2021-03-20_drivetrain_spin_wheels.tar.gz", |
James Kuszmaul | 531609d | 2020-02-18 17:12:23 -0800 | [diff] [blame] | 1205 | ) |
| 1206 | |
milind-u | 7baf734 | 2021-08-25 18:31:26 -0700 | [diff] [blame] | 1207 | http_archive( |
| 1208 | name = "superstructure_replay", |
| 1209 | build_file_content = """ |
| 1210 | filegroup( |
| 1211 | name = "superstructure_replay", |
| 1212 | srcs = glob(["**/*.bfbs"]), |
| 1213 | visibility = ["//visibility:public"], |
| 1214 | ) |
| 1215 | """, |
milind-u | 200b276 | 2021-11-06 19:36:15 -0700 | [diff] [blame] | 1216 | sha256 = "2b9a3ecc83f2aba89a1909ae38fe51e6718a5b4d0e7c131846dfb2845df9cd19", |
Maxwell Henderson | 7a93a65 | 2023-06-24 15:17:09 -0700 | [diff] [blame] | 1217 | url = "https://software.frc971.org/Build-Dependencies/2021-10-03_superstructure_shoot_balls.tar.gz", |
milind-u | 7baf734 | 2021-08-25 18:31:26 -0700 | [diff] [blame] | 1218 | ) |
| 1219 | |
Brian Silverman | d97a47c | 2020-01-16 00:47:53 -0800 | [diff] [blame] | 1220 | http_archive( |
| 1221 | name = "opencv_k8", |
| 1222 | build_file = "@//debian:opencv.BUILD", |
Austin Schuh | b7775c0 | 2023-06-02 18:12:02 -0700 | [diff] [blame] | 1223 | sha256 = "1d8f839fd135a700ca0576a503b15b0a198fef5b36f22efae5cae9eaa17935d1", |
Maxwell Henderson | 7a93a65 | 2023-06-24 15:17:09 -0700 | [diff] [blame] | 1224 | url = "https://software.frc971.org/Build-Dependencies/opencv_amd64_v4.tar.gz", |
Brian Silverman | d97a47c | 2020-01-16 00:47:53 -0800 | [diff] [blame] | 1225 | ) |
Brian Silverman | 764945b | 2020-01-16 23:40:43 -0800 | [diff] [blame] | 1226 | |
Brian Silverman | 764945b | 2020-01-16 23:40:43 -0800 | [diff] [blame] | 1227 | http_archive( |
| 1228 | name = "halide_k8", |
| 1229 | build_file = "@//debian:halide.BUILD", |
Austin Schuh | 669068e | 2023-01-04 20:50:34 -0800 | [diff] [blame] | 1230 | sha256 = "be3bdd067acb9ee0d37d0830821113cd69174bee46da466a836d8829fef7cf91", |
| 1231 | strip_prefix = "Halide-14.0.0-x86-64-linux/", |
| 1232 | url = "https://github.com/halide/Halide/releases/download/v14.0.0/Halide-14.0.0-x86-64-linux-6b9ed2afd1d6d0badf04986602c943e287d44e46.tar.gz", |
Brian Silverman | 764945b | 2020-01-16 23:40:43 -0800 | [diff] [blame] | 1233 | ) |
| 1234 | |
Philipp Schrader | f1bbf34 | 2022-02-05 14:30:15 -0800 | [diff] [blame] | 1235 | http_archive( |
| 1236 | name = "halide_arm64", |
| 1237 | build_file = "@//debian:halide.BUILD", |
Austin Schuh | 669068e | 2023-01-04 20:50:34 -0800 | [diff] [blame] | 1238 | sha256 = "cdd42411bcbba682f73d7db0af69837c4857ee90f1727c6feb37fc9a98132385", |
| 1239 | strip_prefix = "Halide-14.0.0-arm-64-linux/", |
| 1240 | url = "https://github.com/halide/Halide/releases/download/v14.0.0/Halide-14.0.0-arm-64-linux-6b9ed2afd1d6d0badf04986602c943e287d44e46.tar.gz", |
Philipp Schrader | f1bbf34 | 2022-02-05 14:30:15 -0800 | [diff] [blame] | 1241 | ) |
| 1242 | |
Brian Silverman | 764945b | 2020-01-16 23:40:43 -0800 | [diff] [blame] | 1243 | http_archive( |
Tyler Chatow | 60671d3 | 2020-02-26 19:49:30 -0800 | [diff] [blame] | 1244 | name = "gstreamer_k8", |
| 1245 | build_file = "@//debian:gstreamer.BUILD", |
Austin Schuh | b7775c0 | 2023-06-02 18:12:02 -0700 | [diff] [blame] | 1246 | sha256 = "09765cb1dd8abc643cb1dd91d536aef3e6604ff05f5f92898d508ed857455d0b", |
Maxwell Henderson | 7a93a65 | 2023-06-24 15:17:09 -0700 | [diff] [blame] | 1247 | url = "https://software.frc971.org/Build-Dependencies/gstreamer_1.20.1-1~bpo11+1_amd64_v2.tar.gz", |
Tyler Chatow | 60671d3 | 2020-02-26 19:49:30 -0800 | [diff] [blame] | 1248 | ) |
| 1249 | |
| 1250 | http_archive( |
Tyler Chatow | 6eda82c | 2022-03-27 22:37:38 -0700 | [diff] [blame] | 1251 | name = "gstreamer_arm64", |
| 1252 | build_file = "@//debian:gstreamer.BUILD", |
| 1253 | sha256 = "42b414c565ffdbae3d2d7796a66da9de42a650de757fa6554fd624f0cc3aaa9b", |
Maxwell Henderson | 7a93a65 | 2023-06-24 15:17:09 -0700 | [diff] [blame] | 1254 | url = "https://software.frc971.org/Build-Dependencies/gstreamer_1.20.1-1~bpo11+1_arm64.tar.gz", |
Tyler Chatow | 6eda82c | 2022-03-27 22:37:38 -0700 | [diff] [blame] | 1255 | ) |
| 1256 | |
Brian Silverman | f59fe3f | 2020-09-22 21:04:09 -0700 | [diff] [blame] | 1257 | # //debian:lzma_amd64 |
| 1258 | http_archive( |
| 1259 | name = "lzma_amd64", |
| 1260 | build_file_content = """ |
| 1261 | cc_library( |
| 1262 | name = "lib", |
| 1263 | srcs = [ |
| 1264 | "usr/lib/x86_64-linux-gnu/liblzma.a", |
| 1265 | ], |
| 1266 | hdrs = glob([ |
| 1267 | "usr/include/lzma/*.h", |
| 1268 | "usr/include/*.h", |
| 1269 | ]), |
| 1270 | strip_include_prefix = "usr/include", |
| 1271 | visibility = ["//visibility:public"], |
| 1272 | ) |
| 1273 | """, |
Austin Schuh | e675177 | 2022-06-27 00:58:26 -0700 | [diff] [blame] | 1274 | sha256 = "6fa0ad579b78bd41a0133024c34063b140442dd2ad4201fd2bf4c55229e7c13f", |
Maxwell Henderson | 7a93a65 | 2023-06-24 15:17:09 -0700 | [diff] [blame] | 1275 | urls = ["https://software.frc971.org/Build-Dependencies/lzma_amd64-2.tar.gz"], |
Brian Silverman | f59fe3f | 2020-09-22 21:04:09 -0700 | [diff] [blame] | 1276 | ) |
| 1277 | |
| 1278 | # //debian:lzma_arm64 |
| 1279 | http_archive( |
| 1280 | name = "lzma_arm64", |
| 1281 | build_file_content = """ |
| 1282 | cc_library( |
| 1283 | name = "lib", |
| 1284 | srcs = [ |
| 1285 | "usr/lib/aarch64-linux-gnu/liblzma.a", |
| 1286 | ], |
| 1287 | hdrs = glob([ |
| 1288 | "usr/include/lzma/*.h", |
| 1289 | "usr/include/*.h", |
| 1290 | ]), |
| 1291 | strip_include_prefix = "usr/include", |
| 1292 | visibility = ["//visibility:public"], |
| 1293 | ) |
| 1294 | """, |
Austin Schuh | c020b18 | 2022-06-29 19:54:01 -0700 | [diff] [blame] | 1295 | sha256 = "b4ab9fd7cf3bfdb9e3fc67ac4a3c84db7f7e3c48431ccfc6e6e210f5829d17c9", |
Maxwell Henderson | 7a93a65 | 2023-06-24 15:17:09 -0700 | [diff] [blame] | 1296 | urls = ["https://software.frc971.org/Build-Dependencies/lzma_arm64-2.tar.gz"], |
Brian Silverman | f59fe3f | 2020-09-22 21:04:09 -0700 | [diff] [blame] | 1297 | ) |
James Kuszmaul | 2cffe85 | 2021-10-27 20:17:49 -0700 | [diff] [blame] | 1298 | |
| 1299 | local_repository( |
| 1300 | name = "snappy", |
| 1301 | path = "third_party/snappy", |
| 1302 | ) |
Philipp Schrader | 73e5660 | 2021-12-06 21:37:30 -0800 | [diff] [blame] | 1303 | |
| 1304 | http_archive( |
| 1305 | name = "io_bazel_rules_go", |
Philipp Schrader | 039f5c3 | 2022-01-20 22:30:01 -0800 | [diff] [blame] | 1306 | patch_args = [ |
| 1307 | "-p1", |
| 1308 | ], |
| 1309 | patches = [ |
| 1310 | "@//third_party:rules_go/0001-Disable-warnings-for-external-repositories.patch", |
| 1311 | ], |
Philipp Schrader | 35bb153 | 2023-03-05 13:49:12 -0800 | [diff] [blame] | 1312 | sha256 = "dd926a88a564a9246713a9c00b35315f54cbd46b31a26d5d8fb264c07045f05d", |
Philipp Schrader | 73e5660 | 2021-12-06 21:37:30 -0800 | [diff] [blame] | 1313 | urls = [ |
Philipp Schrader | 35bb153 | 2023-03-05 13:49:12 -0800 | [diff] [blame] | 1314 | "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.38.1/rules_go-v0.38.1.zip", |
| 1315 | "https://github.com/bazelbuild/rules_go/releases/download/v0.38.1/rules_go-v0.38.1.zip", |
Philipp Schrader | 73e5660 | 2021-12-06 21:37:30 -0800 | [diff] [blame] | 1316 | ], |
| 1317 | ) |
| 1318 | |
Philipp Schrader | 37fdbb6 | 2021-12-18 00:30:37 -0800 | [diff] [blame] | 1319 | http_archive( |
| 1320 | name = "bazel_gazelle", |
Philipp Schrader | 35bb153 | 2023-03-05 13:49:12 -0800 | [diff] [blame] | 1321 | patch_args = [ |
| 1322 | "-p1", |
| 1323 | ], |
| 1324 | patches = [ |
| 1325 | "@//third_party:bazel-gazelle/0001-Fix-visibility-of-gazelle-runner.patch", |
| 1326 | ], |
| 1327 | sha256 = "ecba0f04f96b4960a5b250c8e8eeec42281035970aa8852dda73098274d14a1d", |
Philipp Schrader | 37fdbb6 | 2021-12-18 00:30:37 -0800 | [diff] [blame] | 1328 | urls = [ |
Philipp Schrader | 35bb153 | 2023-03-05 13:49:12 -0800 | [diff] [blame] | 1329 | "https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.29.0/bazel-gazelle-v0.29.0.tar.gz", |
| 1330 | "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.29.0/bazel-gazelle-v0.29.0.tar.gz", |
Philipp Schrader | 37fdbb6 | 2021-12-18 00:30:37 -0800 | [diff] [blame] | 1331 | ], |
| 1332 | ) |
| 1333 | |
Philipp Schrader | 73e5660 | 2021-12-06 21:37:30 -0800 | [diff] [blame] | 1334 | load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies") |
| 1335 | |
| 1336 | go_rules_dependencies() |
| 1337 | |
Philipp Schrader | 35bb153 | 2023-03-05 13:49:12 -0800 | [diff] [blame] | 1338 | go_register_toolchains(version = "1.19.5") |
Philipp Schrader | 37fdbb6 | 2021-12-18 00:30:37 -0800 | [diff] [blame] | 1339 | |
| 1340 | load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies") |
| 1341 | load("//:go_deps.bzl", "go_dependencies") |
| 1342 | load("//tools/go:mirrored_go_deps.bzl", "mirrored_go_dependencies") |
| 1343 | |
| 1344 | mirrored_go_dependencies() |
| 1345 | |
| 1346 | # gazelle:repository_macro go_deps.bzl%go_dependencies |
| 1347 | go_dependencies() |
| 1348 | |
| 1349 | gazelle_dependencies() |
Philipp Schrader | cc016b3 | 2021-12-30 08:59:58 -0800 | [diff] [blame] | 1350 | |
| 1351 | http_archive( |
Adam Snaider | 13d48d9 | 2023-08-03 12:20:15 -0700 | [diff] [blame] | 1352 | name = "com_google_protobuf", |
| 1353 | sha256 = "ace0abf35274ee0f08d5564635505ed55a0bc346a6534413d3c5b040fc926332", |
| 1354 | strip_prefix = "protobuf-24.3", |
| 1355 | url = "https://github.com/protocolbuffers/protobuf/archive/refs/tags/v24.3.zip", |
| 1356 | ) |
| 1357 | |
| 1358 | http_archive( |
| 1359 | name = "com_github_grpc_grpc", |
| 1360 | patch_args = ["-p1"], |
| 1361 | patches = ["//debian:grpc.patch"], |
| 1362 | sha256 = "a3a65f0129c4922c5d7f4c11dcd40083a12ca54076fd3a927bcd63c53b7e44a5", |
| 1363 | strip_prefix = "grpc-1.59.2", |
| 1364 | url = "https://github.com/grpc/grpc/archive/refs/tags/v1.59.2.tar.gz", |
| 1365 | ) |
| 1366 | |
| 1367 | load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps") |
| 1368 | |
| 1369 | grpc_deps() |
| 1370 | |
| 1371 | load("@com_github_grpc_grpc//bazel:grpc_extra_deps.bzl", "grpc_extra_deps") |
| 1372 | |
| 1373 | grpc_extra_deps() |
| 1374 | |
| 1375 | http_archive( |
Philipp Schrader | cc016b3 | 2021-12-30 08:59:58 -0800 | [diff] [blame] | 1376 | name = "com_github_bazelbuild_buildtools", |
| 1377 | sha256 = "44a6e5acc007e197d45ac3326e7f993f0160af9a58e8777ca7701e00501c0857", |
| 1378 | strip_prefix = "buildtools-4.2.4", |
| 1379 | urls = [ |
| 1380 | "https://github.com/bazelbuild/buildtools/archive/refs/tags/4.2.4.tar.gz", |
| 1381 | ], |
| 1382 | ) |
Philipp Schrader | 0f5d250 | 2022-03-08 22:44:55 -0800 | [diff] [blame] | 1383 | |
| 1384 | http_archive( |
Tyler Chatow | ec100e2 | 2022-03-22 16:23:04 -0700 | [diff] [blame] | 1385 | name = "libtinfo5_amd64", |
Tyler Chatow | 8a51ac6 | 2022-03-15 13:23:12 -0700 | [diff] [blame] | 1386 | build_file_content = """ |
| 1387 | exports_files( |
| 1388 | [ |
| 1389 | 'lib/x86_64-linux-gnu/libtinfo.so.5', |
| 1390 | 'lib/x86_64-linux-gnu/libtinfo.so.5.9', |
| 1391 | ], |
| 1392 | ["//visibility:public"], |
| 1393 | ) |
| 1394 | """, |
| 1395 | patch_cmds = ["touch lib/x86_64-linux-gnu/BUILD"], |
| 1396 | sha256 = "059e14f77dce365c57b96284aae98c892f61e269b3fbb7d07714b7135c2e5617", |
Maxwell Henderson | 7a93a65 | 2023-06-24 15:17:09 -0700 | [diff] [blame] | 1397 | urls = ["https://software.frc971.org/Build-Dependencies/libtinfo5_amd64.tar.gz"], |
Tyler Chatow | 8a51ac6 | 2022-03-15 13:23:12 -0700 | [diff] [blame] | 1398 | ) |
Tyler Chatow | ec100e2 | 2022-03-22 16:23:04 -0700 | [diff] [blame] | 1399 | |
| 1400 | http_archive( |
| 1401 | name = "libtinfo5_arm64", |
| 1402 | build_file_content = """ |
| 1403 | exports_files( |
| 1404 | [ |
| 1405 | 'lib/aarch64-linux-gnu/libtinfo.so.5', |
| 1406 | 'lib/aarch64-linux-gnu/libtinfo.so.5.9', |
| 1407 | ], |
| 1408 | ["//visibility:public"], |
| 1409 | ) |
| 1410 | """, |
| 1411 | patch_cmds = ["touch lib/aarch64-linux-gnu/BUILD"], |
| 1412 | sha256 = "df4ea5194c80df8d1f5f6ed68b47ce9dbf78aa8cdebbc61cf00654d9075f8e3c", |
Maxwell Henderson | 7a93a65 | 2023-06-24 15:17:09 -0700 | [diff] [blame] | 1413 | urls = ["https://software.frc971.org/Build-Dependencies/libtinfo5_arm64.tar.gz"], |
Tyler Chatow | ec100e2 | 2022-03-22 16:23:04 -0700 | [diff] [blame] | 1414 | ) |
James Kuszmaul | 4ed5fb1 | 2022-03-22 15:20:04 -0700 | [diff] [blame] | 1415 | |
Philipp Schrader | f60e7d7 | 2023-02-19 17:07:22 -0800 | [diff] [blame] | 1416 | http_archive( |
| 1417 | name = "xvfb_amd64", |
| 1418 | build_file = "//third_party:xvfb/xvfb.BUILD", |
| 1419 | patch_cmds = [ |
| 1420 | "unlink usr/bin/X11", |
| 1421 | ], |
| 1422 | sha256 = "a7491bf6c47ed0037992fa493f9c25af3ab00a695d706e1fdc122a8b798c0d7c", |
Maxwell Henderson | 7a93a65 | 2023-06-24 15:17:09 -0700 | [diff] [blame] | 1423 | urls = ["https://software.frc971.org/Build-Dependencies/xvfb_amd64.tar.gz"], |
Philipp Schrader | f60e7d7 | 2023-02-19 17:07:22 -0800 | [diff] [blame] | 1424 | ) |
| 1425 | |
Austin Schuh | 8611071 | 2022-09-16 15:40:54 -0700 | [diff] [blame] | 1426 | # https://curl.haxx.se/download/curl-7.69.1.tar.gz |
| 1427 | http_archive( |
| 1428 | name = "com_github_curl_curl", |
| 1429 | build_file = "//debian:curl.BUILD", |
| 1430 | sha256 = "01ae0c123dee45b01bbaef94c0bc00ed2aec89cb2ee0fd598e0d302a6b5e0a98", |
| 1431 | strip_prefix = "curl-7.69.1", |
Maxwell Henderson | 7a93a65 | 2023-06-24 15:17:09 -0700 | [diff] [blame] | 1432 | url = "https://software.frc971.org/Build-Dependencies/curl-7.69.1.tar.gz", |
Austin Schuh | 8611071 | 2022-09-16 15:40:54 -0700 | [diff] [blame] | 1433 | ) |
| 1434 | |
| 1435 | http_archive( |
| 1436 | # No official name exists. Names used in our external dependencies include |
| 1437 | # zlib, madler_zlib, com_github_madler_zlib. |
| 1438 | name = "zlib", |
| 1439 | build_file = "//debian:BUILD.zlib.bazel", |
| 1440 | sha256 = "629380c90a77b964d896ed37163f5c3a34f6e6d897311f1df2a7016355c45eff", |
| 1441 | strip_prefix = "zlib-1.2.11", |
| 1442 | urls = [ |
| 1443 | "https://github.com/madler/zlib/archive/v1.2.11.tar.gz", |
| 1444 | ], |
| 1445 | ) |
| 1446 | |
| 1447 | # This one is tricky to get an archive because it has recursive submodules. These semi-automated steps do work though: |
James Kuszmaul | b0931ac | 2023-01-24 14:23:13 -0800 | [diff] [blame] | 1448 | # git clone -b 1.10.34 --recurse-submodules --depth=1 https://github.com/aws/aws-sdk-cpp |
Austin Schuh | 8611071 | 2022-09-16 15:40:54 -0700 | [diff] [blame] | 1449 | # cd aws-sdk-cpp |
| 1450 | # echo bsdtar -a -cf aws_sdk-version.tar.gz --ignore-zeros @\<\(git archive HEAD\) $(git submodule foreach --recursive --quiet 'echo @\<\(cd $displaypath \&\& git archive HEAD --prefix=$displaypath/\)') |
| 1451 | # Now run the command that printed, and the output will be at aws_sdk-version.tar.gz. |
| 1452 | http_archive( |
| 1453 | name = "aws_sdk", |
| 1454 | build_file = "//debian:aws_sdk.BUILD", |
| 1455 | patch_args = ["-p1"], |
| 1456 | patches = ["//debian:aws_sdk.patch"], |
James Kuszmaul | b0931ac | 2023-01-24 14:23:13 -0800 | [diff] [blame] | 1457 | sha256 = "de6570d10c246189fd8c02100f7f0d9af8499a3ef94a131eeb85619f3bd6c604", |
Maxwell Henderson | 7a93a65 | 2023-06-24 15:17:09 -0700 | [diff] [blame] | 1458 | url = "https://software.frc971.org/Build-Dependencies/aws_sdk-1.10.34.tar.gz", |
Austin Schuh | 8611071 | 2022-09-16 15:40:54 -0700 | [diff] [blame] | 1459 | ) |
| 1460 | |
James Kuszmaul | 5ab990d | 2022-11-07 16:35:49 -0800 | [diff] [blame] | 1461 | # Source code of LZ4 (files under lib/) are under BSD 2-Clause. |
| 1462 | # The rest of the repository (build information, documentation, etc.) is under GPLv2. |
| 1463 | # We only care about the lib/ subfolder anyways, and strip out any other files. |
| 1464 | http_archive( |
| 1465 | name = "com_github_lz4_lz4", |
| 1466 | build_file = "//debian:BUILD.lz4.bazel", |
| 1467 | sha256 = "0b0e3aa07c8c063ddf40b082bdf7e37a1562bda40a0ff5272957f3e987e0e54b", |
| 1468 | strip_prefix = "lz4-1.9.4/lib", |
| 1469 | url = "https://github.com/lz4/lz4/archive/refs/tags/v1.9.4.tar.gz", |
| 1470 | ) |
| 1471 | |
James Kuszmaul | 5c56ed3 | 2022-03-30 15:10:07 -0700 | [diff] [blame] | 1472 | http_file( |
| 1473 | name = "com_github_foxglove_mcap_mcap", |
| 1474 | executable = True, |
James Kuszmaul | 5ab990d | 2022-11-07 16:35:49 -0800 | [diff] [blame] | 1475 | sha256 = "ae745dd09cf4c9570c1c038a72630c07b073f0ed4b05983d64108ff748a40d3f", |
| 1476 | urls = ["https://github.com/foxglove/mcap/releases/download/releases%2Fmcap-cli%2Fv0.0.22/mcap-linux-amd64"], |
James Kuszmaul | 5c56ed3 | 2022-03-30 15:10:07 -0700 | [diff] [blame] | 1477 | ) |
Brian Silverman | 0aa1373 | 2022-05-19 23:14:08 -0700 | [diff] [blame] | 1478 | |
| 1479 | http_archive( |
James Kuszmaul | 0de4feb | 2022-04-15 12:16:59 -0700 | [diff] [blame] | 1480 | name = "com_github_zaphoyd_websocketpp", |
| 1481 | build_file = "//third_party/websocketpp:websocketpp.BUILD", |
Ravago Jones | 0c74c12 | 2023-01-08 15:20:19 -0800 | [diff] [blame] | 1482 | patch_args = ["-p1"], |
| 1483 | patches = ["//third_party/websocketpp:websocketpp.patch"], |
James Kuszmaul | 0de4feb | 2022-04-15 12:16:59 -0700 | [diff] [blame] | 1484 | sha256 = "6ce889d85ecdc2d8fa07408d6787e7352510750daa66b5ad44aacb47bea76755", |
| 1485 | strip_prefix = "websocketpp-0.8.2", |
| 1486 | url = "https://github.com/zaphoyd/websocketpp/archive/refs/tags/0.8.2.tar.gz", |
| 1487 | ) |
| 1488 | |
| 1489 | http_archive( |
| 1490 | name = "com_github_foxglove_ws-protocol", |
James Kuszmaul | 6b60929 | 2023-01-28 15:58:43 -0800 | [diff] [blame] | 1491 | build_file = "//third_party/foxglove/ws_protocol:foxglove_ws_protocol.BUILD", |
James Kuszmaul | 0de4feb | 2022-04-15 12:16:59 -0700 | [diff] [blame] | 1492 | patch_args = ["-p1"], |
James Kuszmaul | 6b60929 | 2023-01-28 15:58:43 -0800 | [diff] [blame] | 1493 | patches = ["//third_party/foxglove/ws_protocol:foxglove_ws_protocol.patch"], |
James Kuszmaul | 0de4feb | 2022-04-15 12:16:59 -0700 | [diff] [blame] | 1494 | sha256 = "3256f09a67419f6556778c443d332f1a4bf53ba0e7a464179bf838abffa366ab", |
| 1495 | strip_prefix = "ws-protocol-releases-typescript-ws-protocol-examples-v0.0.6", |
| 1496 | url = "https://github.com/foxglove/ws-protocol/archive/refs/tags/releases/typescript/ws-protocol-examples/v0.0.6.tar.gz", |
| 1497 | ) |
| 1498 | |
| 1499 | http_archive( |
| 1500 | name = "asio", |
| 1501 | build_file_content = """ |
| 1502 | cc_library( |
| 1503 | name = "asio", |
| 1504 | hdrs = glob(["include/asio/**/*.hpp", "include/asio/**/*.ipp", "include/asio.hpp"]), |
| 1505 | visibility = ["//visibility:public"], |
| 1506 | defines = ["ASIO_STANDALONE"], |
| 1507 | includes = ["include/"], |
| 1508 | )""", |
| 1509 | sha256 = "8976812c24a118600f6fcf071a20606630a69afe4c0abee3b0dea528e682c585", |
| 1510 | strip_prefix = "asio-1.24.0", |
| 1511 | url = "https://downloads.sourceforge.net/project/asio/asio/1.24.0%2520%2528Stable%2529/asio-1.24.0.tar.bz2", |
| 1512 | ) |
James Kuszmaul | 6b60929 | 2023-01-28 15:58:43 -0800 | [diff] [blame] | 1513 | |
| 1514 | http_archive( |
| 1515 | name = "com_github_foxglove_schemas", |
| 1516 | build_file = "//third_party/foxglove/schemas:schemas.BUILD", |
| 1517 | sha256 = "c0d08365eb8fba0af7773b5f0095fb53fb53f020bde46edaa308af5bb939fc15", |
| 1518 | strip_prefix = "schemas-7a3e077b88142ac46bb4e2616f83dc029b45352e/schemas/flatbuffer", |
| 1519 | url = "https://github.com/foxglove/schemas/archive/7a3e077b88142ac46bb4e2616f83dc029b45352e.tar.gz", |
| 1520 | ) |
James Kuszmaul | 3398d0b | 2023-02-11 22:55:22 -0800 | [diff] [blame] | 1521 | |
| 1522 | # This contains the *compiled* foxglove studio. This can be reproduced by: |
| 1523 | # 1. Cloning https://github.com/foxglove/studio |
| 1524 | # 2. Building the code (yarn web:build:prod) |
| 1525 | # 3. tar'ing the web/.webpack folder |
| 1526 | # These files can be hosted locally to provide an offline foxglove server. |
| 1527 | # Foxglove may be served on any port and may be nested at a subpath |
| 1528 | # (e.g., at hostname:8000/foxglove behind a proxy). |
| 1529 | http_archive( |
| 1530 | name = "foxglove_studio", |
| 1531 | build_file_content = """ |
| 1532 | filegroup( |
| 1533 | name = "foxglove_studio", |
| 1534 | srcs = glob(["**"]), |
| 1535 | visibility = ["//visibility:public"], |
| 1536 | )""", |
James Kuszmaul | 4ae8e2e | 2023-12-09 12:59:33 -0800 | [diff] [blame] | 1537 | sha256 = "68513024efb60dcdfc9b130d3e0466d194a8599fbd85f8e99d01c148d03e5887", |
James Kuszmaul | 3398d0b | 2023-02-11 22:55:22 -0800 | [diff] [blame] | 1538 | url = |
James Kuszmaul | 4ae8e2e | 2023-12-09 12:59:33 -0800 | [diff] [blame] | 1539 | "https://software.frc971.org/Build-Dependencies/foxglove-9857d637e90dfeecd63ad47fa760046791f8d43c.tar.gz", |
James Kuszmaul | 3398d0b | 2023-02-11 22:55:22 -0800 | [diff] [blame] | 1540 | ) |
Ravago Jones | 9c10b2a | 2023-02-06 12:41:59 -0800 | [diff] [blame] | 1541 | |
| 1542 | # |
| 1543 | # https://www.st.com/en/embedded-software/stsw-img009.html#overview |
| 1544 | http_archive( |
| 1545 | name = "vl53l1x_ultra_lite_driver_api", |
| 1546 | build_file = "//third_party/vl53l1x:vl53l1x.BUILD", |
| 1547 | patch_args = ["-p1"], |
| 1548 | patches = ["//third_party/vl53l1x:vl53l1x.patch"], |
| 1549 | sha256 = "06a66254ab7a8b061f93ff0f65abb6088c3ea50335475bb6ac11087beb65d174", |
| 1550 | strip_prefix = "en.STSW-IMG009_v3.5.2/API", |
Maxwell Henderson | 7a93a65 | 2023-06-24 15:17:09 -0700 | [diff] [blame] | 1551 | url = "https://software.frc971.org/Build-Dependencies/en.STSW-IMG009.zip", |
Ravago Jones | 9c10b2a | 2023-02-06 12:41:59 -0800 | [diff] [blame] | 1552 | ) |
Yash Chainani | 10b7b02 | 2023-02-22 14:34:04 -0800 | [diff] [blame] | 1553 | |
| 1554 | http_archive( |
| 1555 | name = "apriltag_test_bfbs_images", |
| 1556 | build_file_content = """ |
| 1557 | filegroup( |
| 1558 | name = "apriltag_test_bfbs_images", |
| 1559 | srcs = glob(["**"]), |
| 1560 | visibility = ["//visibility:public"], |
| 1561 | )""", |
| 1562 | sha256 = "2356b9d0b3be59d01e837bfbbee21de55b16232d5e00c66701c20b64ff3272e3", |
Maxwell Henderson | 7a93a65 | 2023-06-24 15:17:09 -0700 | [diff] [blame] | 1563 | url = "https://software.frc971.org/Build-Dependencies/2023_arducam_apriltag_test_images.tar.gz", |
Yash Chainani | 10b7b02 | 2023-02-22 14:34:04 -0800 | [diff] [blame] | 1564 | ) |
Filip Kujawa | a5e3970 | 2023-03-04 17:58:27 -0800 | [diff] [blame] | 1565 | |
Austin Schuh | 1fc51fa | 2024-01-01 12:34:00 -0800 | [diff] [blame] | 1566 | http_file( |
| 1567 | name = "orin_image_apriltag", |
| 1568 | downloaded_file_path = "orin_image_apriltag.bfbs", |
| 1569 | sha256 = "c86604fd0b1301b301e299b1bba2573af8c586413934a386a2bd28fd9b037b84", |
| 1570 | url = "https://software.frc971.org/Build-Dependencies/orin_image_apriltag.bfbs", |
| 1571 | ) |
| 1572 | |
| 1573 | http_file( |
| 1574 | name = "orin_large_image_apriltag", |
| 1575 | downloaded_file_path = "orin_large_gs_apriltag.bfbs", |
| 1576 | sha256 = "d933adac0d6c205c574791060be73701ead05977ff5dd9f6f4eadb45817c3ccb", |
| 1577 | url = "https://software.frc971.org/Build-Dependencies/orin_large_gs_apriltag.bfbs", |
| 1578 | ) |
| 1579 | |
Filip Kujawa | a5e3970 | 2023-03-04 17:58:27 -0800 | [diff] [blame] | 1580 | http_archive( |
| 1581 | name = "libedgetpu", |
| 1582 | build_file = "//third_party:libedgetpu/libedgetpu.BUILD", |
Filip Kujawa | 8c76e5d | 2023-04-08 16:20:27 -0700 | [diff] [blame] | 1583 | sha256 = "c900faf2c9ea9599fda60c3d03ac43d0d7b34119659c9e35638b81cd14354b57", |
Filip Kujawa | a5e3970 | 2023-03-04 17:58:27 -0800 | [diff] [blame] | 1584 | strip_prefix = "libedgetpu-bazel", |
Maxwell Henderson | 7a93a65 | 2023-06-24 15:17:09 -0700 | [diff] [blame] | 1585 | url = "https://software.frc971.org/Build-Dependencies/libedgetpu-ddfa7bde33c23afd8c2892182faa3e5b4e6ad94e.tar.gz", |
Filip Kujawa | a5e3970 | 2023-03-04 17:58:27 -0800 | [diff] [blame] | 1586 | ) |
| 1587 | |
| 1588 | http_archive( |
| 1589 | name = "libtensorflowlite", |
| 1590 | build_file = "//third_party:libtensorflowlite/libtensorflowlite.BUILD", |
Filip Kujawa | 8c76e5d | 2023-04-08 16:20:27 -0700 | [diff] [blame] | 1591 | sha256 = "a073dfddb3cb25113ba7eac6edb5569d0ae7988cad881d3f665e8ca0b8b85108", |
Filip Kujawa | a5e3970 | 2023-03-04 17:58:27 -0800 | [diff] [blame] | 1592 | strip_prefix = "tensorflow-bazel", |
Maxwell Henderson | 7a93a65 | 2023-06-24 15:17:09 -0700 | [diff] [blame] | 1593 | url = "https://software.frc971.org/Build-Dependencies/tensorflow-a4dfb8d1a71385bd6d122e4f27f86dcebb96712d.tar.gz", |
Filip Kujawa | a5e3970 | 2023-03-04 17:58:27 -0800 | [diff] [blame] | 1594 | ) |
Philipp Schrader | 119c382 | 2023-03-07 19:49:58 -0800 | [diff] [blame] | 1595 | |
| 1596 | http_archive( |
| 1597 | name = "julia", |
| 1598 | build_file = "//third_party:julia/julia.BUILD", |
| 1599 | patch_cmds = [ |
| 1600 | "echo 'LIB_SYMLINKS = {' > files.bzl", |
Austin Schuh | 1e69d42 | 2023-06-25 16:57:01 -0700 | [diff] [blame] | 1601 | """find lib/ -type l -exec bash -c 'echo "\\"{}\\": \\"$(readlink {})\\","' \\; | sort >> files.bzl""", |
Philipp Schrader | 119c382 | 2023-03-07 19:49:58 -0800 | [diff] [blame] | 1602 | "echo '}' >> files.bzl", |
| 1603 | "echo 'LIBS = [' >> files.bzl", |
Austin Schuh | 1e69d42 | 2023-06-25 16:57:01 -0700 | [diff] [blame] | 1604 | """find lib/ -type f -exec bash -c 'echo "\\"{}\\","' \\; | sort >> files.bzl""", |
Philipp Schrader | 119c382 | 2023-03-07 19:49:58 -0800 | [diff] [blame] | 1605 | "echo ']' >> files.bzl", |
| 1606 | ], |
| 1607 | sha256 = "e71a24816e8fe9d5f4807664cbbb42738f5aa9fe05397d35c81d4c5d649b9d05", |
| 1608 | strip_prefix = "julia-1.8.5", |
| 1609 | url = "https://julialang-s3.julialang.org/bin/linux/x64/1.8/julia-1.8.5-linux-x86_64.tar.gz", |
| 1610 | ) |
Austin Schuh | ae856ca | 2023-11-18 14:04:00 -0800 | [diff] [blame] | 1611 | |
| 1612 | http_archive( |
| 1613 | name = "com_github_nvidia_cuco", |
| 1614 | build_file = "//third_party/cuco:cuco.BUILD", |
| 1615 | patch_args = ["-p1"], |
| 1616 | patches = [ |
| 1617 | "//third_party/cuco:template.patch", |
| 1618 | ], |
| 1619 | sha256 = "eecc9a111956a195f28ebc4b4fd23ac6991d072f5c1d7c68a59d059e05d7ad78", |
| 1620 | strip_prefix = "cuCollections-b7514d2010967fdfe4a1d414894bb945bc09fddc", |
| 1621 | url = "https://github.com/NVIDIA/cuCollections/archive/b7514d2010967fdfe4a1d414894bb945bc09fddc.zip", |
| 1622 | ) |
| 1623 | |
| 1624 | http_archive( |
| 1625 | name = "com_github_nvidia_cccl", |
| 1626 | build_file = "//third_party/cccl:cccl.BUILD", |
| 1627 | sha256 = "38160c628a9e32b7cd55553f299768f72b24074cc9c1a993ba40a177877b3421", |
| 1628 | strip_prefix = "cccl-931dc6793482c61edbc97b7a19256874fd264313", |
| 1629 | url = "https://github.com/NVIDIA/cccl/archive/931dc6793482c61edbc97b7a19256874fd264313.zip", |
| 1630 | ) |
Austin Schuh | 686be39 | 2023-12-18 21:50:01 -0800 | [diff] [blame] | 1631 | |
| 1632 | # Hedron's Compile Commands Extractor for Bazel |
| 1633 | # https://github.com/hedronvision/bazel-compile-commands-extractor |
| 1634 | http_archive( |
| 1635 | name = "hedron_compile_commands", |
| 1636 | strip_prefix = "bazel-compile-commands-extractor-daae6f40adfa5fdb7c89684cbe4d88b691c63b2d", |
| 1637 | |
| 1638 | # Replace the commit hash (daae6f40adfa5fdb7c89684cbe4d88b691c63b2d) in both places (below) with the latest (https://github.com/hedronvision/bazel-compile-commands-extractor/commits/main), rather than using the stale one here. |
| 1639 | # Even better, set up Renovate and let it do the work for you (see "Suggestion: Updates" in the README). |
| 1640 | url = "https://github.com/hedronvision/bazel-compile-commands-extractor/archive/daae6f40adfa5fdb7c89684cbe4d88b691c63b2d.tar.gz", |
| 1641 | # When you first run this tool, it'll recommend a sha256 hash to put here with a message like: "DEBUG: Rule 'hedron_compile_commands' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = ..." |
| 1642 | ) |
| 1643 | |
| 1644 | load("@hedron_compile_commands//:workspace_setup.bzl", "hedron_compile_commands_setup") |
| 1645 | |
| 1646 | hedron_compile_commands_setup() |
Jim Ostrowski | 68c321d | 2023-11-14 21:36:28 -0800 | [diff] [blame] | 1647 | |
| 1648 | http_archive( |
| 1649 | name = "calibrate_multi_cameras_data", |
| 1650 | build_file_content = """ |
| 1651 | filegroup( |
| 1652 | name = "calibrate_multi_cameras_data", |
| 1653 | srcs = glob(["**"]), |
| 1654 | visibility = ["//visibility:public"], |
| 1655 | )""", |
| 1656 | sha256 = "b106b3b975d3cf3ad3fcd5e4be7409f6095e1d531346a90c4ad6bdb7da1d08a5", |
| 1657 | url = "https://software.frc971.org/Build-Dependencies/2023_calibrate_multi_cameras_data.tar.gz", |
| 1658 | ) |
James Kuszmaul | d2098cb | 2024-01-14 17:32:03 -0800 | [diff] [blame] | 1659 | |
| 1660 | http_archive( |
| 1661 | name = "com_github_tartanllama_expected", |
| 1662 | build_file_content = """ |
| 1663 | cc_library( |
| 1664 | name = "com_github_tartanllama_expected", |
| 1665 | srcs = ["include/tl/expected.hpp"], |
| 1666 | includes = ["include"], |
| 1667 | visibility = ["//visibility:public"], |
| 1668 | )""", |
| 1669 | sha256 = "1db357f46dd2b24447156aaf970c4c40a793ef12a8a9c2ad9e096d9801368df6", |
| 1670 | strip_prefix = "expected-1.1.0", |
| 1671 | url = "https://github.com/TartanLlama/expected/archive/refs/tags/v1.1.0.tar.gz", |
| 1672 | ) |