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