blob: 0ab6bd5bcb5fedc25f9f46580cb976351d09fa54 [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",
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 Schrader175a93c2023-02-19 13:13:40 -080039load("@aspect_bazel_lib//lib:repositories.bzl", "aspect_bazel_lib_dependencies", "register_jq_toolchains")
Philipp Schrader55dd6b42023-02-22 20:44:23 -080040
41aspect_bazel_lib_dependencies()
42
Philipp Schrader175a93c2023-02-19 13:13:40 -080043register_jq_toolchains()
44
Philipp Schrader55dd6b42023-02-22 20:44:23 -080045http_archive(
Philipp Schrader9670a2a2023-01-11 01:20:16 -080046 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
57load("@rules_python//python:repositories.bzl", "python_register_toolchains")
58
59python_register_toolchains(
60 name = "python3_9",
61 python_version = "3.9",
62 register_toolchains = False,
63)
64
James Kuszmaul9776b392023-01-14 14:08:08 -080065load(
66 "@python3_9//:defs.bzl",
67 python_interpreter = "interpreter",
68)
Philipp Schrader9670a2a2023-01-11 01:20:16 -080069load("@rules_python//python:pip.bzl", "pip_parse")
James Kuszmaul9776b392023-01-14 14:08:08 -080070load(
71 "//tools/python:package_annotations.bzl",
72 PYTHON_ANNOTATIONS = "ANNOTATIONS",
73)
Philipp Schrader9670a2a2023-01-11 01:20:16 -080074
75pip_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 Kuszmaul9776b392023-01-14 14:08:08 -080087load(
88 "@pip_deps//:requirements.bzl",
89 install_pip_deps = "install_deps",
90)
Philipp Schrader9670a2a2023-01-11 01:20:16 -080091
92install_pip_deps()
93
94load("//tools/python:repo_defs.bzl", "pip_configure")
95
96pip_configure(
97 name = "pip",
98)
99
100http_archive(
101 name = "rules_pkg",
Philipp Schrader973fd3f2023-03-07 21:21:36 -0800102 sha256 = "8c20f74bca25d2d442b327ae26768c02cf3c99e93fad0381f32be9aab1967675",
Philipp Schrader9670a2a2023-01-11 01:20:16 -0800103 urls = [
Philipp Schrader973fd3f2023-03-07 21:21:36 -0800104 "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 Schrader9670a2a2023-01-11 01:20:16 -0800106 ],
107)
108
109load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
110
111rules_pkg_dependencies()
112
Brian Silverman7bda6212018-08-05 11:42:11 -0700113load(
Philipp Schraderd0e33a42022-01-22 21:55:15 -0800114 "//debian:apache2.bzl",
115 apache2_debs = "files",
116)
117load(
Philipp Schrader41011a12022-03-13 12:49:32 -0700118 "//debian:postgresql_amd64.bzl",
119 postgresql_amd64_debs = "files",
120)
121load(
Brian Silverman7bda6212018-08-05 11:42:11 -0700122 "//debian:patch.bzl",
123 patch_debs = "files",
124)
Brian Silverman7297c0c2018-08-05 13:43:00 -0700125load(
Austin Schuh71f6fa72019-08-31 18:23:02 -0700126 "//debian:rsync.bzl",
127 rsync_debs = "files",
128)
129load(
130 "//debian:ssh.bzl",
131 ssh_debs = "files",
132)
133load(
Brian Silverman7297c0c2018-08-05 13:43:00 -0700134 "//debian:pandoc.bzl",
135 pandoc_debs = "files",
136)
Brian Silverman4f6ba442018-08-05 14:34:58 -0700137load(
138 "//debian:libusb.bzl",
139 libusb_debs = "files",
140)
Brian Silvermanb80dc9f2018-08-05 14:59:24 -0700141load(
142 "//debian:mingw_compiler.bzl",
143 mingw_compiler_debs = "files",
144)
Brian Silverman6470f442018-08-05 12:08:16 -0700145load(
146 "//debian:patchelf.bzl",
147 patchelf_debs = "files",
148)
149load(
Brian Silverman50b9ac02018-08-12 13:24:10 -0700150 "//debian:arm_frc_gnueabi_deps.bzl",
151 arm_frc_gnueabi_deps_debs = "files",
152)
Brian Silvermanb0ebf1d2018-10-17 23:36:40 -0700153load(
Philipp Schraderfd5489f2022-09-17 17:31:09 -0700154 "//debian:gtk_runtime.bzl",
155 gtk_runtime_debs = "files",
156)
157load(
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800158 "//debian:opencv_arm64.bzl",
159 opencv_arm64_debs = "files",
160)
161load(
Brian Silvermand4260c72020-01-14 00:08:02 -0800162 "//debian:opencv_armhf.bzl",
163 opencv_armhf_debs = "files",
164)
Brian Silvermand97a47c2020-01-16 00:47:53 -0800165load(
166 "//debian:opencv_amd64.bzl",
167 opencv_amd64_debs = "files",
168)
Tyler Chatow60671d32020-02-26 19:49:30 -0800169load(
170 "//debian:gstreamer_amd64.bzl",
James Kuszmaulc91e4402020-05-10 18:47:20 -0700171 gstreamer_amd64_debs = "files",
Tyler Chatow60671d32020-02-26 19:49:30 -0800172)
173load(
174 "//debian:gstreamer_armhf.bzl",
James Kuszmaulc91e4402020-05-10 18:47:20 -0700175 gstreamer_armhf_debs = "files",
Tyler Chatow60671d32020-02-26 19:49:30 -0800176)
Austin Schuh023e7f52020-08-18 21:24:37 -0700177load(
Tyler Chatow6eda82c2022-03-27 22:37:38 -0700178 "//debian:gstreamer_arm64.bzl",
179 gstreamer_arm64_debs = "files",
180)
181load(
Austin Schuh023e7f52020-08-18 21:24:37 -0700182 "//debian:m4.bzl",
183 m4_debs = "files",
184)
Brian Silvermanf59fe3f2020-09-22 21:04:09 -0700185load(
186 "//debian:lzma_amd64.bzl",
187 lzma_amd64_debs = "files",
188)
189load(
190 "//debian:lzma_arm64.bzl",
191 lzma_arm64_debs = "files",
192)
Tyler Chatow8a51ac62022-03-15 13:23:12 -0700193load(
194 "//debian:libtinfo5_amd64.bzl",
195 libtinfo5_amd64_debs = "files",
196)
Tyler Chatowec100e22022-03-22 16:23:04 -0700197load(
198 "//debian:libtinfo5_arm64.bzl",
199 libtinfo5_arm64_debs = "files",
200)
Philipp Schraderf60e7d72023-02-19 17:07:22 -0800201load(
202 "//debian:xvfb_amd64.bzl",
203 xvfb_amd64_debs = "files",
204)
Philipp Schrader0e19c602018-03-07 21:07:22 -0800205load("//debian:packages.bzl", "generate_repositories_for_debs")
206
Austin Schuh71f6fa72019-08-31 18:23:02 -0700207generate_repositories_for_debs(rsync_debs)
208
209generate_repositories_for_debs(ssh_debs)
210
Philipp Schraderd0e33a42022-01-22 21:55:15 -0800211generate_repositories_for_debs(apache2_debs)
212
Philipp Schrader41011a12022-03-13 12:49:32 -0700213generate_repositories_for_debs(postgresql_amd64_debs)
214
Brian Silverman7bda6212018-08-05 11:42:11 -0700215generate_repositories_for_debs(patch_debs)
216
Brian Silverman7297c0c2018-08-05 13:43:00 -0700217generate_repositories_for_debs(pandoc_debs)
218
Brian Silverman4f6ba442018-08-05 14:34:58 -0700219generate_repositories_for_debs(libusb_debs)
220
Brian Silvermanb80dc9f2018-08-05 14:59:24 -0700221generate_repositories_for_debs(mingw_compiler_debs)
222
Brian Silverman6470f442018-08-05 12:08:16 -0700223generate_repositories_for_debs(patchelf_debs)
224
Brian Silverman50b9ac02018-08-12 13:24:10 -0700225generate_repositories_for_debs(arm_frc_gnueabi_deps_debs)
226
Philipp Schraderfd5489f2022-09-17 17:31:09 -0700227generate_repositories_for_debs(gtk_runtime_debs)
228
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800229generate_repositories_for_debs(opencv_arm64_debs)
230
Brian Silvermand4260c72020-01-14 00:08:02 -0800231generate_repositories_for_debs(opencv_armhf_debs)
232
Brian Silvermand97a47c2020-01-16 00:47:53 -0800233generate_repositories_for_debs(opencv_amd64_debs)
234
Tyler Chatow6eda82c2022-03-27 22:37:38 -0700235generate_repositories_for_debs(
236 gstreamer_amd64_debs,
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700237 base_url = "https://software.frc971.org/Build-Dependencies/gstreamer_bullseye_amd64_deps",
Tyler Chatow6eda82c2022-03-27 22:37:38 -0700238)
Tyler Chatow60671d32020-02-26 19:49:30 -0800239
240generate_repositories_for_debs(gstreamer_armhf_debs)
241
Tyler Chatow6eda82c2022-03-27 22:37:38 -0700242generate_repositories_for_debs(
243 gstreamer_arm64_debs,
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700244 base_url = "https://software.frc971.org/Build-Dependencies/gstreamer_bullseye_arm64_deps",
Tyler Chatow6eda82c2022-03-27 22:37:38 -0700245)
246
Austin Schuh023e7f52020-08-18 21:24:37 -0700247generate_repositories_for_debs(m4_debs)
248
Brian Silvermanf59fe3f2020-09-22 21:04:09 -0700249generate_repositories_for_debs(lzma_amd64_debs)
250
251generate_repositories_for_debs(lzma_arm64_debs)
252
Tyler Chatow8a51ac62022-03-15 13:23:12 -0700253generate_repositories_for_debs(libtinfo5_amd64_debs)
254
Tyler Chatowec100e22022-03-22 16:23:04 -0700255generate_repositories_for_debs(libtinfo5_arm64_debs)
256
Philipp Schraderf60e7d72023-02-19 17:07:22 -0800257generate_repositories_for_debs(xvfb_amd64_debs)
258
Brian Silvermanc0309a02022-01-01 23:57:03 -0800259local_repository(
260 name = "com_grail_bazel_toolchain",
261 path = "third_party/bazel-toolchain",
262)
263
Brian Silverman4c7235a2021-11-17 19:04:37 -0800264load("@com_grail_bazel_toolchain//toolchain:rules.bzl", "llvm", "llvm_toolchain")
265
266llvm_version = "13.0.0"
267
268llvm(
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
274llvm(
275 name = "llvm_armv7",
276 distribution = "clang+llvm-%s-armv7a-linux-gnueabihf.tar.xz" % llvm_version,
277 llvm_version = llvm_version,
278)
279
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800280llvm(
281 name = "llvm_aarch64",
282 distribution = "clang+llvm-%s-aarch64-linux-gnu.tar.xz" % llvm_version,
283 llvm_version = llvm_version,
284)
285
Brian Silverman4c7235a2021-11-17 19:04:37 -0800286llvm_conlyopts = [
287 "-std=gnu99",
288]
289
290llvm_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 Silverman4c7235a2021-11-17 19:04:37 -0800308]
309
310llvm_cxxopts = [
311 "-std=gnu++17",
312]
313
Brian Silverman1e7c8972022-02-03 23:15:41 -0800314llvm_opt_copts = [
315 "-DAOS_DEBUG=0",
316]
317
318llvm_fastbuild_copts = [
319 "-DAOS_DEBUG=0",
320]
321
Brian Silverman4c7235a2021-11-17 19:04:37 -0800322llvm_dbg_copts = [
323 "-DAOS_DEBUG=1",
324]
Brian Silvermanc0309a02022-01-01 23:57:03 -0800325
326llvm_toolchain(
327 name = "llvm_toolchain",
Brian Silverman4c7235a2021-11-17 19:04:37 -0800328 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 Schraderf1bbf342022-02-05 14:30:15 -0800336 "linux-aarch64": llvm_conlyopts,
Brian Silverman4c7235a2021-11-17 19:04:37 -0800337 },
338 copts = {
339 "linux-x86_64": llvm_copts,
340 "linux-armv7": llvm_copts,
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800341 "linux-aarch64": llvm_copts,
Brian Silverman4c7235a2021-11-17 19:04:37 -0800342 },
343 cxxopts = {
344 "linux-x86_64": llvm_cxxopts,
345 "linux-armv7": llvm_cxxopts,
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800346 "linux-aarch64": llvm_cxxopts,
Brian Silverman4c7235a2021-11-17 19:04:37 -0800347 },
348 dbg_copts = {
349 "linux-x86_64": llvm_dbg_copts,
Brian Silverman1e7c8972022-02-03 23:15:41 -0800350 "linux-armv7": llvm_dbg_copts,
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800351 "linux-aarch64": llvm_dbg_copts,
Brian Silverman1e7c8972022-02-03 23:15:41 -0800352 },
353 fastbuild_copts = {
354 "linux-x86_64": llvm_fastbuild_copts,
355 "linux-armv7": llvm_fastbuild_copts,
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800356 "linux-aarch64": llvm_fastbuild_copts,
Brian Silverman4c7235a2021-11-17 19:04:37 -0800357 },
358 llvm_version = llvm_version,
Brian Silverman1e7c8972022-02-03 23:15:41 -0800359 opt_copts = {
360 "linux-x86_64": llvm_opt_copts,
361 "linux-armv7": llvm_opt_copts,
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800362 "linux-aarch64": llvm_opt_copts,
Brian Silverman1e7c8972022-02-03 23:15:41 -0800363 },
Brian Silverman4c7235a2021-11-17 19:04:37 -0800364 standard_libraries = {
365 "linux-x86_64": "libstdc++-10",
366 "linux-armv7": "libstdc++-10",
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800367 "linux-aarch64": "libstdc++-10",
Brian Silverman4c7235a2021-11-17 19:04:37 -0800368 },
369 static_libstdcxx = False,
Brian Silvermanc0309a02022-01-01 23:57:03 -0800370 sysroot = {
371 "linux-x86_64": "@amd64_debian_sysroot//:sysroot_files",
Brian Silverman4c7235a2021-11-17 19:04:37 -0800372 "linux-armv7": "@armhf_debian_rootfs//:sysroot_files",
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800373 "linux-aarch64": "@arm64_debian_rootfs//:sysroot_files",
Brian Silverman4c7235a2021-11-17 19:04:37 -0800374 },
375 target_toolchain_roots = {
376 "linux-x86_64": "@llvm_k8//",
377 "linux-armv7": "@llvm_armv7//",
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800378 "linux-aarch64": "@llvm_aarch64//",
Brian Silverman4c7235a2021-11-17 19:04:37 -0800379 },
380 toolchain_roots = {
381 "linux-x86_64": "@llvm_k8//",
Tyler Chatow486ad3e2022-03-23 13:32:03 -0700382 "linux-aarch64": "@llvm_aarch64//",
Brian Silvermanc0309a02022-01-01 23:57:03 -0800383 },
384)
385
Brian Silverman4c7235a2021-11-17 19:04:37 -0800386load("@llvm_toolchain//:toolchains.bzl", "llvm_register_toolchains")
387
388llvm_register_toolchains()
389
Philipp Schraderdada1072020-11-24 11:34:46 -0800390register_toolchains(
Philipp Schraderdada1072020-11-24 11:34:46 -0800391 "//tools/cpp:cc-toolchain-roborio",
392 "//tools/cpp:cc-toolchain-cortex-m4f",
Austin Schuh0a96ea32022-01-01 22:29:30 -0800393 "//tools/cpp:cc-toolchain-rp2040",
Philipp Schraderdada1072020-11-24 11:34:46 -0800394 # Find a good way to select between these two M4F toolchains.
395 #"//tools/cpp:cc-toolchain-cortex-m4f-k22",
Philipp Schraderf198a152021-12-05 09:18:23 -0800396 "//tools/python:python_toolchain",
Philipp Schrader73e56602021-12-06 21:37:30 -0800397 "//tools/go:noop_go_toolchain",
Brian Silverman847121b2022-03-09 15:48:08 -0800398 "//tools/rust:rust-toolchain-x86",
399 "//tools/rust:rust-toolchain-armv7",
400 "//tools/rust:rust-toolchain-arm64",
Brian Silvermana8ad1af2022-07-23 16:05:12 -0700401 # TODO(Brian): Make this work. See the comment on
402 # //tools/platforms:linux_roborio for details.
403 #"//tools/rust:rust-toolchain-roborio",
Ravago Jones16809802021-11-18 20:40:03 -0800404 "//tools/rust:noop_rust_toolchain",
Philipp Schrader54047962022-02-16 21:05:11 -0800405 "//tools/ts:noop_node_toolchain",
Philipp Schraderdada1072020-11-24 11:34:46 -0800406)
407
Austin Schuhf093fa52019-06-23 20:47:23 -0700408http_archive(
Austin Schuh7466fe12020-12-29 23:01:47 -0800409 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",
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700415 url = "https://software.frc971.org/Build-Dependencies/nlopt-496be736b8b249273838b891f4c8ca3669551127.zip",
Austin Schuh7466fe12020-12-29 23:01:47 -0800416)
417
James Kuszmaul203bfc22023-01-13 22:37:06 -0800418http_archive(
Austin Schuhd57edc42019-09-21 17:52:38 -0700419 name = "com_google_absl",
James Kuszmaul203bfc22023-01-13 22:37:06 -0800420 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 Schuh36244a12019-09-21 17:52:38 -0700425)
426
Alex Perrycb7da4b2019-08-28 19:35:56 -0700427local_repository(
428 name = "org_tuxfamily_eigen",
429 path = "third_party/eigen",
430)
431
James Kuszmaulbc02ff42021-01-15 20:41:30 -0800432local_repository(
433 name = "com_github_rawrtc_re",
434 path = "third_party/rawrtc/re",
435)
436
437local_repository(
438 name = "com_github_rawrtc_rew",
439 path = "third_party/rawrtc/rew",
440)
441
442local_repository(
443 name = "com_github_rawrtc_usrsctp",
444 path = "third_party/rawrtc/usrsctp",
445)
446
447local_repository(
448 name = "com_github_rawrtc_rawrtc_common",
449 path = "third_party/rawrtc/rawrtc-common",
450)
451
452local_repository(
453 name = "com_github_rawrtc_rawrtc_data_channel",
454 path = "third_party/rawrtc/rawrtc-data-channel",
455)
456
457local_repository(
458 name = "com_github_rawrtc_rawrtc",
459 path = "third_party/rawrtc/rawrtc",
460)
461
Austin Schuh0ca51f32020-12-25 21:51:45 -0800462http_archive(
463 name = "boringssl",
464 patch_args = ["-p1"],
465 patches = ["//debian:boringssl.patch"],
466 sha256 = "bcab08a22c28f5322316542aa2c3a9ef0a9f9fde9be22d489cee574867b24675",
467 strip_prefix = "boringssl-613fe9dbe74b58d6aaaf0d22fe57dccd964c7413",
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700468 urls = ["https://software.frc971.org/Build-Dependencies/boringssl-613fe9dbe74b58d6aaaf0d22fe57dccd964c7413.zip"],
Austin Schuh0ca51f32020-12-25 21:51:45 -0800469)
470
Austin Schuh36244a12019-09-21 17:52:38 -0700471# C++ rules for Bazel.
472http_archive(
473 name = "rules_cc",
Austin Schuh968174a2021-03-31 20:04:01 -0700474 sha256 = "ed36cc7a6f46b7c28ab4009db4a37e350e1ba367446b0886bcc9cdc1df92752e",
475 strip_prefix = "rules_cc-608c7b605fb844a20e96a3eddc9b49ad2542adab",
Austin Schuh36244a12019-09-21 17:52:38 -0700476 urls = [
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700477 "https://software.frc971.org/Build-Dependencies/rules_cc-608c7b605fb844a20e96a3eddc9b49ad2542adab.zip",
Austin Schuh36244a12019-09-21 17:52:38 -0700478 ],
479)
Austin Schuhd57edc42019-09-21 17:52:38 -0700480
Austin Schuh4759ffc2015-10-07 20:39:56 -0700481new_local_repository(
Brian Silverman7bda6212018-08-05 11:42:11 -0700482 name = "usr_repo",
Austin Schuhf093fa52019-06-23 20:47:23 -0700483 build_file = "@//debian:usr.BUILD",
Brian Silverman7bda6212018-08-05 11:42:11 -0700484 path = "/usr",
Austin Schuh4759ffc2015-10-07 20:39:56 -0700485)
486
Austin Schuh1f9aeb42015-11-12 23:34:49 -0800487new_git_repository(
Brian Silverman7bda6212018-08-05 11:42:11 -0700488 name = "slycot_repo",
Tyler Chatow2584bb12018-10-27 20:48:35 -0700489 build_file = "@//debian:slycot.BUILD",
Brian Silverman7bda6212018-08-05 11:42:11 -0700490 commit = "5af5f283cb23cbe23c4dfea4d5e56071bdbd6e70",
491 remote = "https://github.com/avventi/Slycot.git",
Austin Schuh1f9aeb42015-11-12 23:34:49 -0800492)
493
James Kuszmaul9776b392023-01-14 14:08:08 -0800494# TODO(Ravago, Max, Alex): https://github.com/wpilibsuite/opensdk
Austin Schuhf093fa52019-06-23 20:47:23 -0700495http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -0700496 name = "arm_frc_linux_gnueabi_repo",
Austin Schuhf093fa52019-06-23 20:47:23 -0700497 build_file = "@//tools/cpp/arm-frc-linux-gnueabi:arm-frc-linux-gnueabi.BUILD",
Austin Schuhe991fe22020-11-18 16:53:39 -0800498 patches = ["//debian:fts.patch"],
James Kuszmaul9776b392023-01-14 14:08:08 -0800499 sha256 = "f53c6b86c25b4827d50365efe760a08edfea39c027dd08674ae696c9093d6a37",
500 strip_prefix = "roborio-academic",
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700501 url = "https://software.frc971.org/Build-Dependencies/cortexa9_vfpv3-roborio-academic-2023-x86_64-linux-gnu-Toolchain-12.1.0.tgz",
Austin Schuh55139fe2015-10-14 23:55:24 -0700502)
Austin Schuhe456f152015-11-27 13:44:39 -0800503
Brian Silverman4c7235a2021-11-17 19:04:37 -0800504# 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 Silvermanbf4c1312020-01-12 11:35:45 -0800506# usr/share/ca-certificates
Brian Silverman4c7235a2021-11-17 19:04:37 -0800507# lib/systemd/system/system-systemd\\x2dcryptsetup.slice
Brian Silvermanbf4c1312020-01-12 11:35:45 -0800508http_archive(
509 name = "armhf_debian_rootfs",
Brian Silverman60606c92020-01-15 22:45:04 -0800510 build_file = "@//:compilers/debian_rootfs.BUILD",
Brian Silverman4c7235a2021-11-17 19:04:37 -0800511 sha256 = "734f26a0cfc943cc3cae88412536186adfc4ed148cc167e6ffb298497c686280",
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700512 url = "https://software.frc971.org/Build-Dependencies/2021-10-30-raspios-bullseye-armhf-lite_rootfs.tar.bz2",
Brian Silvermanbf4c1312020-01-12 11:35:45 -0800513)
514
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800515# 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
519http_archive(
520 name = "arm64_debian_rootfs",
521 build_file = "@//:compilers/debian_rootfs.BUILD",
522 sha256 = "7e6ad432fec0a36f8b66c3fc2ab8795ea446e61f7dce7a206b55602677cf0904",
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700523 url = "https://software.frc971.org/Build-Dependencies/2021-10-30-raspios-bullseye-arm64-lite_rootfs.tar.bz2",
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800524)
525
Brian Silverman60606c92020-01-15 22:45:04 -0800526# Created with:
527# `debootstrap buster buster_sysroot`
528# and then chrooting in and running:
529# apt install libc6-dev libstdc++-7-dev
Brian Silverman4c7235a2021-11-17 19:04:37 -0800530# removing the apt cache,
Brian Silverman60606c92020-01-15 22:45:04 -0800531# and then tarring up the result
532http_archive(
533 name = "amd64_debian_sysroot",
534 build_file = "@//:compilers/debian_rootfs.BUILD",
Brian Silverman4c7235a2021-11-17 19:04:37 -0800535 sha256 = "5e10f4cac85a98a39da1716b218bc05fff4666c61cc471a7df27876710bc86d2",
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700536 url = "https://software.frc971.org/Build-Dependencies/2022-01-06-debian-bullseye_rootfs.tar.bz2",
Brian Silverman60606c92020-01-15 22:45:04 -0800537)
538
Brian Silverman16a923c2018-10-31 19:40:51 -0700539local_repository(
540 name = "com_github_gflags_gflags",
541 path = "third_party/gflags",
542)
543
Brian Silverman82a12b92019-01-19 21:52:10 -0800544# Generated with:
Austin Schuh9950f682021-11-06 15:27:58 -0700545# git fetch https://github.com/wpilibsuite/ni-libraries main
Austin Schuhd3c72912022-02-22 18:05:32 -0800546# git archive --output=allwpilib_ni-libraries_776db4e8aed31a651fa2f590e7468c69b384b42a.tar.gz --format=tar.gz 776db4e8aed31a651fa2f590e7468c69b384b42a
Austin Schuhf093fa52019-06-23 20:47:23 -0700547http_archive(
James Kuszmaulc9c46b32019-12-08 21:10:00 -0800548 name = "allwpilib_ni_libraries",
549 build_file = "@//debian:ni-libraries.BUILD",
James Kuszmaul9776b392023-01-14 14:08:08 -0800550 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 Silverman82a12b92019-01-19 21:52:10 -0800553)
554
Brian Silverman3fca9d72016-02-20 02:32:51 -0500555# For protobuf. Don't use these.
556bind(
Brian Silverman7bda6212018-08-05 11:42:11 -0700557 name = "six",
Philipp Schrader01535ee2023-01-08 13:19:03 -0800558 actual = "@pip//six",
Brian Silverman3fca9d72016-02-20 02:32:51 -0500559)
Brian Silverman7bda6212018-08-05 11:42:11 -0700560
Brian Silverman3fca9d72016-02-20 02:32:51 -0500561bind(
Brian Silverman7bda6212018-08-05 11:42:11 -0700562 name = "gtest",
James Kuszmaul3aabc1c2023-01-13 21:33:43 -0800563 actual = "@com_google_googletest//:gtest",
Brian Silverman3fca9d72016-02-20 02:32:51 -0500564)
Brian Silverman7bda6212018-08-05 11:42:11 -0700565
Brian Silverman3fca9d72016-02-20 02:32:51 -0500566bind(
Brian Silverman7bda6212018-08-05 11:42:11 -0700567 name = "gtest_main",
James Kuszmaul3aabc1c2023-01-13 21:33:43 -0800568 actual = "@com_google_googletest//:gtest_main",
Brian Silverman3fca9d72016-02-20 02:32:51 -0500569)
570
James Kuszmaul59a308f2023-01-28 19:14:07 -0800571http_archive(
572 name = "april_tag_test_image",
573 build_file_content = """
574filegroup(
575 name = "april_tag_test_image",
576 srcs = ["test.bfbs", "expected.jpeg", "expected.png"],
577 visibility = ["//visibility:public"],
578)""",
579 sha256 = "5312c79b19e9883b3cebd9d65b4438a2bf05b41da0bcd8c35e19d22c3b2e1859",
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700580 urls = ["https://software.frc971.org/Build-Dependencies/test_image_frc971.vision.CameraImage_2023.01.28.tar.gz"],
James Kuszmaul59a308f2023-01-28 19:14:07 -0800581)
582
Filip Kujawa8c76e5d2023-04-08 16:20:27 -0700583http_file(
584 name = "game_pieces_edgetpu_model",
585 downloaded_file_path = "edgetpu_model.tflite",
Filip Kujawaec433e12023-04-09 19:58:59 -0700586 sha256 = "3d37f34805d017153064076519aaf4b532658a3b8f2518bce8787f27a5c3064c",
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700587 urls = ["https://software.frc971.org/Build-Dependencies/models/2023/model_edgetpu_2023.04.09_3.tflite"],
Filip Kujawa8c76e5d2023-04-08 16:20:27 -0700588)
589
Brian Silverman4aa83042018-01-05 12:47:31 -0800590# Recompressed from libusb-1.0.21.7z.
591http_file(
Brian Silverman7bda6212018-08-05 11:42:11 -0700592 name = "libusb_1_0_windows",
Austin Schuh4ac96a82019-08-14 20:24:23 -0700593 downloaded_file_path = "libusb-1.0.21-windows.tar.xz",
Brian Silverman7bda6212018-08-05 11:42:11 -0700594 sha256 = "fc2ba03992f343aabbaf9eb90559c6e00cdc6a2bd914d7cebea85857d5244015",
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700595 urls = ["https://software.frc971.org/Build-Dependencies/libusb-1.0.21-windows.tar.xz"],
Brian Silverman4aa83042018-01-05 12:47:31 -0800596)
Brian Silvermand3ad1652018-02-18 22:16:29 -0500597
598# The data tarball of the same-named Debian package.
Austin Schuhf093fa52019-06-23 20:47:23 -0700599http_archive(
Brian Silvermand3ad1652018-02-18 22:16:29 -0500600 name = "f2c",
Austin Schuhf093fa52019-06-23 20:47:23 -0700601 build_file = "@//debian:f2c.BUILD",
Brian Silvermand3ad1652018-02-18 22:16:29 -0500602 sha256 = "2c677437f8217a2e2b23e41b33995d0571644fc1bea46de858f8913a5053e3f4",
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700603 url = "https://software.frc971.org/Build-Dependencies/f2c_20100827-1_amd64.xz.tar.xz",
Brian Silvermand3ad1652018-02-18 22:16:29 -0500604)
605
606# Downloaded from http://www.netlib.org/clapack/.
Austin Schuhf093fa52019-06-23 20:47:23 -0700607http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -0700608 name = "clapack",
Austin Schuhf093fa52019-06-23 20:47:23 -0700609 build_file = "@//debian:clapack.BUILD",
Brian Silverman7bda6212018-08-05 11:42:11 -0700610 sha256 = "6dc4c382164beec8aaed8fd2acc36ad24232c406eda6db462bd4c41d5e455fac",
611 strip_prefix = "CLAPACK-3.2.1/",
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700612 url = "https://software.frc971.org/Build-Dependencies/clapack-3.2.1.tgz",
Brian Silverman7bda6212018-08-05 11:42:11 -0700613)
614
Austin Schuhf093fa52019-06-23 20:47:23 -0700615http_archive(
Philipp Schrader41011a12022-03-13 12:49:32 -0700616 name = "postgresql_amd64",
617 build_file = "@//debian:postgresql_amd64.BUILD",
Austin Schuhb7775c02023-06-02 18:12:02 -0700618 sha256 = "483e199d0e7feae7cca0df132c649b5c20ddcc1a17760e656c25709f44f57a65",
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700619 url = "https://software.frc971.org/Build-Dependencies/postgresql_amd64_v2.tar.gz",
Philipp Schrader41011a12022-03-13 12:49:32 -0700620)
621
622http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -0700623 name = "patch",
Austin Schuhf093fa52019-06-23 20:47:23 -0700624 build_file = "@//debian:patch.BUILD",
Brian Silverman7bda6212018-08-05 11:42:11 -0700625 sha256 = "b5ce139648a2e04f5585948ddad2fdae24dd4ee7976ac5a22d6ae7bd5674631e",
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700626 url = "https://software.frc971.org/Build-Dependencies/patch.tar.gz",
Brian Silvermand3ad1652018-02-18 22:16:29 -0500627)
Brian Silverman7297c0c2018-08-05 13:43:00 -0700628
Austin Schuhf093fa52019-06-23 20:47:23 -0700629http_archive(
Austin Schuh71f6fa72019-08-31 18:23:02 -0700630 name = "rsync",
631 build_file = "@//debian:rsync.BUILD",
632 sha256 = "53be65a9214aaa6d1b9176f135184fb4a78ccefd58f95ce0da37e6a392dfeb60",
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700633 url = "https://software.frc971.org/Build-Dependencies/rsync.tar.gz",
Austin Schuh71f6fa72019-08-31 18:23:02 -0700634)
635
Brian Silvermanbd7860e2020-01-05 17:52:40 -0800636# //debian:ssh
Austin Schuh71f6fa72019-08-31 18:23:02 -0700637http_archive(
638 name = "ssh",
639 build_file = "@//debian:ssh.BUILD",
Brian Silvermanbd7860e2020-01-05 17:52:40 -0800640 sha256 = "470fdc1252a2133a9d3c3da778e892a5b88f04f402cb04d8eb1cff7853242034",
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700641 url = "https://software.frc971.org/Build-Dependencies/ssh_v3.tar.gz",
Austin Schuh71f6fa72019-08-31 18:23:02 -0700642)
643
644http_archive(
Philipp Schraderd0e33a42022-01-22 21:55:15 -0800645 name = "apache2",
646 build_file = "@//debian:apache2.BUILD",
647 sha256 = "98b0ad6d911751ba0aa486429e6278f995e7bbabd928c7d3d44c888fa2bf371b",
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700648 url = "https://software.frc971.org/Build-Dependencies/apache2.tar.gz",
Philipp Schraderd0e33a42022-01-22 21:55:15 -0800649)
650
651http_archive(
Brian Silverman7297c0c2018-08-05 13:43:00 -0700652 name = "pandoc",
Austin Schuhf093fa52019-06-23 20:47:23 -0700653 build_file = "@//debian:pandoc.BUILD",
Brian Silverman7297c0c2018-08-05 13:43:00 -0700654 sha256 = "9f7a7adb3974a1f14715054c349ff3edc2909e920dbe3438fca437a83845f3c4",
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700655 url = "https://software.frc971.org/Build-Dependencies/pandoc.tar.gz",
Brian Silverman7297c0c2018-08-05 13:43:00 -0700656)
Brian Silverman4f6ba442018-08-05 14:34:58 -0700657
Austin Schuhf093fa52019-06-23 20:47:23 -0700658http_archive(
Brian Silverman4f6ba442018-08-05 14:34:58 -0700659 name = "libusb",
Austin Schuhf093fa52019-06-23 20:47:23 -0700660 build_file = "@//debian:libusb.BUILD",
Brian Silverman4f6ba442018-08-05 14:34:58 -0700661 sha256 = "3ca5cc2d317226f6646866ff9e8c443db3b0f6c82f828e800240982727531590",
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700662 url = "https://software.frc971.org/Build-Dependencies/libusb.tar.gz",
Brian Silverman4f6ba442018-08-05 14:34:58 -0700663)
Brian Silvermanb80dc9f2018-08-05 14:59:24 -0700664
Austin Schuhf093fa52019-06-23 20:47:23 -0700665http_archive(
Brian Silvermanb80dc9f2018-08-05 14:59:24 -0700666 name = "mingw_compiler",
Austin Schuhf093fa52019-06-23 20:47:23 -0700667 build_file = "@//debian:mingw_compiler.BUILD",
Brian Silvermanb80dc9f2018-08-05 14:59:24 -0700668 sha256 = "45e86a8460f2151a4f0306e7ae7b06761029d2412ee16f63d1e8d2d29354e378",
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700669 url = "https://software.frc971.org/Build-Dependencies/mingw_compiler.tar.gz",
Brian Silvermanb80dc9f2018-08-05 14:59:24 -0700670)
Brian Silverman6470f442018-08-05 12:08:16 -0700671
Austin Schuhf093fa52019-06-23 20:47:23 -0700672http_archive(
Brian Silverman6470f442018-08-05 12:08:16 -0700673 name = "patchelf",
Austin Schuhf093fa52019-06-23 20:47:23 -0700674 build_file = "@//debian:patchelf.BUILD",
Brian Silverman6470f442018-08-05 12:08:16 -0700675 sha256 = "bf8b709909d7d9e30815dd228eeded7dc282e3ce3919d0589ccbb56ac8632abc",
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700676 url = "https://software.frc971.org/Build-Dependencies/patchelf.tar.gz",
Brian Silverman6470f442018-08-05 12:08:16 -0700677)
Brian Silverman50b9ac02018-08-12 13:24:10 -0700678
Austin Schuhf093fa52019-06-23 20:47:23 -0700679http_archive(
Brian Silverman50b9ac02018-08-12 13:24:10 -0700680 name = "arm_frc_gnueabi_deps",
Austin Schuhf093fa52019-06-23 20:47:23 -0700681 build_file = "@//debian:arm_frc_gnueabi_deps.BUILD",
Brian Silverman50b9ac02018-08-12 13:24:10 -0700682 sha256 = "4b26fe45010817dc136488ee1604ade21bd7c264c29f17d864fc6eba9d7442c4",
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700683 url = "https://software.frc971.org/Build-Dependencies/arm_frc_gnueabi_deps.tar.gz",
Brian Silverman50b9ac02018-08-12 13:24:10 -0700684)
Brian Silverman6c8b88b2018-09-03 18:17:02 -0700685
Austin Schuhf093fa52019-06-23 20:47:23 -0700686http_archive(
Philipp Schraderfd5489f2022-09-17 17:31:09 -0700687 name = "gtk_runtime",
688 build_file = "@//debian:gtk_runtime.BUILD",
Philipp Schrader7520ee62022-12-10 14:04:40 -0800689 sha256 = "5a6014d1783363be6bc95843d03bbb6513e650eaea60be2b1a4c65bf21981f9b",
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700690 url = "https://software.frc971.org/Build-Dependencies/gtk_runtime-4.tar.gz",
Philipp Schraderfd5489f2022-09-17 17:31:09 -0700691)
692
Brian Silverman6c8b88b2018-09-03 18:17:02 -0700693# Downloaded from
694# 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 Schuhf093fa52019-06-23 20:47:23 -0700695http_archive(
Brian Silverman6c8b88b2018-09-03 18:17:02 -0700696 name = "gcc_arm_none_eabi",
Austin Schuhf093fa52019-06-23 20:47:23 -0700697 build_file = "@//:compilers/gcc_arm_none_eabi.BUILD",
Brian Silverman6c8b88b2018-09-03 18:17:02 -0700698 sha256 = "bb17109f0ee697254a5d4ae6e5e01440e3ea8f0277f2e8169bf95d07c7d5fe69",
699 strip_prefix = "gcc-arm-none-eabi-7-2018-q2-update/",
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700700 url = "https://software.frc971.org/Build-Dependencies/gcc-arm-none-eabi-7-2018-q2-update-linux.tar.bz2",
Brian Silverman6c8b88b2018-09-03 18:17:02 -0700701)
Austin Schuhad596222018-01-31 23:34:03 -0800702
Tyler Chatowfba57822022-03-22 19:38:41 -0700703# Java11 JDK.
Philipp Schrader6efe5732022-02-12 15:11:13 -0800704remote_java_repository(
Austin Schuhe18baff2018-10-20 17:40:42 -0700705 name = "openjdk_linux_archive",
Philipp Schrader6efe5732022-02-12 15:11:13 -0800706 prefix = "openjdk",
Tyler Chatowfba57822022-03-22 19:38:41 -0700707 sha256 = "60e65d32e38876f81ddb623e87ac26c820465b637e263e8bed1acdecb4ca9be2",
708 strip_prefix = "zulu11.54.25-ca-jdk11.0.14.1-linux_x64",
Philipp Schrader9670a2a2023-01-11 01:20:16 -0800709 target_compatible_with = [
710 "@platforms//cpu:x86_64",
711 "@platforms//os:linux",
712 ],
Austin Schuhe18baff2018-10-20 17:40:42 -0700713 urls = [
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700714 "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 -0700715 ],
Tyler Chatowfba57822022-03-22 19:38:41 -0700716 version = "11",
717)
718
719remote_java_repository(
720 name = "openjdk_linux_archive_aarch64",
Tyler Chatowfba57822022-03-22 19:38:41 -0700721 prefix = "openjdk",
722 sha256 = "b0fb0bc303bb05b5042ef3d0939b9489f4a49a13a2d1c8f03c5d8ab23099454d",
723 strip_prefix = "zulu11.54.25-ca-jdk11.0.14.1-linux_aarch64",
Philipp Schrader9670a2a2023-01-11 01:20:16 -0800724 target_compatible_with = [
725 "@platforms//cpu:aarch64",
726 "@platforms//os:linux",
727 ],
Tyler Chatowfba57822022-03-22 19:38:41 -0700728 urls = [
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700729 "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 -0700730 ],
731 version = "11",
Austin Schuhe18baff2018-10-20 17:40:42 -0700732)
733
Austin Schuhf9724442018-10-28 20:30:21 -0700734local_repository(
735 name = "com_google_protobuf",
736 path = "third_party/protobuf",
Brian Silverman9c614bc2016-02-15 20:20:02 -0500737)
Austin Schuh10358f22019-01-21 20:25:11 -0800738
739local_repository(
740 name = "com_github_google_glog",
741 path = "third_party/google-glog",
742)
Austin Schuh6defdeb2019-01-21 21:00:30 -0800743
James Kuszmaul3aabc1c2023-01-13 21:33:43 -0800744http_archive(
Alex Perrycb7da4b2019-08-28 19:35:56 -0700745 name = "com_google_googletest",
James Kuszmaul3aabc1c2023-01-13 21:33:43 -0800746 patch_args = ["-p1"],
747 patches = ["//third_party/googletest:googletest.patch"],
748 sha256 = "5c6d595243de011f8ce8cc68050cc0490726786e80cdfd6555ebfe148d920407",
749 strip_prefix = "googletest-356fc301251378e0f6fa6aa794d73714202887ac",
750 urls = ["https://github.com/google/googletest/archive/356fc301251378e0f6fa6aa794d73714202887ac.zip"],
Alex Perrycb7da4b2019-08-28 19:35:56 -0700751)
752
Austin Schuh6defdeb2019-01-21 21:00:30 -0800753# External dependency: Google Benchmark; has no Bazel build.
James Kuszmaul38169b92023-01-13 21:17:05 -0800754http_archive(
Austin Schuh6defdeb2019-01-21 21:00:30 -0800755 name = "com_github_google_benchmark",
James Kuszmaul38169b92023-01-13 21:17:05 -0800756 patch_args = ["-p1"],
757 patches = ["//third_party/google-benchmark:benchmark.patch"],
758 sha256 = "6430e4092653380d9dc4ccb45a1e2dc9259d581f4866dc0759713126056bc1d7",
759 strip_prefix = "benchmark-1.7.1",
760 urls = ["https://github.com/google/benchmark/archive/refs/tags/v1.7.1.tar.gz"],
Austin Schuhcbc17402019-01-21 21:00:30 -0800761)
Austin Schuh033df092019-01-21 19:46:48 -0800762
763local_repository(
764 name = "com_google_ceres_solver",
765 path = "third_party/ceres",
Austin Schuh70cc9552019-01-21 19:46:48 -0800766)
Austin Schuhf6b94632019-02-02 22:11:27 -0800767
Austin Schuhf093fa52019-06-23 20:47:23 -0700768http_archive(
James Kuszmaul9776b392023-01-14 14:08:08 -0800769 name = "ctre_phoenixpro_api_cpp_headers",
770 build_file_content = """
771cc_library(
772 name = 'api-cpp',
773 visibility = ['//visibility:public'],
774 hdrs = glob(['ctre/phoenixpro/**/*.hpp', 'units/*.h']),
775 includes = ["."],
776 deps = ["@//third_party/allwpilib/wpimath"],
777)
778""",
Ravago Jones628fcce2023-03-25 11:12:23 -0700779 sha256 = "340a9c8e726e2eb365b7a40a722df05fe7c7072c5c4a617fa0218eb6d074ad9f",
James Kuszmaul9776b392023-01-14 14:08:08 -0800780 urls = [
Ravago Jones628fcce2023-03-25 11:12:23 -0700781 "https://maven.ctr-electronics.com/release/com/ctre/phoenixpro/api-cpp/23.0.11/api-cpp-23.0.11-headers.zip",
James Kuszmaul9776b392023-01-14 14:08:08 -0800782 ],
783)
784
785http_archive(
786 name = "ctre_phoenixpro_api_cpp_athena",
787 build_file_content = """
788filegroup(
789 name = 'shared_libraries',
790 srcs = [
791 'linux/athena/shared/libCTRE_PhoenixPro.so',
792 ],
793 visibility = ['//visibility:public'],
794)
795
796cc_library(
797 name = 'api-cpp',
798 visibility = ['//visibility:public'],
799 srcs = ['linux/athena/shared/libCTRE_PhoenixPro.so'],
800 target_compatible_with = ['@//tools/platforms/hardware:roborio'],
801)
802""",
Ravago Jones628fcce2023-03-25 11:12:23 -0700803 sha256 = "11f392bebfe54f512be9ef59809e1a10c4497e0ce92970645f054e7e04fe7ef6",
James Kuszmaul9776b392023-01-14 14:08:08 -0800804 urls = [
Ravago Jones628fcce2023-03-25 11:12:23 -0700805 "https://maven.ctr-electronics.com/release/com/ctre/phoenixpro/api-cpp/23.0.11/api-cpp-23.0.11-linuxathena.zip",
James Kuszmaul9776b392023-01-14 14:08:08 -0800806 ],
807)
808
809http_archive(
810 name = "ctre_phoenixpro_tools_headers",
811 build_file_content = """
812cc_library(
813 name = 'tools',
814 visibility = ['//visibility:public'],
815 hdrs = glob(['ctre/**/*.h', 'ctre/**/*.hpp']),
816)
817""",
Ravago Jones628fcce2023-03-25 11:12:23 -0700818 sha256 = "7585e1bd9e581dd745e7f040ab521b966b40a04d05bc7fa82d6dafe2fb65764e",
James Kuszmaul9776b392023-01-14 14:08:08 -0800819 urls = [
Ravago Jones628fcce2023-03-25 11:12:23 -0700820 "https://maven.ctr-electronics.com/release/com/ctre/phoenixpro/tools/23.0.11/tools-23.0.11-headers.zip",
James Kuszmaul9776b392023-01-14 14:08:08 -0800821 ],
822)
823
824http_archive(
825 name = "ctre_phoenixpro_tools_athena",
826 build_file_content = """
827filegroup(
828 name = 'shared_libraries',
829 srcs = [
830 'linux/athena/shared/libCTRE_PhoenixTools.so',
831 ],
832 visibility = ['//visibility:public'],
833)
834
835cc_library(
836 name = 'tools',
837 visibility = ['//visibility:public'],
838 srcs = ['linux/athena/shared/libCTRE_PhoenixTools.so'],
839 target_compatible_with = ['@//tools/platforms/hardware:roborio'],
840)
841""",
Ravago Jones628fcce2023-03-25 11:12:23 -0700842 sha256 = "b1daadfe782c43ed32c2e1a3956998f9604a3fc9282ef866fd8dc1482f3b8cc9",
James Kuszmaul9776b392023-01-14 14:08:08 -0800843 urls = [
Ravago Jones628fcce2023-03-25 11:12:23 -0700844 "https://maven.ctr-electronics.com/release/com/ctre/phoenixpro/tools/23.0.11/tools-23.0.11-linuxathena.zip",
James Kuszmaul9776b392023-01-14 14:08:08 -0800845 ],
846)
847
848http_archive(
James Kuszmaul02eb05e2019-12-22 12:32:18 -0800849 name = "ctre_phoenix_api_cpp_headers",
Austin Schuhf6b94632019-02-02 22:11:27 -0800850 build_file_content = """
851cc_library(
852 name = 'api-cpp',
853 visibility = ['//visibility:public'],
854 hdrs = glob(['ctre/phoenix/**/*.h']),
855)
856""",
Ravago Jones47213262023-03-12 13:40:41 -0700857 sha256 = "0f38d570949a4e8833aa6ab5a9fa0caf232344d96674d1e4ae342c63a47bdf2a",
Austin Schuhf6b94632019-02-02 22:11:27 -0800858 urls = [
Ravago Jones47213262023-03-12 13:40:41 -0700859 "https://maven.ctr-electronics.com/release/com/ctre/phoenix/api-cpp/5.30.4/api-cpp-5.30.4-headers.zip",
Austin Schuhf6b94632019-02-02 22:11:27 -0800860 ],
861)
862
Austin Schuhf093fa52019-06-23 20:47:23 -0700863http_archive(
James Kuszmaul02eb05e2019-12-22 12:32:18 -0800864 name = "ctre_phoenix_api_cpp_athena",
Austin Schuhf6b94632019-02-02 22:11:27 -0800865 build_file_content = """
Austin Schuhde605f12022-02-23 23:08:19 -0800866filegroup(
867 name = 'shared_libraries',
868 srcs = [
869 'linux/athena/shared/libCTRE_Phoenix.so',
870 ],
871 visibility = ['//visibility:public'],
872)
873
Austin Schuhf6b94632019-02-02 22:11:27 -0800874cc_library(
875 name = 'api-cpp',
876 visibility = ['//visibility:public'],
Austin Schuhde605f12022-02-23 23:08:19 -0800877 srcs = ['linux/athena/shared/libCTRE_Phoenix.so'],
Philipp Schraderdada1072020-11-24 11:34:46 -0800878 target_compatible_with = ['@//tools/platforms/hardware:roborio'],
Austin Schuhf6b94632019-02-02 22:11:27 -0800879)
880""",
Ravago Jones47213262023-03-12 13:40:41 -0700881 sha256 = "1ba6c3a17a644bb7f9643faf5ba6cc6d20e43991fbfffb58c8f0d3e780f3a2bc",
Austin Schuhf6b94632019-02-02 22:11:27 -0800882 urls = [
Ravago Jones47213262023-03-12 13:40:41 -0700883 "https://maven.ctr-electronics.com/release/com/ctre/phoenix/api-cpp/5.30.4/api-cpp-5.30.4-linuxathena.zip",
Austin Schuhf6b94632019-02-02 22:11:27 -0800884 ],
885)
886
James Kuszmaul02eb05e2019-12-22 12:32:18 -0800887http_archive(
888 name = "ctre_phoenix_cci_headers",
Austin Schuhf6b94632019-02-02 22:11:27 -0800889 build_file_content = """
890cc_library(
891 name = 'cci',
892 visibility = ['//visibility:public'],
893 hdrs = glob(['ctre/phoenix/**/*.h']),
894)
895""",
Ravago Jones47213262023-03-12 13:40:41 -0700896 sha256 = "c6be4d8472dabe57889ca14deee22487a6ae964f7e21ad4b7adfa2d524980614",
Austin Schuhf6b94632019-02-02 22:11:27 -0800897 urls = [
Ravago Jones47213262023-03-12 13:40:41 -0700898 "https://maven.ctr-electronics.com/release/com/ctre/phoenix/cci/5.30.4/cci-5.30.4-headers.zip",
Austin Schuhf6b94632019-02-02 22:11:27 -0800899 ],
900)
901
Austin Schuhf093fa52019-06-23 20:47:23 -0700902http_archive(
James Kuszmaul02eb05e2019-12-22 12:32:18 -0800903 name = "ctre_phoenix_cci_athena",
Austin Schuhf6b94632019-02-02 22:11:27 -0800904 build_file_content = """
Austin Schuhde605f12022-02-23 23:08:19 -0800905filegroup(
906 name = 'shared_libraries',
907 srcs = [
908 'linux/athena/shared/libCTRE_PhoenixCCI.so',
909 ],
910 visibility = ['//visibility:public'],
911)
912
Austin Schuhf6b94632019-02-02 22:11:27 -0800913cc_library(
914 name = 'cci',
915 visibility = ['//visibility:public'],
Austin Schuhde605f12022-02-23 23:08:19 -0800916 srcs = ['linux/athena/shared/libCTRE_PhoenixCCI.so'],
Philipp Schraderdada1072020-11-24 11:34:46 -0800917 target_compatible_with = ['@//tools/platforms/hardware:roborio'],
Austin Schuhf6b94632019-02-02 22:11:27 -0800918)
919""",
Ravago Jones47213262023-03-12 13:40:41 -0700920 sha256 = "e4f31ac2a08360f2d5061cdf4d288f95379f2286fcd6736def384723d2d69f24",
Austin Schuhf6b94632019-02-02 22:11:27 -0800921 urls = [
Ravago Jones47213262023-03-12 13:40:41 -0700922 "https://maven.ctr-electronics.com/release/com/ctre/phoenix/cci/5.30.4/cci-5.30.4-linuxathena.zip",
Austin Schuhf6b94632019-02-02 22:11:27 -0800923 ],
924)
Austin Schuheed14442019-03-23 14:42:46 -0700925
926http_archive(
Philipp Schrader175a93c2023-02-19 13:13:40 -0800927 name = "aspect_rules_js",
928 sha256 = "9fadde0ae6e0101755b8aedabf7d80b166491a8de297c60f6a5179cd0d0fea58",
929 strip_prefix = "rules_js-1.20.0",
930 url = "https://github.com/aspect-build/rules_js/releases/download/v1.20.0/rules_js-v1.20.0.tar.gz",
Austin Schuhda9d0602019-09-15 17:29:38 -0700931)
Austin Schuheed14442019-03-23 14:42:46 -0700932
Philipp Schrader175a93c2023-02-19 13:13:40 -0800933load("@aspect_rules_js//npm:npm_import.bzl", "npm_translate_lock", "pnpm_repository")
Austin Schuheed14442019-03-23 14:42:46 -0700934
Philipp Schrader175a93c2023-02-19 13:13:40 -0800935pnpm_repository(name = "pnpm")
Austin Schuheed14442019-03-23 14:42:46 -0700936
Philipp Schrader175a93c2023-02-19 13:13:40 -0800937load("@aspect_rules_js//js:repositories.bzl", "rules_js_dependencies")
Philipp Schrader87277f42022-01-01 07:45:12 -0800938
Philipp Schrader175a93c2023-02-19 13:13:40 -0800939rules_js_dependencies()
Philipp Schrader54047962022-02-16 21:05:11 -0800940
Alex Perryb3168082022-01-22 13:36:13 -0800941http_archive(
Philipp Schrader175a93c2023-02-19 13:13:40 -0800942 name = "aspect_rules_esbuild",
943 sha256 = "b98cde83e9e6a006d8300e88e2f09da56b5a6c18166465a224cfe36bdcbc03e0",
944 strip_prefix = "aspect-build-rules_esbuild-110b94c",
945 type = "tar.gz",
946 url = "https://github.com/aspect-build/rules_esbuild/tarball/110b94c7f16f328a0eab8aa0b862030055b86564",
947)
948
949load("@aspect_rules_esbuild//esbuild:dependencies.bzl", "rules_esbuild_dependencies")
950
951rules_esbuild_dependencies()
952
953load("@rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains")
954
955nodejs_register_toolchains(
956 name = "nodejs",
957 node_version = DEFAULT_NODE_VERSION,
958)
959
960npm_translate_lock(
961 name = "npm",
962 data = [
963 "@//:package.json",
964 "@//:pnpm-workspace.yaml",
965 "@//scouting/www:package.json",
966 "@//scouting/www/counter_button:package.json",
967 "@//scouting/www/driver_ranking:package.json",
968 "@//scouting/www/entry:package.json",
Philipp Schrader175a93c2023-02-19 13:13:40 -0800969 "@//scouting/www/match_list:package.json",
970 "@//scouting/www/notes:package.json",
971 "@//scouting/www/rpc:package.json",
972 "@//scouting/www/shift_schedule:package.json",
973 "@//scouting/www/view:package.json",
Philipp Schrader54047962022-02-16 21:05:11 -0800974 ],
Philipp Schrader175a93c2023-02-19 13:13:40 -0800975
976 # Running lifecycle hooks on npm package fsevents@2.3.2 fails in a dramatic way:
977 # ```
978 # SyntaxError: Unexpected strict mode reserved word
979 # at ESMLoader.moduleStrategy (node:internal/modules/esm/translators:117:18)
980 # at ESMLoader.moduleProvider (node:internal/modules/esm/loader:337:14)
981 # at async link (node:internal/modules/esm/module_job:70:21)
982 # ```
983 lifecycle_hooks_no_sandbox = False,
984 npmrc = "@//:.npmrc",
985 pnpm_lock = "//:pnpm-lock.yaml",
986 quiet = False,
987 update_pnpm_lock = False,
988 verify_node_modules_ignored = "//:.bazelignore",
989)
990
991load("@aspect_rules_esbuild//esbuild:repositories.bzl", "esbuild_register_toolchains", LATEST_ESBUILD_VERSION = "LATEST_VERSION")
992
993esbuild_register_toolchains(
994 name = "esbuild",
995 esbuild_version = LATEST_ESBUILD_VERSION,
996)
997
998http_archive(
999 name = "aspect_rules_rollup",
1000 patch_args = [
1001 "-p1",
1002 ],
1003 patches = [
1004 "//third_party:rules_rollup/0001-Fix-resolving-files.patch",
1005 ],
1006 sha256 = "4c43d20ce377b93cd43a3553e6159a17b85ce80c36a564b55051c2320d32b777",
1007 strip_prefix = "rules_rollup-0.13.1",
1008 url = "https://github.com/aspect-build/rules_rollup/releases/download/v0.13.1/rules_rollup-v0.13.1.tar.gz",
1009)
1010
1011load("@aspect_rules_rollup//rollup:dependencies.bzl", "rules_rollup_dependencies")
1012
1013# Fetches the rules_rollup dependencies.
1014# If you want to have a different version of some dependency,
1015# you should fetch it *before* calling this.
1016# Alternatively, you can skip calling this function, so long as you've
1017# already fetched all the dependencies.
1018rules_rollup_dependencies()
1019
1020load("@aspect_rules_rollup//rollup:repositories.bzl", "rollup_repositories")
1021
1022rollup_repositories(name = "rollup")
1023
1024load("@rollup//:npm_repositories.bzl", rollup_npm_repositories = "npm_repositories")
1025
1026rollup_npm_repositories()
1027
1028http_archive(
1029 name = "aspect_rules_terser",
1030 sha256 = "918e7ac036eca1402cae4d4ddba75ecdcdd886ac35bc0624d9f1ebc7527e369b",
1031 strip_prefix = "rules_terser-0.13.0",
1032 url = "https://github.com/aspect-build/rules_terser/archive/refs/tags/v0.13.0.tar.gz",
1033)
1034
1035load("@aspect_rules_terser//terser:dependencies.bzl", "rules_terser_dependencies")
1036
1037rules_terser_dependencies()
1038
1039# Fetch and register a nodejs interpreter, if you haven't already
1040
1041nodejs_register_toolchains(
1042 name = "node",
1043 node_version = DEFAULT_NODE_VERSION,
1044)
1045
1046# Fetch and register the terser tool
1047load("@aspect_rules_terser//terser:repositories.bzl", "terser_repositories")
1048
1049terser_repositories(name = "terser")
1050
1051load("@terser//:npm_repositories.bzl", terser_npm_repositories = "npm_repositories")
1052
1053terser_npm_repositories()
1054
1055http_archive(
1056 name = "aspect_rules_ts",
1057 sha256 = "db77d904284d21121ae63dbaaadfd8c75ff6d21ad229f92038b415c1ad5019cc",
1058 strip_prefix = "rules_ts-1.3.0",
1059 url = "https://github.com/aspect-build/rules_ts/releases/download/v1.3.0/rules_ts-v1.3.0.tar.gz",
1060)
1061
1062load("@aspect_rules_ts//ts:repositories.bzl", "rules_ts_dependencies")
1063
1064rules_ts_dependencies(ts_version_from = "//:package.json")
1065
1066load("@npm//:repositories.bzl", "npm_repositories")
1067
1068npm_repositories()
1069
1070http_archive(
1071 name = "aspect_rules_cypress",
1072 sha256 = "06d70a2960108607d2e70f9bc6863af6b82317fdfcf7a5a30fd226a5abc46782",
1073 strip_prefix = "aspect-build-rules_cypress-3db1b74",
1074 type = "tar.gz",
1075 urls = [
1076 "https://github.com/aspect-build/rules_cypress/tarball/3db1b74818ac4ce1b9d489a6e0065b36c1076761",
1077 ],
1078)
1079
1080load("@aspect_rules_cypress//cypress:dependencies.bzl", "rules_cypress_dependencies")
1081load("@aspect_rules_cypress//cypress:repositories.bzl", "cypress_register_toolchains")
1082
1083rules_cypress_dependencies()
1084
1085cypress_register_toolchains(
1086 name = "cypress",
1087 cypress_version = "12.3.0",
1088)
1089
1090# Copied from:
1091# https://github.com/aspect-build/rules_cypress/blob/3db1b74818ac4ce1b9d489a6e0065b36c1076761/internal_deps.bzl#L47
1092#
1093# To update CHROME_REVISION, use the below script
1094#
1095# LASTCHANGE_URL="https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/Linux_x64%2FLAST_CHANGE?alt=media"
1096# CHROME_REVISION=$(curl -s -S $LASTCHANGE_URL)
1097# echo "latest CHROME_REVISION_LINUX is $CHROME_REVISION"
1098CHROME_REVISION_LINUX = "1072361"
1099
1100http_archive(
1101 name = "chrome_linux",
1102 build_file_content = """filegroup(
1103name = "all",
1104srcs = glob(["**"]),
1105visibility = ["//visibility:public"],
1106)""",
1107 sha256 = "0df22f743facd1e090eff9b7f8d8bdc293fb4dc31ce9156d2ef19b515974a72b",
1108 strip_prefix = "chrome-linux",
1109 urls = [
1110 "https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/Linux_x64%2F" + CHROME_REVISION_LINUX + "%2Fchrome-linux.zip?alt=media",
1111 ],
Alex Perryb3168082022-01-22 13:36:13 -08001112)
1113
Brian Silvermane84b0cf2022-08-13 19:36:21 -07001114http_archive(
1115 name = "rules_rust_tinyjson",
1116 build_file = "@rules_rust//util/process_wrapper:BUILD.tinyjson.bazel",
1117 sha256 = "1a8304da9f9370f6a6f9020b7903b044aa9ce3470f300a1fba5bc77c78145a16",
1118 strip_prefix = "tinyjson-2.3.0",
1119 type = "tar.gz",
1120 url = "https://crates.io/api/v1/crates/tinyjson/2.3.0/download",
1121)
1122
Brian Silverman01dfd872022-04-06 22:20:40 -07001123local_repository(
Ravago Jones16809802021-11-18 20:40:03 -08001124 name = "rules_rust",
Brian Silverman01dfd872022-04-06 22:20:40 -07001125 path = "third_party/rules_rust",
Ravago Jones16809802021-11-18 20:40:03 -08001126)
1127
Brian Silvermane84b0cf2022-08-13 19:36:21 -07001128load("@rules_rust//rust:repositories.bzl", "rust_repository_set")
Ravago Jones16809802021-11-18 20:40:03 -08001129
Brian Silvermane84b0cf2022-08-13 19:36:21 -07001130rust_repository_set(
Ravago Jones16809802021-11-18 20:40:03 -08001131 name = "rust",
Brian Silverman8751d482022-05-18 23:28:44 -07001132 allocator_library = "@//tools/rust:forward_allocator",
Ravago Jones16809802021-11-18 20:40:03 -08001133 edition = "2021",
1134 exec_triple = "x86_64-unknown-linux-gnu",
1135 extra_target_triples = [
1136 "arm-unknown-linux-gnueabi",
1137 "armv7-unknown-linux-gnueabihf",
Philipp Schraderf1bbf342022-02-05 14:30:15 -08001138 "aarch64-unknown-linux-gnu",
Ravago Jones16809802021-11-18 20:40:03 -08001139 ],
Brian Silvermane84b0cf2022-08-13 19:36:21 -07001140 register_toolchain = False,
Brian Silvermana8ad1af2022-07-23 16:05:12 -07001141 rustfmt_version = "1.62.0",
Brian Silvermana8ad1af2022-07-23 16:05:12 -07001142 version = "1.62.0",
Ravago Jones16809802021-11-18 20:40:03 -08001143)
1144
Austin Schuh4ac96a82019-08-14 20:24:23 -07001145# Flatbuffers
1146local_repository(
1147 name = "com_github_google_flatbuffers",
1148 path = "third_party/flatbuffers",
1149)
James Kuszmaul7daef362019-12-31 18:28:17 -08001150
1151http_file(
1152 name = "sample_logfile",
1153 downloaded_file_path = "log.fbs",
milind945708b2021-07-03 13:30:15 -07001154 sha256 = "45d1d19fb82786c476d3f21a8d62742abaeeedf4c16a00ec37ae350dcb61f1fc",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001155 urls = ["https://software.frc971.org/Build-Dependencies/small_sample_logfile2.fbs"],
James Kuszmaul7daef362019-12-31 18:28:17 -08001156)
Brian Silvermand4260c72020-01-14 00:08:02 -08001157
James Kuszmaul9c128122021-03-22 22:24:36 -07001158http_archive(
James Kuszmaul531609d2020-02-18 17:12:23 -08001159 name = "drivetrain_replay",
James Kuszmaul9c128122021-03-22 22:24:36 -07001160 build_file_content = """
1161filegroup(
1162 name = "drivetrain_replay",
1163 srcs = glob(["**/*.bfbs"]),
1164 visibility = ["//visibility:public"],
1165)
1166 """,
1167 sha256 = "115dcd2fe005cb9cad3325707aa7f4466390c43a08555edf331c06c108bdf692",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001168 url = "https://software.frc971.org/Build-Dependencies/2021-03-20_drivetrain_spin_wheels.tar.gz",
James Kuszmaul531609d2020-02-18 17:12:23 -08001169)
1170
milind-u7baf7342021-08-25 18:31:26 -07001171http_archive(
1172 name = "superstructure_replay",
1173 build_file_content = """
1174filegroup(
1175 name = "superstructure_replay",
1176 srcs = glob(["**/*.bfbs"]),
1177 visibility = ["//visibility:public"],
1178)
1179 """,
milind-u200b2762021-11-06 19:36:15 -07001180 sha256 = "2b9a3ecc83f2aba89a1909ae38fe51e6718a5b4d0e7c131846dfb2845df9cd19",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001181 url = "https://software.frc971.org/Build-Dependencies/2021-10-03_superstructure_shoot_balls.tar.gz",
milind-u7baf7342021-08-25 18:31:26 -07001182)
1183
Philipp Schraderf1bbf342022-02-05 14:30:15 -08001184# OpenCV arm64 (for raspberry pi)
1185http_archive(
1186 name = "opencv_arm64",
1187 build_file = "@//debian:opencv.BUILD",
1188 sha256 = "d284fae46ca710cf24c81ff7ace34929773466bff38f365a80371bea3b36a2ed",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001189 url = "https://software.frc971.org/Build-Dependencies/opencv_arm64.tar.gz",
Philipp Schraderf1bbf342022-02-05 14:30:15 -08001190)
1191
Brian Silvermand4260c72020-01-14 00:08:02 -08001192# OpenCV armhf (for raspberry pi)
1193http_archive(
1194 name = "opencv_armhf",
1195 build_file = "@//debian:opencv.BUILD",
Brian Silverman4c7235a2021-11-17 19:04:37 -08001196 sha256 = "064165507bad1afa8f7b22961a9a9067b243abc70064d713d26b37bc8dc2bf56",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001197 url = "https://software.frc971.org/Build-Dependencies/opencv_armhf_v4.tar.gz",
Brian Silvermand4260c72020-01-14 00:08:02 -08001198)
Brian Silvermand97a47c2020-01-16 00:47:53 -08001199
1200http_archive(
1201 name = "opencv_k8",
1202 build_file = "@//debian:opencv.BUILD",
Austin Schuhb7775c02023-06-02 18:12:02 -07001203 sha256 = "1d8f839fd135a700ca0576a503b15b0a198fef5b36f22efae5cae9eaa17935d1",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001204 url = "https://software.frc971.org/Build-Dependencies/opencv_amd64_v4.tar.gz",
Brian Silvermand97a47c2020-01-16 00:47:53 -08001205)
Brian Silverman764945b2020-01-16 23:40:43 -08001206
Brian Silverman764945b2020-01-16 23:40:43 -08001207http_archive(
1208 name = "halide_k8",
1209 build_file = "@//debian:halide.BUILD",
Austin Schuh669068e2023-01-04 20:50:34 -08001210 sha256 = "be3bdd067acb9ee0d37d0830821113cd69174bee46da466a836d8829fef7cf91",
1211 strip_prefix = "Halide-14.0.0-x86-64-linux/",
1212 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 -08001213)
1214
Philipp Schraderf1bbf342022-02-05 14:30:15 -08001215http_archive(
1216 name = "halide_arm64",
1217 build_file = "@//debian:halide.BUILD",
Austin Schuh669068e2023-01-04 20:50:34 -08001218 sha256 = "cdd42411bcbba682f73d7db0af69837c4857ee90f1727c6feb37fc9a98132385",
1219 strip_prefix = "Halide-14.0.0-arm-64-linux/",
1220 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 -08001221)
1222
Brian Silverman764945b2020-01-16 23:40:43 -08001223http_archive(
1224 name = "halide_armhf",
1225 build_file = "@//debian:halide.BUILD",
Austin Schuh669068e2023-01-04 20:50:34 -08001226 sha256 = "6b3fe3396391b57990a2c41d8dcea74b0734d1b2a0fd42fe0858d954aa45df2b",
1227 strip_prefix = "Halide-14.0.0-arm-32-linux/",
1228 url = "https://github.com/halide/Halide/releases/download/v14.0.0/Halide-14.0.0-arm-32-linux-6b9ed2afd1d6d0badf04986602c943e287d44e46.tar.gz",
Brian Silverman764945b2020-01-16 23:40:43 -08001229)
Brian Silverman4fe44ea2020-02-02 12:56:42 -08001230
Austin Schuh2e28d872022-02-19 18:25:57 -08001231http_archive(
Tyler Chatow60671d32020-02-26 19:49:30 -08001232 name = "gstreamer_k8",
1233 build_file = "@//debian:gstreamer.BUILD",
Austin Schuhb7775c02023-06-02 18:12:02 -07001234 sha256 = "09765cb1dd8abc643cb1dd91d536aef3e6604ff05f5f92898d508ed857455d0b",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001235 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 -08001236)
1237
1238http_archive(
1239 name = "gstreamer_armhf",
1240 build_file = "@//debian:gstreamer.BUILD",
1241 sha256 = "c5ac4c604952c274a50636e244f0d091bd1de302032446f24f0e9e03ae9c76f7",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001242 url = "https://software.frc971.org/Build-Dependencies/gstreamer_armhf.tar.gz",
Tyler Chatow60671d32020-02-26 19:49:30 -08001243)
James Kuszmaulc91e4402020-05-10 18:47:20 -07001244
Tyler Chatow6eda82c2022-03-27 22:37:38 -07001245http_archive(
1246 name = "gstreamer_arm64",
1247 build_file = "@//debian:gstreamer.BUILD",
1248 sha256 = "42b414c565ffdbae3d2d7796a66da9de42a650de757fa6554fd624f0cc3aaa9b",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001249 url = "https://software.frc971.org/Build-Dependencies/gstreamer_1.20.1-1~bpo11+1_arm64.tar.gz",
Tyler Chatow6eda82c2022-03-27 22:37:38 -07001250)
1251
Brian Silvermanf59fe3f2020-09-22 21:04:09 -07001252# //debian:lzma_amd64
1253http_archive(
1254 name = "lzma_amd64",
1255 build_file_content = """
1256cc_library(
1257 name = "lib",
1258 srcs = [
1259 "usr/lib/x86_64-linux-gnu/liblzma.a",
1260 ],
1261 hdrs = glob([
1262 "usr/include/lzma/*.h",
1263 "usr/include/*.h",
1264 ]),
1265 strip_include_prefix = "usr/include",
1266 visibility = ["//visibility:public"],
1267)
1268""",
Austin Schuhe6751772022-06-27 00:58:26 -07001269 sha256 = "6fa0ad579b78bd41a0133024c34063b140442dd2ad4201fd2bf4c55229e7c13f",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001270 urls = ["https://software.frc971.org/Build-Dependencies/lzma_amd64-2.tar.gz"],
Brian Silvermanf59fe3f2020-09-22 21:04:09 -07001271)
1272
1273# //debian:lzma_arm64
1274http_archive(
1275 name = "lzma_arm64",
1276 build_file_content = """
1277cc_library(
1278 name = "lib",
1279 srcs = [
1280 "usr/lib/aarch64-linux-gnu/liblzma.a",
1281 ],
1282 hdrs = glob([
1283 "usr/include/lzma/*.h",
1284 "usr/include/*.h",
1285 ]),
1286 strip_include_prefix = "usr/include",
1287 visibility = ["//visibility:public"],
1288)
1289""",
Austin Schuhc020b182022-06-29 19:54:01 -07001290 sha256 = "b4ab9fd7cf3bfdb9e3fc67ac4a3c84db7f7e3c48431ccfc6e6e210f5829d17c9",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001291 urls = ["https://software.frc971.org/Build-Dependencies/lzma_arm64-2.tar.gz"],
Brian Silvermanf59fe3f2020-09-22 21:04:09 -07001292)
James Kuszmaul2cffe852021-10-27 20:17:49 -07001293
1294local_repository(
1295 name = "snappy",
1296 path = "third_party/snappy",
1297)
Philipp Schrader73e56602021-12-06 21:37:30 -08001298
1299http_archive(
1300 name = "io_bazel_rules_go",
Philipp Schrader039f5c32022-01-20 22:30:01 -08001301 patch_args = [
1302 "-p1",
1303 ],
1304 patches = [
1305 "@//third_party:rules_go/0001-Disable-warnings-for-external-repositories.patch",
1306 ],
Philipp Schrader35bb1532023-03-05 13:49:12 -08001307 sha256 = "dd926a88a564a9246713a9c00b35315f54cbd46b31a26d5d8fb264c07045f05d",
Philipp Schrader73e56602021-12-06 21:37:30 -08001308 urls = [
Philipp Schrader35bb1532023-03-05 13:49:12 -08001309 "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.38.1/rules_go-v0.38.1.zip",
1310 "https://github.com/bazelbuild/rules_go/releases/download/v0.38.1/rules_go-v0.38.1.zip",
Philipp Schrader73e56602021-12-06 21:37:30 -08001311 ],
1312)
1313
Philipp Schrader37fdbb62021-12-18 00:30:37 -08001314http_archive(
1315 name = "bazel_gazelle",
Philipp Schrader35bb1532023-03-05 13:49:12 -08001316 patch_args = [
1317 "-p1",
1318 ],
1319 patches = [
1320 "@//third_party:bazel-gazelle/0001-Fix-visibility-of-gazelle-runner.patch",
1321 ],
1322 sha256 = "ecba0f04f96b4960a5b250c8e8eeec42281035970aa8852dda73098274d14a1d",
Philipp Schrader37fdbb62021-12-18 00:30:37 -08001323 urls = [
Philipp Schrader35bb1532023-03-05 13:49:12 -08001324 "https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.29.0/bazel-gazelle-v0.29.0.tar.gz",
1325 "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 -08001326 ],
1327)
1328
Philipp Schrader73e56602021-12-06 21:37:30 -08001329load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
1330
1331go_rules_dependencies()
1332
Philipp Schrader35bb1532023-03-05 13:49:12 -08001333go_register_toolchains(version = "1.19.5")
Philipp Schrader37fdbb62021-12-18 00:30:37 -08001334
1335load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
1336load("//:go_deps.bzl", "go_dependencies")
1337load("//tools/go:mirrored_go_deps.bzl", "mirrored_go_dependencies")
1338
1339mirrored_go_dependencies()
1340
1341# gazelle:repository_macro go_deps.bzl%go_dependencies
1342go_dependencies()
1343
1344gazelle_dependencies()
Philipp Schradercc016b32021-12-30 08:59:58 -08001345
1346http_archive(
1347 name = "com_github_bazelbuild_buildtools",
1348 sha256 = "44a6e5acc007e197d45ac3326e7f993f0160af9a58e8777ca7701e00501c0857",
1349 strip_prefix = "buildtools-4.2.4",
1350 urls = [
1351 "https://github.com/bazelbuild/buildtools/archive/refs/tags/4.2.4.tar.gz",
1352 ],
1353)
Philipp Schrader0f5d2502022-03-08 22:44:55 -08001354
1355http_archive(
Tyler Chatowec100e22022-03-22 16:23:04 -07001356 name = "libtinfo5_amd64",
Tyler Chatow8a51ac62022-03-15 13:23:12 -07001357 build_file_content = """
1358exports_files(
1359 [
1360 'lib/x86_64-linux-gnu/libtinfo.so.5',
1361 'lib/x86_64-linux-gnu/libtinfo.so.5.9',
1362 ],
1363 ["//visibility:public"],
1364)
1365""",
1366 patch_cmds = ["touch lib/x86_64-linux-gnu/BUILD"],
1367 sha256 = "059e14f77dce365c57b96284aae98c892f61e269b3fbb7d07714b7135c2e5617",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001368 urls = ["https://software.frc971.org/Build-Dependencies/libtinfo5_amd64.tar.gz"],
Tyler Chatow8a51ac62022-03-15 13:23:12 -07001369)
Tyler Chatowec100e22022-03-22 16:23:04 -07001370
1371http_archive(
1372 name = "libtinfo5_arm64",
1373 build_file_content = """
1374exports_files(
1375 [
1376 'lib/aarch64-linux-gnu/libtinfo.so.5',
1377 'lib/aarch64-linux-gnu/libtinfo.so.5.9',
1378 ],
1379 ["//visibility:public"],
1380)
1381""",
1382 patch_cmds = ["touch lib/aarch64-linux-gnu/BUILD"],
1383 sha256 = "df4ea5194c80df8d1f5f6ed68b47ce9dbf78aa8cdebbc61cf00654d9075f8e3c",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001384 urls = ["https://software.frc971.org/Build-Dependencies/libtinfo5_arm64.tar.gz"],
Tyler Chatowec100e22022-03-22 16:23:04 -07001385)
James Kuszmaul4ed5fb12022-03-22 15:20:04 -07001386
Philipp Schraderf60e7d72023-02-19 17:07:22 -08001387http_archive(
1388 name = "xvfb_amd64",
1389 build_file = "//third_party:xvfb/xvfb.BUILD",
1390 patch_cmds = [
1391 "unlink usr/bin/X11",
1392 ],
1393 sha256 = "a7491bf6c47ed0037992fa493f9c25af3ab00a695d706e1fdc122a8b798c0d7c",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001394 urls = ["https://software.frc971.org/Build-Dependencies/xvfb_amd64.tar.gz"],
Philipp Schraderf60e7d72023-02-19 17:07:22 -08001395)
1396
James Kuszmaul4ed5fb12022-03-22 15:20:04 -07001397local_repository(
1398 name = "com_github_nlohmann_json",
1399 path = "third_party/com_github_nlohmann_json",
1400)
James Kuszmaul5c56ed32022-03-30 15:10:07 -07001401
Austin Schuh86110712022-09-16 15:40:54 -07001402# https://curl.haxx.se/download/curl-7.69.1.tar.gz
1403http_archive(
1404 name = "com_github_curl_curl",
1405 build_file = "//debian:curl.BUILD",
1406 sha256 = "01ae0c123dee45b01bbaef94c0bc00ed2aec89cb2ee0fd598e0d302a6b5e0a98",
1407 strip_prefix = "curl-7.69.1",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001408 url = "https://software.frc971.org/Build-Dependencies/curl-7.69.1.tar.gz",
Austin Schuh86110712022-09-16 15:40:54 -07001409)
1410
1411http_archive(
1412 # No official name exists. Names used in our external dependencies include
1413 # zlib, madler_zlib, com_github_madler_zlib.
1414 name = "zlib",
1415 build_file = "//debian:BUILD.zlib.bazel",
1416 sha256 = "629380c90a77b964d896ed37163f5c3a34f6e6d897311f1df2a7016355c45eff",
1417 strip_prefix = "zlib-1.2.11",
1418 urls = [
1419 "https://github.com/madler/zlib/archive/v1.2.11.tar.gz",
1420 ],
1421)
1422
1423# 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 -08001424# git clone -b 1.10.34 --recurse-submodules --depth=1 https://github.com/aws/aws-sdk-cpp
Austin Schuh86110712022-09-16 15:40:54 -07001425# cd aws-sdk-cpp
1426# 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/\)')
1427# Now run the command that printed, and the output will be at aws_sdk-version.tar.gz.
1428http_archive(
1429 name = "aws_sdk",
1430 build_file = "//debian:aws_sdk.BUILD",
1431 patch_args = ["-p1"],
1432 patches = ["//debian:aws_sdk.patch"],
James Kuszmaulb0931ac2023-01-24 14:23:13 -08001433 sha256 = "de6570d10c246189fd8c02100f7f0d9af8499a3ef94a131eeb85619f3bd6c604",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001434 url = "https://software.frc971.org/Build-Dependencies/aws_sdk-1.10.34.tar.gz",
Austin Schuh86110712022-09-16 15:40:54 -07001435)
1436
James Kuszmaul5ab990d2022-11-07 16:35:49 -08001437# Source code of LZ4 (files under lib/) are under BSD 2-Clause.
1438# The rest of the repository (build information, documentation, etc.) is under GPLv2.
1439# We only care about the lib/ subfolder anyways, and strip out any other files.
1440http_archive(
1441 name = "com_github_lz4_lz4",
1442 build_file = "//debian:BUILD.lz4.bazel",
1443 sha256 = "0b0e3aa07c8c063ddf40b082bdf7e37a1562bda40a0ff5272957f3e987e0e54b",
1444 strip_prefix = "lz4-1.9.4/lib",
1445 url = "https://github.com/lz4/lz4/archive/refs/tags/v1.9.4.tar.gz",
1446)
1447
James Kuszmaul5c56ed32022-03-30 15:10:07 -07001448http_file(
1449 name = "com_github_foxglove_mcap_mcap",
1450 executable = True,
James Kuszmaul5ab990d2022-11-07 16:35:49 -08001451 sha256 = "ae745dd09cf4c9570c1c038a72630c07b073f0ed4b05983d64108ff748a40d3f",
1452 urls = ["https://github.com/foxglove/mcap/releases/download/releases%2Fmcap-cli%2Fv0.0.22/mcap-linux-amd64"],
James Kuszmaul5c56ed32022-03-30 15:10:07 -07001453)
Brian Silverman0aa13732022-05-19 23:14:08 -07001454
1455http_archive(
1456 name = "cargo_raze",
1457 patches = ["@//third_party/cargo_raze:cargo_raze.patch"],
1458 sha256 = "08bfc8859ff686ecb55005a3c4a9cf790115de0abdbcc69cf57b15be0745a859",
1459 strip_prefix = "cargo-raze-0.14.2",
1460 url = "https://github.com/google/cargo-raze/archive/v0.14.2.tar.gz",
1461)
1462
1463http_archive(
1464 name = "rules_foreign_cc",
1465 patch_args = ["-p1"],
1466 patches = ["@//third_party/rules_foreign_cc:backport_d93bd96dc719760c968b54730258ad0a5b10f8fb.patch"],
1467 sha256 = "69023642d5781c68911beda769f91fcbc8ca48711db935a75da7f6536b65047f",
1468 strip_prefix = "rules_foreign_cc-0.6.0",
1469 url = "https://github.com/bazelbuild/rules_foreign_cc/archive/0.6.0.tar.gz",
1470)
1471
1472load("@cargo_raze//:repositories.bzl", "cargo_raze_repositories")
1473
1474cargo_raze_repositories()
1475
1476# cargo_raze_transitive_deps wants to do `rust_repositories`, which we do
1477# manually to get the right platforms. rules_foreign_cc is currently the only
1478# other thing it has, so just do that manually.
1479load("@rules_foreign_cc//foreign_cc:repositories.bzl", "rules_foreign_cc_dependencies")
1480
1481rules_foreign_cc_dependencies()
Brian Silverman547eda02022-05-19 23:14:08 -07001482
1483load("//third_party/cargo:crates.bzl", "raze_fetch_remote_crates")
1484
1485raze_fetch_remote_crates()
James Kuszmaul0de4feb2022-04-15 12:16:59 -07001486
1487http_archive(
1488 name = "com_github_zaphoyd_websocketpp",
1489 build_file = "//third_party/websocketpp:websocketpp.BUILD",
Ravago Jones0c74c122023-01-08 15:20:19 -08001490 patch_args = ["-p1"],
1491 patches = ["//third_party/websocketpp:websocketpp.patch"],
James Kuszmaul0de4feb2022-04-15 12:16:59 -07001492 sha256 = "6ce889d85ecdc2d8fa07408d6787e7352510750daa66b5ad44aacb47bea76755",
1493 strip_prefix = "websocketpp-0.8.2",
1494 url = "https://github.com/zaphoyd/websocketpp/archive/refs/tags/0.8.2.tar.gz",
1495)
1496
1497http_archive(
1498 name = "com_github_foxglove_ws-protocol",
James Kuszmaul6b609292023-01-28 15:58:43 -08001499 build_file = "//third_party/foxglove/ws_protocol:foxglove_ws_protocol.BUILD",
James Kuszmaul0de4feb2022-04-15 12:16:59 -07001500 patch_args = ["-p1"],
James Kuszmaul6b609292023-01-28 15:58:43 -08001501 patches = ["//third_party/foxglove/ws_protocol:foxglove_ws_protocol.patch"],
James Kuszmaul0de4feb2022-04-15 12:16:59 -07001502 sha256 = "3256f09a67419f6556778c443d332f1a4bf53ba0e7a464179bf838abffa366ab",
1503 strip_prefix = "ws-protocol-releases-typescript-ws-protocol-examples-v0.0.6",
1504 url = "https://github.com/foxglove/ws-protocol/archive/refs/tags/releases/typescript/ws-protocol-examples/v0.0.6.tar.gz",
1505)
1506
1507http_archive(
1508 name = "asio",
1509 build_file_content = """
1510cc_library(
1511 name = "asio",
1512 hdrs = glob(["include/asio/**/*.hpp", "include/asio/**/*.ipp", "include/asio.hpp"]),
1513 visibility = ["//visibility:public"],
1514 defines = ["ASIO_STANDALONE"],
1515 includes = ["include/"],
1516)""",
1517 sha256 = "8976812c24a118600f6fcf071a20606630a69afe4c0abee3b0dea528e682c585",
1518 strip_prefix = "asio-1.24.0",
1519 url = "https://downloads.sourceforge.net/project/asio/asio/1.24.0%2520%2528Stable%2529/asio-1.24.0.tar.bz2",
1520)
James Kuszmaul6b609292023-01-28 15:58:43 -08001521
1522http_archive(
1523 name = "com_github_foxglove_schemas",
1524 build_file = "//third_party/foxglove/schemas:schemas.BUILD",
1525 sha256 = "c0d08365eb8fba0af7773b5f0095fb53fb53f020bde46edaa308af5bb939fc15",
1526 strip_prefix = "schemas-7a3e077b88142ac46bb4e2616f83dc029b45352e/schemas/flatbuffer",
1527 url = "https://github.com/foxglove/schemas/archive/7a3e077b88142ac46bb4e2616f83dc029b45352e.tar.gz",
1528)
James Kuszmaul3398d0b2023-02-11 22:55:22 -08001529
1530# This contains the *compiled* foxglove studio. This can be reproduced by:
1531# 1. Cloning https://github.com/foxglove/studio
1532# 2. Building the code (yarn web:build:prod)
1533# 3. tar'ing the web/.webpack folder
1534# These files can be hosted locally to provide an offline foxglove server.
1535# Foxglove may be served on any port and may be nested at a subpath
1536# (e.g., at hostname:8000/foxglove behind a proxy).
1537http_archive(
1538 name = "foxglove_studio",
1539 build_file_content = """
1540filegroup(
1541 name = "foxglove_studio",
1542 srcs = glob(["**"]),
1543 visibility = ["//visibility:public"],
1544)""",
1545 sha256 = "629b150e4c71679e1ac30b8a2dfa558a04bbcca7ad0edd61bd6878d3b243edb6",
1546 url =
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001547 "https://software.frc971.org/Build-Dependencies/foxglove-d6b00825.tar.gz",
James Kuszmaul3398d0b2023-02-11 22:55:22 -08001548)
Ravago Jones9c10b2a2023-02-06 12:41:59 -08001549
1550#
1551# https://www.st.com/en/embedded-software/stsw-img009.html#overview
1552http_archive(
1553 name = "vl53l1x_ultra_lite_driver_api",
1554 build_file = "//third_party/vl53l1x:vl53l1x.BUILD",
1555 patch_args = ["-p1"],
1556 patches = ["//third_party/vl53l1x:vl53l1x.patch"],
1557 sha256 = "06a66254ab7a8b061f93ff0f65abb6088c3ea50335475bb6ac11087beb65d174",
1558 strip_prefix = "en.STSW-IMG009_v3.5.2/API",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001559 url = "https://software.frc971.org/Build-Dependencies/en.STSW-IMG009.zip",
Ravago Jones9c10b2a2023-02-06 12:41:59 -08001560)
Yash Chainani10b7b022023-02-22 14:34:04 -08001561
1562http_archive(
1563 name = "apriltag_test_bfbs_images",
1564 build_file_content = """
1565filegroup(
1566 name = "apriltag_test_bfbs_images",
1567 srcs = glob(["**"]),
1568 visibility = ["//visibility:public"],
1569)""",
1570 sha256 = "2356b9d0b3be59d01e837bfbbee21de55b16232d5e00c66701c20b64ff3272e3",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001571 url = "https://software.frc971.org/Build-Dependencies/2023_arducam_apriltag_test_images.tar.gz",
Yash Chainani10b7b022023-02-22 14:34:04 -08001572)
Filip Kujawaa5e39702023-03-04 17:58:27 -08001573
1574http_archive(
1575 name = "libedgetpu",
1576 build_file = "//third_party:libedgetpu/libedgetpu.BUILD",
Filip Kujawa8c76e5d2023-04-08 16:20:27 -07001577 sha256 = "c900faf2c9ea9599fda60c3d03ac43d0d7b34119659c9e35638b81cd14354b57",
Filip Kujawaa5e39702023-03-04 17:58:27 -08001578 strip_prefix = "libedgetpu-bazel",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001579 url = "https://software.frc971.org/Build-Dependencies/libedgetpu-ddfa7bde33c23afd8c2892182faa3e5b4e6ad94e.tar.gz",
Filip Kujawaa5e39702023-03-04 17:58:27 -08001580)
1581
1582http_archive(
1583 name = "libtensorflowlite",
1584 build_file = "//third_party:libtensorflowlite/libtensorflowlite.BUILD",
Filip Kujawa8c76e5d2023-04-08 16:20:27 -07001585 sha256 = "a073dfddb3cb25113ba7eac6edb5569d0ae7988cad881d3f665e8ca0b8b85108",
Filip Kujawaa5e39702023-03-04 17:58:27 -08001586 strip_prefix = "tensorflow-bazel",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001587 url = "https://software.frc971.org/Build-Dependencies/tensorflow-a4dfb8d1a71385bd6d122e4f27f86dcebb96712d.tar.gz",
Filip Kujawaa5e39702023-03-04 17:58:27 -08001588)
Philipp Schrader119c3822023-03-07 19:49:58 -08001589
1590http_archive(
1591 name = "julia",
1592 build_file = "//third_party:julia/julia.BUILD",
1593 patch_cmds = [
1594 "echo 'LIB_SYMLINKS = {' > files.bzl",
1595 '''find lib/ -type l -exec bash -c 'echo "\\"{}\\": \\"$(readlink {})\\","' \\; | sort >> files.bzl''',
1596 "echo '}' >> files.bzl",
1597 "echo 'LIBS = [' >> files.bzl",
1598 '''find lib/ -type f -exec bash -c 'echo "\\"{}\\","' \\; | sort >> files.bzl''',
1599 "echo ']' >> files.bzl",
1600 ],
1601 sha256 = "e71a24816e8fe9d5f4807664cbbb42738f5aa9fe05397d35c81d4c5d649b9d05",
1602 strip_prefix = "julia-1.8.5",
1603 url = "https://julialang-s3.julialang.org/bin/linux/x64/1.8/julia-1.8.5-linux-x86_64.tar.gz",
1604)