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