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