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", |
| 21 | sha256 = "1c531376ac7e5a180e0237938a2536de0c54d93f5c278634818e0efc952dd56c", |
| 22 | urls = [ |
| 23 | "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz", |
| 24 | "https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz", |
| 25 | ], |
| 26 | ) |
| 27 | |
| 28 | http_archive( |
| 29 | name = "rules_python", |
| 30 | patch_args = ["-p1"], |
| 31 | patches = [ |
| 32 | "//third_party:rules_python/0001-Support-overriding-individual-packages.patch", |
| 33 | "//third_party:rules_python/0002-Allow-user-to-patch-wheels.patch", |
| 34 | ], |
| 35 | sha256 = "497ca47374f48c8b067d786b512ac10a276211810f4a580178ee9b9ad139323a", |
| 36 | strip_prefix = "rules_python-0.16.1", |
| 37 | url = "https://github.com/bazelbuild/rules_python/archive/refs/tags/0.16.1.tar.gz", |
| 38 | ) |
| 39 | |
| 40 | load("@rules_python//python:repositories.bzl", "python_register_toolchains") |
| 41 | |
| 42 | python_register_toolchains( |
| 43 | name = "python3_9", |
| 44 | python_version = "3.9", |
| 45 | register_toolchains = False, |
| 46 | ) |
| 47 | |
James Kuszmaul | 9776b39 | 2023-01-14 14:08:08 -0800 | [diff] [blame] | 48 | load( |
| 49 | "@python3_9//:defs.bzl", |
| 50 | python_interpreter = "interpreter", |
| 51 | ) |
Philipp Schrader | 9670a2a | 2023-01-11 01:20:16 -0800 | [diff] [blame] | 52 | load("@rules_python//python:pip.bzl", "pip_parse") |
James Kuszmaul | 9776b39 | 2023-01-14 14:08:08 -0800 | [diff] [blame] | 53 | load( |
| 54 | "//tools/python:package_annotations.bzl", |
| 55 | PYTHON_ANNOTATIONS = "ANNOTATIONS", |
| 56 | ) |
Philipp Schrader | 9670a2a | 2023-01-11 01:20:16 -0800 | [diff] [blame] | 57 | |
| 58 | pip_parse( |
| 59 | name = "pip_deps", |
| 60 | annotations = PYTHON_ANNOTATIONS, |
| 61 | enable_implicit_namespace_pkgs = True, |
| 62 | overrides = "//tools/python:whl_overrides.json", |
| 63 | patch_spec = "//tools/python:patches.json", |
| 64 | python_interpreter_target = python_interpreter, |
| 65 | require_overrides = RUNNING_IN_CI, |
| 66 | requirements_lock = "//tools/python:requirements.lock.txt", |
| 67 | ) |
| 68 | |
| 69 | # Load the starlark macro which will define your dependencies. |
James Kuszmaul | 9776b39 | 2023-01-14 14:08:08 -0800 | [diff] [blame] | 70 | load( |
| 71 | "@pip_deps//:requirements.bzl", |
| 72 | install_pip_deps = "install_deps", |
| 73 | ) |
Philipp Schrader | 9670a2a | 2023-01-11 01:20:16 -0800 | [diff] [blame] | 74 | |
| 75 | install_pip_deps() |
| 76 | |
| 77 | load("//tools/python:repo_defs.bzl", "pip_configure") |
| 78 | |
| 79 | pip_configure( |
| 80 | name = "pip", |
| 81 | ) |
| 82 | |
| 83 | http_archive( |
| 84 | name = "rules_pkg", |
| 85 | patch_args = ["-p1"], |
| 86 | patches = [ |
| 87 | "//third_party:rules_pkg/0001-Fix-tree-artifacts.patch", |
| 88 | ], |
| 89 | sha256 = "62eeb544ff1ef41d786e329e1536c1d541bb9bcad27ae984d57f18f314018e66", |
| 90 | urls = [ |
| 91 | "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.6.0/rules_pkg-0.6.0.tar.gz", |
| 92 | "https://github.com/bazelbuild/rules_pkg/releases/download/0.6.0/rules_pkg-0.6.0.tar.gz", |
| 93 | ], |
| 94 | ) |
| 95 | |
| 96 | load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies") |
| 97 | |
| 98 | rules_pkg_dependencies() |
| 99 | |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 100 | load( |
Philipp Schrader | d0e33a4 | 2022-01-22 21:55:15 -0800 | [diff] [blame] | 101 | "//debian:apache2.bzl", |
| 102 | apache2_debs = "files", |
| 103 | ) |
| 104 | load( |
Philipp Schrader | 41011a1 | 2022-03-13 12:49:32 -0700 | [diff] [blame] | 105 | "//debian:postgresql_amd64.bzl", |
| 106 | postgresql_amd64_debs = "files", |
| 107 | ) |
| 108 | load( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 109 | "//debian:patch.bzl", |
| 110 | patch_debs = "files", |
| 111 | ) |
Brian Silverman | 7297c0c | 2018-08-05 13:43:00 -0700 | [diff] [blame] | 112 | load( |
Austin Schuh | 71f6fa7 | 2019-08-31 18:23:02 -0700 | [diff] [blame] | 113 | "//debian:rsync.bzl", |
| 114 | rsync_debs = "files", |
| 115 | ) |
| 116 | load( |
| 117 | "//debian:ssh.bzl", |
| 118 | ssh_debs = "files", |
| 119 | ) |
| 120 | load( |
Brian Silverman | 7297c0c | 2018-08-05 13:43:00 -0700 | [diff] [blame] | 121 | "//debian:pandoc.bzl", |
| 122 | pandoc_debs = "files", |
| 123 | ) |
Brian Silverman | 4f6ba44 | 2018-08-05 14:34:58 -0700 | [diff] [blame] | 124 | load( |
| 125 | "//debian:libusb.bzl", |
| 126 | libusb_debs = "files", |
| 127 | ) |
Brian Silverman | b80dc9f | 2018-08-05 14:59:24 -0700 | [diff] [blame] | 128 | load( |
| 129 | "//debian:mingw_compiler.bzl", |
| 130 | mingw_compiler_debs = "files", |
| 131 | ) |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 132 | load( |
| 133 | "//debian:patchelf.bzl", |
| 134 | patchelf_debs = "files", |
| 135 | ) |
| 136 | load( |
Brian Silverman | 50b9ac0 | 2018-08-12 13:24:10 -0700 | [diff] [blame] | 137 | "//debian:arm_frc_gnueabi_deps.bzl", |
| 138 | arm_frc_gnueabi_deps_debs = "files", |
| 139 | ) |
Brian Silverman | b0ebf1d | 2018-10-17 23:36:40 -0700 | [diff] [blame] | 140 | load( |
Philipp Schrader | fd5489f | 2022-09-17 17:31:09 -0700 | [diff] [blame] | 141 | "//debian:gtk_runtime.bzl", |
| 142 | gtk_runtime_debs = "files", |
| 143 | ) |
| 144 | load( |
Philipp Schrader | f1bbf34 | 2022-02-05 14:30:15 -0800 | [diff] [blame] | 145 | "//debian:opencv_arm64.bzl", |
| 146 | opencv_arm64_debs = "files", |
| 147 | ) |
| 148 | load( |
Brian Silverman | d4260c7 | 2020-01-14 00:08:02 -0800 | [diff] [blame] | 149 | "//debian:opencv_armhf.bzl", |
| 150 | opencv_armhf_debs = "files", |
| 151 | ) |
Brian Silverman | d97a47c | 2020-01-16 00:47:53 -0800 | [diff] [blame] | 152 | load( |
| 153 | "//debian:opencv_amd64.bzl", |
| 154 | opencv_amd64_debs = "files", |
| 155 | ) |
Tyler Chatow | 60671d3 | 2020-02-26 19:49:30 -0800 | [diff] [blame] | 156 | load( |
| 157 | "//debian:gstreamer_amd64.bzl", |
James Kuszmaul | c91e440 | 2020-05-10 18:47:20 -0700 | [diff] [blame] | 158 | gstreamer_amd64_debs = "files", |
Tyler Chatow | 60671d3 | 2020-02-26 19:49:30 -0800 | [diff] [blame] | 159 | ) |
| 160 | load( |
| 161 | "//debian:gstreamer_armhf.bzl", |
James Kuszmaul | c91e440 | 2020-05-10 18:47:20 -0700 | [diff] [blame] | 162 | gstreamer_armhf_debs = "files", |
Tyler Chatow | 60671d3 | 2020-02-26 19:49:30 -0800 | [diff] [blame] | 163 | ) |
Austin Schuh | 023e7f5 | 2020-08-18 21:24:37 -0700 | [diff] [blame] | 164 | load( |
Tyler Chatow | 6eda82c | 2022-03-27 22:37:38 -0700 | [diff] [blame] | 165 | "//debian:gstreamer_arm64.bzl", |
| 166 | gstreamer_arm64_debs = "files", |
| 167 | ) |
| 168 | load( |
Austin Schuh | 023e7f5 | 2020-08-18 21:24:37 -0700 | [diff] [blame] | 169 | "//debian:m4.bzl", |
| 170 | m4_debs = "files", |
| 171 | ) |
Brian Silverman | f59fe3f | 2020-09-22 21:04:09 -0700 | [diff] [blame] | 172 | load( |
| 173 | "//debian:lzma_amd64.bzl", |
| 174 | lzma_amd64_debs = "files", |
| 175 | ) |
| 176 | load( |
| 177 | "//debian:lzma_arm64.bzl", |
| 178 | lzma_arm64_debs = "files", |
| 179 | ) |
Tyler Chatow | 8a51ac6 | 2022-03-15 13:23:12 -0700 | [diff] [blame] | 180 | load( |
| 181 | "//debian:libtinfo5_amd64.bzl", |
| 182 | libtinfo5_amd64_debs = "files", |
| 183 | ) |
Tyler Chatow | ec100e2 | 2022-03-22 16:23:04 -0700 | [diff] [blame] | 184 | load( |
| 185 | "//debian:libtinfo5_arm64.bzl", |
| 186 | libtinfo5_arm64_debs = "files", |
| 187 | ) |
Philipp Schrader | 0e19c60 | 2018-03-07 21:07:22 -0800 | [diff] [blame] | 188 | load("//debian:packages.bzl", "generate_repositories_for_debs") |
| 189 | |
Austin Schuh | 71f6fa7 | 2019-08-31 18:23:02 -0700 | [diff] [blame] | 190 | generate_repositories_for_debs(rsync_debs) |
| 191 | |
| 192 | generate_repositories_for_debs(ssh_debs) |
| 193 | |
Philipp Schrader | d0e33a4 | 2022-01-22 21:55:15 -0800 | [diff] [blame] | 194 | generate_repositories_for_debs(apache2_debs) |
| 195 | |
Philipp Schrader | 41011a1 | 2022-03-13 12:49:32 -0700 | [diff] [blame] | 196 | generate_repositories_for_debs(postgresql_amd64_debs) |
| 197 | |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 198 | generate_repositories_for_debs(patch_debs) |
| 199 | |
Brian Silverman | 7297c0c | 2018-08-05 13:43:00 -0700 | [diff] [blame] | 200 | generate_repositories_for_debs(pandoc_debs) |
| 201 | |
Brian Silverman | 4f6ba44 | 2018-08-05 14:34:58 -0700 | [diff] [blame] | 202 | generate_repositories_for_debs(libusb_debs) |
| 203 | |
Brian Silverman | b80dc9f | 2018-08-05 14:59:24 -0700 | [diff] [blame] | 204 | generate_repositories_for_debs(mingw_compiler_debs) |
| 205 | |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 206 | generate_repositories_for_debs(patchelf_debs) |
| 207 | |
Brian Silverman | 50b9ac0 | 2018-08-12 13:24:10 -0700 | [diff] [blame] | 208 | generate_repositories_for_debs(arm_frc_gnueabi_deps_debs) |
| 209 | |
Philipp Schrader | fd5489f | 2022-09-17 17:31:09 -0700 | [diff] [blame] | 210 | generate_repositories_for_debs(gtk_runtime_debs) |
| 211 | |
Philipp Schrader | f1bbf34 | 2022-02-05 14:30:15 -0800 | [diff] [blame] | 212 | generate_repositories_for_debs(opencv_arm64_debs) |
| 213 | |
Brian Silverman | d4260c7 | 2020-01-14 00:08:02 -0800 | [diff] [blame] | 214 | generate_repositories_for_debs(opencv_armhf_debs) |
| 215 | |
Brian Silverman | d97a47c | 2020-01-16 00:47:53 -0800 | [diff] [blame] | 216 | generate_repositories_for_debs(opencv_amd64_debs) |
| 217 | |
Tyler Chatow | 6eda82c | 2022-03-27 22:37:38 -0700 | [diff] [blame] | 218 | generate_repositories_for_debs( |
| 219 | gstreamer_amd64_debs, |
| 220 | base_url = "https://www.frc971.org/Build-Dependencies/gstreamer_bullseye_amd64_deps", |
| 221 | ) |
Tyler Chatow | 60671d3 | 2020-02-26 19:49:30 -0800 | [diff] [blame] | 222 | |
| 223 | generate_repositories_for_debs(gstreamer_armhf_debs) |
| 224 | |
Tyler Chatow | 6eda82c | 2022-03-27 22:37:38 -0700 | [diff] [blame] | 225 | generate_repositories_for_debs( |
| 226 | gstreamer_arm64_debs, |
| 227 | base_url = "https://www.frc971.org/Build-Dependencies/gstreamer_bullseye_arm64_deps", |
| 228 | ) |
| 229 | |
Austin Schuh | 023e7f5 | 2020-08-18 21:24:37 -0700 | [diff] [blame] | 230 | generate_repositories_for_debs(m4_debs) |
| 231 | |
Brian Silverman | f59fe3f | 2020-09-22 21:04:09 -0700 | [diff] [blame] | 232 | generate_repositories_for_debs(lzma_amd64_debs) |
| 233 | |
| 234 | generate_repositories_for_debs(lzma_arm64_debs) |
| 235 | |
Tyler Chatow | 8a51ac6 | 2022-03-15 13:23:12 -0700 | [diff] [blame] | 236 | generate_repositories_for_debs(libtinfo5_amd64_debs) |
| 237 | |
Tyler Chatow | ec100e2 | 2022-03-22 16:23:04 -0700 | [diff] [blame] | 238 | generate_repositories_for_debs(libtinfo5_arm64_debs) |
| 239 | |
Brian Silverman | c0309a0 | 2022-01-01 23:57:03 -0800 | [diff] [blame] | 240 | local_repository( |
| 241 | name = "com_grail_bazel_toolchain", |
| 242 | path = "third_party/bazel-toolchain", |
| 243 | ) |
| 244 | |
Brian Silverman | 4c7235a | 2021-11-17 19:04:37 -0800 | [diff] [blame] | 245 | load("@com_grail_bazel_toolchain//toolchain:rules.bzl", "llvm", "llvm_toolchain") |
| 246 | |
| 247 | llvm_version = "13.0.0" |
| 248 | |
| 249 | llvm( |
| 250 | name = "llvm_k8", |
| 251 | distribution = "clang+llvm-%s-x86_64-linux-gnu-ubuntu-16.04.tar.xz" % llvm_version, |
| 252 | llvm_version = llvm_version, |
| 253 | ) |
| 254 | |
| 255 | llvm( |
| 256 | name = "llvm_armv7", |
| 257 | distribution = "clang+llvm-%s-armv7a-linux-gnueabihf.tar.xz" % llvm_version, |
| 258 | llvm_version = llvm_version, |
| 259 | ) |
| 260 | |
Philipp Schrader | f1bbf34 | 2022-02-05 14:30:15 -0800 | [diff] [blame] | 261 | llvm( |
| 262 | name = "llvm_aarch64", |
| 263 | distribution = "clang+llvm-%s-aarch64-linux-gnu.tar.xz" % llvm_version, |
| 264 | llvm_version = llvm_version, |
| 265 | ) |
| 266 | |
Brian Silverman | 4c7235a | 2021-11-17 19:04:37 -0800 | [diff] [blame] | 267 | llvm_conlyopts = [ |
| 268 | "-std=gnu99", |
| 269 | ] |
| 270 | |
| 271 | llvm_copts = [ |
| 272 | "-D__STDC_FORMAT_MACROS", |
| 273 | "-D__STDC_CONSTANT_MACROS", |
| 274 | "-D__STDC_LIMIT_MACROS", |
| 275 | "-D_FILE_OFFSET_BITS=64", |
| 276 | "-fmessage-length=100", |
| 277 | "-fmacro-backtrace-limit=0", |
| 278 | "-Wextra", |
| 279 | "-Wpointer-arith", |
| 280 | "-Wstrict-aliasing", |
| 281 | "-Wcast-qual", |
| 282 | "-Wcast-align", |
| 283 | "-Wwrite-strings", |
| 284 | "-Wtype-limits", |
| 285 | "-Wsign-compare", |
| 286 | "-Wformat=2", |
| 287 | "-Werror", |
| 288 | "-ggdb3", |
Brian Silverman | 4c7235a | 2021-11-17 19:04:37 -0800 | [diff] [blame] | 289 | ] |
| 290 | |
| 291 | llvm_cxxopts = [ |
| 292 | "-std=gnu++17", |
| 293 | ] |
| 294 | |
Brian Silverman | 1e7c897 | 2022-02-03 23:15:41 -0800 | [diff] [blame] | 295 | llvm_opt_copts = [ |
| 296 | "-DAOS_DEBUG=0", |
| 297 | ] |
| 298 | |
| 299 | llvm_fastbuild_copts = [ |
| 300 | "-DAOS_DEBUG=0", |
| 301 | ] |
| 302 | |
Brian Silverman | 4c7235a | 2021-11-17 19:04:37 -0800 | [diff] [blame] | 303 | llvm_dbg_copts = [ |
| 304 | "-DAOS_DEBUG=1", |
| 305 | ] |
Brian Silverman | c0309a0 | 2022-01-01 23:57:03 -0800 | [diff] [blame] | 306 | |
| 307 | llvm_toolchain( |
| 308 | name = "llvm_toolchain", |
Brian Silverman | 4c7235a | 2021-11-17 19:04:37 -0800 | [diff] [blame] | 309 | additional_target_compatible_with = { |
| 310 | "linux-armv7": [ |
| 311 | "@//tools/platforms/hardware:raspberry_pi", |
| 312 | ], |
| 313 | }, |
| 314 | conlyopts = { |
| 315 | "linux-x86_64": llvm_conlyopts, |
| 316 | "linux-armv7": llvm_conlyopts, |
Philipp Schrader | f1bbf34 | 2022-02-05 14:30:15 -0800 | [diff] [blame] | 317 | "linux-aarch64": llvm_conlyopts, |
Brian Silverman | 4c7235a | 2021-11-17 19:04:37 -0800 | [diff] [blame] | 318 | }, |
| 319 | copts = { |
| 320 | "linux-x86_64": llvm_copts, |
| 321 | "linux-armv7": llvm_copts, |
Philipp Schrader | f1bbf34 | 2022-02-05 14:30:15 -0800 | [diff] [blame] | 322 | "linux-aarch64": llvm_copts, |
Brian Silverman | 4c7235a | 2021-11-17 19:04:37 -0800 | [diff] [blame] | 323 | }, |
| 324 | cxxopts = { |
| 325 | "linux-x86_64": llvm_cxxopts, |
| 326 | "linux-armv7": llvm_cxxopts, |
Philipp Schrader | f1bbf34 | 2022-02-05 14:30:15 -0800 | [diff] [blame] | 327 | "linux-aarch64": llvm_cxxopts, |
Brian Silverman | 4c7235a | 2021-11-17 19:04:37 -0800 | [diff] [blame] | 328 | }, |
| 329 | dbg_copts = { |
| 330 | "linux-x86_64": llvm_dbg_copts, |
Brian Silverman | 1e7c897 | 2022-02-03 23:15:41 -0800 | [diff] [blame] | 331 | "linux-armv7": llvm_dbg_copts, |
Philipp Schrader | f1bbf34 | 2022-02-05 14:30:15 -0800 | [diff] [blame] | 332 | "linux-aarch64": llvm_dbg_copts, |
Brian Silverman | 1e7c897 | 2022-02-03 23:15:41 -0800 | [diff] [blame] | 333 | }, |
| 334 | fastbuild_copts = { |
| 335 | "linux-x86_64": llvm_fastbuild_copts, |
| 336 | "linux-armv7": llvm_fastbuild_copts, |
Philipp Schrader | f1bbf34 | 2022-02-05 14:30:15 -0800 | [diff] [blame] | 337 | "linux-aarch64": llvm_fastbuild_copts, |
Brian Silverman | 4c7235a | 2021-11-17 19:04:37 -0800 | [diff] [blame] | 338 | }, |
| 339 | llvm_version = llvm_version, |
Brian Silverman | 1e7c897 | 2022-02-03 23:15:41 -0800 | [diff] [blame] | 340 | opt_copts = { |
| 341 | "linux-x86_64": llvm_opt_copts, |
| 342 | "linux-armv7": llvm_opt_copts, |
Philipp Schrader | f1bbf34 | 2022-02-05 14:30:15 -0800 | [diff] [blame] | 343 | "linux-aarch64": llvm_opt_copts, |
Brian Silverman | 1e7c897 | 2022-02-03 23:15:41 -0800 | [diff] [blame] | 344 | }, |
Brian Silverman | 4c7235a | 2021-11-17 19:04:37 -0800 | [diff] [blame] | 345 | standard_libraries = { |
| 346 | "linux-x86_64": "libstdc++-10", |
| 347 | "linux-armv7": "libstdc++-10", |
Philipp Schrader | f1bbf34 | 2022-02-05 14:30:15 -0800 | [diff] [blame] | 348 | "linux-aarch64": "libstdc++-10", |
Brian Silverman | 4c7235a | 2021-11-17 19:04:37 -0800 | [diff] [blame] | 349 | }, |
| 350 | static_libstdcxx = False, |
Brian Silverman | c0309a0 | 2022-01-01 23:57:03 -0800 | [diff] [blame] | 351 | sysroot = { |
| 352 | "linux-x86_64": "@amd64_debian_sysroot//:sysroot_files", |
Brian Silverman | 4c7235a | 2021-11-17 19:04:37 -0800 | [diff] [blame] | 353 | "linux-armv7": "@armhf_debian_rootfs//:sysroot_files", |
Philipp Schrader | f1bbf34 | 2022-02-05 14:30:15 -0800 | [diff] [blame] | 354 | "linux-aarch64": "@arm64_debian_rootfs//:sysroot_files", |
Brian Silverman | 4c7235a | 2021-11-17 19:04:37 -0800 | [diff] [blame] | 355 | }, |
| 356 | target_toolchain_roots = { |
| 357 | "linux-x86_64": "@llvm_k8//", |
| 358 | "linux-armv7": "@llvm_armv7//", |
Philipp Schrader | f1bbf34 | 2022-02-05 14:30:15 -0800 | [diff] [blame] | 359 | "linux-aarch64": "@llvm_aarch64//", |
Brian Silverman | 4c7235a | 2021-11-17 19:04:37 -0800 | [diff] [blame] | 360 | }, |
| 361 | toolchain_roots = { |
| 362 | "linux-x86_64": "@llvm_k8//", |
Tyler Chatow | 486ad3e | 2022-03-23 13:32:03 -0700 | [diff] [blame] | 363 | "linux-aarch64": "@llvm_aarch64//", |
Brian Silverman | c0309a0 | 2022-01-01 23:57:03 -0800 | [diff] [blame] | 364 | }, |
| 365 | ) |
| 366 | |
Brian Silverman | 4c7235a | 2021-11-17 19:04:37 -0800 | [diff] [blame] | 367 | load("@llvm_toolchain//:toolchains.bzl", "llvm_register_toolchains") |
| 368 | |
| 369 | llvm_register_toolchains() |
| 370 | |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 371 | register_toolchains( |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 372 | "//tools/cpp:cc-toolchain-roborio", |
| 373 | "//tools/cpp:cc-toolchain-cortex-m4f", |
Austin Schuh | 0a96ea3 | 2022-01-01 22:29:30 -0800 | [diff] [blame] | 374 | "//tools/cpp:cc-toolchain-rp2040", |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 375 | # Find a good way to select between these two M4F toolchains. |
| 376 | #"//tools/cpp:cc-toolchain-cortex-m4f-k22", |
Philipp Schrader | f198a15 | 2021-12-05 09:18:23 -0800 | [diff] [blame] | 377 | "//tools/python:python_toolchain", |
Philipp Schrader | 73e5660 | 2021-12-06 21:37:30 -0800 | [diff] [blame] | 378 | "//tools/go:noop_go_toolchain", |
Brian Silverman | 847121b | 2022-03-09 15:48:08 -0800 | [diff] [blame] | 379 | "//tools/rust:rust-toolchain-x86", |
| 380 | "//tools/rust:rust-toolchain-armv7", |
| 381 | "//tools/rust:rust-toolchain-arm64", |
Brian Silverman | a8ad1af | 2022-07-23 16:05:12 -0700 | [diff] [blame] | 382 | # TODO(Brian): Make this work. See the comment on |
| 383 | # //tools/platforms:linux_roborio for details. |
| 384 | #"//tools/rust:rust-toolchain-roborio", |
Ravago Jones | 1680980 | 2021-11-18 20:40:03 -0800 | [diff] [blame] | 385 | "//tools/rust:noop_rust_toolchain", |
Philipp Schrader | 5404796 | 2022-02-16 21:05:11 -0800 | [diff] [blame] | 386 | "//tools/ts:noop_node_toolchain", |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 387 | ) |
| 388 | |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 389 | http_archive( |
Austin Schuh | 7466fe1 | 2020-12-29 23:01:47 -0800 | [diff] [blame] | 390 | name = "com_github_stevengj_nlopt", |
| 391 | build_file = "@//debian:nlopt.BUILD", |
| 392 | patch_args = ["-p1"], |
| 393 | patches = ["//debian:nlopt.patch"], |
| 394 | sha256 = "2d65815b21c30813499fe19c63947f7da56b10c0d4a459dce05417899b43e461", |
| 395 | strip_prefix = "nlopt-496be736b8b249273838b891f4c8ca3669551127", |
| 396 | url = "https://www.frc971.org/Build-Dependencies/nlopt-496be736b8b249273838b891f4c8ca3669551127.zip", |
| 397 | ) |
| 398 | |
James Kuszmaul | 203bfc2 | 2023-01-13 22:37:06 -0800 | [diff] [blame] | 399 | http_archive( |
Austin Schuh | d57edc4 | 2019-09-21 17:52:38 -0700 | [diff] [blame] | 400 | name = "com_google_absl", |
James Kuszmaul | 203bfc2 | 2023-01-13 22:37:06 -0800 | [diff] [blame] | 401 | patch_args = ["-p1"], |
| 402 | patches = ["//third_party/abseil:abseil.patch"], |
| 403 | sha256 = "91209b5eecd9c3d862b230fefbc2728c7f2764ff6d5866ec398d48db1aaa1e90", |
| 404 | strip_prefix = "abseil-cpp-bb63a76710554cebbeb20306739a7b832be38c4a", |
| 405 | url = "https://github.com/abseil/abseil-cpp/archive/bb63a76710554cebbeb20306739a7b832be38c4a.zip", |
Austin Schuh | 36244a1 | 2019-09-21 17:52:38 -0700 | [diff] [blame] | 406 | ) |
| 407 | |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 408 | local_repository( |
| 409 | name = "org_tuxfamily_eigen", |
| 410 | path = "third_party/eigen", |
| 411 | ) |
| 412 | |
James Kuszmaul | bc02ff4 | 2021-01-15 20:41:30 -0800 | [diff] [blame] | 413 | local_repository( |
| 414 | name = "com_github_rawrtc_re", |
| 415 | path = "third_party/rawrtc/re", |
| 416 | ) |
| 417 | |
| 418 | local_repository( |
| 419 | name = "com_github_rawrtc_rew", |
| 420 | path = "third_party/rawrtc/rew", |
| 421 | ) |
| 422 | |
| 423 | local_repository( |
| 424 | name = "com_github_rawrtc_usrsctp", |
| 425 | path = "third_party/rawrtc/usrsctp", |
| 426 | ) |
| 427 | |
| 428 | local_repository( |
| 429 | name = "com_github_rawrtc_rawrtc_common", |
| 430 | path = "third_party/rawrtc/rawrtc-common", |
| 431 | ) |
| 432 | |
| 433 | local_repository( |
| 434 | name = "com_github_rawrtc_rawrtc_data_channel", |
| 435 | path = "third_party/rawrtc/rawrtc-data-channel", |
| 436 | ) |
| 437 | |
| 438 | local_repository( |
| 439 | name = "com_github_rawrtc_rawrtc", |
| 440 | path = "third_party/rawrtc/rawrtc", |
| 441 | ) |
| 442 | |
Austin Schuh | 0ca51f3 | 2020-12-25 21:51:45 -0800 | [diff] [blame] | 443 | http_archive( |
| 444 | name = "boringssl", |
| 445 | patch_args = ["-p1"], |
| 446 | patches = ["//debian:boringssl.patch"], |
| 447 | sha256 = "bcab08a22c28f5322316542aa2c3a9ef0a9f9fde9be22d489cee574867b24675", |
| 448 | strip_prefix = "boringssl-613fe9dbe74b58d6aaaf0d22fe57dccd964c7413", |
| 449 | urls = ["https://www.frc971.org/Build-Dependencies/boringssl-613fe9dbe74b58d6aaaf0d22fe57dccd964c7413.zip"], |
| 450 | ) |
| 451 | |
Austin Schuh | 36244a1 | 2019-09-21 17:52:38 -0700 | [diff] [blame] | 452 | # C++ rules for Bazel. |
| 453 | http_archive( |
| 454 | name = "rules_cc", |
Austin Schuh | 968174a | 2021-03-31 20:04:01 -0700 | [diff] [blame] | 455 | sha256 = "ed36cc7a6f46b7c28ab4009db4a37e350e1ba367446b0886bcc9cdc1df92752e", |
| 456 | strip_prefix = "rules_cc-608c7b605fb844a20e96a3eddc9b49ad2542adab", |
Austin Schuh | 36244a1 | 2019-09-21 17:52:38 -0700 | [diff] [blame] | 457 | urls = [ |
Austin Schuh | 968174a | 2021-03-31 20:04:01 -0700 | [diff] [blame] | 458 | "https://www.frc971.org/Build-Dependencies/rules_cc-608c7b605fb844a20e96a3eddc9b49ad2542adab.zip", |
Austin Schuh | 36244a1 | 2019-09-21 17:52:38 -0700 | [diff] [blame] | 459 | ], |
| 460 | ) |
Austin Schuh | d57edc4 | 2019-09-21 17:52:38 -0700 | [diff] [blame] | 461 | |
Austin Schuh | 4759ffc | 2015-10-07 20:39:56 -0700 | [diff] [blame] | 462 | new_local_repository( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 463 | name = "usr_repo", |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 464 | build_file = "@//debian:usr.BUILD", |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 465 | path = "/usr", |
Austin Schuh | 4759ffc | 2015-10-07 20:39:56 -0700 | [diff] [blame] | 466 | ) |
| 467 | |
Austin Schuh | 1f9aeb4 | 2015-11-12 23:34:49 -0800 | [diff] [blame] | 468 | new_git_repository( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 469 | name = "slycot_repo", |
Tyler Chatow | 2584bb1 | 2018-10-27 20:48:35 -0700 | [diff] [blame] | 470 | build_file = "@//debian:slycot.BUILD", |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 471 | commit = "5af5f283cb23cbe23c4dfea4d5e56071bdbd6e70", |
| 472 | remote = "https://github.com/avventi/Slycot.git", |
Austin Schuh | 1f9aeb4 | 2015-11-12 23:34:49 -0800 | [diff] [blame] | 473 | ) |
| 474 | |
James Kuszmaul | 9776b39 | 2023-01-14 14:08:08 -0800 | [diff] [blame] | 475 | # TODO(Ravago, Max, Alex): https://github.com/wpilibsuite/opensdk |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 476 | http_archive( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 477 | name = "arm_frc_linux_gnueabi_repo", |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 478 | 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] | 479 | patches = ["//debian:fts.patch"], |
James Kuszmaul | 9776b39 | 2023-01-14 14:08:08 -0800 | [diff] [blame] | 480 | sha256 = "f53c6b86c25b4827d50365efe760a08edfea39c027dd08674ae696c9093d6a37", |
| 481 | strip_prefix = "roborio-academic", |
| 482 | url = "https://www.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] | 483 | ) |
Austin Schuh | e456f15 | 2015-11-27 13:44:39 -0800 | [diff] [blame] | 484 | |
Brian Silverman | 4c7235a | 2021-11-17 19:04:37 -0800 | [diff] [blame] | 485 | # 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 |
| 486 | # 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] | 487 | # usr/share/ca-certificates |
Brian Silverman | 4c7235a | 2021-11-17 19:04:37 -0800 | [diff] [blame] | 488 | # lib/systemd/system/system-systemd\\x2dcryptsetup.slice |
Brian Silverman | bf4c131 | 2020-01-12 11:35:45 -0800 | [diff] [blame] | 489 | http_archive( |
| 490 | name = "armhf_debian_rootfs", |
Brian Silverman | 60606c9 | 2020-01-15 22:45:04 -0800 | [diff] [blame] | 491 | build_file = "@//:compilers/debian_rootfs.BUILD", |
Brian Silverman | 4c7235a | 2021-11-17 19:04:37 -0800 | [diff] [blame] | 492 | sha256 = "734f26a0cfc943cc3cae88412536186adfc4ed148cc167e6ffb298497c686280", |
| 493 | url = "https://www.frc971.org/Build-Dependencies/2021-10-30-raspios-bullseye-armhf-lite_rootfs.tar.bz2", |
Brian Silverman | bf4c131 | 2020-01-12 11:35:45 -0800 | [diff] [blame] | 494 | ) |
| 495 | |
Philipp Schrader | f1bbf34 | 2022-02-05 14:30:15 -0800 | [diff] [blame] | 496 | # 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 |
| 497 | # The following files and folders are removed to make bazel happy with it: |
| 498 | # usr/share/ca-certificates |
| 499 | # lib/systemd/system/system-systemd\\x2dcryptsetup.slice |
| 500 | http_archive( |
| 501 | name = "arm64_debian_rootfs", |
| 502 | build_file = "@//:compilers/debian_rootfs.BUILD", |
| 503 | sha256 = "7e6ad432fec0a36f8b66c3fc2ab8795ea446e61f7dce7a206b55602677cf0904", |
| 504 | url = "https://www.frc971.org/Build-Dependencies/2021-10-30-raspios-bullseye-arm64-lite_rootfs.tar.bz2", |
| 505 | ) |
| 506 | |
Brian Silverman | 60606c9 | 2020-01-15 22:45:04 -0800 | [diff] [blame] | 507 | # Created with: |
| 508 | # `debootstrap buster buster_sysroot` |
| 509 | # and then chrooting in and running: |
| 510 | # apt install libc6-dev libstdc++-7-dev |
Brian Silverman | 4c7235a | 2021-11-17 19:04:37 -0800 | [diff] [blame] | 511 | # removing the apt cache, |
Brian Silverman | 60606c9 | 2020-01-15 22:45:04 -0800 | [diff] [blame] | 512 | # and then tarring up the result |
| 513 | http_archive( |
| 514 | name = "amd64_debian_sysroot", |
| 515 | build_file = "@//:compilers/debian_rootfs.BUILD", |
Brian Silverman | 4c7235a | 2021-11-17 19:04:37 -0800 | [diff] [blame] | 516 | sha256 = "5e10f4cac85a98a39da1716b218bc05fff4666c61cc471a7df27876710bc86d2", |
| 517 | url = "https://www.frc971.org/Build-Dependencies/2022-01-06-debian-bullseye_rootfs.tar.bz2", |
Brian Silverman | 60606c9 | 2020-01-15 22:45:04 -0800 | [diff] [blame] | 518 | ) |
| 519 | |
Brian Silverman | 16a923c | 2018-10-31 19:40:51 -0700 | [diff] [blame] | 520 | local_repository( |
| 521 | name = "com_github_gflags_gflags", |
| 522 | path = "third_party/gflags", |
| 523 | ) |
| 524 | |
Brian Silverman | 82a12b9 | 2019-01-19 21:52:10 -0800 | [diff] [blame] | 525 | # Generated with: |
Austin Schuh | 9950f68 | 2021-11-06 15:27:58 -0700 | [diff] [blame] | 526 | # git fetch https://github.com/wpilibsuite/ni-libraries main |
Austin Schuh | d3c7291 | 2022-02-22 18:05:32 -0800 | [diff] [blame] | 527 | # 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] | 528 | http_archive( |
James Kuszmaul | c9c46b3 | 2019-12-08 21:10:00 -0800 | [diff] [blame] | 529 | name = "allwpilib_ni_libraries", |
| 530 | build_file = "@//debian:ni-libraries.BUILD", |
James Kuszmaul | 9776b39 | 2023-01-14 14:08:08 -0800 | [diff] [blame] | 531 | sha256 = "c5d03ce5ed3807d9c4a5d415d8123d9ab3479498428eb0f1d77e74891f107aa0", |
| 532 | strip_prefix = "ni-libraries-2023.3.0", |
| 533 | 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] | 534 | ) |
| 535 | |
Brian Silverman | 3fca9d7 | 2016-02-20 02:32:51 -0500 | [diff] [blame] | 536 | # For protobuf. Don't use these. |
| 537 | bind( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 538 | name = "six", |
Philipp Schrader | 01535ee | 2023-01-08 13:19:03 -0800 | [diff] [blame] | 539 | actual = "@pip//six", |
Brian Silverman | 3fca9d7 | 2016-02-20 02:32:51 -0500 | [diff] [blame] | 540 | ) |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 541 | |
Brian Silverman | 3fca9d7 | 2016-02-20 02:32:51 -0500 | [diff] [blame] | 542 | bind( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 543 | name = "gtest", |
James Kuszmaul | 3aabc1c | 2023-01-13 21:33:43 -0800 | [diff] [blame] | 544 | actual = "@com_google_googletest//:gtest", |
Brian Silverman | 3fca9d7 | 2016-02-20 02:32:51 -0500 | [diff] [blame] | 545 | ) |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 546 | |
Brian Silverman | 3fca9d7 | 2016-02-20 02:32:51 -0500 | [diff] [blame] | 547 | bind( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 548 | name = "gtest_main", |
James Kuszmaul | 3aabc1c | 2023-01-13 21:33:43 -0800 | [diff] [blame] | 549 | actual = "@com_google_googletest//:gtest_main", |
Brian Silverman | 3fca9d7 | 2016-02-20 02:32:51 -0500 | [diff] [blame] | 550 | ) |
| 551 | |
James Kuszmaul | 59a308f | 2023-01-28 19:14:07 -0800 | [diff] [blame] | 552 | http_archive( |
| 553 | name = "april_tag_test_image", |
| 554 | build_file_content = """ |
| 555 | filegroup( |
| 556 | name = "april_tag_test_image", |
| 557 | srcs = ["test.bfbs", "expected.jpeg", "expected.png"], |
| 558 | visibility = ["//visibility:public"], |
| 559 | )""", |
| 560 | sha256 = "5312c79b19e9883b3cebd9d65b4438a2bf05b41da0bcd8c35e19d22c3b2e1859", |
| 561 | urls = ["https://www.frc971.org/Build-Dependencies/test_image_frc971.vision.CameraImage_2023.01.28.tar.gz"], |
| 562 | ) |
| 563 | |
Brian Silverman | 4aa8304 | 2018-01-05 12:47:31 -0800 | [diff] [blame] | 564 | # Recompressed from libusb-1.0.21.7z. |
| 565 | http_file( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 566 | name = "libusb_1_0_windows", |
Austin Schuh | 4ac96a8 | 2019-08-14 20:24:23 -0700 | [diff] [blame] | 567 | downloaded_file_path = "libusb-1.0.21-windows.tar.xz", |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 568 | sha256 = "fc2ba03992f343aabbaf9eb90559c6e00cdc6a2bd914d7cebea85857d5244015", |
Austin Schuh | a5778ae | 2020-10-21 21:15:35 -0700 | [diff] [blame] | 569 | urls = ["https://www.frc971.org/Build-Dependencies/libusb-1.0.21-windows.tar.xz"], |
Brian Silverman | 4aa8304 | 2018-01-05 12:47:31 -0800 | [diff] [blame] | 570 | ) |
Brian Silverman | d3ad165 | 2018-02-18 22:16:29 -0500 | [diff] [blame] | 571 | |
| 572 | # The data tarball of the same-named Debian package. |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 573 | http_archive( |
Brian Silverman | d3ad165 | 2018-02-18 22:16:29 -0500 | [diff] [blame] | 574 | name = "f2c", |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 575 | build_file = "@//debian:f2c.BUILD", |
Brian Silverman | d3ad165 | 2018-02-18 22:16:29 -0500 | [diff] [blame] | 576 | sha256 = "2c677437f8217a2e2b23e41b33995d0571644fc1bea46de858f8913a5053e3f4", |
Austin Schuh | a5778ae | 2020-10-21 21:15:35 -0700 | [diff] [blame] | 577 | url = "https://www.frc971.org/Build-Dependencies/f2c_20100827-1_amd64.xz.tar.xz", |
Brian Silverman | d3ad165 | 2018-02-18 22:16:29 -0500 | [diff] [blame] | 578 | ) |
| 579 | |
| 580 | # Downloaded from http://www.netlib.org/clapack/. |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 581 | http_archive( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 582 | name = "clapack", |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 583 | build_file = "@//debian:clapack.BUILD", |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 584 | sha256 = "6dc4c382164beec8aaed8fd2acc36ad24232c406eda6db462bd4c41d5e455fac", |
| 585 | strip_prefix = "CLAPACK-3.2.1/", |
Austin Schuh | a5778ae | 2020-10-21 21:15:35 -0700 | [diff] [blame] | 586 | url = "https://www.frc971.org/Build-Dependencies/clapack-3.2.1.tgz", |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 587 | ) |
| 588 | |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 589 | http_archive( |
Philipp Schrader | 41011a1 | 2022-03-13 12:49:32 -0700 | [diff] [blame] | 590 | name = "postgresql_amd64", |
| 591 | build_file = "@//debian:postgresql_amd64.BUILD", |
| 592 | sha256 = "2b8bb77deaf58f798c296ce31ee7a32781395d55e05dcddc8a7da7e827f38d7f", |
| 593 | url = "https://www.frc971.org/Build-Dependencies/postgresql_amd64.tar.gz", |
| 594 | ) |
| 595 | |
| 596 | http_archive( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 597 | name = "patch", |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 598 | build_file = "@//debian:patch.BUILD", |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 599 | sha256 = "b5ce139648a2e04f5585948ddad2fdae24dd4ee7976ac5a22d6ae7bd5674631e", |
Austin Schuh | a5778ae | 2020-10-21 21:15:35 -0700 | [diff] [blame] | 600 | url = "https://www.frc971.org/Build-Dependencies/patch.tar.gz", |
Brian Silverman | d3ad165 | 2018-02-18 22:16:29 -0500 | [diff] [blame] | 601 | ) |
Brian Silverman | 7297c0c | 2018-08-05 13:43:00 -0700 | [diff] [blame] | 602 | |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 603 | http_archive( |
Austin Schuh | 71f6fa7 | 2019-08-31 18:23:02 -0700 | [diff] [blame] | 604 | name = "rsync", |
| 605 | build_file = "@//debian:rsync.BUILD", |
| 606 | sha256 = "53be65a9214aaa6d1b9176f135184fb4a78ccefd58f95ce0da37e6a392dfeb60", |
Austin Schuh | a5778ae | 2020-10-21 21:15:35 -0700 | [diff] [blame] | 607 | url = "https://www.frc971.org/Build-Dependencies/rsync.tar.gz", |
Austin Schuh | 71f6fa7 | 2019-08-31 18:23:02 -0700 | [diff] [blame] | 608 | ) |
| 609 | |
Brian Silverman | bd7860e | 2020-01-05 17:52:40 -0800 | [diff] [blame] | 610 | # //debian:ssh |
Austin Schuh | 71f6fa7 | 2019-08-31 18:23:02 -0700 | [diff] [blame] | 611 | http_archive( |
| 612 | name = "ssh", |
| 613 | build_file = "@//debian:ssh.BUILD", |
Brian Silverman | bd7860e | 2020-01-05 17:52:40 -0800 | [diff] [blame] | 614 | sha256 = "470fdc1252a2133a9d3c3da778e892a5b88f04f402cb04d8eb1cff7853242034", |
Austin Schuh | a5778ae | 2020-10-21 21:15:35 -0700 | [diff] [blame] | 615 | url = "https://www.frc971.org/Build-Dependencies/ssh_v3.tar.gz", |
Austin Schuh | 71f6fa7 | 2019-08-31 18:23:02 -0700 | [diff] [blame] | 616 | ) |
| 617 | |
| 618 | http_archive( |
Philipp Schrader | d0e33a4 | 2022-01-22 21:55:15 -0800 | [diff] [blame] | 619 | name = "apache2", |
| 620 | build_file = "@//debian:apache2.BUILD", |
| 621 | sha256 = "98b0ad6d911751ba0aa486429e6278f995e7bbabd928c7d3d44c888fa2bf371b", |
| 622 | url = "https://www.frc971.org/Build-Dependencies/apache2.tar.gz", |
| 623 | ) |
| 624 | |
| 625 | http_archive( |
Brian Silverman | 7297c0c | 2018-08-05 13:43:00 -0700 | [diff] [blame] | 626 | name = "pandoc", |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 627 | build_file = "@//debian:pandoc.BUILD", |
Brian Silverman | 7297c0c | 2018-08-05 13:43:00 -0700 | [diff] [blame] | 628 | sha256 = "9f7a7adb3974a1f14715054c349ff3edc2909e920dbe3438fca437a83845f3c4", |
Austin Schuh | a5778ae | 2020-10-21 21:15:35 -0700 | [diff] [blame] | 629 | url = "https://www.frc971.org/Build-Dependencies/pandoc.tar.gz", |
Brian Silverman | 7297c0c | 2018-08-05 13:43:00 -0700 | [diff] [blame] | 630 | ) |
Brian Silverman | 4f6ba44 | 2018-08-05 14:34:58 -0700 | [diff] [blame] | 631 | |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 632 | http_archive( |
Brian Silverman | 4f6ba44 | 2018-08-05 14:34:58 -0700 | [diff] [blame] | 633 | name = "libusb", |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 634 | build_file = "@//debian:libusb.BUILD", |
Brian Silverman | 4f6ba44 | 2018-08-05 14:34:58 -0700 | [diff] [blame] | 635 | sha256 = "3ca5cc2d317226f6646866ff9e8c443db3b0f6c82f828e800240982727531590", |
Austin Schuh | a5778ae | 2020-10-21 21:15:35 -0700 | [diff] [blame] | 636 | url = "https://www.frc971.org/Build-Dependencies/libusb.tar.gz", |
Brian Silverman | 4f6ba44 | 2018-08-05 14:34:58 -0700 | [diff] [blame] | 637 | ) |
Brian Silverman | b80dc9f | 2018-08-05 14:59:24 -0700 | [diff] [blame] | 638 | |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 639 | http_archive( |
Brian Silverman | b80dc9f | 2018-08-05 14:59:24 -0700 | [diff] [blame] | 640 | name = "mingw_compiler", |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 641 | build_file = "@//debian:mingw_compiler.BUILD", |
Brian Silverman | b80dc9f | 2018-08-05 14:59:24 -0700 | [diff] [blame] | 642 | sha256 = "45e86a8460f2151a4f0306e7ae7b06761029d2412ee16f63d1e8d2d29354e378", |
Austin Schuh | a5778ae | 2020-10-21 21:15:35 -0700 | [diff] [blame] | 643 | url = "https://www.frc971.org/Build-Dependencies/mingw_compiler.tar.gz", |
Brian Silverman | b80dc9f | 2018-08-05 14:59:24 -0700 | [diff] [blame] | 644 | ) |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 645 | |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 646 | http_archive( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 647 | name = "patchelf", |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 648 | build_file = "@//debian:patchelf.BUILD", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 649 | sha256 = "bf8b709909d7d9e30815dd228eeded7dc282e3ce3919d0589ccbb56ac8632abc", |
Austin Schuh | a5778ae | 2020-10-21 21:15:35 -0700 | [diff] [blame] | 650 | url = "https://www.frc971.org/Build-Dependencies/patchelf.tar.gz", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 651 | ) |
Brian Silverman | 50b9ac0 | 2018-08-12 13:24:10 -0700 | [diff] [blame] | 652 | |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 653 | http_archive( |
Brian Silverman | 50b9ac0 | 2018-08-12 13:24:10 -0700 | [diff] [blame] | 654 | name = "arm_frc_gnueabi_deps", |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 655 | build_file = "@//debian:arm_frc_gnueabi_deps.BUILD", |
Brian Silverman | 50b9ac0 | 2018-08-12 13:24:10 -0700 | [diff] [blame] | 656 | sha256 = "4b26fe45010817dc136488ee1604ade21bd7c264c29f17d864fc6eba9d7442c4", |
Austin Schuh | a5778ae | 2020-10-21 21:15:35 -0700 | [diff] [blame] | 657 | url = "https://www.frc971.org/Build-Dependencies/arm_frc_gnueabi_deps.tar.gz", |
Brian Silverman | 50b9ac0 | 2018-08-12 13:24:10 -0700 | [diff] [blame] | 658 | ) |
Brian Silverman | 6c8b88b | 2018-09-03 18:17:02 -0700 | [diff] [blame] | 659 | |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 660 | http_archive( |
Philipp Schrader | fd5489f | 2022-09-17 17:31:09 -0700 | [diff] [blame] | 661 | name = "gtk_runtime", |
| 662 | build_file = "@//debian:gtk_runtime.BUILD", |
Philipp Schrader | 7520ee6 | 2022-12-10 14:04:40 -0800 | [diff] [blame] | 663 | sha256 = "5a6014d1783363be6bc95843d03bbb6513e650eaea60be2b1a4c65bf21981f9b", |
| 664 | url = "https://www.frc971.org/Build-Dependencies/gtk_runtime-4.tar.gz", |
Philipp Schrader | fd5489f | 2022-09-17 17:31:09 -0700 | [diff] [blame] | 665 | ) |
| 666 | |
Brian Silverman | 6c8b88b | 2018-09-03 18:17:02 -0700 | [diff] [blame] | 667 | # Downloaded from |
| 668 | # 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] | 669 | http_archive( |
Brian Silverman | 6c8b88b | 2018-09-03 18:17:02 -0700 | [diff] [blame] | 670 | name = "gcc_arm_none_eabi", |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 671 | build_file = "@//:compilers/gcc_arm_none_eabi.BUILD", |
Brian Silverman | 6c8b88b | 2018-09-03 18:17:02 -0700 | [diff] [blame] | 672 | sha256 = "bb17109f0ee697254a5d4ae6e5e01440e3ea8f0277f2e8169bf95d07c7d5fe69", |
| 673 | strip_prefix = "gcc-arm-none-eabi-7-2018-q2-update/", |
Austin Schuh | a5778ae | 2020-10-21 21:15:35 -0700 | [diff] [blame] | 674 | url = "https://www.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] | 675 | ) |
Austin Schuh | ad59622 | 2018-01-31 23:34:03 -0800 | [diff] [blame] | 676 | |
Tyler Chatow | fba5782 | 2022-03-22 19:38:41 -0700 | [diff] [blame] | 677 | # Java11 JDK. |
Philipp Schrader | 6efe573 | 2022-02-12 15:11:13 -0800 | [diff] [blame] | 678 | remote_java_repository( |
Austin Schuh | e18baff | 2018-10-20 17:40:42 -0700 | [diff] [blame] | 679 | name = "openjdk_linux_archive", |
Philipp Schrader | 6efe573 | 2022-02-12 15:11:13 -0800 | [diff] [blame] | 680 | prefix = "openjdk", |
Tyler Chatow | fba5782 | 2022-03-22 19:38:41 -0700 | [diff] [blame] | 681 | sha256 = "60e65d32e38876f81ddb623e87ac26c820465b637e263e8bed1acdecb4ca9be2", |
| 682 | strip_prefix = "zulu11.54.25-ca-jdk11.0.14.1-linux_x64", |
Philipp Schrader | 9670a2a | 2023-01-11 01:20:16 -0800 | [diff] [blame] | 683 | target_compatible_with = [ |
| 684 | "@platforms//cpu:x86_64", |
| 685 | "@platforms//os:linux", |
| 686 | ], |
Austin Schuh | e18baff | 2018-10-20 17:40:42 -0700 | [diff] [blame] | 687 | urls = [ |
Tyler Chatow | fba5782 | 2022-03-22 19:38:41 -0700 | [diff] [blame] | 688 | "https://www.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] | 689 | ], |
Tyler Chatow | fba5782 | 2022-03-22 19:38:41 -0700 | [diff] [blame] | 690 | version = "11", |
| 691 | ) |
| 692 | |
| 693 | remote_java_repository( |
| 694 | name = "openjdk_linux_archive_aarch64", |
Tyler Chatow | fba5782 | 2022-03-22 19:38:41 -0700 | [diff] [blame] | 695 | prefix = "openjdk", |
| 696 | sha256 = "b0fb0bc303bb05b5042ef3d0939b9489f4a49a13a2d1c8f03c5d8ab23099454d", |
| 697 | strip_prefix = "zulu11.54.25-ca-jdk11.0.14.1-linux_aarch64", |
Philipp Schrader | 9670a2a | 2023-01-11 01:20:16 -0800 | [diff] [blame] | 698 | target_compatible_with = [ |
| 699 | "@platforms//cpu:aarch64", |
| 700 | "@platforms//os:linux", |
| 701 | ], |
Tyler Chatow | fba5782 | 2022-03-22 19:38:41 -0700 | [diff] [blame] | 702 | urls = [ |
| 703 | "https://www.frc971.org/Build-Dependencies/zulu11.54.25-ca-jdk11.0.14.1-linux_aarch64.tar.gz", |
| 704 | ], |
| 705 | version = "11", |
Austin Schuh | e18baff | 2018-10-20 17:40:42 -0700 | [diff] [blame] | 706 | ) |
| 707 | |
Austin Schuh | f972444 | 2018-10-28 20:30:21 -0700 | [diff] [blame] | 708 | local_repository( |
| 709 | name = "com_google_protobuf", |
| 710 | path = "third_party/protobuf", |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 711 | ) |
Austin Schuh | 10358f2 | 2019-01-21 20:25:11 -0800 | [diff] [blame] | 712 | |
| 713 | local_repository( |
| 714 | name = "com_github_google_glog", |
| 715 | path = "third_party/google-glog", |
| 716 | ) |
Austin Schuh | 6defdeb | 2019-01-21 21:00:30 -0800 | [diff] [blame] | 717 | |
James Kuszmaul | 3aabc1c | 2023-01-13 21:33:43 -0800 | [diff] [blame] | 718 | http_archive( |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 719 | name = "com_google_googletest", |
James Kuszmaul | 3aabc1c | 2023-01-13 21:33:43 -0800 | [diff] [blame] | 720 | patch_args = ["-p1"], |
| 721 | patches = ["//third_party/googletest:googletest.patch"], |
| 722 | sha256 = "5c6d595243de011f8ce8cc68050cc0490726786e80cdfd6555ebfe148d920407", |
| 723 | strip_prefix = "googletest-356fc301251378e0f6fa6aa794d73714202887ac", |
| 724 | urls = ["https://github.com/google/googletest/archive/356fc301251378e0f6fa6aa794d73714202887ac.zip"], |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 725 | ) |
| 726 | |
Austin Schuh | 6defdeb | 2019-01-21 21:00:30 -0800 | [diff] [blame] | 727 | # External dependency: Google Benchmark; has no Bazel build. |
James Kuszmaul | 38169b9 | 2023-01-13 21:17:05 -0800 | [diff] [blame] | 728 | http_archive( |
Austin Schuh | 6defdeb | 2019-01-21 21:00:30 -0800 | [diff] [blame] | 729 | name = "com_github_google_benchmark", |
James Kuszmaul | 38169b9 | 2023-01-13 21:17:05 -0800 | [diff] [blame] | 730 | patch_args = ["-p1"], |
| 731 | patches = ["//third_party/google-benchmark:benchmark.patch"], |
| 732 | sha256 = "6430e4092653380d9dc4ccb45a1e2dc9259d581f4866dc0759713126056bc1d7", |
| 733 | strip_prefix = "benchmark-1.7.1", |
| 734 | 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] | 735 | ) |
Austin Schuh | 033df09 | 2019-01-21 19:46:48 -0800 | [diff] [blame] | 736 | |
| 737 | local_repository( |
| 738 | name = "com_google_ceres_solver", |
| 739 | path = "third_party/ceres", |
Austin Schuh | 70cc955 | 2019-01-21 19:46:48 -0800 | [diff] [blame] | 740 | ) |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 741 | |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 742 | http_archive( |
James Kuszmaul | 9776b39 | 2023-01-14 14:08:08 -0800 | [diff] [blame] | 743 | name = "ctre_phoenixpro_api_cpp_headers", |
| 744 | build_file_content = """ |
| 745 | cc_library( |
| 746 | name = 'api-cpp', |
| 747 | visibility = ['//visibility:public'], |
| 748 | hdrs = glob(['ctre/phoenixpro/**/*.hpp', 'units/*.h']), |
| 749 | includes = ["."], |
| 750 | deps = ["@//third_party/allwpilib/wpimath"], |
| 751 | ) |
| 752 | """, |
| 753 | sha256 = "d9d6c48df9318cf106237a44bf7ad95e4092618bc3ab731092e9b733cacb1ffc", |
| 754 | urls = [ |
| 755 | "https://maven.ctr-electronics.com/release/com/ctre/phoenixpro/api-cpp/23.0.1/api-cpp-23.0.1-headers.zip", |
| 756 | ], |
| 757 | ) |
| 758 | |
| 759 | http_archive( |
| 760 | name = "ctre_phoenixpro_api_cpp_athena", |
| 761 | build_file_content = """ |
| 762 | filegroup( |
| 763 | name = 'shared_libraries', |
| 764 | srcs = [ |
| 765 | 'linux/athena/shared/libCTRE_PhoenixPro.so', |
| 766 | ], |
| 767 | visibility = ['//visibility:public'], |
| 768 | ) |
| 769 | |
| 770 | cc_library( |
| 771 | name = 'api-cpp', |
| 772 | visibility = ['//visibility:public'], |
| 773 | srcs = ['linux/athena/shared/libCTRE_PhoenixPro.so'], |
| 774 | target_compatible_with = ['@//tools/platforms/hardware:roborio'], |
| 775 | ) |
| 776 | """, |
| 777 | sha256 = "3d228fdf8565de5411a739fa2670d4ef5390acb15ceb4d3cbef8c76b5adc7682", |
| 778 | urls = [ |
| 779 | "https://maven.ctr-electronics.com/release/com/ctre/phoenixpro/api-cpp/23.0.1/api-cpp-23.0.1-linuxathena.zip", |
| 780 | ], |
| 781 | ) |
| 782 | |
| 783 | http_archive( |
| 784 | name = "ctre_phoenixpro_tools_headers", |
| 785 | build_file_content = """ |
| 786 | cc_library( |
| 787 | name = 'tools', |
| 788 | visibility = ['//visibility:public'], |
| 789 | hdrs = glob(['ctre/**/*.h', 'ctre/**/*.hpp']), |
| 790 | ) |
| 791 | """, |
| 792 | sha256 = "74d79bb3e739d9d6b87311656b0530aaefc211952cc647a3d57776a0cee9efce", |
| 793 | urls = [ |
| 794 | "https://maven.ctr-electronics.com/release/com/ctre/phoenixpro/tools/23.0.1/tools-23.0.1-headers.zip", |
| 795 | ], |
| 796 | ) |
| 797 | |
| 798 | http_archive( |
| 799 | name = "ctre_phoenixpro_tools_athena", |
| 800 | build_file_content = """ |
| 801 | filegroup( |
| 802 | name = 'shared_libraries', |
| 803 | srcs = [ |
| 804 | 'linux/athena/shared/libCTRE_PhoenixTools.so', |
| 805 | ], |
| 806 | visibility = ['//visibility:public'], |
| 807 | ) |
| 808 | |
| 809 | cc_library( |
| 810 | name = 'tools', |
| 811 | visibility = ['//visibility:public'], |
| 812 | srcs = ['linux/athena/shared/libCTRE_PhoenixTools.so'], |
| 813 | target_compatible_with = ['@//tools/platforms/hardware:roborio'], |
| 814 | ) |
| 815 | """, |
| 816 | sha256 = "1791b35fdf76aa08ad120e4d689d9440bd386542f63f5c44e4047a06e2e05b9a", |
| 817 | urls = [ |
| 818 | "https://maven.ctr-electronics.com/release/com/ctre/phoenixpro/tools/23.0.1/tools-23.0.1-linuxathena.zip", |
| 819 | ], |
| 820 | ) |
| 821 | |
| 822 | http_archive( |
James Kuszmaul | 02eb05e | 2019-12-22 12:32:18 -0800 | [diff] [blame] | 823 | name = "ctre_phoenix_api_cpp_headers", |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 824 | build_file_content = """ |
| 825 | cc_library( |
| 826 | name = 'api-cpp', |
| 827 | visibility = ['//visibility:public'], |
| 828 | hdrs = glob(['ctre/phoenix/**/*.h']), |
| 829 | ) |
| 830 | """, |
James Kuszmaul | 9776b39 | 2023-01-14 14:08:08 -0800 | [diff] [blame] | 831 | sha256 = "93cc41c53e98bbcd5db7b0631ab95a7de7744527d5847d2e795e6c8acec46bf8", |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 832 | urls = [ |
James Kuszmaul | 9776b39 | 2023-01-14 14:08:08 -0800 | [diff] [blame] | 833 | "https://maven.ctr-electronics.com/release/com/ctre/phoenix/api-cpp/5.30.2/api-cpp-5.30.2-headers.zip", |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 834 | ], |
| 835 | ) |
| 836 | |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 837 | http_archive( |
James Kuszmaul | 02eb05e | 2019-12-22 12:32:18 -0800 | [diff] [blame] | 838 | name = "ctre_phoenix_api_cpp_athena", |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 839 | build_file_content = """ |
Austin Schuh | de605f1 | 2022-02-23 23:08:19 -0800 | [diff] [blame] | 840 | filegroup( |
| 841 | name = 'shared_libraries', |
| 842 | srcs = [ |
| 843 | 'linux/athena/shared/libCTRE_Phoenix.so', |
| 844 | ], |
| 845 | visibility = ['//visibility:public'], |
| 846 | ) |
| 847 | |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 848 | cc_library( |
| 849 | name = 'api-cpp', |
| 850 | visibility = ['//visibility:public'], |
Austin Schuh | de605f1 | 2022-02-23 23:08:19 -0800 | [diff] [blame] | 851 | srcs = ['linux/athena/shared/libCTRE_Phoenix.so'], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 852 | target_compatible_with = ['@//tools/platforms/hardware:roborio'], |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 853 | ) |
| 854 | """, |
James Kuszmaul | 9776b39 | 2023-01-14 14:08:08 -0800 | [diff] [blame] | 855 | sha256 = "63889beeeaac8bbef2573d23f1a9500b6382d28ab91c78f3605b6b624c27d68e", |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 856 | urls = [ |
James Kuszmaul | 9776b39 | 2023-01-14 14:08:08 -0800 | [diff] [blame] | 857 | "https://maven.ctr-electronics.com/release/com/ctre/phoenix/api-cpp/5.30.2/api-cpp-5.30.2-linuxathena.zip", |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 858 | ], |
| 859 | ) |
| 860 | |
James Kuszmaul | 02eb05e | 2019-12-22 12:32:18 -0800 | [diff] [blame] | 861 | http_archive( |
| 862 | name = "ctre_phoenix_cci_headers", |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 863 | build_file_content = """ |
| 864 | cc_library( |
| 865 | name = 'cci', |
| 866 | visibility = ['//visibility:public'], |
| 867 | hdrs = glob(['ctre/phoenix/**/*.h']), |
| 868 | ) |
| 869 | """, |
James Kuszmaul | 9776b39 | 2023-01-14 14:08:08 -0800 | [diff] [blame] | 870 | sha256 = "d41dd70aa4397cba934292e636c90511e571a56971f696348851fcd3bb88894d", |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 871 | urls = [ |
James Kuszmaul | 9776b39 | 2023-01-14 14:08:08 -0800 | [diff] [blame] | 872 | "https://maven.ctr-electronics.com/release/com/ctre/phoenix/cci/5.30.2/cci-5.30.2-headers.zip", |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 873 | ], |
| 874 | ) |
| 875 | |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame] | 876 | http_archive( |
James Kuszmaul | 02eb05e | 2019-12-22 12:32:18 -0800 | [diff] [blame] | 877 | name = "ctre_phoenix_cci_athena", |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 878 | build_file_content = """ |
Austin Schuh | de605f1 | 2022-02-23 23:08:19 -0800 | [diff] [blame] | 879 | filegroup( |
| 880 | name = 'shared_libraries', |
| 881 | srcs = [ |
| 882 | 'linux/athena/shared/libCTRE_PhoenixCCI.so', |
| 883 | ], |
| 884 | visibility = ['//visibility:public'], |
| 885 | ) |
| 886 | |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 887 | cc_library( |
| 888 | name = 'cci', |
| 889 | visibility = ['//visibility:public'], |
Austin Schuh | de605f1 | 2022-02-23 23:08:19 -0800 | [diff] [blame] | 890 | srcs = ['linux/athena/shared/libCTRE_PhoenixCCI.so'], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 891 | target_compatible_with = ['@//tools/platforms/hardware:roborio'], |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 892 | ) |
| 893 | """, |
James Kuszmaul | 9776b39 | 2023-01-14 14:08:08 -0800 | [diff] [blame] | 894 | sha256 = "b01f78b74ffcf01f48636dca894942e801ec6eac3daadcea7d65c4b74a80a056", |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 895 | urls = [ |
James Kuszmaul | 9776b39 | 2023-01-14 14:08:08 -0800 | [diff] [blame] | 896 | "https://maven.ctr-electronics.com/release/com/ctre/phoenix/cci/5.30.2/cci-5.30.2-linuxathena.zip", |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 897 | ], |
| 898 | ) |
Austin Schuh | eed1444 | 2019-03-23 14:42:46 -0700 | [diff] [blame] | 899 | |
| 900 | http_archive( |
Austin Schuh | da9d060 | 2019-09-15 17:29:38 -0700 | [diff] [blame] | 901 | name = "build_bazel_rules_nodejs", |
Philipp Schrader | 87277f4 | 2022-01-01 07:45:12 -0800 | [diff] [blame] | 902 | sha256 = "cfc289523cf1594598215901154a6c2515e8bf3671fd708264a6f6aefe02bf39", |
| 903 | urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/4.4.6/rules_nodejs-4.4.6.tar.gz"], |
Austin Schuh | da9d060 | 2019-09-15 17:29:38 -0700 | [diff] [blame] | 904 | ) |
Austin Schuh | eed1444 | 2019-03-23 14:42:46 -0700 | [diff] [blame] | 905 | |
Philipp Schrader | 87277f4 | 2022-01-01 07:45:12 -0800 | [diff] [blame] | 906 | load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories", "yarn_install") |
Austin Schuh | eed1444 | 2019-03-23 14:42:46 -0700 | [diff] [blame] | 907 | |
| 908 | node_repositories() |
| 909 | |
| 910 | # Setup Bazel managed npm dependencies with the `yarn_install` rule. |
Philipp Schrader | 87277f4 | 2022-01-01 07:45:12 -0800 | [diff] [blame] | 911 | |
Austin Schuh | da9d060 | 2019-09-15 17:29:38 -0700 | [diff] [blame] | 912 | # To run yarn by hand, use: |
| 913 | # bazel run @nodejs_linux_amd64//:bin/yarn -- list |
| 914 | # I'm sure there is a better path, but that works... |
Austin Schuh | eed1444 | 2019-03-23 14:42:46 -0700 | [diff] [blame] | 915 | yarn_install( |
| 916 | name = "npm", |
Alex Perry | eddc18c | 2022-01-29 16:22:41 -0800 | [diff] [blame] | 917 | frozen_lockfile = True, |
Austin Schuh | eed1444 | 2019-03-23 14:42:46 -0700 | [diff] [blame] | 918 | package_json = "//:package.json", |
Philipp Schrader | b48f8ea | 2022-03-13 20:59:54 -0700 | [diff] [blame] | 919 | patch_args = ["-p1"], |
| 920 | post_install_patches = [ |
| 921 | "//third_party:npm/@bazel/protractor/bazel-protractor.patch", |
| 922 | ], |
Austin Schuh | da9d060 | 2019-09-15 17:29:38 -0700 | [diff] [blame] | 923 | symlink_node_modules = False, |
Austin Schuh | eed1444 | 2019-03-23 14:42:46 -0700 | [diff] [blame] | 924 | yarn_lock = "//:yarn.lock", |
| 925 | ) |
Austin Schuh | 4ac96a8 | 2019-08-14 20:24:23 -0700 | [diff] [blame] | 926 | |
Philipp Schrader | 5404796 | 2022-02-16 21:05:11 -0800 | [diff] [blame] | 927 | load("@build_bazel_rules_nodejs//toolchains/esbuild:esbuild_repositories.bzl", "esbuild_repositories") |
| 928 | |
| 929 | esbuild_repositories(npm_repository = "npm") |
| 930 | |
Alex Perry | b316808 | 2022-01-22 13:36:13 -0800 | [diff] [blame] | 931 | http_archive( |
| 932 | name = "io_bazel_rules_webtesting", |
Philipp Schrader | 5404796 | 2022-02-16 21:05:11 -0800 | [diff] [blame] | 933 | patch_args = ["-p1"], |
| 934 | patches = [ |
| 935 | "@//third_party:rules_webtesting/rules_webtesting.patch", |
| 936 | ], |
Alex Perry | b316808 | 2022-01-22 13:36:13 -0800 | [diff] [blame] | 937 | sha256 = "e9abb7658b6a129740c0b3ef6f5a2370864e102a5ba5ffca2cea565829ed825a", |
| 938 | urls = ["https://github.com/bazelbuild/rules_webtesting/releases/download/0.3.5/rules_webtesting.tar.gz"], |
| 939 | ) |
| 940 | |
Brian Silverman | e84b0cf | 2022-08-13 19:36:21 -0700 | [diff] [blame] | 941 | http_archive( |
| 942 | name = "rules_rust_tinyjson", |
| 943 | build_file = "@rules_rust//util/process_wrapper:BUILD.tinyjson.bazel", |
| 944 | sha256 = "1a8304da9f9370f6a6f9020b7903b044aa9ce3470f300a1fba5bc77c78145a16", |
| 945 | strip_prefix = "tinyjson-2.3.0", |
| 946 | type = "tar.gz", |
| 947 | url = "https://crates.io/api/v1/crates/tinyjson/2.3.0/download", |
| 948 | ) |
| 949 | |
Brian Silverman | 01dfd87 | 2022-04-06 22:20:40 -0700 | [diff] [blame] | 950 | local_repository( |
Ravago Jones | 1680980 | 2021-11-18 20:40:03 -0800 | [diff] [blame] | 951 | name = "rules_rust", |
Brian Silverman | 01dfd87 | 2022-04-06 22:20:40 -0700 | [diff] [blame] | 952 | path = "third_party/rules_rust", |
Ravago Jones | 1680980 | 2021-11-18 20:40:03 -0800 | [diff] [blame] | 953 | ) |
| 954 | |
Brian Silverman | e84b0cf | 2022-08-13 19:36:21 -0700 | [diff] [blame] | 955 | load("@rules_rust//rust:repositories.bzl", "rust_repository_set") |
Ravago Jones | 1680980 | 2021-11-18 20:40:03 -0800 | [diff] [blame] | 956 | |
Brian Silverman | e84b0cf | 2022-08-13 19:36:21 -0700 | [diff] [blame] | 957 | rust_repository_set( |
Ravago Jones | 1680980 | 2021-11-18 20:40:03 -0800 | [diff] [blame] | 958 | name = "rust", |
Brian Silverman | 8751d48 | 2022-05-18 23:28:44 -0700 | [diff] [blame] | 959 | allocator_library = "@//tools/rust:forward_allocator", |
Ravago Jones | 1680980 | 2021-11-18 20:40:03 -0800 | [diff] [blame] | 960 | edition = "2021", |
| 961 | exec_triple = "x86_64-unknown-linux-gnu", |
| 962 | extra_target_triples = [ |
| 963 | "arm-unknown-linux-gnueabi", |
| 964 | "armv7-unknown-linux-gnueabihf", |
Philipp Schrader | f1bbf34 | 2022-02-05 14:30:15 -0800 | [diff] [blame] | 965 | "aarch64-unknown-linux-gnu", |
Ravago Jones | 1680980 | 2021-11-18 20:40:03 -0800 | [diff] [blame] | 966 | ], |
Brian Silverman | e84b0cf | 2022-08-13 19:36:21 -0700 | [diff] [blame] | 967 | register_toolchain = False, |
Brian Silverman | a8ad1af | 2022-07-23 16:05:12 -0700 | [diff] [blame] | 968 | rustfmt_version = "1.62.0", |
Brian Silverman | a8ad1af | 2022-07-23 16:05:12 -0700 | [diff] [blame] | 969 | version = "1.62.0", |
Ravago Jones | 1680980 | 2021-11-18 20:40:03 -0800 | [diff] [blame] | 970 | ) |
| 971 | |
Philipp Schrader | 5404796 | 2022-02-16 21:05:11 -0800 | [diff] [blame] | 972 | load("@io_bazel_rules_webtesting//web:repositories.bzl", "web_test_repositories") |
| 973 | |
| 974 | web_test_repositories() |
| 975 | |
| 976 | load("@io_bazel_rules_webtesting//web/versioned:browsers-0.3.3.bzl", "browser_repositories") |
| 977 | |
| 978 | browser_repositories(chromium = True) |
| 979 | |
Austin Schuh | 4ac96a8 | 2019-08-14 20:24:23 -0700 | [diff] [blame] | 980 | # Flatbuffers |
| 981 | local_repository( |
| 982 | name = "com_github_google_flatbuffers", |
| 983 | path = "third_party/flatbuffers", |
| 984 | ) |
James Kuszmaul | 7daef36 | 2019-12-31 18:28:17 -0800 | [diff] [blame] | 985 | |
| 986 | http_file( |
| 987 | name = "sample_logfile", |
| 988 | downloaded_file_path = "log.fbs", |
milind | 945708b | 2021-07-03 13:30:15 -0700 | [diff] [blame] | 989 | sha256 = "45d1d19fb82786c476d3f21a8d62742abaeeedf4c16a00ec37ae350dcb61f1fc", |
| 990 | urls = ["https://www.frc971.org/Build-Dependencies/small_sample_logfile2.fbs"], |
James Kuszmaul | 7daef36 | 2019-12-31 18:28:17 -0800 | [diff] [blame] | 991 | ) |
Brian Silverman | d4260c7 | 2020-01-14 00:08:02 -0800 | [diff] [blame] | 992 | |
James Kuszmaul | 9c12812 | 2021-03-22 22:24:36 -0700 | [diff] [blame] | 993 | http_archive( |
James Kuszmaul | 531609d | 2020-02-18 17:12:23 -0800 | [diff] [blame] | 994 | name = "drivetrain_replay", |
James Kuszmaul | 9c12812 | 2021-03-22 22:24:36 -0700 | [diff] [blame] | 995 | build_file_content = """ |
| 996 | filegroup( |
| 997 | name = "drivetrain_replay", |
| 998 | srcs = glob(["**/*.bfbs"]), |
| 999 | visibility = ["//visibility:public"], |
| 1000 | ) |
| 1001 | """, |
| 1002 | sha256 = "115dcd2fe005cb9cad3325707aa7f4466390c43a08555edf331c06c108bdf692", |
| 1003 | url = "https://www.frc971.org/Build-Dependencies/2021-03-20_drivetrain_spin_wheels.tar.gz", |
James Kuszmaul | 531609d | 2020-02-18 17:12:23 -0800 | [diff] [blame] | 1004 | ) |
| 1005 | |
milind-u | 7baf734 | 2021-08-25 18:31:26 -0700 | [diff] [blame] | 1006 | http_archive( |
| 1007 | name = "superstructure_replay", |
| 1008 | build_file_content = """ |
| 1009 | filegroup( |
| 1010 | name = "superstructure_replay", |
| 1011 | srcs = glob(["**/*.bfbs"]), |
| 1012 | visibility = ["//visibility:public"], |
| 1013 | ) |
| 1014 | """, |
milind-u | 200b276 | 2021-11-06 19:36:15 -0700 | [diff] [blame] | 1015 | sha256 = "2b9a3ecc83f2aba89a1909ae38fe51e6718a5b4d0e7c131846dfb2845df9cd19", |
| 1016 | url = "https://www.frc971.org/Build-Dependencies/2021-10-03_superstructure_shoot_balls.tar.gz", |
milind-u | 7baf734 | 2021-08-25 18:31:26 -0700 | [diff] [blame] | 1017 | ) |
| 1018 | |
Philipp Schrader | f1bbf34 | 2022-02-05 14:30:15 -0800 | [diff] [blame] | 1019 | # OpenCV arm64 (for raspberry pi) |
| 1020 | http_archive( |
| 1021 | name = "opencv_arm64", |
| 1022 | build_file = "@//debian:opencv.BUILD", |
| 1023 | sha256 = "d284fae46ca710cf24c81ff7ace34929773466bff38f365a80371bea3b36a2ed", |
| 1024 | url = "https://www.frc971.org/Build-Dependencies/opencv_arm64.tar.gz", |
| 1025 | ) |
| 1026 | |
Brian Silverman | d4260c7 | 2020-01-14 00:08:02 -0800 | [diff] [blame] | 1027 | # OpenCV armhf (for raspberry pi) |
| 1028 | http_archive( |
| 1029 | name = "opencv_armhf", |
| 1030 | build_file = "@//debian:opencv.BUILD", |
Brian Silverman | 4c7235a | 2021-11-17 19:04:37 -0800 | [diff] [blame] | 1031 | sha256 = "064165507bad1afa8f7b22961a9a9067b243abc70064d713d26b37bc8dc2bf56", |
| 1032 | url = "https://www.frc971.org/Build-Dependencies/opencv_armhf_v4.tar.gz", |
Brian Silverman | d4260c7 | 2020-01-14 00:08:02 -0800 | [diff] [blame] | 1033 | ) |
Brian Silverman | d97a47c | 2020-01-16 00:47:53 -0800 | [diff] [blame] | 1034 | |
| 1035 | http_archive( |
| 1036 | name = "opencv_k8", |
| 1037 | build_file = "@//debian:opencv.BUILD", |
Brian Silverman | 4c7235a | 2021-11-17 19:04:37 -0800 | [diff] [blame] | 1038 | sha256 = "b730f5d0c8eb59411157b4e84bfdddd3a6fceed10b842716d9d1b74ad322ea14", |
| 1039 | url = "https://www.frc971.org/Build-Dependencies/opencv_amd64_v3.tar.gz", |
Brian Silverman | d97a47c | 2020-01-16 00:47:53 -0800 | [diff] [blame] | 1040 | ) |
Brian Silverman | 764945b | 2020-01-16 23:40:43 -0800 | [diff] [blame] | 1041 | |
Brian Silverman | 764945b | 2020-01-16 23:40:43 -0800 | [diff] [blame] | 1042 | http_archive( |
| 1043 | name = "halide_k8", |
| 1044 | build_file = "@//debian:halide.BUILD", |
Austin Schuh | 669068e | 2023-01-04 20:50:34 -0800 | [diff] [blame] | 1045 | sha256 = "be3bdd067acb9ee0d37d0830821113cd69174bee46da466a836d8829fef7cf91", |
| 1046 | strip_prefix = "Halide-14.0.0-x86-64-linux/", |
| 1047 | 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] | 1048 | ) |
| 1049 | |
Philipp Schrader | f1bbf34 | 2022-02-05 14:30:15 -0800 | [diff] [blame] | 1050 | http_archive( |
| 1051 | name = "halide_arm64", |
| 1052 | build_file = "@//debian:halide.BUILD", |
Austin Schuh | 669068e | 2023-01-04 20:50:34 -0800 | [diff] [blame] | 1053 | sha256 = "cdd42411bcbba682f73d7db0af69837c4857ee90f1727c6feb37fc9a98132385", |
| 1054 | strip_prefix = "Halide-14.0.0-arm-64-linux/", |
| 1055 | 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] | 1056 | ) |
| 1057 | |
Brian Silverman | 764945b | 2020-01-16 23:40:43 -0800 | [diff] [blame] | 1058 | http_archive( |
| 1059 | name = "halide_armhf", |
| 1060 | build_file = "@//debian:halide.BUILD", |
Austin Schuh | 669068e | 2023-01-04 20:50:34 -0800 | [diff] [blame] | 1061 | sha256 = "6b3fe3396391b57990a2c41d8dcea74b0734d1b2a0fd42fe0858d954aa45df2b", |
| 1062 | strip_prefix = "Halide-14.0.0-arm-32-linux/", |
| 1063 | url = "https://github.com/halide/Halide/releases/download/v14.0.0/Halide-14.0.0-arm-32-linux-6b9ed2afd1d6d0badf04986602c943e287d44e46.tar.gz", |
Brian Silverman | 764945b | 2020-01-16 23:40:43 -0800 | [diff] [blame] | 1064 | ) |
Brian Silverman | 4fe44ea | 2020-02-02 12:56:42 -0800 | [diff] [blame] | 1065 | |
Austin Schuh | 2e28d87 | 2022-02-19 18:25:57 -0800 | [diff] [blame] | 1066 | http_archive( |
Tyler Chatow | 60671d3 | 2020-02-26 19:49:30 -0800 | [diff] [blame] | 1067 | name = "gstreamer_k8", |
| 1068 | build_file = "@//debian:gstreamer.BUILD", |
Tyler Chatow | 6eda82c | 2022-03-27 22:37:38 -0700 | [diff] [blame] | 1069 | sha256 = "d4994261a432c188716f0bdf30fc3f0dff6727319d9c58e7156e2b3ed5105248", |
| 1070 | url = "https://www.frc971.org/Build-Dependencies/gstreamer_1.20.1-1~bpo11+1_amd64.tar.gz", |
Tyler Chatow | 60671d3 | 2020-02-26 19:49:30 -0800 | [diff] [blame] | 1071 | ) |
| 1072 | |
| 1073 | http_archive( |
| 1074 | name = "gstreamer_armhf", |
| 1075 | build_file = "@//debian:gstreamer.BUILD", |
| 1076 | sha256 = "c5ac4c604952c274a50636e244f0d091bd1de302032446f24f0e9e03ae9c76f7", |
Austin Schuh | a5778ae | 2020-10-21 21:15:35 -0700 | [diff] [blame] | 1077 | url = "https://www.frc971.org/Build-Dependencies/gstreamer_armhf.tar.gz", |
Tyler Chatow | 60671d3 | 2020-02-26 19:49:30 -0800 | [diff] [blame] | 1078 | ) |
James Kuszmaul | c91e440 | 2020-05-10 18:47:20 -0700 | [diff] [blame] | 1079 | |
Tyler Chatow | 6eda82c | 2022-03-27 22:37:38 -0700 | [diff] [blame] | 1080 | http_archive( |
| 1081 | name = "gstreamer_arm64", |
| 1082 | build_file = "@//debian:gstreamer.BUILD", |
| 1083 | sha256 = "42b414c565ffdbae3d2d7796a66da9de42a650de757fa6554fd624f0cc3aaa9b", |
| 1084 | url = "https://www.frc971.org/Build-Dependencies/gstreamer_1.20.1-1~bpo11+1_arm64.tar.gz", |
| 1085 | ) |
| 1086 | |
Brian Silverman | f59fe3f | 2020-09-22 21:04:09 -0700 | [diff] [blame] | 1087 | # //debian:lzma_amd64 |
| 1088 | http_archive( |
| 1089 | name = "lzma_amd64", |
| 1090 | build_file_content = """ |
| 1091 | cc_library( |
| 1092 | name = "lib", |
| 1093 | srcs = [ |
| 1094 | "usr/lib/x86_64-linux-gnu/liblzma.a", |
| 1095 | ], |
| 1096 | hdrs = glob([ |
| 1097 | "usr/include/lzma/*.h", |
| 1098 | "usr/include/*.h", |
| 1099 | ]), |
| 1100 | strip_include_prefix = "usr/include", |
| 1101 | visibility = ["//visibility:public"], |
| 1102 | ) |
| 1103 | """, |
Austin Schuh | e675177 | 2022-06-27 00:58:26 -0700 | [diff] [blame] | 1104 | sha256 = "6fa0ad579b78bd41a0133024c34063b140442dd2ad4201fd2bf4c55229e7c13f", |
| 1105 | urls = ["https://www.frc971.org/Build-Dependencies/lzma_amd64-2.tar.gz"], |
Brian Silverman | f59fe3f | 2020-09-22 21:04:09 -0700 | [diff] [blame] | 1106 | ) |
| 1107 | |
| 1108 | # //debian:lzma_arm64 |
| 1109 | http_archive( |
| 1110 | name = "lzma_arm64", |
| 1111 | build_file_content = """ |
| 1112 | cc_library( |
| 1113 | name = "lib", |
| 1114 | srcs = [ |
| 1115 | "usr/lib/aarch64-linux-gnu/liblzma.a", |
| 1116 | ], |
| 1117 | hdrs = glob([ |
| 1118 | "usr/include/lzma/*.h", |
| 1119 | "usr/include/*.h", |
| 1120 | ]), |
| 1121 | strip_include_prefix = "usr/include", |
| 1122 | visibility = ["//visibility:public"], |
| 1123 | ) |
| 1124 | """, |
Austin Schuh | c020b18 | 2022-06-29 19:54:01 -0700 | [diff] [blame] | 1125 | sha256 = "b4ab9fd7cf3bfdb9e3fc67ac4a3c84db7f7e3c48431ccfc6e6e210f5829d17c9", |
| 1126 | urls = ["https://www.frc971.org/Build-Dependencies/lzma_arm64-2.tar.gz"], |
Brian Silverman | f59fe3f | 2020-09-22 21:04:09 -0700 | [diff] [blame] | 1127 | ) |
James Kuszmaul | 2cffe85 | 2021-10-27 20:17:49 -0700 | [diff] [blame] | 1128 | |
| 1129 | local_repository( |
| 1130 | name = "snappy", |
| 1131 | path = "third_party/snappy", |
| 1132 | ) |
Philipp Schrader | 73e5660 | 2021-12-06 21:37:30 -0800 | [diff] [blame] | 1133 | |
| 1134 | http_archive( |
| 1135 | name = "io_bazel_rules_go", |
Philipp Schrader | 039f5c3 | 2022-01-20 22:30:01 -0800 | [diff] [blame] | 1136 | patch_args = [ |
| 1137 | "-p1", |
| 1138 | ], |
| 1139 | patches = [ |
| 1140 | "@//third_party:rules_go/0001-Disable-warnings-for-external-repositories.patch", |
| 1141 | ], |
Philipp Schrader | 73e5660 | 2021-12-06 21:37:30 -0800 | [diff] [blame] | 1142 | sha256 = "2b1641428dff9018f9e85c0384f03ec6c10660d935b750e3fa1492a281a53b0f", |
| 1143 | urls = [ |
| 1144 | "https://www.frc971.org/Build-Dependencies/rules_go-v0.29.0.zip", |
| 1145 | "https://github.com/bazelbuild/rules_go/releases/download/v0.29.0/rules_go-v0.29.0.zip", |
| 1146 | ], |
| 1147 | ) |
| 1148 | |
Philipp Schrader | 37fdbb6 | 2021-12-18 00:30:37 -0800 | [diff] [blame] | 1149 | http_archive( |
| 1150 | name = "bazel_gazelle", |
| 1151 | sha256 = "de69a09dc70417580aabf20a28619bb3ef60d038470c7cf8442fafcf627c21cb", |
| 1152 | urls = [ |
| 1153 | "https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.24.0/bazel-gazelle-v0.24.0.tar.gz", |
| 1154 | "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.24.0/bazel-gazelle-v0.24.0.tar.gz", |
| 1155 | ], |
| 1156 | ) |
| 1157 | |
Philipp Schrader | 73e5660 | 2021-12-06 21:37:30 -0800 | [diff] [blame] | 1158 | load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies") |
| 1159 | |
| 1160 | go_rules_dependencies() |
| 1161 | |
Philipp Schrader | 6097ed1 | 2022-03-26 15:37:37 -0700 | [diff] [blame] | 1162 | go_register_toolchains(version = "1.18") |
Philipp Schrader | 37fdbb6 | 2021-12-18 00:30:37 -0800 | [diff] [blame] | 1163 | |
| 1164 | load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies") |
| 1165 | load("//:go_deps.bzl", "go_dependencies") |
| 1166 | load("//tools/go:mirrored_go_deps.bzl", "mirrored_go_dependencies") |
| 1167 | |
| 1168 | mirrored_go_dependencies() |
| 1169 | |
| 1170 | # gazelle:repository_macro go_deps.bzl%go_dependencies |
| 1171 | go_dependencies() |
| 1172 | |
| 1173 | gazelle_dependencies() |
Philipp Schrader | cc016b3 | 2021-12-30 08:59:58 -0800 | [diff] [blame] | 1174 | |
| 1175 | http_archive( |
| 1176 | name = "com_github_bazelbuild_buildtools", |
| 1177 | sha256 = "44a6e5acc007e197d45ac3326e7f993f0160af9a58e8777ca7701e00501c0857", |
| 1178 | strip_prefix = "buildtools-4.2.4", |
| 1179 | urls = [ |
| 1180 | "https://github.com/bazelbuild/buildtools/archive/refs/tags/4.2.4.tar.gz", |
| 1181 | ], |
| 1182 | ) |
Philipp Schrader | 0f5d250 | 2022-03-08 22:44:55 -0800 | [diff] [blame] | 1183 | |
| 1184 | http_archive( |
Tyler Chatow | ec100e2 | 2022-03-22 16:23:04 -0700 | [diff] [blame] | 1185 | name = "libtinfo5_amd64", |
Tyler Chatow | 8a51ac6 | 2022-03-15 13:23:12 -0700 | [diff] [blame] | 1186 | build_file_content = """ |
| 1187 | exports_files( |
| 1188 | [ |
| 1189 | 'lib/x86_64-linux-gnu/libtinfo.so.5', |
| 1190 | 'lib/x86_64-linux-gnu/libtinfo.so.5.9', |
| 1191 | ], |
| 1192 | ["//visibility:public"], |
| 1193 | ) |
| 1194 | """, |
| 1195 | patch_cmds = ["touch lib/x86_64-linux-gnu/BUILD"], |
| 1196 | sha256 = "059e14f77dce365c57b96284aae98c892f61e269b3fbb7d07714b7135c2e5617", |
| 1197 | urls = ["https://www.frc971.org/Build-Dependencies/libtinfo5_amd64.tar.gz"], |
| 1198 | ) |
Tyler Chatow | ec100e2 | 2022-03-22 16:23:04 -0700 | [diff] [blame] | 1199 | |
| 1200 | http_archive( |
| 1201 | name = "libtinfo5_arm64", |
| 1202 | build_file_content = """ |
| 1203 | exports_files( |
| 1204 | [ |
| 1205 | 'lib/aarch64-linux-gnu/libtinfo.so.5', |
| 1206 | 'lib/aarch64-linux-gnu/libtinfo.so.5.9', |
| 1207 | ], |
| 1208 | ["//visibility:public"], |
| 1209 | ) |
| 1210 | """, |
| 1211 | patch_cmds = ["touch lib/aarch64-linux-gnu/BUILD"], |
| 1212 | sha256 = "df4ea5194c80df8d1f5f6ed68b47ce9dbf78aa8cdebbc61cf00654d9075f8e3c", |
| 1213 | urls = ["https://www.frc971.org/Build-Dependencies/libtinfo5_arm64.tar.gz"], |
| 1214 | ) |
James Kuszmaul | 4ed5fb1 | 2022-03-22 15:20:04 -0700 | [diff] [blame] | 1215 | |
| 1216 | local_repository( |
| 1217 | name = "com_github_nlohmann_json", |
| 1218 | path = "third_party/com_github_nlohmann_json", |
| 1219 | ) |
James Kuszmaul | 5c56ed3 | 2022-03-30 15:10:07 -0700 | [diff] [blame] | 1220 | |
Austin Schuh | 8611071 | 2022-09-16 15:40:54 -0700 | [diff] [blame] | 1221 | # https://curl.haxx.se/download/curl-7.69.1.tar.gz |
| 1222 | http_archive( |
| 1223 | name = "com_github_curl_curl", |
| 1224 | build_file = "//debian:curl.BUILD", |
| 1225 | sha256 = "01ae0c123dee45b01bbaef94c0bc00ed2aec89cb2ee0fd598e0d302a6b5e0a98", |
| 1226 | strip_prefix = "curl-7.69.1", |
| 1227 | url = "https://www.frc971.org/Build-Dependencies/curl-7.69.1.tar.gz", |
| 1228 | ) |
| 1229 | |
| 1230 | http_archive( |
| 1231 | # No official name exists. Names used in our external dependencies include |
| 1232 | # zlib, madler_zlib, com_github_madler_zlib. |
| 1233 | name = "zlib", |
| 1234 | build_file = "//debian:BUILD.zlib.bazel", |
| 1235 | sha256 = "629380c90a77b964d896ed37163f5c3a34f6e6d897311f1df2a7016355c45eff", |
| 1236 | strip_prefix = "zlib-1.2.11", |
| 1237 | urls = [ |
| 1238 | "https://github.com/madler/zlib/archive/v1.2.11.tar.gz", |
| 1239 | ], |
| 1240 | ) |
| 1241 | |
| 1242 | # 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] | 1243 | # 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] | 1244 | # cd aws-sdk-cpp |
| 1245 | # 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/\)') |
| 1246 | # Now run the command that printed, and the output will be at aws_sdk-version.tar.gz. |
| 1247 | http_archive( |
| 1248 | name = "aws_sdk", |
| 1249 | build_file = "//debian:aws_sdk.BUILD", |
| 1250 | patch_args = ["-p1"], |
| 1251 | patches = ["//debian:aws_sdk.patch"], |
James Kuszmaul | b0931ac | 2023-01-24 14:23:13 -0800 | [diff] [blame] | 1252 | sha256 = "de6570d10c246189fd8c02100f7f0d9af8499a3ef94a131eeb85619f3bd6c604", |
| 1253 | url = "https://www.frc971.org/Build-Dependencies/aws_sdk-1.10.34.tar.gz", |
Austin Schuh | 8611071 | 2022-09-16 15:40:54 -0700 | [diff] [blame] | 1254 | ) |
| 1255 | |
James Kuszmaul | 5ab990d | 2022-11-07 16:35:49 -0800 | [diff] [blame] | 1256 | # Source code of LZ4 (files under lib/) are under BSD 2-Clause. |
| 1257 | # The rest of the repository (build information, documentation, etc.) is under GPLv2. |
| 1258 | # We only care about the lib/ subfolder anyways, and strip out any other files. |
| 1259 | http_archive( |
| 1260 | name = "com_github_lz4_lz4", |
| 1261 | build_file = "//debian:BUILD.lz4.bazel", |
| 1262 | sha256 = "0b0e3aa07c8c063ddf40b082bdf7e37a1562bda40a0ff5272957f3e987e0e54b", |
| 1263 | strip_prefix = "lz4-1.9.4/lib", |
| 1264 | url = "https://github.com/lz4/lz4/archive/refs/tags/v1.9.4.tar.gz", |
| 1265 | ) |
| 1266 | |
James Kuszmaul | 5c56ed3 | 2022-03-30 15:10:07 -0700 | [diff] [blame] | 1267 | http_file( |
| 1268 | name = "com_github_foxglove_mcap_mcap", |
| 1269 | executable = True, |
James Kuszmaul | 5ab990d | 2022-11-07 16:35:49 -0800 | [diff] [blame] | 1270 | sha256 = "ae745dd09cf4c9570c1c038a72630c07b073f0ed4b05983d64108ff748a40d3f", |
| 1271 | 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] | 1272 | ) |
Brian Silverman | 0aa1373 | 2022-05-19 23:14:08 -0700 | [diff] [blame] | 1273 | |
| 1274 | http_archive( |
| 1275 | name = "cargo_raze", |
| 1276 | patches = ["@//third_party/cargo_raze:cargo_raze.patch"], |
| 1277 | sha256 = "08bfc8859ff686ecb55005a3c4a9cf790115de0abdbcc69cf57b15be0745a859", |
| 1278 | strip_prefix = "cargo-raze-0.14.2", |
| 1279 | url = "https://github.com/google/cargo-raze/archive/v0.14.2.tar.gz", |
| 1280 | ) |
| 1281 | |
| 1282 | http_archive( |
| 1283 | name = "rules_foreign_cc", |
| 1284 | patch_args = ["-p1"], |
| 1285 | patches = ["@//third_party/rules_foreign_cc:backport_d93bd96dc719760c968b54730258ad0a5b10f8fb.patch"], |
| 1286 | sha256 = "69023642d5781c68911beda769f91fcbc8ca48711db935a75da7f6536b65047f", |
| 1287 | strip_prefix = "rules_foreign_cc-0.6.0", |
| 1288 | url = "https://github.com/bazelbuild/rules_foreign_cc/archive/0.6.0.tar.gz", |
| 1289 | ) |
| 1290 | |
| 1291 | load("@cargo_raze//:repositories.bzl", "cargo_raze_repositories") |
| 1292 | |
| 1293 | cargo_raze_repositories() |
| 1294 | |
| 1295 | # cargo_raze_transitive_deps wants to do `rust_repositories`, which we do |
| 1296 | # manually to get the right platforms. rules_foreign_cc is currently the only |
| 1297 | # other thing it has, so just do that manually. |
| 1298 | load("@rules_foreign_cc//foreign_cc:repositories.bzl", "rules_foreign_cc_dependencies") |
| 1299 | |
| 1300 | rules_foreign_cc_dependencies() |
Brian Silverman | 547eda0 | 2022-05-19 23:14:08 -0700 | [diff] [blame] | 1301 | |
| 1302 | load("//third_party/cargo:crates.bzl", "raze_fetch_remote_crates") |
| 1303 | |
| 1304 | raze_fetch_remote_crates() |
James Kuszmaul | 0de4feb | 2022-04-15 12:16:59 -0700 | [diff] [blame] | 1305 | |
| 1306 | http_archive( |
| 1307 | name = "com_github_zaphoyd_websocketpp", |
| 1308 | build_file = "//third_party/websocketpp:websocketpp.BUILD", |
Ravago Jones | 0c74c12 | 2023-01-08 15:20:19 -0800 | [diff] [blame] | 1309 | patch_args = ["-p1"], |
| 1310 | patches = ["//third_party/websocketpp:websocketpp.patch"], |
James Kuszmaul | 0de4feb | 2022-04-15 12:16:59 -0700 | [diff] [blame] | 1311 | sha256 = "6ce889d85ecdc2d8fa07408d6787e7352510750daa66b5ad44aacb47bea76755", |
| 1312 | strip_prefix = "websocketpp-0.8.2", |
| 1313 | url = "https://github.com/zaphoyd/websocketpp/archive/refs/tags/0.8.2.tar.gz", |
| 1314 | ) |
| 1315 | |
| 1316 | http_archive( |
| 1317 | name = "com_github_foxglove_ws-protocol", |
James Kuszmaul | 6b60929 | 2023-01-28 15:58:43 -0800 | [diff] [blame] | 1318 | build_file = "//third_party/foxglove/ws_protocol:foxglove_ws_protocol.BUILD", |
James Kuszmaul | 0de4feb | 2022-04-15 12:16:59 -0700 | [diff] [blame] | 1319 | patch_args = ["-p1"], |
James Kuszmaul | 6b60929 | 2023-01-28 15:58:43 -0800 | [diff] [blame] | 1320 | patches = ["//third_party/foxglove/ws_protocol:foxglove_ws_protocol.patch"], |
James Kuszmaul | 0de4feb | 2022-04-15 12:16:59 -0700 | [diff] [blame] | 1321 | sha256 = "3256f09a67419f6556778c443d332f1a4bf53ba0e7a464179bf838abffa366ab", |
| 1322 | strip_prefix = "ws-protocol-releases-typescript-ws-protocol-examples-v0.0.6", |
| 1323 | url = "https://github.com/foxglove/ws-protocol/archive/refs/tags/releases/typescript/ws-protocol-examples/v0.0.6.tar.gz", |
| 1324 | ) |
| 1325 | |
| 1326 | http_archive( |
| 1327 | name = "asio", |
| 1328 | build_file_content = """ |
| 1329 | cc_library( |
| 1330 | name = "asio", |
| 1331 | hdrs = glob(["include/asio/**/*.hpp", "include/asio/**/*.ipp", "include/asio.hpp"]), |
| 1332 | visibility = ["//visibility:public"], |
| 1333 | defines = ["ASIO_STANDALONE"], |
| 1334 | includes = ["include/"], |
| 1335 | )""", |
| 1336 | sha256 = "8976812c24a118600f6fcf071a20606630a69afe4c0abee3b0dea528e682c585", |
| 1337 | strip_prefix = "asio-1.24.0", |
| 1338 | url = "https://downloads.sourceforge.net/project/asio/asio/1.24.0%2520%2528Stable%2529/asio-1.24.0.tar.bz2", |
| 1339 | ) |
James Kuszmaul | 6b60929 | 2023-01-28 15:58:43 -0800 | [diff] [blame] | 1340 | |
| 1341 | http_archive( |
| 1342 | name = "com_github_foxglove_schemas", |
| 1343 | build_file = "//third_party/foxglove/schemas:schemas.BUILD", |
| 1344 | sha256 = "c0d08365eb8fba0af7773b5f0095fb53fb53f020bde46edaa308af5bb939fc15", |
| 1345 | strip_prefix = "schemas-7a3e077b88142ac46bb4e2616f83dc029b45352e/schemas/flatbuffer", |
| 1346 | url = "https://github.com/foxglove/schemas/archive/7a3e077b88142ac46bb4e2616f83dc029b45352e.tar.gz", |
| 1347 | ) |