blob: 42756e291ad5fbceaf10ae64b60dd6824440dd13 [file] [log] [blame]
Brian Silverman7bda6212018-08-05 11:42:11 -07001workspace(name = "org_frc971")
Brian Silvermand1c19fb2016-07-07 00:10:57 -07002
Philipp Schradercc016b32021-12-30 08:59:58 -08003load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository")
Austin Schuhf093fa52019-06-23 20:47:23 -07004load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file")
Philipp Schrader6efe5732022-02-12 15:11:13 -08005load("@bazel_tools//tools/jdk:remote_java_repository.bzl", "remote_java_repository")
Philipp Schrader9670a2a2023-01-11 01:20:16 -08006load("//tools/ci:repo_defs.bzl", "ci_configure")
7
8ci_configure(name = "ci_configure")
9
10load("@ci_configure//:ci.bzl", "RUNNING_IN_CI")
11
12http_archive(
13 name = "platforms",
14 sha256 = "2c8d8347427e6bb0ba7cf9f933c08fe2be2b62ff2454546ad852f7bf267aad87",
15 strip_prefix = "platforms-e658a6af526089406d0057160542597501ba65d7",
16 url = "https://github.com/bazelbuild/platforms/archive/e658a6af526089406d0057160542597501ba65d7.zip",
17)
18
19http_archive(
20 name = "bazel_skylib",
Philipp Schrader35bb1532023-03-05 13:49:12 -080021 sha256 = "b8a1527901774180afc798aeb28c4634bdccf19c4d98e7bdd1ce79d1fe9aaad7",
Philipp Schrader9670a2a2023-01-11 01:20:16 -080022 urls = [
Philipp Schrader35bb1532023-03-05 13:49:12 -080023 "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 Schrader9670a2a2023-01-11 01:20:16 -080025 ],
26)
27
Philipp Schrader35bb1532023-03-05 13:49:12 -080028load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
29
30bazel_skylib_workspace()
31
Philipp Schrader9670a2a2023-01-11 01:20:16 -080032http_archive(
Philipp Schrader55dd6b42023-02-22 20:44:23 -080033 name = "aspect_bazel_lib",
Philipp Schraderba072d92024-02-21 17:00:37 -080034 sha256 = "979667bb7276ee8fcf2c114c9be9932b9a3052a64a647e0dcaacfb9c0016f0a3",
35 strip_prefix = "bazel-lib-2.4.1",
36 url = "https://github.com/aspect-build/bazel-lib/releases/download/v2.4.1/bazel-lib-v2.4.1.tar.gz",
Philipp Schrader55dd6b42023-02-22 20:44:23 -080037)
38
Philipp Schraderba072d92024-02-21 17:00:37 -080039load("@aspect_bazel_lib//lib:repositories.bzl", "aspect_bazel_lib_dependencies", "aspect_bazel_lib_register_toolchains", "register_jq_toolchains")
Philipp Schrader55dd6b42023-02-22 20:44:23 -080040
41aspect_bazel_lib_dependencies()
42
Philipp Schraderba072d92024-02-21 17:00:37 -080043aspect_bazel_lib_register_toolchains()
44
Philipp Schrader175a93c2023-02-19 13:13:40 -080045register_jq_toolchains()
46
Philipp Schrader55dd6b42023-02-22 20:44:23 -080047http_archive(
Philipp Schrader9670a2a2023-01-11 01:20:16 -080048 name = "rules_python",
49 patch_args = ["-p1"],
50 patches = [
51 "//third_party:rules_python/0001-Support-overriding-individual-packages.patch",
52 "//third_party:rules_python/0002-Allow-user-to-patch-wheels.patch",
53 ],
54 sha256 = "497ca47374f48c8b067d786b512ac10a276211810f4a580178ee9b9ad139323a",
55 strip_prefix = "rules_python-0.16.1",
56 url = "https://github.com/bazelbuild/rules_python/archive/refs/tags/0.16.1.tar.gz",
57)
58
59load("@rules_python//python:repositories.bzl", "python_register_toolchains")
60
61python_register_toolchains(
62 name = "python3_9",
63 python_version = "3.9",
64 register_toolchains = False,
65)
66
James Kuszmaul9776b392023-01-14 14:08:08 -080067load(
68 "@python3_9//:defs.bzl",
69 python_interpreter = "interpreter",
70)
Philipp Schrader9670a2a2023-01-11 01:20:16 -080071load("@rules_python//python:pip.bzl", "pip_parse")
James Kuszmaul9776b392023-01-14 14:08:08 -080072load(
73 "//tools/python:package_annotations.bzl",
74 PYTHON_ANNOTATIONS = "ANNOTATIONS",
75)
Philipp Schrader9670a2a2023-01-11 01:20:16 -080076
77pip_parse(
78 name = "pip_deps",
79 annotations = PYTHON_ANNOTATIONS,
80 enable_implicit_namespace_pkgs = True,
81 overrides = "//tools/python:whl_overrides.json",
82 patch_spec = "//tools/python:patches.json",
83 python_interpreter_target = python_interpreter,
84 require_overrides = RUNNING_IN_CI,
85 requirements_lock = "//tools/python:requirements.lock.txt",
86)
87
88# Load the starlark macro which will define your dependencies.
James Kuszmaul9776b392023-01-14 14:08:08 -080089load(
90 "@pip_deps//:requirements.bzl",
91 install_pip_deps = "install_deps",
92)
Philipp Schrader9670a2a2023-01-11 01:20:16 -080093
94install_pip_deps()
95
96load("//tools/python:repo_defs.bzl", "pip_configure")
97
98pip_configure(
99 name = "pip",
100)
101
102http_archive(
103 name = "rules_pkg",
Philipp Schrader973fd3f2023-03-07 21:21:36 -0800104 sha256 = "8c20f74bca25d2d442b327ae26768c02cf3c99e93fad0381f32be9aab1967675",
Philipp Schrader9670a2a2023-01-11 01:20:16 -0800105 urls = [
Philipp Schrader973fd3f2023-03-07 21:21:36 -0800106 "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.8.1/rules_pkg-0.8.1.tar.gz",
107 "https://github.com/bazelbuild/rules_pkg/releases/download/0.8.1/rules_pkg-0.8.1.tar.gz",
Philipp Schrader9670a2a2023-01-11 01:20:16 -0800108 ],
109)
110
111load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
112
113rules_pkg_dependencies()
114
Brian Silverman7bda6212018-08-05 11:42:11 -0700115load(
Philipp Schraderd0e33a42022-01-22 21:55:15 -0800116 "//debian:apache2.bzl",
117 apache2_debs = "files",
118)
119load(
Philipp Schrader41011a12022-03-13 12:49:32 -0700120 "//debian:postgresql_amd64.bzl",
121 postgresql_amd64_debs = "files",
122)
123load(
Brian Silverman7bda6212018-08-05 11:42:11 -0700124 "//debian:patch.bzl",
125 patch_debs = "files",
126)
Brian Silverman7297c0c2018-08-05 13:43:00 -0700127load(
Austin Schuh71f6fa72019-08-31 18:23:02 -0700128 "//debian:rsync.bzl",
129 rsync_debs = "files",
130)
131load(
132 "//debian:ssh.bzl",
133 ssh_debs = "files",
134)
135load(
Brian Silverman7297c0c2018-08-05 13:43:00 -0700136 "//debian:pandoc.bzl",
137 pandoc_debs = "files",
138)
Brian Silverman4f6ba442018-08-05 14:34:58 -0700139load(
140 "//debian:libusb.bzl",
141 libusb_debs = "files",
142)
Brian Silvermanb80dc9f2018-08-05 14:59:24 -0700143load(
144 "//debian:mingw_compiler.bzl",
145 mingw_compiler_debs = "files",
146)
Brian Silverman6470f442018-08-05 12:08:16 -0700147load(
148 "//debian:patchelf.bzl",
149 patchelf_debs = "files",
150)
151load(
Brian Silverman50b9ac02018-08-12 13:24:10 -0700152 "//debian:arm_frc_gnueabi_deps.bzl",
153 arm_frc_gnueabi_deps_debs = "files",
154)
Brian Silvermanb0ebf1d2018-10-17 23:36:40 -0700155load(
Philipp Schraderfd5489f2022-09-17 17:31:09 -0700156 "//debian:gtk_runtime.bzl",
157 gtk_runtime_debs = "files",
158)
159load(
Brian Silvermand97a47c2020-01-16 00:47:53 -0800160 "//debian:opencv_amd64.bzl",
161 opencv_amd64_debs = "files",
162)
Tyler Chatow60671d32020-02-26 19:49:30 -0800163load(
164 "//debian:gstreamer_amd64.bzl",
James Kuszmaulc91e4402020-05-10 18:47:20 -0700165 gstreamer_amd64_debs = "files",
Tyler Chatow60671d32020-02-26 19:49:30 -0800166)
167load(
Austin Schuh023e7f52020-08-18 21:24:37 -0700168 "//debian:m4.bzl",
169 m4_debs = "files",
170)
Brian Silvermanf59fe3f2020-09-22 21:04:09 -0700171load(
172 "//debian:lzma_amd64.bzl",
173 lzma_amd64_debs = "files",
174)
175load(
176 "//debian:lzma_arm64.bzl",
177 lzma_arm64_debs = "files",
178)
Tyler Chatow8a51ac62022-03-15 13:23:12 -0700179load(
180 "//debian:libtinfo5_amd64.bzl",
181 libtinfo5_amd64_debs = "files",
182)
Tyler Chatowec100e22022-03-22 16:23:04 -0700183load(
184 "//debian:libtinfo5_arm64.bzl",
185 libtinfo5_arm64_debs = "files",
186)
Philipp Schraderf60e7d72023-02-19 17:07:22 -0800187load(
188 "//debian:xvfb_amd64.bzl",
189 xvfb_amd64_debs = "files",
190)
Austin Schuh94dbdf32024-04-11 22:51:09 -0700191load(
192 "//debian:clang_amd64.bzl",
193 clang_amd64_debs = "files",
194)
Philipp Schrader0e19c602018-03-07 21:07:22 -0800195load("//debian:packages.bzl", "generate_repositories_for_debs")
196
Austin Schuh71f6fa72019-08-31 18:23:02 -0700197generate_repositories_for_debs(rsync_debs)
198
199generate_repositories_for_debs(ssh_debs)
200
Philipp Schraderd0e33a42022-01-22 21:55:15 -0800201generate_repositories_for_debs(apache2_debs)
202
Philipp Schrader41011a12022-03-13 12:49:32 -0700203generate_repositories_for_debs(postgresql_amd64_debs)
204
Brian Silverman7bda6212018-08-05 11:42:11 -0700205generate_repositories_for_debs(patch_debs)
206
Brian Silverman7297c0c2018-08-05 13:43:00 -0700207generate_repositories_for_debs(pandoc_debs)
208
Brian Silverman4f6ba442018-08-05 14:34:58 -0700209generate_repositories_for_debs(libusb_debs)
210
Brian Silvermanb80dc9f2018-08-05 14:59:24 -0700211generate_repositories_for_debs(mingw_compiler_debs)
212
Brian Silverman6470f442018-08-05 12:08:16 -0700213generate_repositories_for_debs(patchelf_debs)
214
Brian Silverman50b9ac02018-08-12 13:24:10 -0700215generate_repositories_for_debs(arm_frc_gnueabi_deps_debs)
216
Philipp Schraderfd5489f2022-09-17 17:31:09 -0700217generate_repositories_for_debs(gtk_runtime_debs)
218
Brian Silvermand97a47c2020-01-16 00:47:53 -0800219generate_repositories_for_debs(opencv_amd64_debs)
220
Tyler Chatow6eda82c2022-03-27 22:37:38 -0700221generate_repositories_for_debs(
222 gstreamer_amd64_debs,
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700223 base_url = "https://software.frc971.org/Build-Dependencies/gstreamer_bullseye_amd64_deps",
Tyler Chatow6eda82c2022-03-27 22:37:38 -0700224)
Tyler Chatow60671d32020-02-26 19:49:30 -0800225
Austin Schuh023e7f52020-08-18 21:24:37 -0700226generate_repositories_for_debs(m4_debs)
227
Brian Silvermanf59fe3f2020-09-22 21:04:09 -0700228generate_repositories_for_debs(lzma_amd64_debs)
229
230generate_repositories_for_debs(lzma_arm64_debs)
231
Tyler Chatow8a51ac62022-03-15 13:23:12 -0700232generate_repositories_for_debs(libtinfo5_amd64_debs)
233
Tyler Chatowec100e22022-03-22 16:23:04 -0700234generate_repositories_for_debs(libtinfo5_arm64_debs)
235
Philipp Schraderf60e7d72023-02-19 17:07:22 -0800236generate_repositories_for_debs(xvfb_amd64_debs)
237
Austin Schuh94dbdf32024-04-11 22:51:09 -0700238generate_repositories_for_debs(clang_amd64_debs)
239
Brian Silvermanc0309a02022-01-01 23:57:03 -0800240local_repository(
241 name = "com_grail_bazel_toolchain",
242 path = "third_party/bazel-toolchain",
243)
244
James Kuszmaulf35eb982023-12-09 17:50:01 -0800245http_archive(
246 name = "RangeHTTPServer",
247 sha256 = "98a8e4980f91d048dc9159cfc5f115280d0b5ec59a5b01df0422b887212fa4f0",
248 strip_prefix = "RangeHTTPServer-9070394508a135789238a33259793f3c6f3c127a",
249 url = "https://github.com/jkuszmaul/RangeHTTPServer/archive/9070394508a135789238a33259793f3c6f3c127a.zip",
250)
251
Brian Silverman4c7235a2021-11-17 19:04:37 -0800252load("@com_grail_bazel_toolchain//toolchain:rules.bzl", "llvm", "llvm_toolchain")
253
Austin Schuh612d95d2023-10-21 00:01:40 -0700254llvm_version = "17.0.2"
Brian Silverman4c7235a2021-11-17 19:04:37 -0800255
256llvm(
257 name = "llvm_k8",
Austin Schuh94dbdf32024-04-11 22:51:09 -0700258 distribution = "clang+llvm-%s-x86_64-linux-gnu-ubuntu-22.04.tar.zst" % llvm_version,
Brian Silverman4c7235a2021-11-17 19:04:37 -0800259 llvm_version = llvm_version,
260)
261
262llvm(
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800263 name = "llvm_aarch64",
264 distribution = "clang+llvm-%s-aarch64-linux-gnu.tar.xz" % llvm_version,
265 llvm_version = llvm_version,
266)
267
Brian Silverman4c7235a2021-11-17 19:04:37 -0800268llvm_conlyopts = [
269 "-std=gnu99",
270]
271
272llvm_copts = [
273 "-D__STDC_FORMAT_MACROS",
274 "-D__STDC_CONSTANT_MACROS",
275 "-D__STDC_LIMIT_MACROS",
276 "-D_FILE_OFFSET_BITS=64",
277 "-fmessage-length=100",
278 "-fmacro-backtrace-limit=0",
Brian Silverman4c7235a2021-11-17 19:04:37 -0800279 "-ggdb3",
Brian Silverman4c7235a2021-11-17 19:04:37 -0800280]
281
282llvm_cxxopts = [
Philipp Schraderf43b18b2023-08-23 20:05:10 -0700283 "-std=gnu++20",
Brian Silverman4c7235a2021-11-17 19:04:37 -0800284]
285
Brian Silverman1e7c8972022-02-03 23:15:41 -0800286llvm_opt_copts = [
287 "-DAOS_DEBUG=0",
288]
289
290llvm_fastbuild_copts = [
291 "-DAOS_DEBUG=0",
292]
293
Brian Silverman4c7235a2021-11-17 19:04:37 -0800294llvm_dbg_copts = [
295 "-DAOS_DEBUG=1",
296]
Brian Silvermanc0309a02022-01-01 23:57:03 -0800297
298llvm_toolchain(
299 name = "llvm_toolchain",
Austin Schuh1e69d422023-06-25 16:57:01 -0700300 additional_target_compatible_with = {},
Brian Silverman4c7235a2021-11-17 19:04:37 -0800301 conlyopts = {
302 "linux-x86_64": llvm_conlyopts,
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800303 "linux-aarch64": llvm_conlyopts,
Brian Silverman4c7235a2021-11-17 19:04:37 -0800304 },
305 copts = {
306 "linux-x86_64": llvm_copts,
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800307 "linux-aarch64": llvm_copts,
Brian Silverman4c7235a2021-11-17 19:04:37 -0800308 },
309 cxxopts = {
310 "linux-x86_64": llvm_cxxopts,
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800311 "linux-aarch64": llvm_cxxopts,
Brian Silverman4c7235a2021-11-17 19:04:37 -0800312 },
313 dbg_copts = {
314 "linux-x86_64": llvm_dbg_copts,
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800315 "linux-aarch64": llvm_dbg_copts,
Brian Silverman1e7c8972022-02-03 23:15:41 -0800316 },
317 fastbuild_copts = {
318 "linux-x86_64": llvm_fastbuild_copts,
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800319 "linux-aarch64": llvm_fastbuild_copts,
Brian Silverman4c7235a2021-11-17 19:04:37 -0800320 },
321 llvm_version = llvm_version,
Brian Silverman1e7c8972022-02-03 23:15:41 -0800322 opt_copts = {
323 "linux-x86_64": llvm_opt_copts,
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800324 "linux-aarch64": llvm_opt_copts,
Brian Silverman1e7c8972022-02-03 23:15:41 -0800325 },
Brian Silverman4c7235a2021-11-17 19:04:37 -0800326 standard_libraries = {
Austin Schuh0bd410a2023-11-05 12:38:12 -0800327 "linux-x86_64": "libstdc++-12",
Austin Schuh86d980e2023-10-20 22:44:47 -0700328 "linux-aarch64": "libstdc++-12",
Brian Silverman4c7235a2021-11-17 19:04:37 -0800329 },
330 static_libstdcxx = False,
Brian Silvermanc0309a02022-01-01 23:57:03 -0800331 sysroot = {
332 "linux-x86_64": "@amd64_debian_sysroot//:sysroot_files",
Austin Schuh86d980e2023-10-20 22:44:47 -0700333 "linux-aarch64": "@arm64_debian_sysroot//:sysroot_files",
Brian Silverman4c7235a2021-11-17 19:04:37 -0800334 },
335 target_toolchain_roots = {
336 "linux-x86_64": "@llvm_k8//",
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800337 "linux-aarch64": "@llvm_aarch64//",
Brian Silverman4c7235a2021-11-17 19:04:37 -0800338 },
339 toolchain_roots = {
340 "linux-x86_64": "@llvm_k8//",
Tyler Chatow486ad3e2022-03-23 13:32:03 -0700341 "linux-aarch64": "@llvm_aarch64//",
Brian Silvermanc0309a02022-01-01 23:57:03 -0800342 },
343)
344
Brian Silverman4c7235a2021-11-17 19:04:37 -0800345load("@llvm_toolchain//:toolchains.bzl", "llvm_register_toolchains")
346
347llvm_register_toolchains()
348
Philipp Schraderdada1072020-11-24 11:34:46 -0800349register_toolchains(
Philipp Schraderdada1072020-11-24 11:34:46 -0800350 "//tools/cpp:cc-toolchain-roborio",
351 "//tools/cpp:cc-toolchain-cortex-m4f",
Austin Schuh0a96ea32022-01-01 22:29:30 -0800352 "//tools/cpp:cc-toolchain-rp2040",
James Kuszmaul5a728562023-12-28 21:45:01 -0800353 "//tools/cpp:cc-toolchain-cortex-m4f-imu",
Philipp Schraderdada1072020-11-24 11:34:46 -0800354 # Find a good way to select between these two M4F toolchains.
355 #"//tools/cpp:cc-toolchain-cortex-m4f-k22",
Philipp Schraderf198a152021-12-05 09:18:23 -0800356 "//tools/python:python_toolchain",
Philipp Schrader73e56602021-12-06 21:37:30 -0800357 "//tools/go:noop_go_toolchain",
Brian Silverman847121b2022-03-09 15:48:08 -0800358 "//tools/rust:rust-toolchain-x86",
359 "//tools/rust:rust-toolchain-armv7",
360 "//tools/rust:rust-toolchain-arm64",
Brian Silvermana8ad1af2022-07-23 16:05:12 -0700361 # TODO(Brian): Make this work. See the comment on
362 # //tools/platforms:linux_roborio for details.
363 #"//tools/rust:rust-toolchain-roborio",
Ravago Jones16809802021-11-18 20:40:03 -0800364 "//tools/rust:noop_rust_toolchain",
Philipp Schrader54047962022-02-16 21:05:11 -0800365 "//tools/ts:noop_node_toolchain",
Philipp Schraderdada1072020-11-24 11:34:46 -0800366)
367
Austin Schuhf093fa52019-06-23 20:47:23 -0700368http_archive(
Austin Schuh7466fe12020-12-29 23:01:47 -0800369 name = "com_github_stevengj_nlopt",
370 build_file = "@//debian:nlopt.BUILD",
371 patch_args = ["-p1"],
372 patches = ["//debian:nlopt.patch"],
373 sha256 = "2d65815b21c30813499fe19c63947f7da56b10c0d4a459dce05417899b43e461",
374 strip_prefix = "nlopt-496be736b8b249273838b891f4c8ca3669551127",
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700375 url = "https://software.frc971.org/Build-Dependencies/nlopt-496be736b8b249273838b891f4c8ca3669551127.zip",
Austin Schuh7466fe12020-12-29 23:01:47 -0800376)
377
James Kuszmaul203bfc22023-01-13 22:37:06 -0800378http_archive(
Austin Schuhd57edc42019-09-21 17:52:38 -0700379 name = "com_google_absl",
James Kuszmaul203bfc22023-01-13 22:37:06 -0800380 patch_args = ["-p1"],
381 patches = ["//third_party/abseil:abseil.patch"],
Adam Snaider13d48d92023-08-03 12:20:15 -0700382 sha256 = "ea1d31db00eb37e607bfda17ffac09064670ddf05da067944c4766f517876390",
383 strip_prefix = "abseil-cpp-c2435f8342c2d0ed8101cb43adfd605fdc52dca2",
384 url = "https://github.com/abseil/abseil-cpp/archive/c2435f8342c2d0ed8101cb43adfd605fdc52dca2.zip",
Austin Schuh36244a12019-09-21 17:52:38 -0700385)
386
Alex Perrycb7da4b2019-08-28 19:35:56 -0700387local_repository(
388 name = "org_tuxfamily_eigen",
389 path = "third_party/eigen",
390)
391
James Kuszmaulbc02ff42021-01-15 20:41:30 -0800392local_repository(
393 name = "com_github_rawrtc_re",
394 path = "third_party/rawrtc/re",
395)
396
397local_repository(
398 name = "com_github_rawrtc_rew",
399 path = "third_party/rawrtc/rew",
400)
401
402local_repository(
403 name = "com_github_rawrtc_usrsctp",
404 path = "third_party/rawrtc/usrsctp",
405)
406
407local_repository(
408 name = "com_github_rawrtc_rawrtc_common",
409 path = "third_party/rawrtc/rawrtc-common",
410)
411
412local_repository(
413 name = "com_github_rawrtc_rawrtc_data_channel",
414 path = "third_party/rawrtc/rawrtc-data-channel",
415)
416
417local_repository(
418 name = "com_github_rawrtc_rawrtc",
419 path = "third_party/rawrtc/rawrtc",
420)
421
Austin Schuh36244a12019-09-21 17:52:38 -0700422# C++ rules for Bazel.
423http_archive(
424 name = "rules_cc",
Austin Schuh968174a2021-03-31 20:04:01 -0700425 sha256 = "ed36cc7a6f46b7c28ab4009db4a37e350e1ba367446b0886bcc9cdc1df92752e",
426 strip_prefix = "rules_cc-608c7b605fb844a20e96a3eddc9b49ad2542adab",
Austin Schuh36244a12019-09-21 17:52:38 -0700427 urls = [
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700428 "https://software.frc971.org/Build-Dependencies/rules_cc-608c7b605fb844a20e96a3eddc9b49ad2542adab.zip",
Austin Schuh36244a12019-09-21 17:52:38 -0700429 ],
430)
Austin Schuhd57edc42019-09-21 17:52:38 -0700431
Austin Schuh4759ffc2015-10-07 20:39:56 -0700432new_local_repository(
Brian Silverman7bda6212018-08-05 11:42:11 -0700433 name = "usr_repo",
Austin Schuhf093fa52019-06-23 20:47:23 -0700434 build_file = "@//debian:usr.BUILD",
Brian Silverman7bda6212018-08-05 11:42:11 -0700435 path = "/usr",
Austin Schuh4759ffc2015-10-07 20:39:56 -0700436)
437
Austin Schuh1f9aeb42015-11-12 23:34:49 -0800438new_git_repository(
Brian Silverman7bda6212018-08-05 11:42:11 -0700439 name = "slycot_repo",
Tyler Chatow2584bb12018-10-27 20:48:35 -0700440 build_file = "@//debian:slycot.BUILD",
Brian Silverman7bda6212018-08-05 11:42:11 -0700441 commit = "5af5f283cb23cbe23c4dfea4d5e56071bdbd6e70",
442 remote = "https://github.com/avventi/Slycot.git",
Austin Schuh1f9aeb42015-11-12 23:34:49 -0800443)
444
James Kuszmaul9776b392023-01-14 14:08:08 -0800445# TODO(Ravago, Max, Alex): https://github.com/wpilibsuite/opensdk
Austin Schuhf093fa52019-06-23 20:47:23 -0700446http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -0700447 name = "arm_frc_linux_gnueabi_repo",
Austin Schuhf093fa52019-06-23 20:47:23 -0700448 build_file = "@//tools/cpp/arm-frc-linux-gnueabi:arm-frc-linux-gnueabi.BUILD",
Austin Schuhe991fe22020-11-18 16:53:39 -0800449 patches = ["//debian:fts.patch"],
James Kuszmaul686f62c2023-11-22 20:38:56 -0800450 sha256 = "10349791e4f9fa33100ee52a84e7f9ba4df581963818334771253369b0d12061",
James Kuszmaul9776b392023-01-14 14:08:08 -0800451 strip_prefix = "roborio-academic",
James Kuszmaul686f62c2023-11-22 20:38:56 -0800452 url = "https://github.com/wpilibsuite/opensdk/releases/download/v2024-1/cortexa9_vfpv3-roborio-academic-2024-x86_64-linux-gnu-Toolchain-12.1.0.tgz",
Austin Schuh55139fe2015-10-14 23:55:24 -0700453)
Austin Schuhe456f152015-11-27 13:44:39 -0800454
Austin Schuh86d980e2023-10-20 22:44:47 -0700455# The main partition built from //frc971/orin/build_rootfs.py.
Brian Silvermanbf4c1312020-01-12 11:35:45 -0800456http_archive(
Austin Schuh86d980e2023-10-20 22:44:47 -0700457 name = "arm64_debian_sysroot",
458 build_file = "@//:compilers/orin_debian_rootfs.BUILD",
Austin Schuhf5dbe2c2024-04-06 16:10:24 -0700459 sha256 = "9fefccc1877a7b5986e7ad29ac49a4217bfbb0fbea1bcc0314beff5d03a430cd",
460 url = "https://software.frc971.org/Build-Dependencies/2024-04-06-bookworm-arm64-nvidia-rootfs.tar.zst",
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800461)
462
Austin Schuh0bd410a2023-11-05 12:38:12 -0800463# Sysroot generated using //frc971/amd64/build_rootfs.py
Brian Silverman60606c92020-01-15 22:45:04 -0800464http_archive(
465 name = "amd64_debian_sysroot",
Austin Schuh0bd410a2023-11-05 12:38:12 -0800466 build_file = "@//:compilers/amd64_debian_rootfs.BUILD",
Austin Schuh94dbdf32024-04-11 22:51:09 -0700467 sha256 = "ceaf7e3fd4af04aca2ff0d55c94ce30c2b45d1136b0e81e9be5ebc1003f96052",
468 url = "https://software.frc971.org/Build-Dependencies/2023-12-10-bookworm-amd64-nvidia-rootfs.tar.zst",
Brian Silverman60606c92020-01-15 22:45:04 -0800469)
470
Brian Silverman16a923c2018-10-31 19:40:51 -0700471local_repository(
472 name = "com_github_gflags_gflags",
473 path = "third_party/gflags",
474)
475
Brian Silverman82a12b92019-01-19 21:52:10 -0800476# Generated with:
Austin Schuh9950f682021-11-06 15:27:58 -0700477# git fetch https://github.com/wpilibsuite/ni-libraries main
Austin Schuhd3c72912022-02-22 18:05:32 -0800478# git archive --output=allwpilib_ni-libraries_776db4e8aed31a651fa2f590e7468c69b384b42a.tar.gz --format=tar.gz 776db4e8aed31a651fa2f590e7468c69b384b42a
Austin Schuhf093fa52019-06-23 20:47:23 -0700479http_archive(
James Kuszmaulc9c46b32019-12-08 21:10:00 -0800480 name = "allwpilib_ni_libraries",
481 build_file = "@//debian:ni-libraries.BUILD",
Maxwell Henderson6ec65732024-01-09 16:43:37 -0800482 sha256 = "86458884701c817351b2ec651a2f13591258da54b4f54f05d8f1ce04eb214ba5",
483 strip_prefix = "ni-libraries-2024.2.1",
484 url = "https://github.com/wpilibsuite/ni-libraries/archive/refs/tags/v2024.2.1.zip",
Brian Silverman82a12b92019-01-19 21:52:10 -0800485)
486
Brian Silverman3fca9d72016-02-20 02:32:51 -0500487# For protobuf. Don't use these.
488bind(
Brian Silverman7bda6212018-08-05 11:42:11 -0700489 name = "six",
Philipp Schrader01535ee2023-01-08 13:19:03 -0800490 actual = "@pip//six",
Brian Silverman3fca9d72016-02-20 02:32:51 -0500491)
Brian Silverman7bda6212018-08-05 11:42:11 -0700492
Brian Silverman3fca9d72016-02-20 02:32:51 -0500493bind(
Brian Silverman7bda6212018-08-05 11:42:11 -0700494 name = "gtest",
James Kuszmaul3aabc1c2023-01-13 21:33:43 -0800495 actual = "@com_google_googletest//:gtest",
Brian Silverman3fca9d72016-02-20 02:32:51 -0500496)
Brian Silverman7bda6212018-08-05 11:42:11 -0700497
Brian Silverman3fca9d72016-02-20 02:32:51 -0500498bind(
Brian Silverman7bda6212018-08-05 11:42:11 -0700499 name = "gtest_main",
James Kuszmaul3aabc1c2023-01-13 21:33:43 -0800500 actual = "@com_google_googletest//:gtest_main",
Brian Silverman3fca9d72016-02-20 02:32:51 -0500501)
502
James Kuszmaul59a308f2023-01-28 19:14:07 -0800503http_archive(
504 name = "april_tag_test_image",
505 build_file_content = """
506filegroup(
507 name = "april_tag_test_image",
508 srcs = ["test.bfbs", "expected.jpeg", "expected.png"],
509 visibility = ["//visibility:public"],
510)""",
511 sha256 = "5312c79b19e9883b3cebd9d65b4438a2bf05b41da0bcd8c35e19d22c3b2e1859",
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700512 urls = ["https://software.frc971.org/Build-Dependencies/test_image_frc971.vision.CameraImage_2023.01.28.tar.gz"],
James Kuszmaul59a308f2023-01-28 19:14:07 -0800513)
514
Filip Kujawa8c76e5d2023-04-08 16:20:27 -0700515http_file(
516 name = "game_pieces_edgetpu_model",
517 downloaded_file_path = "edgetpu_model.tflite",
Filip Kujawaec433e12023-04-09 19:58:59 -0700518 sha256 = "3d37f34805d017153064076519aaf4b532658a3b8f2518bce8787f27a5c3064c",
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700519 urls = ["https://software.frc971.org/Build-Dependencies/models/2023/model_edgetpu_2023.04.09_3.tflite"],
Filip Kujawa8c76e5d2023-04-08 16:20:27 -0700520)
521
Brian Silverman4aa83042018-01-05 12:47:31 -0800522# Recompressed from libusb-1.0.21.7z.
523http_file(
Brian Silverman7bda6212018-08-05 11:42:11 -0700524 name = "libusb_1_0_windows",
Austin Schuh4ac96a82019-08-14 20:24:23 -0700525 downloaded_file_path = "libusb-1.0.21-windows.tar.xz",
Brian Silverman7bda6212018-08-05 11:42:11 -0700526 sha256 = "fc2ba03992f343aabbaf9eb90559c6e00cdc6a2bd914d7cebea85857d5244015",
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700527 urls = ["https://software.frc971.org/Build-Dependencies/libusb-1.0.21-windows.tar.xz"],
Brian Silverman4aa83042018-01-05 12:47:31 -0800528)
Brian Silvermand3ad1652018-02-18 22:16:29 -0500529
530# The data tarball of the same-named Debian package.
Austin Schuhf093fa52019-06-23 20:47:23 -0700531http_archive(
Brian Silvermand3ad1652018-02-18 22:16:29 -0500532 name = "f2c",
Austin Schuhf093fa52019-06-23 20:47:23 -0700533 build_file = "@//debian:f2c.BUILD",
Brian Silvermand3ad1652018-02-18 22:16:29 -0500534 sha256 = "2c677437f8217a2e2b23e41b33995d0571644fc1bea46de858f8913a5053e3f4",
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700535 url = "https://software.frc971.org/Build-Dependencies/f2c_20100827-1_amd64.xz.tar.xz",
Brian Silvermand3ad1652018-02-18 22:16:29 -0500536)
537
538# Downloaded from http://www.netlib.org/clapack/.
Austin Schuhf093fa52019-06-23 20:47:23 -0700539http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -0700540 name = "clapack",
Austin Schuhf093fa52019-06-23 20:47:23 -0700541 build_file = "@//debian:clapack.BUILD",
Brian Silverman7bda6212018-08-05 11:42:11 -0700542 sha256 = "6dc4c382164beec8aaed8fd2acc36ad24232c406eda6db462bd4c41d5e455fac",
543 strip_prefix = "CLAPACK-3.2.1/",
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700544 url = "https://software.frc971.org/Build-Dependencies/clapack-3.2.1.tgz",
Brian Silverman7bda6212018-08-05 11:42:11 -0700545)
546
Austin Schuhf093fa52019-06-23 20:47:23 -0700547http_archive(
Philipp Schrader41011a12022-03-13 12:49:32 -0700548 name = "postgresql_amd64",
549 build_file = "@//debian:postgresql_amd64.BUILD",
Austin Schuhb7775c02023-06-02 18:12:02 -0700550 sha256 = "483e199d0e7feae7cca0df132c649b5c20ddcc1a17760e656c25709f44f57a65",
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700551 url = "https://software.frc971.org/Build-Dependencies/postgresql_amd64_v2.tar.gz",
Philipp Schrader41011a12022-03-13 12:49:32 -0700552)
553
554http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -0700555 name = "patch",
Austin Schuhf093fa52019-06-23 20:47:23 -0700556 build_file = "@//debian:patch.BUILD",
Brian Silverman7bda6212018-08-05 11:42:11 -0700557 sha256 = "b5ce139648a2e04f5585948ddad2fdae24dd4ee7976ac5a22d6ae7bd5674631e",
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700558 url = "https://software.frc971.org/Build-Dependencies/patch.tar.gz",
Brian Silvermand3ad1652018-02-18 22:16:29 -0500559)
Brian Silverman7297c0c2018-08-05 13:43:00 -0700560
Austin Schuhf093fa52019-06-23 20:47:23 -0700561http_archive(
Austin Schuh71f6fa72019-08-31 18:23:02 -0700562 name = "rsync",
563 build_file = "@//debian:rsync.BUILD",
James Kuszmaulc6ea63a2023-09-06 20:36:46 -0700564 sha256 = "75ea8ce442c94fd12c0d00eb24860ac1de5ea6af56154bb1b195a96018c9e8a2",
565 url = "https://software.frc971.org/Build-Dependencies/rsync-2023.09.06.tar.gz",
Austin Schuh71f6fa72019-08-31 18:23:02 -0700566)
567
Brian Silvermanbd7860e2020-01-05 17:52:40 -0800568# //debian:ssh
Austin Schuh71f6fa72019-08-31 18:23:02 -0700569http_archive(
570 name = "ssh",
571 build_file = "@//debian:ssh.BUILD",
James Kuszmaulc6ea63a2023-09-06 20:36:46 -0700572 sha256 = "9c4a9eefa605283486fb15a44ef9977d4a95b55c3a41c4e71cfbacd1cf20a4b5",
573 url = "https://software.frc971.org/Build-Dependencies/ssh-2023.09.06.tar.gz",
Austin Schuh71f6fa72019-08-31 18:23:02 -0700574)
575
576http_archive(
Ravago Jones3b4fd912023-03-18 13:35:17 -0700577 name = "ffmpeg",
578 build_file_content = """
579load("@bazel_skylib//rules:native_binary.bzl", "native_binary")
580
581native_binary(
582 name = "ffmpeg",
583 src = "ffmpeg-6.0.1-amd64-static/ffmpeg",
584 out = "ffmpeg",
585 visibility = ["//visibility:public"],
586 target_compatible_with = ["@platforms//cpu:x86_64", "@platforms//os:linux"],
587)
588 """,
589 sha256 = "28268bf402f1083833ea269331587f60a242848880073be8016501d864bd07a5",
590 url = "https://www.johnvansickle.com/ffmpeg/old-releases/ffmpeg-6.0.1-amd64-static.tar.xz",
591)
592
593http_archive(
Philipp Schraderd0e33a42022-01-22 21:55:15 -0800594 name = "apache2",
595 build_file = "@//debian:apache2.BUILD",
596 sha256 = "98b0ad6d911751ba0aa486429e6278f995e7bbabd928c7d3d44c888fa2bf371b",
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700597 url = "https://software.frc971.org/Build-Dependencies/apache2.tar.gz",
Philipp Schraderd0e33a42022-01-22 21:55:15 -0800598)
599
600http_archive(
Brian Silverman7297c0c2018-08-05 13:43:00 -0700601 name = "pandoc",
Austin Schuhf093fa52019-06-23 20:47:23 -0700602 build_file = "@//debian:pandoc.BUILD",
Stephan Pleinesecfddf92023-12-14 19:14:40 -0800603 sha256 = "3c98503f29f2a7f771647b24a4b591bbe5539119b6b5a006ff09be7bec47bc0e",
604 url = "https://software.frc971.org/Build-Dependencies/pandoc-2023.12.14.tar.gz",
Brian Silverman7297c0c2018-08-05 13:43:00 -0700605)
Brian Silverman4f6ba442018-08-05 14:34:58 -0700606
Austin Schuhf093fa52019-06-23 20:47:23 -0700607http_archive(
Brian Silverman4f6ba442018-08-05 14:34:58 -0700608 name = "libusb",
Austin Schuhf093fa52019-06-23 20:47:23 -0700609 build_file = "@//debian:libusb.BUILD",
Brian Silverman4f6ba442018-08-05 14:34:58 -0700610 sha256 = "3ca5cc2d317226f6646866ff9e8c443db3b0f6c82f828e800240982727531590",
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700611 url = "https://software.frc971.org/Build-Dependencies/libusb.tar.gz",
Brian Silverman4f6ba442018-08-05 14:34:58 -0700612)
Brian Silvermanb80dc9f2018-08-05 14:59:24 -0700613
Austin Schuhf093fa52019-06-23 20:47:23 -0700614http_archive(
Brian Silvermanb80dc9f2018-08-05 14:59:24 -0700615 name = "mingw_compiler",
Austin Schuhf093fa52019-06-23 20:47:23 -0700616 build_file = "@//debian:mingw_compiler.BUILD",
Brian Silvermanb80dc9f2018-08-05 14:59:24 -0700617 sha256 = "45e86a8460f2151a4f0306e7ae7b06761029d2412ee16f63d1e8d2d29354e378",
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700618 url = "https://software.frc971.org/Build-Dependencies/mingw_compiler.tar.gz",
Brian Silvermanb80dc9f2018-08-05 14:59:24 -0700619)
Brian Silverman6470f442018-08-05 12:08:16 -0700620
Austin Schuhf093fa52019-06-23 20:47:23 -0700621http_archive(
Brian Silverman6470f442018-08-05 12:08:16 -0700622 name = "patchelf",
Austin Schuhf093fa52019-06-23 20:47:23 -0700623 build_file = "@//debian:patchelf.BUILD",
Brian Silverman6470f442018-08-05 12:08:16 -0700624 sha256 = "bf8b709909d7d9e30815dd228eeded7dc282e3ce3919d0589ccbb56ac8632abc",
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700625 url = "https://software.frc971.org/Build-Dependencies/patchelf.tar.gz",
Brian Silverman6470f442018-08-05 12:08:16 -0700626)
Brian Silverman50b9ac02018-08-12 13:24:10 -0700627
Austin Schuhf093fa52019-06-23 20:47:23 -0700628http_archive(
Brian Silverman50b9ac02018-08-12 13:24:10 -0700629 name = "arm_frc_gnueabi_deps",
Austin Schuhf093fa52019-06-23 20:47:23 -0700630 build_file = "@//debian:arm_frc_gnueabi_deps.BUILD",
Brian Silverman50b9ac02018-08-12 13:24:10 -0700631 sha256 = "4b26fe45010817dc136488ee1604ade21bd7c264c29f17d864fc6eba9d7442c4",
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700632 url = "https://software.frc971.org/Build-Dependencies/arm_frc_gnueabi_deps.tar.gz",
Brian Silverman50b9ac02018-08-12 13:24:10 -0700633)
Brian Silverman6c8b88b2018-09-03 18:17:02 -0700634
Austin Schuhf093fa52019-06-23 20:47:23 -0700635http_archive(
Philipp Schraderfd5489f2022-09-17 17:31:09 -0700636 name = "gtk_runtime",
637 build_file = "@//debian:gtk_runtime.BUILD",
Philipp Schrader7520ee62022-12-10 14:04:40 -0800638 sha256 = "5a6014d1783363be6bc95843d03bbb6513e650eaea60be2b1a4c65bf21981f9b",
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700639 url = "https://software.frc971.org/Build-Dependencies/gtk_runtime-4.tar.gz",
Philipp Schraderfd5489f2022-09-17 17:31:09 -0700640)
641
Brian Silverman6c8b88b2018-09-03 18:17:02 -0700642# Downloaded from
James Kuszmaulef420da2023-12-27 12:02:15 -0800643# From https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads
Austin Schuhf093fa52019-06-23 20:47:23 -0700644http_archive(
Brian Silverman6c8b88b2018-09-03 18:17:02 -0700645 name = "gcc_arm_none_eabi",
Austin Schuhf093fa52019-06-23 20:47:23 -0700646 build_file = "@//:compilers/gcc_arm_none_eabi.BUILD",
James Kuszmaulef420da2023-12-27 12:02:15 -0800647 sha256 = "6cd1bbc1d9ae57312bcd169ae283153a9572bd6a8e4eeae2fedfbc33b115fdbb",
648 strip_prefix = "arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi",
649 url = "https://developer.arm.com/-/media/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-x86_64-arm-none-eabi.tar.xz",
Brian Silverman6c8b88b2018-09-03 18:17:02 -0700650)
Austin Schuhad596222018-01-31 23:34:03 -0800651
Tyler Chatowfba57822022-03-22 19:38:41 -0700652# Java11 JDK.
Philipp Schrader6efe5732022-02-12 15:11:13 -0800653remote_java_repository(
Austin Schuhe18baff2018-10-20 17:40:42 -0700654 name = "openjdk_linux_archive",
Philipp Schrader6efe5732022-02-12 15:11:13 -0800655 prefix = "openjdk",
Tyler Chatowfba57822022-03-22 19:38:41 -0700656 sha256 = "60e65d32e38876f81ddb623e87ac26c820465b637e263e8bed1acdecb4ca9be2",
657 strip_prefix = "zulu11.54.25-ca-jdk11.0.14.1-linux_x64",
Philipp Schrader9670a2a2023-01-11 01:20:16 -0800658 target_compatible_with = [
659 "@platforms//cpu:x86_64",
660 "@platforms//os:linux",
661 ],
Austin Schuhe18baff2018-10-20 17:40:42 -0700662 urls = [
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700663 "https://software.frc971.org/Build-Dependencies/zulu11.54.25-ca-jdk11.0.14.1-linux_x64.tar.gz",
Austin Schuhe18baff2018-10-20 17:40:42 -0700664 ],
Tyler Chatowfba57822022-03-22 19:38:41 -0700665 version = "11",
666)
667
668remote_java_repository(
669 name = "openjdk_linux_archive_aarch64",
Tyler Chatowfba57822022-03-22 19:38:41 -0700670 prefix = "openjdk",
671 sha256 = "b0fb0bc303bb05b5042ef3d0939b9489f4a49a13a2d1c8f03c5d8ab23099454d",
672 strip_prefix = "zulu11.54.25-ca-jdk11.0.14.1-linux_aarch64",
Philipp Schrader9670a2a2023-01-11 01:20:16 -0800673 target_compatible_with = [
674 "@platforms//cpu:aarch64",
675 "@platforms//os:linux",
676 ],
Tyler Chatowfba57822022-03-22 19:38:41 -0700677 urls = [
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700678 "https://software.frc971.org/Build-Dependencies/zulu11.54.25-ca-jdk11.0.14.1-linux_aarch64.tar.gz",
Tyler Chatowfba57822022-03-22 19:38:41 -0700679 ],
680 version = "11",
Austin Schuhe18baff2018-10-20 17:40:42 -0700681)
682
Austin Schuhf9724442018-10-28 20:30:21 -0700683local_repository(
Austin Schuh10358f22019-01-21 20:25:11 -0800684 name = "com_github_google_glog",
685 path = "third_party/google-glog",
686)
Austin Schuh6defdeb2019-01-21 21:00:30 -0800687
James Kuszmaul3aabc1c2023-01-13 21:33:43 -0800688http_archive(
Alex Perrycb7da4b2019-08-28 19:35:56 -0700689 name = "com_google_googletest",
James Kuszmaul3aabc1c2023-01-13 21:33:43 -0800690 patch_args = ["-p1"],
691 patches = ["//third_party/googletest:googletest.patch"],
692 sha256 = "5c6d595243de011f8ce8cc68050cc0490726786e80cdfd6555ebfe148d920407",
693 strip_prefix = "googletest-356fc301251378e0f6fa6aa794d73714202887ac",
694 urls = ["https://github.com/google/googletest/archive/356fc301251378e0f6fa6aa794d73714202887ac.zip"],
Alex Perrycb7da4b2019-08-28 19:35:56 -0700695)
696
Austin Schuh6defdeb2019-01-21 21:00:30 -0800697# External dependency: Google Benchmark; has no Bazel build.
James Kuszmaul38169b92023-01-13 21:17:05 -0800698http_archive(
Austin Schuh6defdeb2019-01-21 21:00:30 -0800699 name = "com_github_google_benchmark",
James Kuszmaul38169b92023-01-13 21:17:05 -0800700 patch_args = ["-p1"],
701 patches = ["//third_party/google-benchmark:benchmark.patch"],
702 sha256 = "6430e4092653380d9dc4ccb45a1e2dc9259d581f4866dc0759713126056bc1d7",
703 strip_prefix = "benchmark-1.7.1",
704 urls = ["https://github.com/google/benchmark/archive/refs/tags/v1.7.1.tar.gz"],
Austin Schuhcbc17402019-01-21 21:00:30 -0800705)
Austin Schuh033df092019-01-21 19:46:48 -0800706
707local_repository(
708 name = "com_google_ceres_solver",
709 path = "third_party/ceres",
Austin Schuh70cc9552019-01-21 19:46:48 -0800710)
Austin Schuhf6b94632019-02-02 22:11:27 -0800711
Austin Schuhf093fa52019-06-23 20:47:23 -0700712http_archive(
Maxwell Hendersonfcc0d122023-08-05 17:03:34 -0700713 name = "ctre_phoenix6_api_cpp_headers",
James Kuszmaul9776b392023-01-14 14:08:08 -0800714 build_file_content = """
715cc_library(
716 name = 'api-cpp',
717 visibility = ['//visibility:public'],
James Kuszmaulcd622d52023-11-22 20:44:04 -0800718 hdrs = glob(['ctre/phoenix6/**/*.hpp']),
James Kuszmaul9776b392023-01-14 14:08:08 -0800719 includes = ["."],
720 deps = ["@//third_party/allwpilib/wpimath"],
721)
722""",
Maxwell Hendersonac681cd2024-01-09 15:36:45 -0800723 sha256 = "1b9295ac868d619d0263f285b372a22297798e45c8fdeb83ca99154a097c5c98",
James Kuszmaul9776b392023-01-14 14:08:08 -0800724 urls = [
Maxwell Hendersonac681cd2024-01-09 15:36:45 -0800725 "https://maven.ctr-electronics.com/release/com/ctre/phoenix6/api-cpp/24.1.0/api-cpp-24.1.0-headers.zip",
James Kuszmaul9776b392023-01-14 14:08:08 -0800726 ],
727)
728
729http_archive(
Maxwell Hendersonfcc0d122023-08-05 17:03:34 -0700730 name = "ctre_phoenix6_api_cpp_athena",
James Kuszmaul9776b392023-01-14 14:08:08 -0800731 build_file_content = """
732filegroup(
733 name = 'shared_libraries',
734 srcs = [
Maxwell Hendersonfcc0d122023-08-05 17:03:34 -0700735 'linux/athena/shared/libCTRE_Phoenix6.so',
James Kuszmaul9776b392023-01-14 14:08:08 -0800736 ],
737 visibility = ['//visibility:public'],
738)
739
740cc_library(
741 name = 'api-cpp',
742 visibility = ['//visibility:public'],
Maxwell Hendersonfcc0d122023-08-05 17:03:34 -0700743 srcs = ['linux/athena/shared/libCTRE_Phoenix6.so'],
James Kuszmaul9776b392023-01-14 14:08:08 -0800744 target_compatible_with = ['@//tools/platforms/hardware:roborio'],
745)
746""",
Maxwell Hendersonac681cd2024-01-09 15:36:45 -0800747 sha256 = "51f4921f8995e3e80ba347a90f6fa5c0cb7d0e438923a1a736554f263e2d5b8e",
James Kuszmaul9776b392023-01-14 14:08:08 -0800748 urls = [
Maxwell Hendersonac681cd2024-01-09 15:36:45 -0800749 "https://maven.ctr-electronics.com/release/com/ctre/phoenix6/api-cpp/24.1.0/api-cpp-24.1.0-linuxathena.zip",
James Kuszmaul9776b392023-01-14 14:08:08 -0800750 ],
751)
752
753http_archive(
Maxwell Hendersonfcc0d122023-08-05 17:03:34 -0700754 name = "ctre_phoenix6_tools_headers",
James Kuszmaul9776b392023-01-14 14:08:08 -0800755 build_file_content = """
756cc_library(
757 name = 'tools',
758 visibility = ['//visibility:public'],
759 hdrs = glob(['ctre/**/*.h', 'ctre/**/*.hpp']),
760)
761""",
Maxwell Hendersonac681cd2024-01-09 15:36:45 -0800762 sha256 = "72be3e50205e2546736361e3aba9c0de5d5318b263c195600f9b558c3d92cb9e",
James Kuszmaul9776b392023-01-14 14:08:08 -0800763 urls = [
Maxwell Hendersonac681cd2024-01-09 15:36:45 -0800764 "https://maven.ctr-electronics.com/release/com/ctre/phoenix6/tools/24.1.0/tools-24.1.0-headers.zip",
James Kuszmaul9776b392023-01-14 14:08:08 -0800765 ],
766)
767
768http_archive(
Maxwell Hendersonfcc0d122023-08-05 17:03:34 -0700769 name = "ctre_phoenix6_tools_athena",
James Kuszmaul9776b392023-01-14 14:08:08 -0800770 build_file_content = """
771filegroup(
772 name = 'shared_libraries',
773 srcs = [
774 'linux/athena/shared/libCTRE_PhoenixTools.so',
775 ],
776 visibility = ['//visibility:public'],
777)
778
779cc_library(
780 name = 'tools',
781 visibility = ['//visibility:public'],
782 srcs = ['linux/athena/shared/libCTRE_PhoenixTools.so'],
783 target_compatible_with = ['@//tools/platforms/hardware:roborio'],
784)
785""",
Maxwell Hendersonac681cd2024-01-09 15:36:45 -0800786 sha256 = "76d30cb8c0988eb6accab10e77ceae492782edb64c06f7df628b8c161cf0220a",
James Kuszmaul9776b392023-01-14 14:08:08 -0800787 urls = [
Maxwell Hendersonac681cd2024-01-09 15:36:45 -0800788 "https://maven.ctr-electronics.com/release/com/ctre/phoenix6/tools/24.1.0/tools-24.1.0-linuxathena.zip",
James Kuszmaul9776b392023-01-14 14:08:08 -0800789 ],
790)
791
792http_archive(
James Kuszmaul02eb05e2019-12-22 12:32:18 -0800793 name = "ctre_phoenix_api_cpp_headers",
Austin Schuhf6b94632019-02-02 22:11:27 -0800794 build_file_content = """
795cc_library(
796 name = 'api-cpp',
797 visibility = ['//visibility:public'],
798 hdrs = glob(['ctre/phoenix/**/*.h']),
799)
800""",
Maxwell Hendersonac681cd2024-01-09 15:36:45 -0800801 sha256 = "d2790e2495a59a3b14ab4b0fd03c2e25292d6874168f5642165acb0d1bab2f99",
Austin Schuhf6b94632019-02-02 22:11:27 -0800802 urls = [
Maxwell Hendersonac681cd2024-01-09 15:36:45 -0800803 "https://maven.ctr-electronics.com/release/com/ctre/phoenix/api-cpp/5.33.0/api-cpp-5.33.0-headers.zip",
Austin Schuhf6b94632019-02-02 22:11:27 -0800804 ],
805)
806
Austin Schuhf093fa52019-06-23 20:47:23 -0700807http_archive(
James Kuszmaul02eb05e2019-12-22 12:32:18 -0800808 name = "ctre_phoenix_api_cpp_athena",
Austin Schuhf6b94632019-02-02 22:11:27 -0800809 build_file_content = """
Austin Schuhde605f12022-02-23 23:08:19 -0800810filegroup(
811 name = 'shared_libraries',
812 srcs = [
813 'linux/athena/shared/libCTRE_Phoenix.so',
814 ],
815 visibility = ['//visibility:public'],
816)
817
Austin Schuhf6b94632019-02-02 22:11:27 -0800818cc_library(
819 name = 'api-cpp',
820 visibility = ['//visibility:public'],
Austin Schuhde605f12022-02-23 23:08:19 -0800821 srcs = ['linux/athena/shared/libCTRE_Phoenix.so'],
Philipp Schraderdada1072020-11-24 11:34:46 -0800822 target_compatible_with = ['@//tools/platforms/hardware:roborio'],
Austin Schuhf6b94632019-02-02 22:11:27 -0800823)
824""",
Maxwell Hendersonac681cd2024-01-09 15:36:45 -0800825 sha256 = "e67348b0db1e61797700b5c4e50b38b745f91899665b740b09fde879e4d8ad7a",
Austin Schuhf6b94632019-02-02 22:11:27 -0800826 urls = [
Maxwell Hendersonac681cd2024-01-09 15:36:45 -0800827 "https://maven.ctr-electronics.com/release/com/ctre/phoenix/api-cpp/5.33.0/api-cpp-5.33.0-linuxathena.zip",
Austin Schuhf6b94632019-02-02 22:11:27 -0800828 ],
829)
830
James Kuszmaul02eb05e2019-12-22 12:32:18 -0800831http_archive(
832 name = "ctre_phoenix_cci_headers",
Austin Schuhf6b94632019-02-02 22:11:27 -0800833 build_file_content = """
834cc_library(
835 name = 'cci',
836 visibility = ['//visibility:public'],
837 hdrs = glob(['ctre/phoenix/**/*.h']),
838)
839""",
Maxwell Hendersonac681cd2024-01-09 15:36:45 -0800840 sha256 = "56cb8272d623721560eea360730d2508f4f365e2ac1060aec5fbd546cffc0771",
Austin Schuhf6b94632019-02-02 22:11:27 -0800841 urls = [
Maxwell Hendersonac681cd2024-01-09 15:36:45 -0800842 "https://maven.ctr-electronics.com/release/com/ctre/phoenix/cci/5.33.0/cci-5.33.0-headers.zip",
Austin Schuhf6b94632019-02-02 22:11:27 -0800843 ],
844)
845
Austin Schuhf093fa52019-06-23 20:47:23 -0700846http_archive(
James Kuszmaul02eb05e2019-12-22 12:32:18 -0800847 name = "ctre_phoenix_cci_athena",
Austin Schuhf6b94632019-02-02 22:11:27 -0800848 build_file_content = """
Austin Schuhde605f12022-02-23 23:08:19 -0800849filegroup(
850 name = 'shared_libraries',
851 srcs = [
852 'linux/athena/shared/libCTRE_PhoenixCCI.so',
853 ],
854 visibility = ['//visibility:public'],
855)
856
Austin Schuhf6b94632019-02-02 22:11:27 -0800857cc_library(
858 name = 'cci',
859 visibility = ['//visibility:public'],
Austin Schuhde605f12022-02-23 23:08:19 -0800860 srcs = ['linux/athena/shared/libCTRE_PhoenixCCI.so'],
Philipp Schraderdada1072020-11-24 11:34:46 -0800861 target_compatible_with = ['@//tools/platforms/hardware:roborio'],
Austin Schuhf6b94632019-02-02 22:11:27 -0800862)
863""",
Maxwell Hendersonac681cd2024-01-09 15:36:45 -0800864 sha256 = "7bd8e9950c3e62a3c6ce967e3491c438ba08effde51d434f85b756fa004fbec9",
Austin Schuhf6b94632019-02-02 22:11:27 -0800865 urls = [
Maxwell Hendersonac681cd2024-01-09 15:36:45 -0800866 "https://maven.ctr-electronics.com/release/com/ctre/phoenix/cci/5.33.0/cci-5.33.0-linuxathena.zip",
Austin Schuhf6b94632019-02-02 22:11:27 -0800867 ],
868)
Austin Schuheed14442019-03-23 14:42:46 -0700869
870http_archive(
Philipp Schrader175a93c2023-02-19 13:13:40 -0800871 name = "aspect_rules_js",
Philipp Schraderba072d92024-02-21 17:00:37 -0800872 sha256 = "630a71aba66c4023a5b16ab3efafaeed8b1a2865ccd168a34611eb73876b3fc4",
873 strip_prefix = "rules_js-1.37.1",
874 url = "https://github.com/aspect-build/rules_js/releases/download/v1.37.1/rules_js-v1.37.1.tar.gz",
Austin Schuhda9d0602019-09-15 17:29:38 -0700875)
Austin Schuheed14442019-03-23 14:42:46 -0700876
Philipp Schrader175a93c2023-02-19 13:13:40 -0800877load("@aspect_rules_js//js:repositories.bzl", "rules_js_dependencies")
Philipp Schrader87277f42022-01-01 07:45:12 -0800878
Philipp Schrader175a93c2023-02-19 13:13:40 -0800879rules_js_dependencies()
Philipp Schrader54047962022-02-16 21:05:11 -0800880
Philipp Schraderba072d92024-02-21 17:00:37 -0800881load("@bazel_features//:deps.bzl", "bazel_features_deps")
882
883bazel_features_deps()
884
885load("@aspect_rules_js//npm:npm_import.bzl", "npm_translate_lock", "pnpm_repository")
886
887pnpm_repository(name = "pnpm")
888
Alex Perryb3168082022-01-22 13:36:13 -0800889http_archive(
Philipp Schrader175a93c2023-02-19 13:13:40 -0800890 name = "aspect_rules_esbuild",
Philipp Schraderba072d92024-02-21 17:00:37 -0800891 sha256 = "999349afef62875301f45ec8515189ceaf2e85b1e67a17e2d28b95b30e1d6c0b",
892 strip_prefix = "rules_esbuild-0.18.0",
893 url = "https://github.com/aspect-build/rules_esbuild/releases/download/v0.18.0/rules_esbuild-v0.18.0.tar.gz",
Philipp Schrader175a93c2023-02-19 13:13:40 -0800894)
895
896load("@aspect_rules_esbuild//esbuild:dependencies.bzl", "rules_esbuild_dependencies")
897
898rules_esbuild_dependencies()
899
900load("@rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains")
901
902nodejs_register_toolchains(
903 name = "nodejs",
904 node_version = DEFAULT_NODE_VERSION,
905)
906
907npm_translate_lock(
908 name = "npm",
909 data = [
910 "@//:package.json",
911 "@//:pnpm-workspace.yaml",
Philipp Schradere5d13942024-03-17 15:44:35 -0700912 "@//scouting/webserver/requests/messages:package.json",
Philipp Schrader175a93c2023-02-19 13:13:40 -0800913 "@//scouting/www:package.json",
Philipp Schrader175a93c2023-02-19 13:13:40 -0800914 "@//scouting/www/driver_ranking:package.json",
915 "@//scouting/www/entry:package.json",
Philipp Schrader175a93c2023-02-19 13:13:40 -0800916 "@//scouting/www/match_list:package.json",
917 "@//scouting/www/notes:package.json",
Philipp Schrader3d7dedc2024-03-16 16:27:25 -0700918 "@//scouting/www/pipes:package.json",
Philipp Schrader175a93c2023-02-19 13:13:40 -0800919 "@//scouting/www/rpc:package.json",
Philipp Schradere2e27ff2024-02-25 22:08:55 -0800920 "@//scouting/www/scan:package.json",
Philipp Schrader175a93c2023-02-19 13:13:40 -0800921 "@//scouting/www/shift_schedule:package.json",
Philipp Schraderad2a6fb2024-03-20 20:51:36 -0700922 "@//scouting/www/test/authorize:package.json",
Philipp Schrader175a93c2023-02-19 13:13:40 -0800923 "@//scouting/www/view:package.json",
Philipp Schrader54047962022-02-16 21:05:11 -0800924 ],
Philipp Schrader175a93c2023-02-19 13:13:40 -0800925
926 # Running lifecycle hooks on npm package fsevents@2.3.2 fails in a dramatic way:
927 # ```
928 # SyntaxError: Unexpected strict mode reserved word
929 # at ESMLoader.moduleStrategy (node:internal/modules/esm/translators:117:18)
930 # at ESMLoader.moduleProvider (node:internal/modules/esm/loader:337:14)
931 # at async link (node:internal/modules/esm/module_job:70:21)
932 # ```
933 lifecycle_hooks_no_sandbox = False,
934 npmrc = "@//:.npmrc",
935 pnpm_lock = "//:pnpm-lock.yaml",
936 quiet = False,
937 update_pnpm_lock = False,
938 verify_node_modules_ignored = "//:.bazelignore",
939)
940
Philipp Schraderba072d92024-02-21 17:00:37 -0800941load("@aspect_rules_esbuild//esbuild:repositories.bzl", "LATEST_ESBUILD_VERSION", "esbuild_register_toolchains")
Philipp Schrader175a93c2023-02-19 13:13:40 -0800942
943esbuild_register_toolchains(
944 name = "esbuild",
945 esbuild_version = LATEST_ESBUILD_VERSION,
946)
947
948http_archive(
949 name = "aspect_rules_rollup",
950 patch_args = [
951 "-p1",
952 ],
953 patches = [
954 "//third_party:rules_rollup/0001-Fix-resolving-files.patch",
955 ],
Philipp Schraderba072d92024-02-21 17:00:37 -0800956 sha256 = "a0433a0b0206a45d362749d71bc1e4e0dacf5ca2a572b059328f9753392bca80",
957 strip_prefix = "rules_rollup-1.0.0",
958 url = "https://github.com/aspect-build/rules_rollup/releases/download/v1.0.0/rules_rollup-v1.0.0.tar.gz",
Philipp Schrader175a93c2023-02-19 13:13:40 -0800959)
960
Philipp Schrader175a93c2023-02-19 13:13:40 -0800961http_archive(
962 name = "aspect_rules_terser",
Philipp Schraderba072d92024-02-21 17:00:37 -0800963 sha256 = "8424b4c064d0e490e5b6f215b993712ef641b77e03b68fdc64221edf48d14add",
964 strip_prefix = "rules_terser-1.0.0",
965 url = "https://github.com/aspect-build/rules_terser/releases/download/v1.0.0/rules_terser-v1.0.0.tar.gz",
Philipp Schrader175a93c2023-02-19 13:13:40 -0800966)
967
968load("@aspect_rules_terser//terser:dependencies.bzl", "rules_terser_dependencies")
969
970rules_terser_dependencies()
971
Philipp Schrader175a93c2023-02-19 13:13:40 -0800972http_archive(
973 name = "aspect_rules_ts",
Philipp Schraderba072d92024-02-21 17:00:37 -0800974 sha256 = "6ad28b5bac2bb5a74e737925fbc3f62ce1edabe5a48d61a9980c491ef4cedfb7",
975 strip_prefix = "rules_ts-2.1.1",
976 url = "https://github.com/aspect-build/rules_ts/releases/download/v2.1.1/rules_ts-v2.1.1.tar.gz",
Philipp Schrader175a93c2023-02-19 13:13:40 -0800977)
978
979load("@aspect_rules_ts//ts:repositories.bzl", "rules_ts_dependencies")
980
Philipp Schraderba072d92024-02-21 17:00:37 -0800981rules_ts_dependencies(
982 ts_version_from = "//:package.json",
983)
Philipp Schrader175a93c2023-02-19 13:13:40 -0800984
985load("@npm//:repositories.bzl", "npm_repositories")
986
987npm_repositories()
988
989http_archive(
990 name = "aspect_rules_cypress",
Philipp Schraderd422be72024-02-25 20:18:08 -0800991 patch_args = ["-p1"],
992 patches = [
993 "//third_party:rules_cypress/0001-fix-incorrect-linux-checksums.patch",
994 "//third_party:rules_cypress/0002-Add-support-for-cypress-13.6.6.patch",
995 ],
Philipp Schraderba072d92024-02-21 17:00:37 -0800996 sha256 = "76947778d8e855eee3c15931e1fcdc1c2a25d56d6c0edd110b2227c05b794d08",
997 strip_prefix = "rules_cypress-0.3.2",
Philipp Schrader175a93c2023-02-19 13:13:40 -0800998 urls = [
Philipp Schraderba072d92024-02-21 17:00:37 -0800999 "https://github.com/aspect-build/rules_cypress/archive/refs/tags/v0.3.2.tar.gz",
Philipp Schrader175a93c2023-02-19 13:13:40 -08001000 ],
1001)
1002
1003load("@aspect_rules_cypress//cypress:dependencies.bzl", "rules_cypress_dependencies")
1004load("@aspect_rules_cypress//cypress:repositories.bzl", "cypress_register_toolchains")
1005
1006rules_cypress_dependencies()
1007
1008cypress_register_toolchains(
1009 name = "cypress",
Philipp Schraderd422be72024-02-25 20:18:08 -08001010 cypress_version = "13.3.1",
Philipp Schrader175a93c2023-02-19 13:13:40 -08001011)
1012
1013# Copied from:
1014# https://github.com/aspect-build/rules_cypress/blob/3db1b74818ac4ce1b9d489a6e0065b36c1076761/internal_deps.bzl#L47
1015#
1016# To update CHROME_REVISION, use the below script
1017#
1018# LASTCHANGE_URL="https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/Linux_x64%2FLAST_CHANGE?alt=media"
1019# CHROME_REVISION=$(curl -s -S $LASTCHANGE_URL)
1020# echo "latest CHROME_REVISION_LINUX is $CHROME_REVISION"
Philipp Schraderd422be72024-02-25 20:18:08 -08001021CHROME_REVISION_LINUX = "1264932"
Philipp Schrader175a93c2023-02-19 13:13:40 -08001022
1023http_archive(
1024 name = "chrome_linux",
1025 build_file_content = """filegroup(
1026name = "all",
1027srcs = glob(["**"]),
1028visibility = ["//visibility:public"],
1029)""",
Philipp Schraderd422be72024-02-25 20:18:08 -08001030 sha256 = "4de54f43b2fc4812b9fad4145e44df6ed3063969174a8883ea42ed4c1ee58301",
Philipp Schrader175a93c2023-02-19 13:13:40 -08001031 strip_prefix = "chrome-linux",
1032 urls = [
1033 "https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/Linux_x64%2F" + CHROME_REVISION_LINUX + "%2Fchrome-linux.zip?alt=media",
1034 ],
Alex Perryb3168082022-01-22 13:36:13 -08001035)
1036
Brian Silvermane84b0cf2022-08-13 19:36:21 -07001037http_archive(
Philipp Schraderad2a6fb2024-03-20 20:51:36 -07001038 name = "chromedriver_linux",
1039 build_file_content = """
1040filegroup(
1041 name = "chromedriver",
1042 srcs = ["chromedriver-linux64/chromedriver"],
1043 visibility = ["//visibility:public"],
1044)""",
1045 sha256 = "527b81f8aaf94344af4103c1166ce5e65037e7ad071c773fe354c215d547ef73",
1046 urls = [
1047 "https://storage.googleapis.com/chrome-for-testing-public/124.0.6367.8/linux64/chromedriver-linux64.zip",
1048 ],
1049)
1050
1051http_archive(
Brian Silvermane84b0cf2022-08-13 19:36:21 -07001052 name = "rules_rust_tinyjson",
1053 build_file = "@rules_rust//util/process_wrapper:BUILD.tinyjson.bazel",
1054 sha256 = "1a8304da9f9370f6a6f9020b7903b044aa9ce3470f300a1fba5bc77c78145a16",
1055 strip_prefix = "tinyjson-2.3.0",
1056 type = "tar.gz",
1057 url = "https://crates.io/api/v1/crates/tinyjson/2.3.0/download",
1058)
1059
Adam Snaider770b97b2023-08-04 21:07:48 -07001060# Flatbuffers
1061local_repository(
1062 name = "com_github_google_flatbuffers",
1063 path = "third_party/flatbuffers",
1064)
1065
Brian Silverman01dfd872022-04-06 22:20:40 -07001066local_repository(
Ravago Jones16809802021-11-18 20:40:03 -08001067 name = "rules_rust",
Brian Silverman01dfd872022-04-06 22:20:40 -07001068 path = "third_party/rules_rust",
Ravago Jones16809802021-11-18 20:40:03 -08001069)
1070
Adam Snaiderb8097452023-07-10 23:18:26 -04001071load("@rules_rust//rust:repositories.bzl", "rust_analyzer_toolchain_repository", "rust_repository_set")
1072
1073RUST_VERSION = "1.70.0"
Ravago Jones16809802021-11-18 20:40:03 -08001074
Brian Silvermane84b0cf2022-08-13 19:36:21 -07001075rust_repository_set(
Ravago Jones16809802021-11-18 20:40:03 -08001076 name = "rust",
Brian Silverman8751d482022-05-18 23:28:44 -07001077 allocator_library = "@//tools/rust:forward_allocator",
Ravago Jones16809802021-11-18 20:40:03 -08001078 edition = "2021",
1079 exec_triple = "x86_64-unknown-linux-gnu",
1080 extra_target_triples = [
1081 "arm-unknown-linux-gnueabi",
1082 "armv7-unknown-linux-gnueabihf",
Philipp Schraderf1bbf342022-02-05 14:30:15 -08001083 "aarch64-unknown-linux-gnu",
Ravago Jones16809802021-11-18 20:40:03 -08001084 ],
Brian Silvermane84b0cf2022-08-13 19:36:21 -07001085 register_toolchain = False,
Adam Snaiderb8097452023-07-10 23:18:26 -04001086 rustfmt_version = RUST_VERSION,
1087 versions = [RUST_VERSION],
Ravago Jones16809802021-11-18 20:40:03 -08001088)
1089
Adam Snaider770b97b2023-08-04 21:07:48 -07001090load("@rules_rust//crate_universe:repositories.bzl", "crate_universe_dependencies")
1091
1092crate_universe_dependencies()
1093
1094load("@rules_rust//crate_universe:defs.bzl", "crate", "crates_repository")
1095
1096# Run `CARGO_BAZEL_REPIN=1 bazel sync --only=crate_index` to update the lock file
1097# after adding or removing any dependencies.
1098crates_repository(
1099 name = "crate_index",
1100 annotations = {
1101 "link-cplusplus": [
1102 # Bazel toolchains take care of linking the C++ standard library, so don't add
1103 # an extra flag via Rust by enabling the `nothing` feature. I'm not even sure
1104 # it would end up on the link command line, but this crate's build.rs attempts
1105 # to find a C++ compiler itself otherwise which definitely doesn't work.
1106 crate.annotation(
1107 crate_features = ["nothing"],
1108 ),
1109 ],
1110 "cxx": [
1111 crate.annotation(
1112 additive_build_file = "@//third_party/cargo:cxx/include.BUILD.bazel",
1113 extra_aliased_targets = ["cxx_cc"],
1114 gen_build_script = False,
1115 ),
1116 ],
1117 "log": [
1118 crate.annotation(
1119 rustc_flags = ["--cfg=atomic_cas"],
1120 ),
1121 ],
1122 },
1123 cargo_lockfile = "//:Cargo.lock",
1124 generator_sha256s = {"x86_64-unknown-linux-gnu": "1987a00e7ae12c705fa010b340410230ae8a47d7d95c02900191968b2e745649"},
1125 generator_urls = {
1126 "x86_64-unknown-linux-gnu": "https://software.frc971.org/Build-Dependencies/cargo-bazel-x86_64-unknown-linux-gnu",
1127 },
1128 lockfile = "//:Cargo.Bazel.lock",
1129 manifests = [
1130 "//:Cargo.toml",
1131 "//third_party/autocxx:Cargo.toml",
1132 "//third_party/autocxx:engine/Cargo.toml",
1133 "//third_party/autocxx:parser/Cargo.toml",
1134 "//third_party/autocxx:gen/cmd/Cargo.toml",
1135 "//third_party/autocxx:macro/Cargo.toml",
1136 "//third_party/autocxx:integration-tests/Cargo.toml",
1137 "@com_github_google_flatbuffers//rust:flatbuffers/Cargo.toml",
1138 ],
1139 rust_toolchain_cargo_template = "@rust__{triple}__{channel}_tools//:bin/{tool}",
1140 rust_toolchain_rustc_template = "@rust__{triple}__{channel}_tools//:bin/{tool}",
Adam Snaiderb8097452023-07-10 23:18:26 -04001141 rust_version = RUST_VERSION,
Adam Snaider770b97b2023-08-04 21:07:48 -07001142 supported_platform_triples = [
1143 "x86_64-unknown-linux-gnu",
1144 "arm-unknown-linux-gnueabi",
1145 "armv7-unknown-linux-gnueabihf",
1146 "aarch64-unknown-linux-gnu",
1147 ],
Austin Schuh4ac96a82019-08-14 20:24:23 -07001148)
James Kuszmaul7daef362019-12-31 18:28:17 -08001149
Adam Snaider770b97b2023-08-04 21:07:48 -07001150load("@crate_index//:defs.bzl", "crate_repositories")
1151
1152crate_repositories()
1153
Adam Snaiderb8097452023-07-10 23:18:26 -04001154load("@rules_rust//tools/rust_analyzer:deps.bzl", "rust_analyzer_dependencies")
1155
1156rust_analyzer_dependencies()
1157
1158register_toolchains(rust_analyzer_toolchain_repository(
1159 name = "rust_analyzer_toolchain",
1160 version = RUST_VERSION,
1161))
1162
Adam Snaider770b97b2023-08-04 21:07:48 -07001163http_archive(
1164 name = "cxxbridge-cmd",
1165 build_file = "//third_party/cargo:cxxbridge-cmd/include.BUILD.bazel",
1166 sha256 = "df13eece12ed9e7bd4fb071a6af4c44421bb9024d339d029f5333bcdaca00000",
1167 strip_prefix = "cxxbridge-cmd-1.0.100",
1168 type = "tar.gz",
1169 urls = ["https://crates.io/api/v1/crates/cxxbridge-cmd/1.0.100/download"],
1170)
1171
1172crates_repository(
1173 name = "cxxbridge_cmd_deps",
1174 cargo_lockfile = "//third_party/cargo:cxxbridge-cmd/Cargo.lock",
1175 generator_sha256s = {"x86_64-unknown-linux-gnu": "1987a00e7ae12c705fa010b340410230ae8a47d7d95c02900191968b2e745649"},
1176 generator_urls = {
1177 "x86_64-unknown-linux-gnu": "https://software.frc971.org/Build-Dependencies/cargo-bazel-x86_64-unknown-linux-gnu",
1178 },
1179 lockfile = "//third_party/cargo:cxxbridge-cmd/Cargo.Bazel.lock",
1180 manifests = ["@cxxbridge-cmd//:Cargo.toml"],
1181 rust_toolchain_cargo_template = "@rust__{triple}__{channel}_tools//:bin/{tool}",
1182 rust_toolchain_rustc_template = "@rust__{triple}__{channel}_tools//:bin/{tool}",
1183 rust_version = "1.70.0",
1184 supported_platform_triples = [
1185 "x86_64-unknown-linux-gnu",
1186 "arm-unknown-linux-gnueabi",
1187 "armv7-unknown-linux-gnueabihf",
1188 "aarch64-unknown-linux-gnu",
1189 ],
1190)
1191
1192load("@cxxbridge_cmd_deps//:defs.bzl", cxxbridge_cmd_deps = "crate_repositories")
1193
1194cxxbridge_cmd_deps()
1195
James Kuszmaul7daef362019-12-31 18:28:17 -08001196http_file(
1197 name = "sample_logfile",
1198 downloaded_file_path = "log.fbs",
milind945708b2021-07-03 13:30:15 -07001199 sha256 = "45d1d19fb82786c476d3f21a8d62742abaeeedf4c16a00ec37ae350dcb61f1fc",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001200 urls = ["https://software.frc971.org/Build-Dependencies/small_sample_logfile2.fbs"],
James Kuszmaul7daef362019-12-31 18:28:17 -08001201)
Brian Silvermand4260c72020-01-14 00:08:02 -08001202
James Kuszmaul9c128122021-03-22 22:24:36 -07001203http_archive(
James Kuszmaul531609d2020-02-18 17:12:23 -08001204 name = "drivetrain_replay",
James Kuszmaul9c128122021-03-22 22:24:36 -07001205 build_file_content = """
1206filegroup(
1207 name = "drivetrain_replay",
1208 srcs = glob(["**/*.bfbs"]),
1209 visibility = ["//visibility:public"],
1210)
1211 """,
1212 sha256 = "115dcd2fe005cb9cad3325707aa7f4466390c43a08555edf331c06c108bdf692",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001213 url = "https://software.frc971.org/Build-Dependencies/2021-03-20_drivetrain_spin_wheels.tar.gz",
James Kuszmaul531609d2020-02-18 17:12:23 -08001214)
1215
milind-u7baf7342021-08-25 18:31:26 -07001216http_archive(
1217 name = "superstructure_replay",
1218 build_file_content = """
1219filegroup(
1220 name = "superstructure_replay",
1221 srcs = glob(["**/*.bfbs"]),
1222 visibility = ["//visibility:public"],
1223)
1224 """,
milind-u200b2762021-11-06 19:36:15 -07001225 sha256 = "2b9a3ecc83f2aba89a1909ae38fe51e6718a5b4d0e7c131846dfb2845df9cd19",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001226 url = "https://software.frc971.org/Build-Dependencies/2021-10-03_superstructure_shoot_balls.tar.gz",
milind-u7baf7342021-08-25 18:31:26 -07001227)
1228
Philipp Schradere2e27ff2024-02-25 22:08:55 -08001229http_file(
1230 name = "opencv_wasm",
1231 sha256 = "447244d0e67e411f91e7c225c07f104437104e3e753085248a0c527a25bd8807",
1232 urls = [
1233 "https://docs.opencv.org/4.9.0/opencv.js",
1234 ],
1235)
1236
Brian Silvermand97a47c2020-01-16 00:47:53 -08001237http_archive(
1238 name = "opencv_k8",
1239 build_file = "@//debian:opencv.BUILD",
Austin Schuhb7775c02023-06-02 18:12:02 -07001240 sha256 = "1d8f839fd135a700ca0576a503b15b0a198fef5b36f22efae5cae9eaa17935d1",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001241 url = "https://software.frc971.org/Build-Dependencies/opencv_amd64_v4.tar.gz",
Brian Silvermand97a47c2020-01-16 00:47:53 -08001242)
Brian Silverman764945b2020-01-16 23:40:43 -08001243
Brian Silverman764945b2020-01-16 23:40:43 -08001244http_archive(
1245 name = "halide_k8",
1246 build_file = "@//debian:halide.BUILD",
Austin Schuh669068e2023-01-04 20:50:34 -08001247 sha256 = "be3bdd067acb9ee0d37d0830821113cd69174bee46da466a836d8829fef7cf91",
1248 strip_prefix = "Halide-14.0.0-x86-64-linux/",
1249 url = "https://github.com/halide/Halide/releases/download/v14.0.0/Halide-14.0.0-x86-64-linux-6b9ed2afd1d6d0badf04986602c943e287d44e46.tar.gz",
Brian Silverman764945b2020-01-16 23:40:43 -08001250)
1251
Philipp Schraderf1bbf342022-02-05 14:30:15 -08001252http_archive(
1253 name = "halide_arm64",
1254 build_file = "@//debian:halide.BUILD",
Austin Schuh669068e2023-01-04 20:50:34 -08001255 sha256 = "cdd42411bcbba682f73d7db0af69837c4857ee90f1727c6feb37fc9a98132385",
1256 strip_prefix = "Halide-14.0.0-arm-64-linux/",
1257 url = "https://github.com/halide/Halide/releases/download/v14.0.0/Halide-14.0.0-arm-64-linux-6b9ed2afd1d6d0badf04986602c943e287d44e46.tar.gz",
Philipp Schraderf1bbf342022-02-05 14:30:15 -08001258)
1259
Brian Silverman764945b2020-01-16 23:40:43 -08001260http_archive(
Tyler Chatow60671d32020-02-26 19:49:30 -08001261 name = "gstreamer_k8",
1262 build_file = "@//debian:gstreamer.BUILD",
Austin Schuhb7775c02023-06-02 18:12:02 -07001263 sha256 = "09765cb1dd8abc643cb1dd91d536aef3e6604ff05f5f92898d508ed857455d0b",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001264 url = "https://software.frc971.org/Build-Dependencies/gstreamer_1.20.1-1~bpo11+1_amd64_v2.tar.gz",
Tyler Chatow60671d32020-02-26 19:49:30 -08001265)
1266
Brian Silvermanf59fe3f2020-09-22 21:04:09 -07001267# //debian:lzma_amd64
1268http_archive(
1269 name = "lzma_amd64",
1270 build_file_content = """
1271cc_library(
1272 name = "lib",
1273 srcs = [
1274 "usr/lib/x86_64-linux-gnu/liblzma.a",
1275 ],
1276 hdrs = glob([
1277 "usr/include/lzma/*.h",
1278 "usr/include/*.h",
1279 ]),
1280 strip_include_prefix = "usr/include",
1281 visibility = ["//visibility:public"],
1282)
1283""",
Austin Schuhe6751772022-06-27 00:58:26 -07001284 sha256 = "6fa0ad579b78bd41a0133024c34063b140442dd2ad4201fd2bf4c55229e7c13f",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001285 urls = ["https://software.frc971.org/Build-Dependencies/lzma_amd64-2.tar.gz"],
Brian Silvermanf59fe3f2020-09-22 21:04:09 -07001286)
1287
1288# //debian:lzma_arm64
1289http_archive(
1290 name = "lzma_arm64",
1291 build_file_content = """
1292cc_library(
1293 name = "lib",
1294 srcs = [
1295 "usr/lib/aarch64-linux-gnu/liblzma.a",
1296 ],
1297 hdrs = glob([
1298 "usr/include/lzma/*.h",
1299 "usr/include/*.h",
1300 ]),
1301 strip_include_prefix = "usr/include",
1302 visibility = ["//visibility:public"],
1303)
1304""",
Austin Schuhc020b182022-06-29 19:54:01 -07001305 sha256 = "b4ab9fd7cf3bfdb9e3fc67ac4a3c84db7f7e3c48431ccfc6e6e210f5829d17c9",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001306 urls = ["https://software.frc971.org/Build-Dependencies/lzma_arm64-2.tar.gz"],
Brian Silvermanf59fe3f2020-09-22 21:04:09 -07001307)
James Kuszmaul2cffe852021-10-27 20:17:49 -07001308
1309local_repository(
1310 name = "snappy",
1311 path = "third_party/snappy",
1312)
Philipp Schrader73e56602021-12-06 21:37:30 -08001313
1314http_archive(
1315 name = "io_bazel_rules_go",
Philipp Schrader039f5c32022-01-20 22:30:01 -08001316 patch_args = [
1317 "-p1",
1318 ],
1319 patches = [
1320 "@//third_party:rules_go/0001-Disable-warnings-for-external-repositories.patch",
1321 ],
Philipp Schrader35bb1532023-03-05 13:49:12 -08001322 sha256 = "dd926a88a564a9246713a9c00b35315f54cbd46b31a26d5d8fb264c07045f05d",
Philipp Schrader73e56602021-12-06 21:37:30 -08001323 urls = [
Philipp Schrader35bb1532023-03-05 13:49:12 -08001324 "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.38.1/rules_go-v0.38.1.zip",
1325 "https://github.com/bazelbuild/rules_go/releases/download/v0.38.1/rules_go-v0.38.1.zip",
Philipp Schrader73e56602021-12-06 21:37:30 -08001326 ],
1327)
1328
Philipp Schrader37fdbb62021-12-18 00:30:37 -08001329http_archive(
1330 name = "bazel_gazelle",
Philipp Schrader35bb1532023-03-05 13:49:12 -08001331 patch_args = [
1332 "-p1",
1333 ],
1334 patches = [
1335 "@//third_party:bazel-gazelle/0001-Fix-visibility-of-gazelle-runner.patch",
1336 ],
1337 sha256 = "ecba0f04f96b4960a5b250c8e8eeec42281035970aa8852dda73098274d14a1d",
Philipp Schrader37fdbb62021-12-18 00:30:37 -08001338 urls = [
Philipp Schrader35bb1532023-03-05 13:49:12 -08001339 "https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.29.0/bazel-gazelle-v0.29.0.tar.gz",
1340 "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.29.0/bazel-gazelle-v0.29.0.tar.gz",
Philipp Schrader37fdbb62021-12-18 00:30:37 -08001341 ],
1342)
1343
Philipp Schrader73e56602021-12-06 21:37:30 -08001344load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
1345
1346go_rules_dependencies()
1347
Philipp Schrader35bb1532023-03-05 13:49:12 -08001348go_register_toolchains(version = "1.19.5")
Philipp Schrader37fdbb62021-12-18 00:30:37 -08001349
1350load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
1351load("//:go_deps.bzl", "go_dependencies")
1352load("//tools/go:mirrored_go_deps.bzl", "mirrored_go_dependencies")
1353
1354mirrored_go_dependencies()
1355
1356# gazelle:repository_macro go_deps.bzl%go_dependencies
1357go_dependencies()
1358
1359gazelle_dependencies()
Philipp Schradercc016b32021-12-30 08:59:58 -08001360
1361http_archive(
Adam Snaider13d48d92023-08-03 12:20:15 -07001362 name = "com_google_protobuf",
1363 sha256 = "ace0abf35274ee0f08d5564635505ed55a0bc346a6534413d3c5b040fc926332",
1364 strip_prefix = "protobuf-24.3",
1365 url = "https://github.com/protocolbuffers/protobuf/archive/refs/tags/v24.3.zip",
1366)
1367
1368http_archive(
1369 name = "com_github_grpc_grpc",
1370 patch_args = ["-p1"],
1371 patches = ["//debian:grpc.patch"],
1372 sha256 = "a3a65f0129c4922c5d7f4c11dcd40083a12ca54076fd3a927bcd63c53b7e44a5",
1373 strip_prefix = "grpc-1.59.2",
1374 url = "https://github.com/grpc/grpc/archive/refs/tags/v1.59.2.tar.gz",
1375)
1376
1377load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
1378
1379grpc_deps()
1380
1381load("@com_github_grpc_grpc//bazel:grpc_extra_deps.bzl", "grpc_extra_deps")
1382
1383grpc_extra_deps()
1384
1385http_archive(
Philipp Schradercc016b32021-12-30 08:59:58 -08001386 name = "com_github_bazelbuild_buildtools",
1387 sha256 = "44a6e5acc007e197d45ac3326e7f993f0160af9a58e8777ca7701e00501c0857",
1388 strip_prefix = "buildtools-4.2.4",
1389 urls = [
1390 "https://github.com/bazelbuild/buildtools/archive/refs/tags/4.2.4.tar.gz",
1391 ],
1392)
Philipp Schrader0f5d2502022-03-08 22:44:55 -08001393
1394http_archive(
Austin Schuh94dbdf32024-04-11 22:51:09 -07001395 name = "clang_amd64_deps",
Tyler Chatow8a51ac62022-03-15 13:23:12 -07001396 build_file_content = """
Austin Schuh94dbdf32024-04-11 22:51:09 -07001397libs = [
1398 'lib/x86_64-linux-gnu/libtinfo.so.5',
1399 'lib/x86_64-linux-gnu/libtinfo.so.5.9',
1400 'usr/lib/x86_64-linux-gnu/libxml2.so.2',
1401 'usr/lib/x86_64-linux-gnu/libxml2.so.2.9.14',
1402 'usr/lib/x86_64-linux-gnu/libicuuc.so.72',
1403 'usr/lib/x86_64-linux-gnu/libicuuc.so.72.1',
1404 'usr/lib/x86_64-linux-gnu/libicudata.so.72',
1405 'usr/lib/x86_64-linux-gnu/libicudata.so.72.1',
1406]
1407exports_files(libs, ["//visibility:public"])
1408
1409filegroup(
1410 name = "all",
1411 srcs = libs,
1412 visibility = ["//visibility:public"],
Tyler Chatow8a51ac62022-03-15 13:23:12 -07001413)
1414""",
Austin Schuh94dbdf32024-04-11 22:51:09 -07001415 sha256 = "6ae7cbedd9b1d54da095d460e2832c2a3e2917fbfa2ed22c6787d4b527a5677d",
1416 urls = ["https://software.frc971.org/Build-Dependencies/clang_amd64.tar.gz"],
Tyler Chatow8a51ac62022-03-15 13:23:12 -07001417)
Tyler Chatowec100e22022-03-22 16:23:04 -07001418
1419http_archive(
1420 name = "libtinfo5_arm64",
1421 build_file_content = """
1422exports_files(
1423 [
1424 'lib/aarch64-linux-gnu/libtinfo.so.5',
1425 'lib/aarch64-linux-gnu/libtinfo.so.5.9',
1426 ],
1427 ["//visibility:public"],
1428)
1429""",
1430 patch_cmds = ["touch lib/aarch64-linux-gnu/BUILD"],
1431 sha256 = "df4ea5194c80df8d1f5f6ed68b47ce9dbf78aa8cdebbc61cf00654d9075f8e3c",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001432 urls = ["https://software.frc971.org/Build-Dependencies/libtinfo5_arm64.tar.gz"],
Tyler Chatowec100e22022-03-22 16:23:04 -07001433)
James Kuszmaul4ed5fb12022-03-22 15:20:04 -07001434
Philipp Schraderf60e7d72023-02-19 17:07:22 -08001435http_archive(
1436 name = "xvfb_amd64",
1437 build_file = "//third_party:xvfb/xvfb.BUILD",
1438 patch_cmds = [
1439 "unlink usr/bin/X11",
1440 ],
1441 sha256 = "a7491bf6c47ed0037992fa493f9c25af3ab00a695d706e1fdc122a8b798c0d7c",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001442 urls = ["https://software.frc971.org/Build-Dependencies/xvfb_amd64.tar.gz"],
Philipp Schraderf60e7d72023-02-19 17:07:22 -08001443)
1444
Austin Schuh86110712022-09-16 15:40:54 -07001445# https://curl.haxx.se/download/curl-7.69.1.tar.gz
1446http_archive(
1447 name = "com_github_curl_curl",
1448 build_file = "//debian:curl.BUILD",
1449 sha256 = "01ae0c123dee45b01bbaef94c0bc00ed2aec89cb2ee0fd598e0d302a6b5e0a98",
1450 strip_prefix = "curl-7.69.1",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001451 url = "https://software.frc971.org/Build-Dependencies/curl-7.69.1.tar.gz",
Austin Schuh86110712022-09-16 15:40:54 -07001452)
1453
1454http_archive(
Ajay Penmatcha57873d92023-12-18 12:59:21 -08001455 name = "com_github_nghttp2_nghttp2",
1456 build_file = "//debian:BUILD.nghttp2.bazel",
1457 sha256 = "7da19947b33a07ddcf97b9791331bfee8a8545e6b394275a9971f43cae9d636b",
1458 strip_prefix = "nghttp2-1.58.0",
1459 url = "https://github.com/nghttp2/nghttp2/archive/refs/tags/v1.58.0.tar.gz",
1460)
1461
1462http_archive(
Austin Schuh86110712022-09-16 15:40:54 -07001463 # No official name exists. Names used in our external dependencies include
1464 # zlib, madler_zlib, com_github_madler_zlib.
1465 name = "zlib",
1466 build_file = "//debian:BUILD.zlib.bazel",
1467 sha256 = "629380c90a77b964d896ed37163f5c3a34f6e6d897311f1df2a7016355c45eff",
1468 strip_prefix = "zlib-1.2.11",
1469 urls = [
1470 "https://github.com/madler/zlib/archive/v1.2.11.tar.gz",
1471 ],
1472)
1473
1474# This one is tricky to get an archive because it has recursive submodules. These semi-automated steps do work though:
James Kuszmaulb0931ac2023-01-24 14:23:13 -08001475# git clone -b 1.10.34 --recurse-submodules --depth=1 https://github.com/aws/aws-sdk-cpp
Austin Schuh86110712022-09-16 15:40:54 -07001476# cd aws-sdk-cpp
1477# 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/\)')
1478# Now run the command that printed, and the output will be at aws_sdk-version.tar.gz.
1479http_archive(
1480 name = "aws_sdk",
1481 build_file = "//debian:aws_sdk.BUILD",
1482 patch_args = ["-p1"],
1483 patches = ["//debian:aws_sdk.patch"],
James Kuszmaulb0931ac2023-01-24 14:23:13 -08001484 sha256 = "de6570d10c246189fd8c02100f7f0d9af8499a3ef94a131eeb85619f3bd6c604",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001485 url = "https://software.frc971.org/Build-Dependencies/aws_sdk-1.10.34.tar.gz",
Austin Schuh86110712022-09-16 15:40:54 -07001486)
1487
James Kuszmaul5ab990d2022-11-07 16:35:49 -08001488# Source code of LZ4 (files under lib/) are under BSD 2-Clause.
1489# The rest of the repository (build information, documentation, etc.) is under GPLv2.
1490# We only care about the lib/ subfolder anyways, and strip out any other files.
1491http_archive(
1492 name = "com_github_lz4_lz4",
1493 build_file = "//debian:BUILD.lz4.bazel",
1494 sha256 = "0b0e3aa07c8c063ddf40b082bdf7e37a1562bda40a0ff5272957f3e987e0e54b",
1495 strip_prefix = "lz4-1.9.4/lib",
1496 url = "https://github.com/lz4/lz4/archive/refs/tags/v1.9.4.tar.gz",
1497)
1498
James Kuszmaul5c56ed32022-03-30 15:10:07 -07001499http_file(
1500 name = "com_github_foxglove_mcap_mcap",
1501 executable = True,
James Kuszmaul5ab990d2022-11-07 16:35:49 -08001502 sha256 = "ae745dd09cf4c9570c1c038a72630c07b073f0ed4b05983d64108ff748a40d3f",
1503 urls = ["https://github.com/foxglove/mcap/releases/download/releases%2Fmcap-cli%2Fv0.0.22/mcap-linux-amd64"],
James Kuszmaul5c56ed32022-03-30 15:10:07 -07001504)
Brian Silverman0aa13732022-05-19 23:14:08 -07001505
1506http_archive(
James Kuszmaul0de4feb2022-04-15 12:16:59 -07001507 name = "com_github_zaphoyd_websocketpp",
1508 build_file = "//third_party/websocketpp:websocketpp.BUILD",
Ravago Jones0c74c122023-01-08 15:20:19 -08001509 patch_args = ["-p1"],
1510 patches = ["//third_party/websocketpp:websocketpp.patch"],
James Kuszmaul0de4feb2022-04-15 12:16:59 -07001511 sha256 = "6ce889d85ecdc2d8fa07408d6787e7352510750daa66b5ad44aacb47bea76755",
1512 strip_prefix = "websocketpp-0.8.2",
1513 url = "https://github.com/zaphoyd/websocketpp/archive/refs/tags/0.8.2.tar.gz",
1514)
1515
1516http_archive(
1517 name = "com_github_foxglove_ws-protocol",
James Kuszmaul6b609292023-01-28 15:58:43 -08001518 build_file = "//third_party/foxglove/ws_protocol:foxglove_ws_protocol.BUILD",
James Kuszmaul0de4feb2022-04-15 12:16:59 -07001519 patch_args = ["-p1"],
James Kuszmaul6b609292023-01-28 15:58:43 -08001520 patches = ["//third_party/foxglove/ws_protocol:foxglove_ws_protocol.patch"],
James Kuszmaul0de4feb2022-04-15 12:16:59 -07001521 sha256 = "3256f09a67419f6556778c443d332f1a4bf53ba0e7a464179bf838abffa366ab",
1522 strip_prefix = "ws-protocol-releases-typescript-ws-protocol-examples-v0.0.6",
1523 url = "https://github.com/foxglove/ws-protocol/archive/refs/tags/releases/typescript/ws-protocol-examples/v0.0.6.tar.gz",
1524)
1525
1526http_archive(
1527 name = "asio",
1528 build_file_content = """
1529cc_library(
1530 name = "asio",
1531 hdrs = glob(["include/asio/**/*.hpp", "include/asio/**/*.ipp", "include/asio.hpp"]),
1532 visibility = ["//visibility:public"],
1533 defines = ["ASIO_STANDALONE"],
1534 includes = ["include/"],
1535)""",
1536 sha256 = "8976812c24a118600f6fcf071a20606630a69afe4c0abee3b0dea528e682c585",
1537 strip_prefix = "asio-1.24.0",
1538 url = "https://downloads.sourceforge.net/project/asio/asio/1.24.0%2520%2528Stable%2529/asio-1.24.0.tar.bz2",
1539)
James Kuszmaul6b609292023-01-28 15:58:43 -08001540
1541http_archive(
1542 name = "com_github_foxglove_schemas",
1543 build_file = "//third_party/foxglove/schemas:schemas.BUILD",
1544 sha256 = "c0d08365eb8fba0af7773b5f0095fb53fb53f020bde46edaa308af5bb939fc15",
1545 strip_prefix = "schemas-7a3e077b88142ac46bb4e2616f83dc029b45352e/schemas/flatbuffer",
1546 url = "https://github.com/foxglove/schemas/archive/7a3e077b88142ac46bb4e2616f83dc029b45352e.tar.gz",
1547)
James Kuszmaul3398d0b2023-02-11 22:55:22 -08001548
1549# This contains the *compiled* foxglove studio. This can be reproduced by:
1550# 1. Cloning https://github.com/foxglove/studio
James Kuszmaul1e23b652024-02-21 21:10:02 -08001551# 2. Building the code (yarn install; yarn web:build:prod)
1552# 3. tar'ing the web/.webpack folder (e.g., tar czvf foxglove-1456f4a4cb6f4c6c7e50e020ba9918dba9e04b96.tar.gz --directory=web/.webpack/ .)
James Kuszmaul3398d0b2023-02-11 22:55:22 -08001553# These files can be hosted locally to provide an offline foxglove server.
1554# Foxglove may be served on any port and may be nested at a subpath
1555# (e.g., at hostname:8000/foxglove behind a proxy).
1556http_archive(
1557 name = "foxglove_studio",
1558 build_file_content = """
1559filegroup(
1560 name = "foxglove_studio",
1561 srcs = glob(["**"]),
1562 visibility = ["//visibility:public"],
1563)""",
James Kuszmaul1e23b652024-02-21 21:10:02 -08001564 sha256 = "d02f4ca629e6dcf2b65557a0353871ce0025e70715214de4e6ec7e9f862de420",
James Kuszmaul3398d0b2023-02-11 22:55:22 -08001565 url =
James Kuszmaul1e23b652024-02-21 21:10:02 -08001566 "https://software.frc971.org/Build-Dependencies/foxglove-1456f4a4cb6f4c6c7e50e020ba9918dba9e04b96.tar.gz",
James Kuszmaul3398d0b2023-02-11 22:55:22 -08001567)
Ravago Jones9c10b2a2023-02-06 12:41:59 -08001568
1569#
1570# https://www.st.com/en/embedded-software/stsw-img009.html#overview
1571http_archive(
1572 name = "vl53l1x_ultra_lite_driver_api",
1573 build_file = "//third_party/vl53l1x:vl53l1x.BUILD",
1574 patch_args = ["-p1"],
1575 patches = ["//third_party/vl53l1x:vl53l1x.patch"],
1576 sha256 = "06a66254ab7a8b061f93ff0f65abb6088c3ea50335475bb6ac11087beb65d174",
1577 strip_prefix = "en.STSW-IMG009_v3.5.2/API",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001578 url = "https://software.frc971.org/Build-Dependencies/en.STSW-IMG009.zip",
Ravago Jones9c10b2a2023-02-06 12:41:59 -08001579)
Yash Chainani10b7b022023-02-22 14:34:04 -08001580
1581http_archive(
1582 name = "apriltag_test_bfbs_images",
1583 build_file_content = """
1584filegroup(
1585 name = "apriltag_test_bfbs_images",
1586 srcs = glob(["**"]),
1587 visibility = ["//visibility:public"],
1588)""",
1589 sha256 = "2356b9d0b3be59d01e837bfbbee21de55b16232d5e00c66701c20b64ff3272e3",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001590 url = "https://software.frc971.org/Build-Dependencies/2023_arducam_apriltag_test_images.tar.gz",
Yash Chainani10b7b022023-02-22 14:34:04 -08001591)
Filip Kujawaa5e39702023-03-04 17:58:27 -08001592
Austin Schuh1fc51fa2024-01-01 12:34:00 -08001593http_file(
1594 name = "orin_image_apriltag",
1595 downloaded_file_path = "orin_image_apriltag.bfbs",
1596 sha256 = "c86604fd0b1301b301e299b1bba2573af8c586413934a386a2bd28fd9b037b84",
1597 url = "https://software.frc971.org/Build-Dependencies/orin_image_apriltag.bfbs",
1598)
1599
1600http_file(
1601 name = "orin_large_image_apriltag",
1602 downloaded_file_path = "orin_large_gs_apriltag.bfbs",
1603 sha256 = "d933adac0d6c205c574791060be73701ead05977ff5dd9f6f4eadb45817c3ccb",
1604 url = "https://software.frc971.org/Build-Dependencies/orin_large_gs_apriltag.bfbs",
1605)
1606
Maxwell Hendersonc123b7f2024-01-02 00:00:34 -08001607http_file(
1608 name = "orin_capture_24_04",
1609 downloaded_file_path = "orin_capture_24_04.bfbs",
1610 sha256 = "719edb1d1394c13c1b55d02cf35c277e1d4c2111f4eb4220b28addc08634488a",
1611 url = "https://software.frc971.org/Build-Dependencies/orin-capture-24-04-2024.02.14.bfbs",
1612)
1613
1614http_file(
1615 name = "orin_capture_24_04_side",
1616 downloaded_file_path = "orin_capture_24_04_side.bfbs",
1617 sha256 = "4747cc98f8794d6570cb12a3171d7984e358581914a28b43fb6bb8b9bd7a10ac",
1618 url = "https://software.frc971.org/Build-Dependencies/orin-capture-24-04-side-2024.02.17.bfbs",
1619)
1620
Filip Kujawaa5e39702023-03-04 17:58:27 -08001621http_archive(
1622 name = "libedgetpu",
1623 build_file = "//third_party:libedgetpu/libedgetpu.BUILD",
Filip Kujawa8c76e5d2023-04-08 16:20:27 -07001624 sha256 = "c900faf2c9ea9599fda60c3d03ac43d0d7b34119659c9e35638b81cd14354b57",
Filip Kujawaa5e39702023-03-04 17:58:27 -08001625 strip_prefix = "libedgetpu-bazel",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001626 url = "https://software.frc971.org/Build-Dependencies/libedgetpu-ddfa7bde33c23afd8c2892182faa3e5b4e6ad94e.tar.gz",
Filip Kujawaa5e39702023-03-04 17:58:27 -08001627)
1628
1629http_archive(
1630 name = "libtensorflowlite",
1631 build_file = "//third_party:libtensorflowlite/libtensorflowlite.BUILD",
Filip Kujawa8c76e5d2023-04-08 16:20:27 -07001632 sha256 = "a073dfddb3cb25113ba7eac6edb5569d0ae7988cad881d3f665e8ca0b8b85108",
Filip Kujawaa5e39702023-03-04 17:58:27 -08001633 strip_prefix = "tensorflow-bazel",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001634 url = "https://software.frc971.org/Build-Dependencies/tensorflow-a4dfb8d1a71385bd6d122e4f27f86dcebb96712d.tar.gz",
Filip Kujawaa5e39702023-03-04 17:58:27 -08001635)
Philipp Schrader119c3822023-03-07 19:49:58 -08001636
1637http_archive(
1638 name = "julia",
1639 build_file = "//third_party:julia/julia.BUILD",
1640 patch_cmds = [
1641 "echo 'LIB_SYMLINKS = {' > files.bzl",
Austin Schuh1e69d422023-06-25 16:57:01 -07001642 """find lib/ -type l -exec bash -c 'echo "\\"{}\\": \\"$(readlink {})\\","' \\; | sort >> files.bzl""",
Philipp Schrader119c3822023-03-07 19:49:58 -08001643 "echo '}' >> files.bzl",
1644 "echo 'LIBS = [' >> files.bzl",
Austin Schuh1e69d422023-06-25 16:57:01 -07001645 """find lib/ -type f -exec bash -c 'echo "\\"{}\\","' \\; | sort >> files.bzl""",
Philipp Schrader119c3822023-03-07 19:49:58 -08001646 "echo ']' >> files.bzl",
1647 ],
1648 sha256 = "e71a24816e8fe9d5f4807664cbbb42738f5aa9fe05397d35c81d4c5d649b9d05",
1649 strip_prefix = "julia-1.8.5",
1650 url = "https://julialang-s3.julialang.org/bin/linux/x64/1.8/julia-1.8.5-linux-x86_64.tar.gz",
1651)
Austin Schuhae856ca2023-11-18 14:04:00 -08001652
1653http_archive(
1654 name = "com_github_nvidia_cuco",
1655 build_file = "//third_party/cuco:cuco.BUILD",
1656 patch_args = ["-p1"],
1657 patches = [
1658 "//third_party/cuco:template.patch",
1659 ],
1660 sha256 = "eecc9a111956a195f28ebc4b4fd23ac6991d072f5c1d7c68a59d059e05d7ad78",
1661 strip_prefix = "cuCollections-b7514d2010967fdfe4a1d414894bb945bc09fddc",
1662 url = "https://github.com/NVIDIA/cuCollections/archive/b7514d2010967fdfe4a1d414894bb945bc09fddc.zip",
1663)
1664
1665http_archive(
1666 name = "com_github_nvidia_cccl",
1667 build_file = "//third_party/cccl:cccl.BUILD",
1668 sha256 = "38160c628a9e32b7cd55553f299768f72b24074cc9c1a993ba40a177877b3421",
1669 strip_prefix = "cccl-931dc6793482c61edbc97b7a19256874fd264313",
1670 url = "https://github.com/NVIDIA/cccl/archive/931dc6793482c61edbc97b7a19256874fd264313.zip",
1671)
Austin Schuh686be392023-12-18 21:50:01 -08001672
1673# Hedron's Compile Commands Extractor for Bazel
1674# https://github.com/hedronvision/bazel-compile-commands-extractor
1675http_archive(
1676 name = "hedron_compile_commands",
Austin Schuh686be392023-12-18 21:50:01 -08001677
1678 # Replace the commit hash (daae6f40adfa5fdb7c89684cbe4d88b691c63b2d) in both places (below) with the latest (https://github.com/hedronvision/bazel-compile-commands-extractor/commits/main), rather than using the stale one here.
1679 # Even better, set up Renovate and let it do the work for you (see "Suggestion: Updates" in the README).
Ravago Jones3b4fd912023-03-18 13:35:17 -07001680 sha256 = "43451a32bf271e7ba4635a07f7996d535501f066c0fe8feab04fb0c91dd5986e",
1681 strip_prefix = "bazel-compile-commands-extractor-daae6f40adfa5fdb7c89684cbe4d88b691c63b2d",
Austin Schuh686be392023-12-18 21:50:01 -08001682 url = "https://github.com/hedronvision/bazel-compile-commands-extractor/archive/daae6f40adfa5fdb7c89684cbe4d88b691c63b2d.tar.gz",
1683 # When you first run this tool, it'll recommend a sha256 hash to put here with a message like: "DEBUG: Rule 'hedron_compile_commands' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = ..."
1684)
1685
1686load("@hedron_compile_commands//:workspace_setup.bzl", "hedron_compile_commands_setup")
1687
1688hedron_compile_commands_setup()
Jim Ostrowski68c321d2023-11-14 21:36:28 -08001689
1690http_archive(
1691 name = "calibrate_multi_cameras_data",
1692 build_file_content = """
1693filegroup(
1694 name = "calibrate_multi_cameras_data",
1695 srcs = glob(["**"]),
1696 visibility = ["//visibility:public"],
1697)""",
1698 sha256 = "b106b3b975d3cf3ad3fcd5e4be7409f6095e1d531346a90c4ad6bdb7da1d08a5",
1699 url = "https://software.frc971.org/Build-Dependencies/2023_calibrate_multi_cameras_data.tar.gz",
1700)
James Kuszmauld2098cb2024-01-14 17:32:03 -08001701
1702http_archive(
1703 name = "com_github_tartanllama_expected",
1704 build_file_content = """
1705cc_library(
1706 name = "com_github_tartanllama_expected",
1707 srcs = ["include/tl/expected.hpp"],
1708 includes = ["include"],
1709 visibility = ["//visibility:public"],
1710)""",
1711 sha256 = "1db357f46dd2b24447156aaf970c4c40a793ef12a8a9c2ad9e096d9801368df6",
1712 strip_prefix = "expected-1.1.0",
1713 url = "https://github.com/TartanLlama/expected/archive/refs/tags/v1.1.0.tar.gz",
1714)