blob: bdfbfaec69a9b1b9ff3771d9c5b5883189232afa [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(
Brian Silvermand97a47c2020-01-16 00:47:53 -0800158 "//debian:opencv_amd64.bzl",
159 opencv_amd64_debs = "files",
160)
Tyler Chatow60671d32020-02-26 19:49:30 -0800161load(
162 "//debian:gstreamer_amd64.bzl",
James Kuszmaulc91e4402020-05-10 18:47:20 -0700163 gstreamer_amd64_debs = "files",
Tyler Chatow60671d32020-02-26 19:49:30 -0800164)
165load(
Tyler Chatow6eda82c2022-03-27 22:37:38 -0700166 "//debian:gstreamer_arm64.bzl",
167 gstreamer_arm64_debs = "files",
168)
169load(
Austin Schuh023e7f52020-08-18 21:24:37 -0700170 "//debian:m4.bzl",
171 m4_debs = "files",
172)
Brian Silvermanf59fe3f2020-09-22 21:04:09 -0700173load(
174 "//debian:lzma_amd64.bzl",
175 lzma_amd64_debs = "files",
176)
177load(
178 "//debian:lzma_arm64.bzl",
179 lzma_arm64_debs = "files",
180)
Tyler Chatow8a51ac62022-03-15 13:23:12 -0700181load(
182 "//debian:libtinfo5_amd64.bzl",
183 libtinfo5_amd64_debs = "files",
184)
Tyler Chatowec100e22022-03-22 16:23:04 -0700185load(
186 "//debian:libtinfo5_arm64.bzl",
187 libtinfo5_arm64_debs = "files",
188)
Philipp Schraderf60e7d72023-02-19 17:07:22 -0800189load(
190 "//debian:xvfb_amd64.bzl",
191 xvfb_amd64_debs = "files",
192)
Philipp Schrader0e19c602018-03-07 21:07:22 -0800193load("//debian:packages.bzl", "generate_repositories_for_debs")
194
Austin Schuh71f6fa72019-08-31 18:23:02 -0700195generate_repositories_for_debs(rsync_debs)
196
197generate_repositories_for_debs(ssh_debs)
198
Philipp Schraderd0e33a42022-01-22 21:55:15 -0800199generate_repositories_for_debs(apache2_debs)
200
Philipp Schrader41011a12022-03-13 12:49:32 -0700201generate_repositories_for_debs(postgresql_amd64_debs)
202
Brian Silverman7bda6212018-08-05 11:42:11 -0700203generate_repositories_for_debs(patch_debs)
204
Brian Silverman7297c0c2018-08-05 13:43:00 -0700205generate_repositories_for_debs(pandoc_debs)
206
Brian Silverman4f6ba442018-08-05 14:34:58 -0700207generate_repositories_for_debs(libusb_debs)
208
Brian Silvermanb80dc9f2018-08-05 14:59:24 -0700209generate_repositories_for_debs(mingw_compiler_debs)
210
Brian Silverman6470f442018-08-05 12:08:16 -0700211generate_repositories_for_debs(patchelf_debs)
212
Brian Silverman50b9ac02018-08-12 13:24:10 -0700213generate_repositories_for_debs(arm_frc_gnueabi_deps_debs)
214
Philipp Schraderfd5489f2022-09-17 17:31:09 -0700215generate_repositories_for_debs(gtk_runtime_debs)
216
Brian Silvermand97a47c2020-01-16 00:47:53 -0800217generate_repositories_for_debs(opencv_amd64_debs)
218
Tyler Chatow6eda82c2022-03-27 22:37:38 -0700219generate_repositories_for_debs(
220 gstreamer_amd64_debs,
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700221 base_url = "https://software.frc971.org/Build-Dependencies/gstreamer_bullseye_amd64_deps",
Tyler Chatow6eda82c2022-03-27 22:37:38 -0700222)
Tyler Chatow60671d32020-02-26 19:49:30 -0800223
Tyler Chatow6eda82c2022-03-27 22:37:38 -0700224generate_repositories_for_debs(
225 gstreamer_arm64_debs,
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700226 base_url = "https://software.frc971.org/Build-Dependencies/gstreamer_bullseye_arm64_deps",
Tyler Chatow6eda82c2022-03-27 22:37:38 -0700227)
228
Austin Schuh023e7f52020-08-18 21:24:37 -0700229generate_repositories_for_debs(m4_debs)
230
Brian Silvermanf59fe3f2020-09-22 21:04:09 -0700231generate_repositories_for_debs(lzma_amd64_debs)
232
233generate_repositories_for_debs(lzma_arm64_debs)
234
Tyler Chatow8a51ac62022-03-15 13:23:12 -0700235generate_repositories_for_debs(libtinfo5_amd64_debs)
236
Tyler Chatowec100e22022-03-22 16:23:04 -0700237generate_repositories_for_debs(libtinfo5_arm64_debs)
238
Philipp Schraderf60e7d72023-02-19 17:07:22 -0800239generate_repositories_for_debs(xvfb_amd64_debs)
240
Brian Silvermanc0309a02022-01-01 23:57:03 -0800241local_repository(
242 name = "com_grail_bazel_toolchain",
243 path = "third_party/bazel-toolchain",
244)
245
James Kuszmaulf35eb982023-12-09 17:50:01 -0800246http_archive(
247 name = "RangeHTTPServer",
248 sha256 = "98a8e4980f91d048dc9159cfc5f115280d0b5ec59a5b01df0422b887212fa4f0",
249 strip_prefix = "RangeHTTPServer-9070394508a135789238a33259793f3c6f3c127a",
250 url = "https://github.com/jkuszmaul/RangeHTTPServer/archive/9070394508a135789238a33259793f3c6f3c127a.zip",
251)
252
Brian Silverman4c7235a2021-11-17 19:04:37 -0800253load("@com_grail_bazel_toolchain//toolchain:rules.bzl", "llvm", "llvm_toolchain")
254
Austin Schuh612d95d2023-10-21 00:01:40 -0700255llvm_version = "17.0.2"
Brian Silverman4c7235a2021-11-17 19:04:37 -0800256
257llvm(
258 name = "llvm_k8",
Austin Schuh50e3dca2023-07-23 14:34:27 -0700259 distribution = "clang+llvm-%s-x86_64-linux-gnu-ubuntu-22.04.tar.xz" % llvm_version,
Brian Silverman4c7235a2021-11-17 19:04:37 -0800260 llvm_version = llvm_version,
261)
262
263llvm(
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800264 name = "llvm_aarch64",
265 distribution = "clang+llvm-%s-aarch64-linux-gnu.tar.xz" % llvm_version,
266 llvm_version = llvm_version,
267)
268
Brian Silverman4c7235a2021-11-17 19:04:37 -0800269llvm_conlyopts = [
270 "-std=gnu99",
271]
272
273llvm_copts = [
274 "-D__STDC_FORMAT_MACROS",
275 "-D__STDC_CONSTANT_MACROS",
276 "-D__STDC_LIMIT_MACROS",
277 "-D_FILE_OFFSET_BITS=64",
278 "-fmessage-length=100",
279 "-fmacro-backtrace-limit=0",
Brian Silverman4c7235a2021-11-17 19:04:37 -0800280 "-ggdb3",
Brian Silverman4c7235a2021-11-17 19:04:37 -0800281]
282
283llvm_cxxopts = [
Philipp Schraderf43b18b2023-08-23 20:05:10 -0700284 "-std=gnu++20",
Brian Silverman4c7235a2021-11-17 19:04:37 -0800285]
286
Brian Silverman1e7c8972022-02-03 23:15:41 -0800287llvm_opt_copts = [
288 "-DAOS_DEBUG=0",
289]
290
291llvm_fastbuild_copts = [
292 "-DAOS_DEBUG=0",
293]
294
Brian Silverman4c7235a2021-11-17 19:04:37 -0800295llvm_dbg_copts = [
296 "-DAOS_DEBUG=1",
297]
Brian Silvermanc0309a02022-01-01 23:57:03 -0800298
299llvm_toolchain(
300 name = "llvm_toolchain",
Austin Schuh1e69d422023-06-25 16:57:01 -0700301 additional_target_compatible_with = {},
Brian Silverman4c7235a2021-11-17 19:04:37 -0800302 conlyopts = {
303 "linux-x86_64": llvm_conlyopts,
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800304 "linux-aarch64": llvm_conlyopts,
Brian Silverman4c7235a2021-11-17 19:04:37 -0800305 },
306 copts = {
307 "linux-x86_64": llvm_copts,
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800308 "linux-aarch64": llvm_copts,
Brian Silverman4c7235a2021-11-17 19:04:37 -0800309 },
310 cxxopts = {
311 "linux-x86_64": llvm_cxxopts,
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800312 "linux-aarch64": llvm_cxxopts,
Brian Silverman4c7235a2021-11-17 19:04:37 -0800313 },
314 dbg_copts = {
315 "linux-x86_64": llvm_dbg_copts,
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800316 "linux-aarch64": llvm_dbg_copts,
Brian Silverman1e7c8972022-02-03 23:15:41 -0800317 },
318 fastbuild_copts = {
319 "linux-x86_64": llvm_fastbuild_copts,
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800320 "linux-aarch64": llvm_fastbuild_copts,
Brian Silverman4c7235a2021-11-17 19:04:37 -0800321 },
322 llvm_version = llvm_version,
Brian Silverman1e7c8972022-02-03 23:15:41 -0800323 opt_copts = {
324 "linux-x86_64": llvm_opt_copts,
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800325 "linux-aarch64": llvm_opt_copts,
Brian Silverman1e7c8972022-02-03 23:15:41 -0800326 },
Brian Silverman4c7235a2021-11-17 19:04:37 -0800327 standard_libraries = {
Austin Schuh0bd410a2023-11-05 12:38:12 -0800328 "linux-x86_64": "libstdc++-12",
Austin Schuh86d980e2023-10-20 22:44:47 -0700329 "linux-aarch64": "libstdc++-12",
Brian Silverman4c7235a2021-11-17 19:04:37 -0800330 },
331 static_libstdcxx = False,
Brian Silvermanc0309a02022-01-01 23:57:03 -0800332 sysroot = {
333 "linux-x86_64": "@amd64_debian_sysroot//:sysroot_files",
Austin Schuh86d980e2023-10-20 22:44:47 -0700334 "linux-aarch64": "@arm64_debian_sysroot//:sysroot_files",
Brian Silverman4c7235a2021-11-17 19:04:37 -0800335 },
336 target_toolchain_roots = {
337 "linux-x86_64": "@llvm_k8//",
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800338 "linux-aarch64": "@llvm_aarch64//",
Brian Silverman4c7235a2021-11-17 19:04:37 -0800339 },
340 toolchain_roots = {
341 "linux-x86_64": "@llvm_k8//",
Tyler Chatow486ad3e2022-03-23 13:32:03 -0700342 "linux-aarch64": "@llvm_aarch64//",
Brian Silvermanc0309a02022-01-01 23:57:03 -0800343 },
344)
345
Brian Silverman4c7235a2021-11-17 19:04:37 -0800346load("@llvm_toolchain//:toolchains.bzl", "llvm_register_toolchains")
347
348llvm_register_toolchains()
349
Philipp Schraderdada1072020-11-24 11:34:46 -0800350register_toolchains(
Philipp Schraderdada1072020-11-24 11:34:46 -0800351 "//tools/cpp:cc-toolchain-roborio",
352 "//tools/cpp:cc-toolchain-cortex-m4f",
Austin Schuh0a96ea32022-01-01 22:29:30 -0800353 "//tools/cpp:cc-toolchain-rp2040",
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 Schuhcf1dda52024-01-01 20:19:21 -0800459 sha256 = "b775e1256ab9921a27eef9a738a6f38d900873e07332ad2149dc97eb04ecbdf5",
460 url = "https://software.frc971.org/Build-Dependencies/2024-01-01-bookworm-arm64-nvidia-rootfs.tar.xz",
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 Schuh45225802023-12-10 22:17:57 -0800467 sha256 = "5d9d4131f3997d8543d45e673bfb15e21d7ca4c64923da91ee8d06f801dddb59",
468 url = "https://software.frc971.org/Build-Dependencies/2023-12-10-bookworm-amd64-nvidia-rootfs.tar.xz",
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",
James Kuszmaulcd622d52023-11-22 20:44:04 -0800482 sha256 = "b325099ed896d1325c9cd998f07053b4e60e28a65d991f86f28203bf6728eccd",
483 strip_prefix = "ni-libraries-2024.1.1",
484 url = "https://github.com/wpilibsuite/ni-libraries/archive/refs/tags/v2024.1.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(
Philipp Schraderd0e33a42022-01-22 21:55:15 -0800577 name = "apache2",
578 build_file = "@//debian:apache2.BUILD",
579 sha256 = "98b0ad6d911751ba0aa486429e6278f995e7bbabd928c7d3d44c888fa2bf371b",
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700580 url = "https://software.frc971.org/Build-Dependencies/apache2.tar.gz",
Philipp Schraderd0e33a42022-01-22 21:55:15 -0800581)
582
583http_archive(
Brian Silverman7297c0c2018-08-05 13:43:00 -0700584 name = "pandoc",
Austin Schuhf093fa52019-06-23 20:47:23 -0700585 build_file = "@//debian:pandoc.BUILD",
Stephan Pleinesecfddf92023-12-14 19:14:40 -0800586 sha256 = "3c98503f29f2a7f771647b24a4b591bbe5539119b6b5a006ff09be7bec47bc0e",
587 url = "https://software.frc971.org/Build-Dependencies/pandoc-2023.12.14.tar.gz",
Brian Silverman7297c0c2018-08-05 13:43:00 -0700588)
Brian Silverman4f6ba442018-08-05 14:34:58 -0700589
Austin Schuhf093fa52019-06-23 20:47:23 -0700590http_archive(
Brian Silverman4f6ba442018-08-05 14:34:58 -0700591 name = "libusb",
Austin Schuhf093fa52019-06-23 20:47:23 -0700592 build_file = "@//debian:libusb.BUILD",
Brian Silverman4f6ba442018-08-05 14:34:58 -0700593 sha256 = "3ca5cc2d317226f6646866ff9e8c443db3b0f6c82f828e800240982727531590",
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700594 url = "https://software.frc971.org/Build-Dependencies/libusb.tar.gz",
Brian Silverman4f6ba442018-08-05 14:34:58 -0700595)
Brian Silvermanb80dc9f2018-08-05 14:59:24 -0700596
Austin Schuhf093fa52019-06-23 20:47:23 -0700597http_archive(
Brian Silvermanb80dc9f2018-08-05 14:59:24 -0700598 name = "mingw_compiler",
Austin Schuhf093fa52019-06-23 20:47:23 -0700599 build_file = "@//debian:mingw_compiler.BUILD",
Brian Silvermanb80dc9f2018-08-05 14:59:24 -0700600 sha256 = "45e86a8460f2151a4f0306e7ae7b06761029d2412ee16f63d1e8d2d29354e378",
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700601 url = "https://software.frc971.org/Build-Dependencies/mingw_compiler.tar.gz",
Brian Silvermanb80dc9f2018-08-05 14:59:24 -0700602)
Brian Silverman6470f442018-08-05 12:08:16 -0700603
Austin Schuhf093fa52019-06-23 20:47:23 -0700604http_archive(
Brian Silverman6470f442018-08-05 12:08:16 -0700605 name = "patchelf",
Austin Schuhf093fa52019-06-23 20:47:23 -0700606 build_file = "@//debian:patchelf.BUILD",
Brian Silverman6470f442018-08-05 12:08:16 -0700607 sha256 = "bf8b709909d7d9e30815dd228eeded7dc282e3ce3919d0589ccbb56ac8632abc",
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700608 url = "https://software.frc971.org/Build-Dependencies/patchelf.tar.gz",
Brian Silverman6470f442018-08-05 12:08:16 -0700609)
Brian Silverman50b9ac02018-08-12 13:24:10 -0700610
Austin Schuhf093fa52019-06-23 20:47:23 -0700611http_archive(
Brian Silverman50b9ac02018-08-12 13:24:10 -0700612 name = "arm_frc_gnueabi_deps",
Austin Schuhf093fa52019-06-23 20:47:23 -0700613 build_file = "@//debian:arm_frc_gnueabi_deps.BUILD",
Brian Silverman50b9ac02018-08-12 13:24:10 -0700614 sha256 = "4b26fe45010817dc136488ee1604ade21bd7c264c29f17d864fc6eba9d7442c4",
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700615 url = "https://software.frc971.org/Build-Dependencies/arm_frc_gnueabi_deps.tar.gz",
Brian Silverman50b9ac02018-08-12 13:24:10 -0700616)
Brian Silverman6c8b88b2018-09-03 18:17:02 -0700617
Austin Schuhf093fa52019-06-23 20:47:23 -0700618http_archive(
Philipp Schraderfd5489f2022-09-17 17:31:09 -0700619 name = "gtk_runtime",
620 build_file = "@//debian:gtk_runtime.BUILD",
Philipp Schrader7520ee62022-12-10 14:04:40 -0800621 sha256 = "5a6014d1783363be6bc95843d03bbb6513e650eaea60be2b1a4c65bf21981f9b",
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700622 url = "https://software.frc971.org/Build-Dependencies/gtk_runtime-4.tar.gz",
Philipp Schraderfd5489f2022-09-17 17:31:09 -0700623)
624
Brian Silverman6c8b88b2018-09-03 18:17:02 -0700625# Downloaded from
James Kuszmaulef420da2023-12-27 12:02:15 -0800626# From https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads
Austin Schuhf093fa52019-06-23 20:47:23 -0700627http_archive(
Brian Silverman6c8b88b2018-09-03 18:17:02 -0700628 name = "gcc_arm_none_eabi",
Austin Schuhf093fa52019-06-23 20:47:23 -0700629 build_file = "@//:compilers/gcc_arm_none_eabi.BUILD",
James Kuszmaulef420da2023-12-27 12:02:15 -0800630 sha256 = "6cd1bbc1d9ae57312bcd169ae283153a9572bd6a8e4eeae2fedfbc33b115fdbb",
631 strip_prefix = "arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi",
632 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 -0700633)
Austin Schuhad596222018-01-31 23:34:03 -0800634
Tyler Chatowfba57822022-03-22 19:38:41 -0700635# Java11 JDK.
Philipp Schrader6efe5732022-02-12 15:11:13 -0800636remote_java_repository(
Austin Schuhe18baff2018-10-20 17:40:42 -0700637 name = "openjdk_linux_archive",
Philipp Schrader6efe5732022-02-12 15:11:13 -0800638 prefix = "openjdk",
Tyler Chatowfba57822022-03-22 19:38:41 -0700639 sha256 = "60e65d32e38876f81ddb623e87ac26c820465b637e263e8bed1acdecb4ca9be2",
640 strip_prefix = "zulu11.54.25-ca-jdk11.0.14.1-linux_x64",
Philipp Schrader9670a2a2023-01-11 01:20:16 -0800641 target_compatible_with = [
642 "@platforms//cpu:x86_64",
643 "@platforms//os:linux",
644 ],
Austin Schuhe18baff2018-10-20 17:40:42 -0700645 urls = [
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700646 "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 -0700647 ],
Tyler Chatowfba57822022-03-22 19:38:41 -0700648 version = "11",
649)
650
651remote_java_repository(
652 name = "openjdk_linux_archive_aarch64",
Tyler Chatowfba57822022-03-22 19:38:41 -0700653 prefix = "openjdk",
654 sha256 = "b0fb0bc303bb05b5042ef3d0939b9489f4a49a13a2d1c8f03c5d8ab23099454d",
655 strip_prefix = "zulu11.54.25-ca-jdk11.0.14.1-linux_aarch64",
Philipp Schrader9670a2a2023-01-11 01:20:16 -0800656 target_compatible_with = [
657 "@platforms//cpu:aarch64",
658 "@platforms//os:linux",
659 ],
Tyler Chatowfba57822022-03-22 19:38:41 -0700660 urls = [
Maxwell Henderson7a93a652023-06-24 15:17:09 -0700661 "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 -0700662 ],
663 version = "11",
Austin Schuhe18baff2018-10-20 17:40:42 -0700664)
665
Austin Schuhf9724442018-10-28 20:30:21 -0700666local_repository(
Austin Schuh10358f22019-01-21 20:25:11 -0800667 name = "com_github_google_glog",
668 path = "third_party/google-glog",
669)
Austin Schuh6defdeb2019-01-21 21:00:30 -0800670
James Kuszmaul3aabc1c2023-01-13 21:33:43 -0800671http_archive(
Alex Perrycb7da4b2019-08-28 19:35:56 -0700672 name = "com_google_googletest",
James Kuszmaul3aabc1c2023-01-13 21:33:43 -0800673 patch_args = ["-p1"],
674 patches = ["//third_party/googletest:googletest.patch"],
675 sha256 = "5c6d595243de011f8ce8cc68050cc0490726786e80cdfd6555ebfe148d920407",
676 strip_prefix = "googletest-356fc301251378e0f6fa6aa794d73714202887ac",
677 urls = ["https://github.com/google/googletest/archive/356fc301251378e0f6fa6aa794d73714202887ac.zip"],
Alex Perrycb7da4b2019-08-28 19:35:56 -0700678)
679
Austin Schuh6defdeb2019-01-21 21:00:30 -0800680# External dependency: Google Benchmark; has no Bazel build.
James Kuszmaul38169b92023-01-13 21:17:05 -0800681http_archive(
Austin Schuh6defdeb2019-01-21 21:00:30 -0800682 name = "com_github_google_benchmark",
James Kuszmaul38169b92023-01-13 21:17:05 -0800683 patch_args = ["-p1"],
684 patches = ["//third_party/google-benchmark:benchmark.patch"],
685 sha256 = "6430e4092653380d9dc4ccb45a1e2dc9259d581f4866dc0759713126056bc1d7",
686 strip_prefix = "benchmark-1.7.1",
687 urls = ["https://github.com/google/benchmark/archive/refs/tags/v1.7.1.tar.gz"],
Austin Schuhcbc17402019-01-21 21:00:30 -0800688)
Austin Schuh033df092019-01-21 19:46:48 -0800689
690local_repository(
691 name = "com_google_ceres_solver",
692 path = "third_party/ceres",
Austin Schuh70cc9552019-01-21 19:46:48 -0800693)
Austin Schuhf6b94632019-02-02 22:11:27 -0800694
Austin Schuhf093fa52019-06-23 20:47:23 -0700695http_archive(
Maxwell Hendersonfcc0d122023-08-05 17:03:34 -0700696 name = "ctre_phoenix6_api_cpp_headers",
James Kuszmaul9776b392023-01-14 14:08:08 -0800697 build_file_content = """
698cc_library(
699 name = 'api-cpp',
700 visibility = ['//visibility:public'],
James Kuszmaulcd622d52023-11-22 20:44:04 -0800701 hdrs = glob(['ctre/phoenix6/**/*.hpp']),
James Kuszmaul9776b392023-01-14 14:08:08 -0800702 includes = ["."],
703 deps = ["@//third_party/allwpilib/wpimath"],
704)
705""",
James Kuszmaulf3555ca2024-01-07 13:15:17 -0800706 sha256 = "e1254dea273c2951f8418c9651f9c3e6fd387c4dab833858502997b3b00f3b80",
James Kuszmaul9776b392023-01-14 14:08:08 -0800707 urls = [
James Kuszmaulf3555ca2024-01-07 13:15:17 -0800708 "https://maven.ctr-electronics.com/release/com/ctre/phoenix6/api-cpp/24.0.0-beta-7/api-cpp-24.0.0-beta-7-headers.zip",
James Kuszmaul9776b392023-01-14 14:08:08 -0800709 ],
710)
711
712http_archive(
Maxwell Hendersonfcc0d122023-08-05 17:03:34 -0700713 name = "ctre_phoenix6_api_cpp_athena",
James Kuszmaul9776b392023-01-14 14:08:08 -0800714 build_file_content = """
715filegroup(
716 name = 'shared_libraries',
717 srcs = [
Maxwell Hendersonfcc0d122023-08-05 17:03:34 -0700718 'linux/athena/shared/libCTRE_Phoenix6.so',
James Kuszmaul9776b392023-01-14 14:08:08 -0800719 ],
720 visibility = ['//visibility:public'],
721)
722
723cc_library(
724 name = 'api-cpp',
725 visibility = ['//visibility:public'],
Maxwell Hendersonfcc0d122023-08-05 17:03:34 -0700726 srcs = ['linux/athena/shared/libCTRE_Phoenix6.so'],
James Kuszmaul9776b392023-01-14 14:08:08 -0800727 target_compatible_with = ['@//tools/platforms/hardware:roborio'],
728)
729""",
James Kuszmaulf3555ca2024-01-07 13:15:17 -0800730 sha256 = "864e8c2c9ef0af45205f0e8cbbcb0ae27de7fa9c4b1004b3dc2ac5e2dbeb2e33",
James Kuszmaul9776b392023-01-14 14:08:08 -0800731 urls = [
James Kuszmaulf3555ca2024-01-07 13:15:17 -0800732 "https://maven.ctr-electronics.com/release/com/ctre/phoenix6/api-cpp/24.0.0-beta-7/api-cpp-24.0.0-beta-7-linuxathena.zip",
James Kuszmaul9776b392023-01-14 14:08:08 -0800733 ],
734)
735
736http_archive(
Maxwell Hendersonfcc0d122023-08-05 17:03:34 -0700737 name = "ctre_phoenix6_tools_headers",
James Kuszmaul9776b392023-01-14 14:08:08 -0800738 build_file_content = """
739cc_library(
740 name = 'tools',
741 visibility = ['//visibility:public'],
742 hdrs = glob(['ctre/**/*.h', 'ctre/**/*.hpp']),
743)
744""",
James Kuszmaulf3555ca2024-01-07 13:15:17 -0800745 sha256 = "a2d9f361b7547ef99ec4306c73e6199cae1815b66e283f68e6cbb91bcdd35727",
James Kuszmaul9776b392023-01-14 14:08:08 -0800746 urls = [
James Kuszmaulf3555ca2024-01-07 13:15:17 -0800747 "https://maven.ctr-electronics.com/release/com/ctre/phoenix6/tools/24.0.0-beta-7/tools-24.0.0-beta-7-headers.zip",
James Kuszmaul9776b392023-01-14 14:08:08 -0800748 ],
749)
750
751http_archive(
Maxwell Hendersonfcc0d122023-08-05 17:03:34 -0700752 name = "ctre_phoenix6_tools_athena",
James Kuszmaul9776b392023-01-14 14:08:08 -0800753 build_file_content = """
754filegroup(
755 name = 'shared_libraries',
756 srcs = [
757 'linux/athena/shared/libCTRE_PhoenixTools.so',
758 ],
759 visibility = ['//visibility:public'],
760)
761
762cc_library(
763 name = 'tools',
764 visibility = ['//visibility:public'],
765 srcs = ['linux/athena/shared/libCTRE_PhoenixTools.so'],
766 target_compatible_with = ['@//tools/platforms/hardware:roborio'],
767)
768""",
James Kuszmaulf3555ca2024-01-07 13:15:17 -0800769 sha256 = "fe54d1883496270612529ba2d72c58fef8199491159b0d2caf5cf9fec33343c6",
James Kuszmaul9776b392023-01-14 14:08:08 -0800770 urls = [
James Kuszmaulf3555ca2024-01-07 13:15:17 -0800771 "https://maven.ctr-electronics.com/release/com/ctre/phoenix6/tools/24.0.0-beta-7/tools-24.0.0-beta-7-linuxathena.zip",
James Kuszmaul9776b392023-01-14 14:08:08 -0800772 ],
773)
774
775http_archive(
James Kuszmaul02eb05e2019-12-22 12:32:18 -0800776 name = "ctre_phoenix_api_cpp_headers",
Austin Schuhf6b94632019-02-02 22:11:27 -0800777 build_file_content = """
778cc_library(
779 name = 'api-cpp',
780 visibility = ['//visibility:public'],
781 hdrs = glob(['ctre/phoenix/**/*.h']),
782)
783""",
James Kuszmaulf3555ca2024-01-07 13:15:17 -0800784 sha256 = "2f6cf6c9edca8a6ec14a29a52974947285758a2cdade1055d8f6162c5a4ecbee",
Austin Schuhf6b94632019-02-02 22:11:27 -0800785 urls = [
James Kuszmaulf3555ca2024-01-07 13:15:17 -0800786 "https://maven.ctr-electronics.com/release/com/ctre/phoenix/api-cpp/5.32.0-beta-5/api-cpp-5.32.0-beta-5-headers.zip",
Austin Schuhf6b94632019-02-02 22:11:27 -0800787 ],
788)
789
Austin Schuhf093fa52019-06-23 20:47:23 -0700790http_archive(
James Kuszmaul02eb05e2019-12-22 12:32:18 -0800791 name = "ctre_phoenix_api_cpp_athena",
Austin Schuhf6b94632019-02-02 22:11:27 -0800792 build_file_content = """
Austin Schuhde605f12022-02-23 23:08:19 -0800793filegroup(
794 name = 'shared_libraries',
795 srcs = [
796 'linux/athena/shared/libCTRE_Phoenix.so',
797 ],
798 visibility = ['//visibility:public'],
799)
800
Austin Schuhf6b94632019-02-02 22:11:27 -0800801cc_library(
802 name = 'api-cpp',
803 visibility = ['//visibility:public'],
Austin Schuhde605f12022-02-23 23:08:19 -0800804 srcs = ['linux/athena/shared/libCTRE_Phoenix.so'],
Philipp Schraderdada1072020-11-24 11:34:46 -0800805 target_compatible_with = ['@//tools/platforms/hardware:roborio'],
Austin Schuhf6b94632019-02-02 22:11:27 -0800806)
807""",
James Kuszmaulf3555ca2024-01-07 13:15:17 -0800808 sha256 = "a7a98bf85aecda23bdd578cebbab9a471c3954de78dda480190028e02e0db9d9",
Austin Schuhf6b94632019-02-02 22:11:27 -0800809 urls = [
James Kuszmaulf3555ca2024-01-07 13:15:17 -0800810 "https://maven.ctr-electronics.com/release/com/ctre/phoenix/api-cpp/5.32.0-beta-5/api-cpp-5.32.0-beta-5-linuxathena.zip",
Austin Schuhf6b94632019-02-02 22:11:27 -0800811 ],
812)
813
James Kuszmaul02eb05e2019-12-22 12:32:18 -0800814http_archive(
815 name = "ctre_phoenix_cci_headers",
Austin Schuhf6b94632019-02-02 22:11:27 -0800816 build_file_content = """
817cc_library(
818 name = 'cci',
819 visibility = ['//visibility:public'],
820 hdrs = glob(['ctre/phoenix/**/*.h']),
821)
822""",
James Kuszmaulf3555ca2024-01-07 13:15:17 -0800823 sha256 = "1b2b5375c7ca57148165ea1adfe6726d7e91ff3f2250cfa846732ee98de68b6c",
Austin Schuhf6b94632019-02-02 22:11:27 -0800824 urls = [
James Kuszmaulf3555ca2024-01-07 13:15:17 -0800825 "https://maven.ctr-electronics.com/release/com/ctre/phoenix/cci/5.32.0-beta-5/cci-5.32.0-beta-5-headers.zip",
Austin Schuhf6b94632019-02-02 22:11:27 -0800826 ],
827)
828
Austin Schuhf093fa52019-06-23 20:47:23 -0700829http_archive(
James Kuszmaul02eb05e2019-12-22 12:32:18 -0800830 name = "ctre_phoenix_cci_athena",
Austin Schuhf6b94632019-02-02 22:11:27 -0800831 build_file_content = """
Austin Schuhde605f12022-02-23 23:08:19 -0800832filegroup(
833 name = 'shared_libraries',
834 srcs = [
835 'linux/athena/shared/libCTRE_PhoenixCCI.so',
836 ],
837 visibility = ['//visibility:public'],
838)
839
Austin Schuhf6b94632019-02-02 22:11:27 -0800840cc_library(
841 name = 'cci',
842 visibility = ['//visibility:public'],
Austin Schuhde605f12022-02-23 23:08:19 -0800843 srcs = ['linux/athena/shared/libCTRE_PhoenixCCI.so'],
Philipp Schraderdada1072020-11-24 11:34:46 -0800844 target_compatible_with = ['@//tools/platforms/hardware:roborio'],
Austin Schuhf6b94632019-02-02 22:11:27 -0800845)
846""",
James Kuszmaulf3555ca2024-01-07 13:15:17 -0800847 sha256 = "09b1485e635b4190e5386d416979890a62c29741d153db15567a3d0a80abb05e",
Austin Schuhf6b94632019-02-02 22:11:27 -0800848 urls = [
James Kuszmaulf3555ca2024-01-07 13:15:17 -0800849 "https://maven.ctr-electronics.com/release/com/ctre/phoenix/cci/5.32.0-beta-5/cci-5.32.0-beta-5-linuxathena.zip",
Austin Schuhf6b94632019-02-02 22:11:27 -0800850 ],
851)
Austin Schuheed14442019-03-23 14:42:46 -0700852
853http_archive(
Philipp Schrader175a93c2023-02-19 13:13:40 -0800854 name = "aspect_rules_js",
855 sha256 = "9fadde0ae6e0101755b8aedabf7d80b166491a8de297c60f6a5179cd0d0fea58",
856 strip_prefix = "rules_js-1.20.0",
857 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 -0700858)
Austin Schuheed14442019-03-23 14:42:46 -0700859
Philipp Schrader175a93c2023-02-19 13:13:40 -0800860load("@aspect_rules_js//npm:npm_import.bzl", "npm_translate_lock", "pnpm_repository")
Austin Schuheed14442019-03-23 14:42:46 -0700861
Philipp Schrader175a93c2023-02-19 13:13:40 -0800862pnpm_repository(name = "pnpm")
Austin Schuheed14442019-03-23 14:42:46 -0700863
Philipp Schrader175a93c2023-02-19 13:13:40 -0800864load("@aspect_rules_js//js:repositories.bzl", "rules_js_dependencies")
Philipp Schrader87277f42022-01-01 07:45:12 -0800865
Philipp Schrader175a93c2023-02-19 13:13:40 -0800866rules_js_dependencies()
Philipp Schrader54047962022-02-16 21:05:11 -0800867
Alex Perryb3168082022-01-22 13:36:13 -0800868http_archive(
Philipp Schrader175a93c2023-02-19 13:13:40 -0800869 name = "aspect_rules_esbuild",
870 sha256 = "b98cde83e9e6a006d8300e88e2f09da56b5a6c18166465a224cfe36bdcbc03e0",
871 strip_prefix = "aspect-build-rules_esbuild-110b94c",
872 type = "tar.gz",
873 url = "https://github.com/aspect-build/rules_esbuild/tarball/110b94c7f16f328a0eab8aa0b862030055b86564",
874)
875
876load("@aspect_rules_esbuild//esbuild:dependencies.bzl", "rules_esbuild_dependencies")
877
878rules_esbuild_dependencies()
879
880load("@rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains")
881
882nodejs_register_toolchains(
883 name = "nodejs",
884 node_version = DEFAULT_NODE_VERSION,
885)
886
887npm_translate_lock(
888 name = "npm",
889 data = [
890 "@//:package.json",
891 "@//:pnpm-workspace.yaml",
892 "@//scouting/www:package.json",
893 "@//scouting/www/counter_button:package.json",
894 "@//scouting/www/driver_ranking:package.json",
895 "@//scouting/www/entry:package.json",
Philipp Schrader175a93c2023-02-19 13:13:40 -0800896 "@//scouting/www/match_list:package.json",
897 "@//scouting/www/notes:package.json",
898 "@//scouting/www/rpc:package.json",
899 "@//scouting/www/shift_schedule:package.json",
900 "@//scouting/www/view:package.json",
Philipp Schrader54047962022-02-16 21:05:11 -0800901 ],
Philipp Schrader175a93c2023-02-19 13:13:40 -0800902
903 # Running lifecycle hooks on npm package fsevents@2.3.2 fails in a dramatic way:
904 # ```
905 # SyntaxError: Unexpected strict mode reserved word
906 # at ESMLoader.moduleStrategy (node:internal/modules/esm/translators:117:18)
907 # at ESMLoader.moduleProvider (node:internal/modules/esm/loader:337:14)
908 # at async link (node:internal/modules/esm/module_job:70:21)
909 # ```
910 lifecycle_hooks_no_sandbox = False,
911 npmrc = "@//:.npmrc",
912 pnpm_lock = "//:pnpm-lock.yaml",
913 quiet = False,
914 update_pnpm_lock = False,
915 verify_node_modules_ignored = "//:.bazelignore",
916)
917
918load("@aspect_rules_esbuild//esbuild:repositories.bzl", "esbuild_register_toolchains", LATEST_ESBUILD_VERSION = "LATEST_VERSION")
919
920esbuild_register_toolchains(
921 name = "esbuild",
922 esbuild_version = LATEST_ESBUILD_VERSION,
923)
924
925http_archive(
926 name = "aspect_rules_rollup",
927 patch_args = [
928 "-p1",
929 ],
930 patches = [
931 "//third_party:rules_rollup/0001-Fix-resolving-files.patch",
932 ],
933 sha256 = "4c43d20ce377b93cd43a3553e6159a17b85ce80c36a564b55051c2320d32b777",
934 strip_prefix = "rules_rollup-0.13.1",
935 url = "https://github.com/aspect-build/rules_rollup/releases/download/v0.13.1/rules_rollup-v0.13.1.tar.gz",
936)
937
938load("@aspect_rules_rollup//rollup:dependencies.bzl", "rules_rollup_dependencies")
939
940# Fetches the rules_rollup dependencies.
941# If you want to have a different version of some dependency,
942# you should fetch it *before* calling this.
943# Alternatively, you can skip calling this function, so long as you've
944# already fetched all the dependencies.
945rules_rollup_dependencies()
946
947load("@aspect_rules_rollup//rollup:repositories.bzl", "rollup_repositories")
948
949rollup_repositories(name = "rollup")
950
951load("@rollup//:npm_repositories.bzl", rollup_npm_repositories = "npm_repositories")
952
953rollup_npm_repositories()
954
955http_archive(
956 name = "aspect_rules_terser",
957 sha256 = "918e7ac036eca1402cae4d4ddba75ecdcdd886ac35bc0624d9f1ebc7527e369b",
958 strip_prefix = "rules_terser-0.13.0",
959 url = "https://github.com/aspect-build/rules_terser/archive/refs/tags/v0.13.0.tar.gz",
960)
961
962load("@aspect_rules_terser//terser:dependencies.bzl", "rules_terser_dependencies")
963
964rules_terser_dependencies()
965
966# Fetch and register a nodejs interpreter, if you haven't already
967
968nodejs_register_toolchains(
969 name = "node",
970 node_version = DEFAULT_NODE_VERSION,
971)
972
973# Fetch and register the terser tool
974load("@aspect_rules_terser//terser:repositories.bzl", "terser_repositories")
975
976terser_repositories(name = "terser")
977
978load("@terser//:npm_repositories.bzl", terser_npm_repositories = "npm_repositories")
979
980terser_npm_repositories()
981
982http_archive(
983 name = "aspect_rules_ts",
984 sha256 = "db77d904284d21121ae63dbaaadfd8c75ff6d21ad229f92038b415c1ad5019cc",
985 strip_prefix = "rules_ts-1.3.0",
986 url = "https://github.com/aspect-build/rules_ts/releases/download/v1.3.0/rules_ts-v1.3.0.tar.gz",
987)
988
989load("@aspect_rules_ts//ts:repositories.bzl", "rules_ts_dependencies")
990
991rules_ts_dependencies(ts_version_from = "//:package.json")
992
993load("@npm//:repositories.bzl", "npm_repositories")
994
995npm_repositories()
996
997http_archive(
998 name = "aspect_rules_cypress",
999 sha256 = "06d70a2960108607d2e70f9bc6863af6b82317fdfcf7a5a30fd226a5abc46782",
1000 strip_prefix = "aspect-build-rules_cypress-3db1b74",
1001 type = "tar.gz",
1002 urls = [
1003 "https://github.com/aspect-build/rules_cypress/tarball/3db1b74818ac4ce1b9d489a6e0065b36c1076761",
1004 ],
1005)
1006
1007load("@aspect_rules_cypress//cypress:dependencies.bzl", "rules_cypress_dependencies")
1008load("@aspect_rules_cypress//cypress:repositories.bzl", "cypress_register_toolchains")
1009
1010rules_cypress_dependencies()
1011
1012cypress_register_toolchains(
1013 name = "cypress",
1014 cypress_version = "12.3.0",
1015)
1016
1017# Copied from:
1018# https://github.com/aspect-build/rules_cypress/blob/3db1b74818ac4ce1b9d489a6e0065b36c1076761/internal_deps.bzl#L47
1019#
1020# To update CHROME_REVISION, use the below script
1021#
1022# LASTCHANGE_URL="https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/Linux_x64%2FLAST_CHANGE?alt=media"
1023# CHROME_REVISION=$(curl -s -S $LASTCHANGE_URL)
1024# echo "latest CHROME_REVISION_LINUX is $CHROME_REVISION"
1025CHROME_REVISION_LINUX = "1072361"
1026
1027http_archive(
1028 name = "chrome_linux",
1029 build_file_content = """filegroup(
1030name = "all",
1031srcs = glob(["**"]),
1032visibility = ["//visibility:public"],
1033)""",
1034 sha256 = "0df22f743facd1e090eff9b7f8d8bdc293fb4dc31ce9156d2ef19b515974a72b",
1035 strip_prefix = "chrome-linux",
1036 urls = [
1037 "https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/Linux_x64%2F" + CHROME_REVISION_LINUX + "%2Fchrome-linux.zip?alt=media",
1038 ],
Alex Perryb3168082022-01-22 13:36:13 -08001039)
1040
Brian Silvermane84b0cf2022-08-13 19:36:21 -07001041http_archive(
1042 name = "rules_rust_tinyjson",
1043 build_file = "@rules_rust//util/process_wrapper:BUILD.tinyjson.bazel",
1044 sha256 = "1a8304da9f9370f6a6f9020b7903b044aa9ce3470f300a1fba5bc77c78145a16",
1045 strip_prefix = "tinyjson-2.3.0",
1046 type = "tar.gz",
1047 url = "https://crates.io/api/v1/crates/tinyjson/2.3.0/download",
1048)
1049
Adam Snaider770b97b2023-08-04 21:07:48 -07001050# Flatbuffers
1051local_repository(
1052 name = "com_github_google_flatbuffers",
1053 path = "third_party/flatbuffers",
1054)
1055
Brian Silverman01dfd872022-04-06 22:20:40 -07001056local_repository(
Ravago Jones16809802021-11-18 20:40:03 -08001057 name = "rules_rust",
Brian Silverman01dfd872022-04-06 22:20:40 -07001058 path = "third_party/rules_rust",
Ravago Jones16809802021-11-18 20:40:03 -08001059)
1060
Adam Snaiderb8097452023-07-10 23:18:26 -04001061load("@rules_rust//rust:repositories.bzl", "rust_analyzer_toolchain_repository", "rust_repository_set")
1062
1063RUST_VERSION = "1.70.0"
Ravago Jones16809802021-11-18 20:40:03 -08001064
Brian Silvermane84b0cf2022-08-13 19:36:21 -07001065rust_repository_set(
Ravago Jones16809802021-11-18 20:40:03 -08001066 name = "rust",
Brian Silverman8751d482022-05-18 23:28:44 -07001067 allocator_library = "@//tools/rust:forward_allocator",
Ravago Jones16809802021-11-18 20:40:03 -08001068 edition = "2021",
1069 exec_triple = "x86_64-unknown-linux-gnu",
1070 extra_target_triples = [
1071 "arm-unknown-linux-gnueabi",
1072 "armv7-unknown-linux-gnueabihf",
Philipp Schraderf1bbf342022-02-05 14:30:15 -08001073 "aarch64-unknown-linux-gnu",
Ravago Jones16809802021-11-18 20:40:03 -08001074 ],
Brian Silvermane84b0cf2022-08-13 19:36:21 -07001075 register_toolchain = False,
Adam Snaiderb8097452023-07-10 23:18:26 -04001076 rustfmt_version = RUST_VERSION,
1077 versions = [RUST_VERSION],
Ravago Jones16809802021-11-18 20:40:03 -08001078)
1079
Adam Snaider770b97b2023-08-04 21:07:48 -07001080load("@rules_rust//crate_universe:repositories.bzl", "crate_universe_dependencies")
1081
1082crate_universe_dependencies()
1083
1084load("@rules_rust//crate_universe:defs.bzl", "crate", "crates_repository")
1085
1086# Run `CARGO_BAZEL_REPIN=1 bazel sync --only=crate_index` to update the lock file
1087# after adding or removing any dependencies.
1088crates_repository(
1089 name = "crate_index",
1090 annotations = {
1091 "link-cplusplus": [
1092 # Bazel toolchains take care of linking the C++ standard library, so don't add
1093 # an extra flag via Rust by enabling the `nothing` feature. I'm not even sure
1094 # it would end up on the link command line, but this crate's build.rs attempts
1095 # to find a C++ compiler itself otherwise which definitely doesn't work.
1096 crate.annotation(
1097 crate_features = ["nothing"],
1098 ),
1099 ],
1100 "cxx": [
1101 crate.annotation(
1102 additive_build_file = "@//third_party/cargo:cxx/include.BUILD.bazel",
1103 extra_aliased_targets = ["cxx_cc"],
1104 gen_build_script = False,
1105 ),
1106 ],
1107 "log": [
1108 crate.annotation(
1109 rustc_flags = ["--cfg=atomic_cas"],
1110 ),
1111 ],
1112 },
1113 cargo_lockfile = "//:Cargo.lock",
1114 generator_sha256s = {"x86_64-unknown-linux-gnu": "1987a00e7ae12c705fa010b340410230ae8a47d7d95c02900191968b2e745649"},
1115 generator_urls = {
1116 "x86_64-unknown-linux-gnu": "https://software.frc971.org/Build-Dependencies/cargo-bazel-x86_64-unknown-linux-gnu",
1117 },
1118 lockfile = "//:Cargo.Bazel.lock",
1119 manifests = [
1120 "//:Cargo.toml",
1121 "//third_party/autocxx:Cargo.toml",
1122 "//third_party/autocxx:engine/Cargo.toml",
1123 "//third_party/autocxx:parser/Cargo.toml",
1124 "//third_party/autocxx:gen/cmd/Cargo.toml",
1125 "//third_party/autocxx:macro/Cargo.toml",
1126 "//third_party/autocxx:integration-tests/Cargo.toml",
1127 "@com_github_google_flatbuffers//rust:flatbuffers/Cargo.toml",
1128 ],
1129 rust_toolchain_cargo_template = "@rust__{triple}__{channel}_tools//:bin/{tool}",
1130 rust_toolchain_rustc_template = "@rust__{triple}__{channel}_tools//:bin/{tool}",
Adam Snaiderb8097452023-07-10 23:18:26 -04001131 rust_version = RUST_VERSION,
Adam Snaider770b97b2023-08-04 21:07:48 -07001132 supported_platform_triples = [
1133 "x86_64-unknown-linux-gnu",
1134 "arm-unknown-linux-gnueabi",
1135 "armv7-unknown-linux-gnueabihf",
1136 "aarch64-unknown-linux-gnu",
1137 ],
Austin Schuh4ac96a82019-08-14 20:24:23 -07001138)
James Kuszmaul7daef362019-12-31 18:28:17 -08001139
Adam Snaider770b97b2023-08-04 21:07:48 -07001140load("@crate_index//:defs.bzl", "crate_repositories")
1141
1142crate_repositories()
1143
Adam Snaiderb8097452023-07-10 23:18:26 -04001144load("@rules_rust//tools/rust_analyzer:deps.bzl", "rust_analyzer_dependencies")
1145
1146rust_analyzer_dependencies()
1147
1148register_toolchains(rust_analyzer_toolchain_repository(
1149 name = "rust_analyzer_toolchain",
1150 version = RUST_VERSION,
1151))
1152
Adam Snaider770b97b2023-08-04 21:07:48 -07001153http_archive(
1154 name = "cxxbridge-cmd",
1155 build_file = "//third_party/cargo:cxxbridge-cmd/include.BUILD.bazel",
1156 sha256 = "df13eece12ed9e7bd4fb071a6af4c44421bb9024d339d029f5333bcdaca00000",
1157 strip_prefix = "cxxbridge-cmd-1.0.100",
1158 type = "tar.gz",
1159 urls = ["https://crates.io/api/v1/crates/cxxbridge-cmd/1.0.100/download"],
1160)
1161
1162crates_repository(
1163 name = "cxxbridge_cmd_deps",
1164 cargo_lockfile = "//third_party/cargo:cxxbridge-cmd/Cargo.lock",
1165 generator_sha256s = {"x86_64-unknown-linux-gnu": "1987a00e7ae12c705fa010b340410230ae8a47d7d95c02900191968b2e745649"},
1166 generator_urls = {
1167 "x86_64-unknown-linux-gnu": "https://software.frc971.org/Build-Dependencies/cargo-bazel-x86_64-unknown-linux-gnu",
1168 },
1169 lockfile = "//third_party/cargo:cxxbridge-cmd/Cargo.Bazel.lock",
1170 manifests = ["@cxxbridge-cmd//:Cargo.toml"],
1171 rust_toolchain_cargo_template = "@rust__{triple}__{channel}_tools//:bin/{tool}",
1172 rust_toolchain_rustc_template = "@rust__{triple}__{channel}_tools//:bin/{tool}",
1173 rust_version = "1.70.0",
1174 supported_platform_triples = [
1175 "x86_64-unknown-linux-gnu",
1176 "arm-unknown-linux-gnueabi",
1177 "armv7-unknown-linux-gnueabihf",
1178 "aarch64-unknown-linux-gnu",
1179 ],
1180)
1181
1182load("@cxxbridge_cmd_deps//:defs.bzl", cxxbridge_cmd_deps = "crate_repositories")
1183
1184cxxbridge_cmd_deps()
1185
James Kuszmaul7daef362019-12-31 18:28:17 -08001186http_file(
1187 name = "sample_logfile",
1188 downloaded_file_path = "log.fbs",
milind945708b2021-07-03 13:30:15 -07001189 sha256 = "45d1d19fb82786c476d3f21a8d62742abaeeedf4c16a00ec37ae350dcb61f1fc",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001190 urls = ["https://software.frc971.org/Build-Dependencies/small_sample_logfile2.fbs"],
James Kuszmaul7daef362019-12-31 18:28:17 -08001191)
Brian Silvermand4260c72020-01-14 00:08:02 -08001192
James Kuszmaul9c128122021-03-22 22:24:36 -07001193http_archive(
James Kuszmaul531609d2020-02-18 17:12:23 -08001194 name = "drivetrain_replay",
James Kuszmaul9c128122021-03-22 22:24:36 -07001195 build_file_content = """
1196filegroup(
1197 name = "drivetrain_replay",
1198 srcs = glob(["**/*.bfbs"]),
1199 visibility = ["//visibility:public"],
1200)
1201 """,
1202 sha256 = "115dcd2fe005cb9cad3325707aa7f4466390c43a08555edf331c06c108bdf692",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001203 url = "https://software.frc971.org/Build-Dependencies/2021-03-20_drivetrain_spin_wheels.tar.gz",
James Kuszmaul531609d2020-02-18 17:12:23 -08001204)
1205
milind-u7baf7342021-08-25 18:31:26 -07001206http_archive(
1207 name = "superstructure_replay",
1208 build_file_content = """
1209filegroup(
1210 name = "superstructure_replay",
1211 srcs = glob(["**/*.bfbs"]),
1212 visibility = ["//visibility:public"],
1213)
1214 """,
milind-u200b2762021-11-06 19:36:15 -07001215 sha256 = "2b9a3ecc83f2aba89a1909ae38fe51e6718a5b4d0e7c131846dfb2845df9cd19",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001216 url = "https://software.frc971.org/Build-Dependencies/2021-10-03_superstructure_shoot_balls.tar.gz",
milind-u7baf7342021-08-25 18:31:26 -07001217)
1218
Brian Silvermand97a47c2020-01-16 00:47:53 -08001219http_archive(
1220 name = "opencv_k8",
1221 build_file = "@//debian:opencv.BUILD",
Austin Schuhb7775c02023-06-02 18:12:02 -07001222 sha256 = "1d8f839fd135a700ca0576a503b15b0a198fef5b36f22efae5cae9eaa17935d1",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001223 url = "https://software.frc971.org/Build-Dependencies/opencv_amd64_v4.tar.gz",
Brian Silvermand97a47c2020-01-16 00:47:53 -08001224)
Brian Silverman764945b2020-01-16 23:40:43 -08001225
Brian Silverman764945b2020-01-16 23:40:43 -08001226http_archive(
1227 name = "halide_k8",
1228 build_file = "@//debian:halide.BUILD",
Austin Schuh669068e2023-01-04 20:50:34 -08001229 sha256 = "be3bdd067acb9ee0d37d0830821113cd69174bee46da466a836d8829fef7cf91",
1230 strip_prefix = "Halide-14.0.0-x86-64-linux/",
1231 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 -08001232)
1233
Philipp Schraderf1bbf342022-02-05 14:30:15 -08001234http_archive(
1235 name = "halide_arm64",
1236 build_file = "@//debian:halide.BUILD",
Austin Schuh669068e2023-01-04 20:50:34 -08001237 sha256 = "cdd42411bcbba682f73d7db0af69837c4857ee90f1727c6feb37fc9a98132385",
1238 strip_prefix = "Halide-14.0.0-arm-64-linux/",
1239 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 -08001240)
1241
Brian Silverman764945b2020-01-16 23:40:43 -08001242http_archive(
Tyler Chatow60671d32020-02-26 19:49:30 -08001243 name = "gstreamer_k8",
1244 build_file = "@//debian:gstreamer.BUILD",
Austin Schuhb7775c02023-06-02 18:12:02 -07001245 sha256 = "09765cb1dd8abc643cb1dd91d536aef3e6604ff05f5f92898d508ed857455d0b",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001246 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 -08001247)
1248
1249http_archive(
Tyler Chatow6eda82c2022-03-27 22:37:38 -07001250 name = "gstreamer_arm64",
1251 build_file = "@//debian:gstreamer.BUILD",
1252 sha256 = "42b414c565ffdbae3d2d7796a66da9de42a650de757fa6554fd624f0cc3aaa9b",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001253 url = "https://software.frc971.org/Build-Dependencies/gstreamer_1.20.1-1~bpo11+1_arm64.tar.gz",
Tyler Chatow6eda82c2022-03-27 22:37:38 -07001254)
1255
Brian Silvermanf59fe3f2020-09-22 21:04:09 -07001256# //debian:lzma_amd64
1257http_archive(
1258 name = "lzma_amd64",
1259 build_file_content = """
1260cc_library(
1261 name = "lib",
1262 srcs = [
1263 "usr/lib/x86_64-linux-gnu/liblzma.a",
1264 ],
1265 hdrs = glob([
1266 "usr/include/lzma/*.h",
1267 "usr/include/*.h",
1268 ]),
1269 strip_include_prefix = "usr/include",
1270 visibility = ["//visibility:public"],
1271)
1272""",
Austin Schuhe6751772022-06-27 00:58:26 -07001273 sha256 = "6fa0ad579b78bd41a0133024c34063b140442dd2ad4201fd2bf4c55229e7c13f",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001274 urls = ["https://software.frc971.org/Build-Dependencies/lzma_amd64-2.tar.gz"],
Brian Silvermanf59fe3f2020-09-22 21:04:09 -07001275)
1276
1277# //debian:lzma_arm64
1278http_archive(
1279 name = "lzma_arm64",
1280 build_file_content = """
1281cc_library(
1282 name = "lib",
1283 srcs = [
1284 "usr/lib/aarch64-linux-gnu/liblzma.a",
1285 ],
1286 hdrs = glob([
1287 "usr/include/lzma/*.h",
1288 "usr/include/*.h",
1289 ]),
1290 strip_include_prefix = "usr/include",
1291 visibility = ["//visibility:public"],
1292)
1293""",
Austin Schuhc020b182022-06-29 19:54:01 -07001294 sha256 = "b4ab9fd7cf3bfdb9e3fc67ac4a3c84db7f7e3c48431ccfc6e6e210f5829d17c9",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001295 urls = ["https://software.frc971.org/Build-Dependencies/lzma_arm64-2.tar.gz"],
Brian Silvermanf59fe3f2020-09-22 21:04:09 -07001296)
James Kuszmaul2cffe852021-10-27 20:17:49 -07001297
1298local_repository(
1299 name = "snappy",
1300 path = "third_party/snappy",
1301)
Philipp Schrader73e56602021-12-06 21:37:30 -08001302
1303http_archive(
1304 name = "io_bazel_rules_go",
Philipp Schrader039f5c32022-01-20 22:30:01 -08001305 patch_args = [
1306 "-p1",
1307 ],
1308 patches = [
1309 "@//third_party:rules_go/0001-Disable-warnings-for-external-repositories.patch",
1310 ],
Philipp Schrader35bb1532023-03-05 13:49:12 -08001311 sha256 = "dd926a88a564a9246713a9c00b35315f54cbd46b31a26d5d8fb264c07045f05d",
Philipp Schrader73e56602021-12-06 21:37:30 -08001312 urls = [
Philipp Schrader35bb1532023-03-05 13:49:12 -08001313 "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.38.1/rules_go-v0.38.1.zip",
1314 "https://github.com/bazelbuild/rules_go/releases/download/v0.38.1/rules_go-v0.38.1.zip",
Philipp Schrader73e56602021-12-06 21:37:30 -08001315 ],
1316)
1317
Philipp Schrader37fdbb62021-12-18 00:30:37 -08001318http_archive(
1319 name = "bazel_gazelle",
Philipp Schrader35bb1532023-03-05 13:49:12 -08001320 patch_args = [
1321 "-p1",
1322 ],
1323 patches = [
1324 "@//third_party:bazel-gazelle/0001-Fix-visibility-of-gazelle-runner.patch",
1325 ],
1326 sha256 = "ecba0f04f96b4960a5b250c8e8eeec42281035970aa8852dda73098274d14a1d",
Philipp Schrader37fdbb62021-12-18 00:30:37 -08001327 urls = [
Philipp Schrader35bb1532023-03-05 13:49:12 -08001328 "https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.29.0/bazel-gazelle-v0.29.0.tar.gz",
1329 "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 -08001330 ],
1331)
1332
Philipp Schrader73e56602021-12-06 21:37:30 -08001333load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
1334
1335go_rules_dependencies()
1336
Philipp Schrader35bb1532023-03-05 13:49:12 -08001337go_register_toolchains(version = "1.19.5")
Philipp Schrader37fdbb62021-12-18 00:30:37 -08001338
1339load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
1340load("//:go_deps.bzl", "go_dependencies")
1341load("//tools/go:mirrored_go_deps.bzl", "mirrored_go_dependencies")
1342
1343mirrored_go_dependencies()
1344
1345# gazelle:repository_macro go_deps.bzl%go_dependencies
1346go_dependencies()
1347
1348gazelle_dependencies()
Philipp Schradercc016b32021-12-30 08:59:58 -08001349
1350http_archive(
Adam Snaider13d48d92023-08-03 12:20:15 -07001351 name = "com_google_protobuf",
1352 sha256 = "ace0abf35274ee0f08d5564635505ed55a0bc346a6534413d3c5b040fc926332",
1353 strip_prefix = "protobuf-24.3",
1354 url = "https://github.com/protocolbuffers/protobuf/archive/refs/tags/v24.3.zip",
1355)
1356
1357http_archive(
1358 name = "com_github_grpc_grpc",
1359 patch_args = ["-p1"],
1360 patches = ["//debian:grpc.patch"],
1361 sha256 = "a3a65f0129c4922c5d7f4c11dcd40083a12ca54076fd3a927bcd63c53b7e44a5",
1362 strip_prefix = "grpc-1.59.2",
1363 url = "https://github.com/grpc/grpc/archive/refs/tags/v1.59.2.tar.gz",
1364)
1365
1366load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
1367
1368grpc_deps()
1369
1370load("@com_github_grpc_grpc//bazel:grpc_extra_deps.bzl", "grpc_extra_deps")
1371
1372grpc_extra_deps()
1373
1374http_archive(
Philipp Schradercc016b32021-12-30 08:59:58 -08001375 name = "com_github_bazelbuild_buildtools",
1376 sha256 = "44a6e5acc007e197d45ac3326e7f993f0160af9a58e8777ca7701e00501c0857",
1377 strip_prefix = "buildtools-4.2.4",
1378 urls = [
1379 "https://github.com/bazelbuild/buildtools/archive/refs/tags/4.2.4.tar.gz",
1380 ],
1381)
Philipp Schrader0f5d2502022-03-08 22:44:55 -08001382
1383http_archive(
Tyler Chatowec100e22022-03-22 16:23:04 -07001384 name = "libtinfo5_amd64",
Tyler Chatow8a51ac62022-03-15 13:23:12 -07001385 build_file_content = """
1386exports_files(
1387 [
1388 'lib/x86_64-linux-gnu/libtinfo.so.5',
1389 'lib/x86_64-linux-gnu/libtinfo.so.5.9',
1390 ],
1391 ["//visibility:public"],
1392)
1393""",
1394 patch_cmds = ["touch lib/x86_64-linux-gnu/BUILD"],
1395 sha256 = "059e14f77dce365c57b96284aae98c892f61e269b3fbb7d07714b7135c2e5617",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001396 urls = ["https://software.frc971.org/Build-Dependencies/libtinfo5_amd64.tar.gz"],
Tyler Chatow8a51ac62022-03-15 13:23:12 -07001397)
Tyler Chatowec100e22022-03-22 16:23:04 -07001398
1399http_archive(
1400 name = "libtinfo5_arm64",
1401 build_file_content = """
1402exports_files(
1403 [
1404 'lib/aarch64-linux-gnu/libtinfo.so.5',
1405 'lib/aarch64-linux-gnu/libtinfo.so.5.9',
1406 ],
1407 ["//visibility:public"],
1408)
1409""",
1410 patch_cmds = ["touch lib/aarch64-linux-gnu/BUILD"],
1411 sha256 = "df4ea5194c80df8d1f5f6ed68b47ce9dbf78aa8cdebbc61cf00654d9075f8e3c",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001412 urls = ["https://software.frc971.org/Build-Dependencies/libtinfo5_arm64.tar.gz"],
Tyler Chatowec100e22022-03-22 16:23:04 -07001413)
James Kuszmaul4ed5fb12022-03-22 15:20:04 -07001414
Philipp Schraderf60e7d72023-02-19 17:07:22 -08001415http_archive(
1416 name = "xvfb_amd64",
1417 build_file = "//third_party:xvfb/xvfb.BUILD",
1418 patch_cmds = [
1419 "unlink usr/bin/X11",
1420 ],
1421 sha256 = "a7491bf6c47ed0037992fa493f9c25af3ab00a695d706e1fdc122a8b798c0d7c",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001422 urls = ["https://software.frc971.org/Build-Dependencies/xvfb_amd64.tar.gz"],
Philipp Schraderf60e7d72023-02-19 17:07:22 -08001423)
1424
Austin Schuh86110712022-09-16 15:40:54 -07001425# https://curl.haxx.se/download/curl-7.69.1.tar.gz
1426http_archive(
1427 name = "com_github_curl_curl",
1428 build_file = "//debian:curl.BUILD",
1429 sha256 = "01ae0c123dee45b01bbaef94c0bc00ed2aec89cb2ee0fd598e0d302a6b5e0a98",
1430 strip_prefix = "curl-7.69.1",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001431 url = "https://software.frc971.org/Build-Dependencies/curl-7.69.1.tar.gz",
Austin Schuh86110712022-09-16 15:40:54 -07001432)
1433
1434http_archive(
1435 # No official name exists. Names used in our external dependencies include
1436 # zlib, madler_zlib, com_github_madler_zlib.
1437 name = "zlib",
1438 build_file = "//debian:BUILD.zlib.bazel",
1439 sha256 = "629380c90a77b964d896ed37163f5c3a34f6e6d897311f1df2a7016355c45eff",
1440 strip_prefix = "zlib-1.2.11",
1441 urls = [
1442 "https://github.com/madler/zlib/archive/v1.2.11.tar.gz",
1443 ],
1444)
1445
1446# 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 -08001447# git clone -b 1.10.34 --recurse-submodules --depth=1 https://github.com/aws/aws-sdk-cpp
Austin Schuh86110712022-09-16 15:40:54 -07001448# cd aws-sdk-cpp
1449# 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/\)')
1450# Now run the command that printed, and the output will be at aws_sdk-version.tar.gz.
1451http_archive(
1452 name = "aws_sdk",
1453 build_file = "//debian:aws_sdk.BUILD",
1454 patch_args = ["-p1"],
1455 patches = ["//debian:aws_sdk.patch"],
James Kuszmaulb0931ac2023-01-24 14:23:13 -08001456 sha256 = "de6570d10c246189fd8c02100f7f0d9af8499a3ef94a131eeb85619f3bd6c604",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001457 url = "https://software.frc971.org/Build-Dependencies/aws_sdk-1.10.34.tar.gz",
Austin Schuh86110712022-09-16 15:40:54 -07001458)
1459
James Kuszmaul5ab990d2022-11-07 16:35:49 -08001460# Source code of LZ4 (files under lib/) are under BSD 2-Clause.
1461# The rest of the repository (build information, documentation, etc.) is under GPLv2.
1462# We only care about the lib/ subfolder anyways, and strip out any other files.
1463http_archive(
1464 name = "com_github_lz4_lz4",
1465 build_file = "//debian:BUILD.lz4.bazel",
1466 sha256 = "0b0e3aa07c8c063ddf40b082bdf7e37a1562bda40a0ff5272957f3e987e0e54b",
1467 strip_prefix = "lz4-1.9.4/lib",
1468 url = "https://github.com/lz4/lz4/archive/refs/tags/v1.9.4.tar.gz",
1469)
1470
James Kuszmaul5c56ed32022-03-30 15:10:07 -07001471http_file(
1472 name = "com_github_foxglove_mcap_mcap",
1473 executable = True,
James Kuszmaul5ab990d2022-11-07 16:35:49 -08001474 sha256 = "ae745dd09cf4c9570c1c038a72630c07b073f0ed4b05983d64108ff748a40d3f",
1475 urls = ["https://github.com/foxglove/mcap/releases/download/releases%2Fmcap-cli%2Fv0.0.22/mcap-linux-amd64"],
James Kuszmaul5c56ed32022-03-30 15:10:07 -07001476)
Brian Silverman0aa13732022-05-19 23:14:08 -07001477
1478http_archive(
James Kuszmaul0de4feb2022-04-15 12:16:59 -07001479 name = "com_github_zaphoyd_websocketpp",
1480 build_file = "//third_party/websocketpp:websocketpp.BUILD",
Ravago Jones0c74c122023-01-08 15:20:19 -08001481 patch_args = ["-p1"],
1482 patches = ["//third_party/websocketpp:websocketpp.patch"],
James Kuszmaul0de4feb2022-04-15 12:16:59 -07001483 sha256 = "6ce889d85ecdc2d8fa07408d6787e7352510750daa66b5ad44aacb47bea76755",
1484 strip_prefix = "websocketpp-0.8.2",
1485 url = "https://github.com/zaphoyd/websocketpp/archive/refs/tags/0.8.2.tar.gz",
1486)
1487
1488http_archive(
1489 name = "com_github_foxglove_ws-protocol",
James Kuszmaul6b609292023-01-28 15:58:43 -08001490 build_file = "//third_party/foxglove/ws_protocol:foxglove_ws_protocol.BUILD",
James Kuszmaul0de4feb2022-04-15 12:16:59 -07001491 patch_args = ["-p1"],
James Kuszmaul6b609292023-01-28 15:58:43 -08001492 patches = ["//third_party/foxglove/ws_protocol:foxglove_ws_protocol.patch"],
James Kuszmaul0de4feb2022-04-15 12:16:59 -07001493 sha256 = "3256f09a67419f6556778c443d332f1a4bf53ba0e7a464179bf838abffa366ab",
1494 strip_prefix = "ws-protocol-releases-typescript-ws-protocol-examples-v0.0.6",
1495 url = "https://github.com/foxglove/ws-protocol/archive/refs/tags/releases/typescript/ws-protocol-examples/v0.0.6.tar.gz",
1496)
1497
1498http_archive(
1499 name = "asio",
1500 build_file_content = """
1501cc_library(
1502 name = "asio",
1503 hdrs = glob(["include/asio/**/*.hpp", "include/asio/**/*.ipp", "include/asio.hpp"]),
1504 visibility = ["//visibility:public"],
1505 defines = ["ASIO_STANDALONE"],
1506 includes = ["include/"],
1507)""",
1508 sha256 = "8976812c24a118600f6fcf071a20606630a69afe4c0abee3b0dea528e682c585",
1509 strip_prefix = "asio-1.24.0",
1510 url = "https://downloads.sourceforge.net/project/asio/asio/1.24.0%2520%2528Stable%2529/asio-1.24.0.tar.bz2",
1511)
James Kuszmaul6b609292023-01-28 15:58:43 -08001512
1513http_archive(
1514 name = "com_github_foxglove_schemas",
1515 build_file = "//third_party/foxglove/schemas:schemas.BUILD",
1516 sha256 = "c0d08365eb8fba0af7773b5f0095fb53fb53f020bde46edaa308af5bb939fc15",
1517 strip_prefix = "schemas-7a3e077b88142ac46bb4e2616f83dc029b45352e/schemas/flatbuffer",
1518 url = "https://github.com/foxglove/schemas/archive/7a3e077b88142ac46bb4e2616f83dc029b45352e.tar.gz",
1519)
James Kuszmaul3398d0b2023-02-11 22:55:22 -08001520
1521# This contains the *compiled* foxglove studio. This can be reproduced by:
1522# 1. Cloning https://github.com/foxglove/studio
1523# 2. Building the code (yarn web:build:prod)
1524# 3. tar'ing the web/.webpack folder
1525# These files can be hosted locally to provide an offline foxglove server.
1526# Foxglove may be served on any port and may be nested at a subpath
1527# (e.g., at hostname:8000/foxglove behind a proxy).
1528http_archive(
1529 name = "foxglove_studio",
1530 build_file_content = """
1531filegroup(
1532 name = "foxglove_studio",
1533 srcs = glob(["**"]),
1534 visibility = ["//visibility:public"],
1535)""",
James Kuszmaul4ae8e2e2023-12-09 12:59:33 -08001536 sha256 = "68513024efb60dcdfc9b130d3e0466d194a8599fbd85f8e99d01c148d03e5887",
James Kuszmaul3398d0b2023-02-11 22:55:22 -08001537 url =
James Kuszmaul4ae8e2e2023-12-09 12:59:33 -08001538 "https://software.frc971.org/Build-Dependencies/foxglove-9857d637e90dfeecd63ad47fa760046791f8d43c.tar.gz",
James Kuszmaul3398d0b2023-02-11 22:55:22 -08001539)
Ravago Jones9c10b2a2023-02-06 12:41:59 -08001540
1541#
1542# https://www.st.com/en/embedded-software/stsw-img009.html#overview
1543http_archive(
1544 name = "vl53l1x_ultra_lite_driver_api",
1545 build_file = "//third_party/vl53l1x:vl53l1x.BUILD",
1546 patch_args = ["-p1"],
1547 patches = ["//third_party/vl53l1x:vl53l1x.patch"],
1548 sha256 = "06a66254ab7a8b061f93ff0f65abb6088c3ea50335475bb6ac11087beb65d174",
1549 strip_prefix = "en.STSW-IMG009_v3.5.2/API",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001550 url = "https://software.frc971.org/Build-Dependencies/en.STSW-IMG009.zip",
Ravago Jones9c10b2a2023-02-06 12:41:59 -08001551)
Yash Chainani10b7b022023-02-22 14:34:04 -08001552
1553http_archive(
1554 name = "apriltag_test_bfbs_images",
1555 build_file_content = """
1556filegroup(
1557 name = "apriltag_test_bfbs_images",
1558 srcs = glob(["**"]),
1559 visibility = ["//visibility:public"],
1560)""",
1561 sha256 = "2356b9d0b3be59d01e837bfbbee21de55b16232d5e00c66701c20b64ff3272e3",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001562 url = "https://software.frc971.org/Build-Dependencies/2023_arducam_apriltag_test_images.tar.gz",
Yash Chainani10b7b022023-02-22 14:34:04 -08001563)
Filip Kujawaa5e39702023-03-04 17:58:27 -08001564
Austin Schuh1fc51fa2024-01-01 12:34:00 -08001565http_file(
1566 name = "orin_image_apriltag",
1567 downloaded_file_path = "orin_image_apriltag.bfbs",
1568 sha256 = "c86604fd0b1301b301e299b1bba2573af8c586413934a386a2bd28fd9b037b84",
1569 url = "https://software.frc971.org/Build-Dependencies/orin_image_apriltag.bfbs",
1570)
1571
1572http_file(
1573 name = "orin_large_image_apriltag",
1574 downloaded_file_path = "orin_large_gs_apriltag.bfbs",
1575 sha256 = "d933adac0d6c205c574791060be73701ead05977ff5dd9f6f4eadb45817c3ccb",
1576 url = "https://software.frc971.org/Build-Dependencies/orin_large_gs_apriltag.bfbs",
1577)
1578
Filip Kujawaa5e39702023-03-04 17:58:27 -08001579http_archive(
1580 name = "libedgetpu",
1581 build_file = "//third_party:libedgetpu/libedgetpu.BUILD",
Filip Kujawa8c76e5d2023-04-08 16:20:27 -07001582 sha256 = "c900faf2c9ea9599fda60c3d03ac43d0d7b34119659c9e35638b81cd14354b57",
Filip Kujawaa5e39702023-03-04 17:58:27 -08001583 strip_prefix = "libedgetpu-bazel",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001584 url = "https://software.frc971.org/Build-Dependencies/libedgetpu-ddfa7bde33c23afd8c2892182faa3e5b4e6ad94e.tar.gz",
Filip Kujawaa5e39702023-03-04 17:58:27 -08001585)
1586
1587http_archive(
1588 name = "libtensorflowlite",
1589 build_file = "//third_party:libtensorflowlite/libtensorflowlite.BUILD",
Filip Kujawa8c76e5d2023-04-08 16:20:27 -07001590 sha256 = "a073dfddb3cb25113ba7eac6edb5569d0ae7988cad881d3f665e8ca0b8b85108",
Filip Kujawaa5e39702023-03-04 17:58:27 -08001591 strip_prefix = "tensorflow-bazel",
Maxwell Henderson7a93a652023-06-24 15:17:09 -07001592 url = "https://software.frc971.org/Build-Dependencies/tensorflow-a4dfb8d1a71385bd6d122e4f27f86dcebb96712d.tar.gz",
Filip Kujawaa5e39702023-03-04 17:58:27 -08001593)
Philipp Schrader119c3822023-03-07 19:49:58 -08001594
1595http_archive(
1596 name = "julia",
1597 build_file = "//third_party:julia/julia.BUILD",
1598 patch_cmds = [
1599 "echo 'LIB_SYMLINKS = {' > files.bzl",
Austin Schuh1e69d422023-06-25 16:57:01 -07001600 """find lib/ -type l -exec bash -c 'echo "\\"{}\\": \\"$(readlink {})\\","' \\; | sort >> files.bzl""",
Philipp Schrader119c3822023-03-07 19:49:58 -08001601 "echo '}' >> files.bzl",
1602 "echo 'LIBS = [' >> files.bzl",
Austin Schuh1e69d422023-06-25 16:57:01 -07001603 """find lib/ -type f -exec bash -c 'echo "\\"{}\\","' \\; | sort >> files.bzl""",
Philipp Schrader119c3822023-03-07 19:49:58 -08001604 "echo ']' >> files.bzl",
1605 ],
1606 sha256 = "e71a24816e8fe9d5f4807664cbbb42738f5aa9fe05397d35c81d4c5d649b9d05",
1607 strip_prefix = "julia-1.8.5",
1608 url = "https://julialang-s3.julialang.org/bin/linux/x64/1.8/julia-1.8.5-linux-x86_64.tar.gz",
1609)
Austin Schuhae856ca2023-11-18 14:04:00 -08001610
1611http_archive(
1612 name = "com_github_nvidia_cuco",
1613 build_file = "//third_party/cuco:cuco.BUILD",
1614 patch_args = ["-p1"],
1615 patches = [
1616 "//third_party/cuco:template.patch",
1617 ],
1618 sha256 = "eecc9a111956a195f28ebc4b4fd23ac6991d072f5c1d7c68a59d059e05d7ad78",
1619 strip_prefix = "cuCollections-b7514d2010967fdfe4a1d414894bb945bc09fddc",
1620 url = "https://github.com/NVIDIA/cuCollections/archive/b7514d2010967fdfe4a1d414894bb945bc09fddc.zip",
1621)
1622
1623http_archive(
1624 name = "com_github_nvidia_cccl",
1625 build_file = "//third_party/cccl:cccl.BUILD",
1626 sha256 = "38160c628a9e32b7cd55553f299768f72b24074cc9c1a993ba40a177877b3421",
1627 strip_prefix = "cccl-931dc6793482c61edbc97b7a19256874fd264313",
1628 url = "https://github.com/NVIDIA/cccl/archive/931dc6793482c61edbc97b7a19256874fd264313.zip",
1629)
Austin Schuh686be392023-12-18 21:50:01 -08001630
1631# Hedron's Compile Commands Extractor for Bazel
1632# https://github.com/hedronvision/bazel-compile-commands-extractor
1633http_archive(
1634 name = "hedron_compile_commands",
1635 strip_prefix = "bazel-compile-commands-extractor-daae6f40adfa5fdb7c89684cbe4d88b691c63b2d",
1636
1637 # 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.
1638 # Even better, set up Renovate and let it do the work for you (see "Suggestion: Updates" in the README).
1639 url = "https://github.com/hedronvision/bazel-compile-commands-extractor/archive/daae6f40adfa5fdb7c89684cbe4d88b691c63b2d.tar.gz",
1640 # 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 = ..."
1641)
1642
1643load("@hedron_compile_commands//:workspace_setup.bzl", "hedron_compile_commands_setup")
1644
1645hedron_compile_commands_setup()