blob: c09149d0e899ec4267a7d4f9c6a18846a25d6f1d [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",
21 sha256 = "1c531376ac7e5a180e0237938a2536de0c54d93f5c278634818e0efc952dd56c",
22 urls = [
23 "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz",
24 "https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz",
25 ],
26)
27
28http_archive(
29 name = "rules_python",
30 patch_args = ["-p1"],
31 patches = [
32 "//third_party:rules_python/0001-Support-overriding-individual-packages.patch",
33 "//third_party:rules_python/0002-Allow-user-to-patch-wheels.patch",
34 ],
35 sha256 = "497ca47374f48c8b067d786b512ac10a276211810f4a580178ee9b9ad139323a",
36 strip_prefix = "rules_python-0.16.1",
37 url = "https://github.com/bazelbuild/rules_python/archive/refs/tags/0.16.1.tar.gz",
38)
39
40load("@rules_python//python:repositories.bzl", "python_register_toolchains")
41
42python_register_toolchains(
43 name = "python3_9",
44 python_version = "3.9",
45 register_toolchains = False,
46)
47
48load("@python3_9//:defs.bzl", python_interpreter = "interpreter")
49load("@rules_python//python:pip.bzl", "pip_parse")
50load("//tools/python:package_annotations.bzl", PYTHON_ANNOTATIONS = "ANNOTATIONS")
51
52pip_parse(
53 name = "pip_deps",
54 annotations = PYTHON_ANNOTATIONS,
55 enable_implicit_namespace_pkgs = True,
56 overrides = "//tools/python:whl_overrides.json",
57 patch_spec = "//tools/python:patches.json",
58 python_interpreter_target = python_interpreter,
59 require_overrides = RUNNING_IN_CI,
60 requirements_lock = "//tools/python:requirements.lock.txt",
61)
62
63# Load the starlark macro which will define your dependencies.
64load("@pip_deps//:requirements.bzl", install_pip_deps = "install_deps")
65
66install_pip_deps()
67
68load("//tools/python:repo_defs.bzl", "pip_configure")
69
70pip_configure(
71 name = "pip",
72)
73
74http_archive(
75 name = "rules_pkg",
76 patch_args = ["-p1"],
77 patches = [
78 "//third_party:rules_pkg/0001-Fix-tree-artifacts.patch",
79 ],
80 sha256 = "62eeb544ff1ef41d786e329e1536c1d541bb9bcad27ae984d57f18f314018e66",
81 urls = [
82 "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.6.0/rules_pkg-0.6.0.tar.gz",
83 "https://github.com/bazelbuild/rules_pkg/releases/download/0.6.0/rules_pkg-0.6.0.tar.gz",
84 ],
85)
86
87load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
88
89rules_pkg_dependencies()
90
Brian Silverman7bda6212018-08-05 11:42:11 -070091load(
92 "//debian:python.bzl",
93 python_debs = "files",
94)
95load(
Philipp Schraderd0e33a42022-01-22 21:55:15 -080096 "//debian:apache2.bzl",
97 apache2_debs = "files",
98)
99load(
Philipp Schrader41011a12022-03-13 12:49:32 -0700100 "//debian:postgresql_amd64.bzl",
101 postgresql_amd64_debs = "files",
102)
103load(
Brian Silverman7bda6212018-08-05 11:42:11 -0700104 "//debian:patch.bzl",
105 patch_debs = "files",
106)
Brian Silverman7297c0c2018-08-05 13:43:00 -0700107load(
Austin Schuh71f6fa72019-08-31 18:23:02 -0700108 "//debian:rsync.bzl",
109 rsync_debs = "files",
110)
111load(
112 "//debian:ssh.bzl",
113 ssh_debs = "files",
114)
115load(
Brian Silverman7297c0c2018-08-05 13:43:00 -0700116 "//debian:pandoc.bzl",
117 pandoc_debs = "files",
118)
Brian Silverman4f6ba442018-08-05 14:34:58 -0700119load(
120 "//debian:libusb.bzl",
121 libusb_debs = "files",
122)
Brian Silvermanb80dc9f2018-08-05 14:59:24 -0700123load(
124 "//debian:mingw_compiler.bzl",
125 mingw_compiler_debs = "files",
126)
Brian Silverman6470f442018-08-05 12:08:16 -0700127load(
128 "//debian:patchelf.bzl",
129 patchelf_debs = "files",
130)
131load(
132 "//debian:matplotlib.bzl",
133 matplotlib_debs = "files",
134)
Brian Silverman50b9ac02018-08-12 13:24:10 -0700135load(
136 "//debian:arm_frc_gnueabi_deps.bzl",
137 arm_frc_gnueabi_deps_debs = "files",
138)
Brian Silvermanb0ebf1d2018-10-17 23:36:40 -0700139load(
140 "//debian:python_gtk.bzl",
141 python_gtk_debs = "files",
142)
Brian Silvermand4260c72020-01-14 00:08:02 -0800143load(
Philipp Schraderfd5489f2022-09-17 17:31:09 -0700144 "//debian:gtk_runtime.bzl",
145 gtk_runtime_debs = "files",
146)
147load(
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800148 "//debian:opencv_arm64.bzl",
149 opencv_arm64_debs = "files",
150)
151load(
Brian Silvermand4260c72020-01-14 00:08:02 -0800152 "//debian:opencv_armhf.bzl",
153 opencv_armhf_debs = "files",
154)
Brian Silvermand97a47c2020-01-16 00:47:53 -0800155load(
156 "//debian:opencv_amd64.bzl",
157 opencv_amd64_debs = "files",
158)
Tyler Chatow60671d32020-02-26 19:49:30 -0800159load(
160 "//debian:gstreamer_amd64.bzl",
James Kuszmaulc91e4402020-05-10 18:47:20 -0700161 gstreamer_amd64_debs = "files",
Tyler Chatow60671d32020-02-26 19:49:30 -0800162)
163load(
164 "//debian:gstreamer_armhf.bzl",
James Kuszmaulc91e4402020-05-10 18:47:20 -0700165 gstreamer_armhf_debs = "files",
Tyler Chatow60671d32020-02-26 19:49:30 -0800166)
Austin Schuh023e7f52020-08-18 21:24:37 -0700167load(
Tyler Chatow6eda82c2022-03-27 22:37:38 -0700168 "//debian:gstreamer_arm64.bzl",
169 gstreamer_arm64_debs = "files",
170)
171load(
Austin Schuh023e7f52020-08-18 21:24:37 -0700172 "//debian:m4.bzl",
173 m4_debs = "files",
174)
Brian Silvermanf59fe3f2020-09-22 21:04:09 -0700175load(
176 "//debian:lzma_amd64.bzl",
177 lzma_amd64_debs = "files",
178)
179load(
180 "//debian:lzma_arm64.bzl",
181 lzma_arm64_debs = "files",
182)
Tyler Chatow8a51ac62022-03-15 13:23:12 -0700183load(
184 "//debian:libtinfo5_amd64.bzl",
185 libtinfo5_amd64_debs = "files",
186)
Tyler Chatowec100e22022-03-22 16:23:04 -0700187load(
188 "//debian:libtinfo5_arm64.bzl",
189 libtinfo5_arm64_debs = "files",
190)
Philipp Schrader0e19c602018-03-07 21:07:22 -0800191load("//debian:packages.bzl", "generate_repositories_for_debs")
192
193generate_repositories_for_debs(python_debs)
Brian Silverman7bda6212018-08-05 11:42:11 -0700194
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
213generate_repositories_for_debs(matplotlib_debs)
214
Brian Silverman50b9ac02018-08-12 13:24:10 -0700215generate_repositories_for_debs(arm_frc_gnueabi_deps_debs)
216
Brian Silvermanb0ebf1d2018-10-17 23:36:40 -0700217generate_repositories_for_debs(python_gtk_debs)
218
Philipp Schraderfd5489f2022-09-17 17:31:09 -0700219generate_repositories_for_debs(gtk_runtime_debs)
220
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800221generate_repositories_for_debs(opencv_arm64_debs)
222
Brian Silvermand4260c72020-01-14 00:08:02 -0800223generate_repositories_for_debs(opencv_armhf_debs)
224
Brian Silvermand97a47c2020-01-16 00:47:53 -0800225generate_repositories_for_debs(opencv_amd64_debs)
226
Tyler Chatow6eda82c2022-03-27 22:37:38 -0700227generate_repositories_for_debs(
228 gstreamer_amd64_debs,
229 base_url = "https://www.frc971.org/Build-Dependencies/gstreamer_bullseye_amd64_deps",
230)
Tyler Chatow60671d32020-02-26 19:49:30 -0800231
232generate_repositories_for_debs(gstreamer_armhf_debs)
233
Tyler Chatow6eda82c2022-03-27 22:37:38 -0700234generate_repositories_for_debs(
235 gstreamer_arm64_debs,
236 base_url = "https://www.frc971.org/Build-Dependencies/gstreamer_bullseye_arm64_deps",
237)
238
Austin Schuh023e7f52020-08-18 21:24:37 -0700239generate_repositories_for_debs(m4_debs)
240
Brian Silvermanf59fe3f2020-09-22 21:04:09 -0700241generate_repositories_for_debs(lzma_amd64_debs)
242
243generate_repositories_for_debs(lzma_arm64_debs)
244
Tyler Chatow8a51ac62022-03-15 13:23:12 -0700245generate_repositories_for_debs(libtinfo5_amd64_debs)
246
Tyler Chatowec100e22022-03-22 16:23:04 -0700247generate_repositories_for_debs(libtinfo5_arm64_debs)
248
Brian Silvermanc0309a02022-01-01 23:57:03 -0800249local_repository(
250 name = "com_grail_bazel_toolchain",
251 path = "third_party/bazel-toolchain",
252)
253
Brian Silverman4c7235a2021-11-17 19:04:37 -0800254load("@com_grail_bazel_toolchain//toolchain:rules.bzl", "llvm", "llvm_toolchain")
255
256llvm_version = "13.0.0"
257
258llvm(
259 name = "llvm_k8",
260 distribution = "clang+llvm-%s-x86_64-linux-gnu-ubuntu-16.04.tar.xz" % llvm_version,
261 llvm_version = llvm_version,
262)
263
264llvm(
265 name = "llvm_armv7",
266 distribution = "clang+llvm-%s-armv7a-linux-gnueabihf.tar.xz" % llvm_version,
267 llvm_version = llvm_version,
268)
269
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800270llvm(
271 name = "llvm_aarch64",
272 distribution = "clang+llvm-%s-aarch64-linux-gnu.tar.xz" % llvm_version,
273 llvm_version = llvm_version,
274)
275
Brian Silverman4c7235a2021-11-17 19:04:37 -0800276llvm_conlyopts = [
277 "-std=gnu99",
278]
279
280llvm_copts = [
281 "-D__STDC_FORMAT_MACROS",
282 "-D__STDC_CONSTANT_MACROS",
283 "-D__STDC_LIMIT_MACROS",
284 "-D_FILE_OFFSET_BITS=64",
285 "-fmessage-length=100",
286 "-fmacro-backtrace-limit=0",
287 "-Wextra",
288 "-Wpointer-arith",
289 "-Wstrict-aliasing",
290 "-Wcast-qual",
291 "-Wcast-align",
292 "-Wwrite-strings",
293 "-Wtype-limits",
294 "-Wsign-compare",
295 "-Wformat=2",
296 "-Werror",
297 "-ggdb3",
Brian Silverman4c7235a2021-11-17 19:04:37 -0800298]
299
300llvm_cxxopts = [
301 "-std=gnu++17",
302]
303
Brian Silverman1e7c8972022-02-03 23:15:41 -0800304llvm_opt_copts = [
305 "-DAOS_DEBUG=0",
306]
307
308llvm_fastbuild_copts = [
309 "-DAOS_DEBUG=0",
310]
311
Brian Silverman4c7235a2021-11-17 19:04:37 -0800312llvm_dbg_copts = [
313 "-DAOS_DEBUG=1",
314]
Brian Silvermanc0309a02022-01-01 23:57:03 -0800315
316llvm_toolchain(
317 name = "llvm_toolchain",
Brian Silverman4c7235a2021-11-17 19:04:37 -0800318 additional_target_compatible_with = {
319 "linux-armv7": [
320 "@//tools/platforms/hardware:raspberry_pi",
321 ],
322 },
323 conlyopts = {
324 "linux-x86_64": llvm_conlyopts,
325 "linux-armv7": llvm_conlyopts,
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800326 "linux-aarch64": llvm_conlyopts,
Brian Silverman4c7235a2021-11-17 19:04:37 -0800327 },
328 copts = {
329 "linux-x86_64": llvm_copts,
330 "linux-armv7": llvm_copts,
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800331 "linux-aarch64": llvm_copts,
Brian Silverman4c7235a2021-11-17 19:04:37 -0800332 },
333 cxxopts = {
334 "linux-x86_64": llvm_cxxopts,
335 "linux-armv7": llvm_cxxopts,
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800336 "linux-aarch64": llvm_cxxopts,
Brian Silverman4c7235a2021-11-17 19:04:37 -0800337 },
338 dbg_copts = {
339 "linux-x86_64": llvm_dbg_copts,
Brian Silverman1e7c8972022-02-03 23:15:41 -0800340 "linux-armv7": llvm_dbg_copts,
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800341 "linux-aarch64": llvm_dbg_copts,
Brian Silverman1e7c8972022-02-03 23:15:41 -0800342 },
343 fastbuild_copts = {
344 "linux-x86_64": llvm_fastbuild_copts,
345 "linux-armv7": llvm_fastbuild_copts,
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800346 "linux-aarch64": llvm_fastbuild_copts,
Brian Silverman4c7235a2021-11-17 19:04:37 -0800347 },
348 llvm_version = llvm_version,
Brian Silverman1e7c8972022-02-03 23:15:41 -0800349 opt_copts = {
350 "linux-x86_64": llvm_opt_copts,
351 "linux-armv7": llvm_opt_copts,
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800352 "linux-aarch64": llvm_opt_copts,
Brian Silverman1e7c8972022-02-03 23:15:41 -0800353 },
Brian Silverman4c7235a2021-11-17 19:04:37 -0800354 standard_libraries = {
355 "linux-x86_64": "libstdc++-10",
356 "linux-armv7": "libstdc++-10",
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800357 "linux-aarch64": "libstdc++-10",
Brian Silverman4c7235a2021-11-17 19:04:37 -0800358 },
359 static_libstdcxx = False,
Brian Silvermanc0309a02022-01-01 23:57:03 -0800360 sysroot = {
361 "linux-x86_64": "@amd64_debian_sysroot//:sysroot_files",
Brian Silverman4c7235a2021-11-17 19:04:37 -0800362 "linux-armv7": "@armhf_debian_rootfs//:sysroot_files",
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800363 "linux-aarch64": "@arm64_debian_rootfs//:sysroot_files",
Brian Silverman4c7235a2021-11-17 19:04:37 -0800364 },
365 target_toolchain_roots = {
366 "linux-x86_64": "@llvm_k8//",
367 "linux-armv7": "@llvm_armv7//",
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800368 "linux-aarch64": "@llvm_aarch64//",
Brian Silverman4c7235a2021-11-17 19:04:37 -0800369 },
370 toolchain_roots = {
371 "linux-x86_64": "@llvm_k8//",
Tyler Chatow486ad3e2022-03-23 13:32:03 -0700372 "linux-aarch64": "@llvm_aarch64//",
Brian Silvermanc0309a02022-01-01 23:57:03 -0800373 },
374)
375
Brian Silverman4c7235a2021-11-17 19:04:37 -0800376load("@llvm_toolchain//:toolchains.bzl", "llvm_register_toolchains")
377
378llvm_register_toolchains()
379
Philipp Schraderdada1072020-11-24 11:34:46 -0800380register_toolchains(
Philipp Schraderdada1072020-11-24 11:34:46 -0800381 "//tools/cpp:cc-toolchain-roborio",
382 "//tools/cpp:cc-toolchain-cortex-m4f",
Austin Schuh0a96ea32022-01-01 22:29:30 -0800383 "//tools/cpp:cc-toolchain-rp2040",
Philipp Schraderdada1072020-11-24 11:34:46 -0800384 # Find a good way to select between these two M4F toolchains.
385 #"//tools/cpp:cc-toolchain-cortex-m4f-k22",
Philipp Schraderf198a152021-12-05 09:18:23 -0800386 "//tools/python:python_toolchain",
Philipp Schrader9e1b9bd2021-12-28 00:15:12 -0800387 "//tools/python:upstream_python_toolchain",
Philipp Schrader73e56602021-12-06 21:37:30 -0800388 "//tools/go:noop_go_toolchain",
Brian Silverman847121b2022-03-09 15:48:08 -0800389 "//tools/rust:rust-toolchain-x86",
390 "//tools/rust:rust-toolchain-armv7",
391 "//tools/rust:rust-toolchain-arm64",
Brian Silvermana8ad1af2022-07-23 16:05:12 -0700392 # TODO(Brian): Make this work. See the comment on
393 # //tools/platforms:linux_roborio for details.
394 #"//tools/rust:rust-toolchain-roborio",
Ravago Jones16809802021-11-18 20:40:03 -0800395 "//tools/rust:noop_rust_toolchain",
Philipp Schrader54047962022-02-16 21:05:11 -0800396 "//tools/ts:noop_node_toolchain",
Philipp Schraderdada1072020-11-24 11:34:46 -0800397)
398
Austin Schuhf093fa52019-06-23 20:47:23 -0700399http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -0700400 name = "python_repo",
Austin Schuhf093fa52019-06-23 20:47:23 -0700401 build_file = "@//debian:python.BUILD",
Brian Silverman4c7235a2021-11-17 19:04:37 -0800402 sha256 = "048c51872f9c3853ae4e961c710533f477194a3f170b454e8d582f32a83e90f5",
403 url = "https://www.frc971.org/Build-Dependencies/python-6.tar.gz",
Philipp Schrader9b1790e2018-03-10 20:21:30 -0800404)
405
Austin Schuh7466fe12020-12-29 23:01:47 -0800406http_archive(
407 name = "com_github_stevengj_nlopt",
408 build_file = "@//debian:nlopt.BUILD",
409 patch_args = ["-p1"],
410 patches = ["//debian:nlopt.patch"],
411 sha256 = "2d65815b21c30813499fe19c63947f7da56b10c0d4a459dce05417899b43e461",
412 strip_prefix = "nlopt-496be736b8b249273838b891f4c8ca3669551127",
413 url = "https://www.frc971.org/Build-Dependencies/nlopt-496be736b8b249273838b891f4c8ca3669551127.zip",
414)
415
Austin Schuhd57edc42019-09-21 17:52:38 -0700416local_repository(
417 name = "com_google_absl",
418 path = "third_party/abseil",
Austin Schuh36244a12019-09-21 17:52:38 -0700419)
420
Alex Perrycb7da4b2019-08-28 19:35:56 -0700421local_repository(
422 name = "org_tuxfamily_eigen",
423 path = "third_party/eigen",
424)
425
James Kuszmaulbc02ff42021-01-15 20:41:30 -0800426local_repository(
427 name = "com_github_rawrtc_re",
428 path = "third_party/rawrtc/re",
429)
430
431local_repository(
432 name = "com_github_rawrtc_rew",
433 path = "third_party/rawrtc/rew",
434)
435
436local_repository(
437 name = "com_github_rawrtc_usrsctp",
438 path = "third_party/rawrtc/usrsctp",
439)
440
441local_repository(
442 name = "com_github_rawrtc_rawrtc_common",
443 path = "third_party/rawrtc/rawrtc-common",
444)
445
446local_repository(
447 name = "com_github_rawrtc_rawrtc_data_channel",
448 path = "third_party/rawrtc/rawrtc-data-channel",
449)
450
451local_repository(
452 name = "com_github_rawrtc_rawrtc",
453 path = "third_party/rawrtc/rawrtc",
454)
455
Austin Schuh0ca51f32020-12-25 21:51:45 -0800456http_archive(
457 name = "boringssl",
458 patch_args = ["-p1"],
459 patches = ["//debian:boringssl.patch"],
460 sha256 = "bcab08a22c28f5322316542aa2c3a9ef0a9f9fde9be22d489cee574867b24675",
461 strip_prefix = "boringssl-613fe9dbe74b58d6aaaf0d22fe57dccd964c7413",
462 urls = ["https://www.frc971.org/Build-Dependencies/boringssl-613fe9dbe74b58d6aaaf0d22fe57dccd964c7413.zip"],
463)
464
Austin Schuh36244a12019-09-21 17:52:38 -0700465# C++ rules for Bazel.
466http_archive(
467 name = "rules_cc",
Austin Schuh968174a2021-03-31 20:04:01 -0700468 sha256 = "ed36cc7a6f46b7c28ab4009db4a37e350e1ba367446b0886bcc9cdc1df92752e",
469 strip_prefix = "rules_cc-608c7b605fb844a20e96a3eddc9b49ad2542adab",
Austin Schuh36244a12019-09-21 17:52:38 -0700470 urls = [
Austin Schuh968174a2021-03-31 20:04:01 -0700471 "https://www.frc971.org/Build-Dependencies/rules_cc-608c7b605fb844a20e96a3eddc9b49ad2542adab.zip",
Austin Schuh36244a12019-09-21 17:52:38 -0700472 ],
473)
Austin Schuhd57edc42019-09-21 17:52:38 -0700474
Austin Schuh4759ffc2015-10-07 20:39:56 -0700475new_local_repository(
Brian Silverman7bda6212018-08-05 11:42:11 -0700476 name = "usr_repo",
Austin Schuhf093fa52019-06-23 20:47:23 -0700477 build_file = "@//debian:usr.BUILD",
Brian Silverman7bda6212018-08-05 11:42:11 -0700478 path = "/usr",
Austin Schuh4759ffc2015-10-07 20:39:56 -0700479)
480
Austin Schuh1f9aeb42015-11-12 23:34:49 -0800481new_git_repository(
Brian Silverman7bda6212018-08-05 11:42:11 -0700482 name = "slycot_repo",
Tyler Chatow2584bb12018-10-27 20:48:35 -0700483 build_file = "@//debian:slycot.BUILD",
Brian Silverman7bda6212018-08-05 11:42:11 -0700484 commit = "5af5f283cb23cbe23c4dfea4d5e56071bdbd6e70",
485 remote = "https://github.com/avventi/Slycot.git",
Austin Schuh1f9aeb42015-11-12 23:34:49 -0800486)
487
Austin Schuh9950f682021-11-06 15:27:58 -0700488# TODO(austin): https://github.com/wpilibsuite/roborio-toolchain/releases/tag/v2022-1
Austin Schuhf093fa52019-06-23 20:47:23 -0700489http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -0700490 name = "arm_frc_linux_gnueabi_repo",
Austin Schuhf093fa52019-06-23 20:47:23 -0700491 build_file = "@//tools/cpp/arm-frc-linux-gnueabi:arm-frc-linux-gnueabi.BUILD",
Austin Schuhe991fe22020-11-18 16:53:39 -0800492 patches = ["//debian:fts.patch"],
James Kuszmaul3ae42262019-11-08 12:33:41 -0800493 sha256 = "043a5b047c2af9cf80d146d8327b588264c98a01e0f3f41e3564dd2bbbc95c0e",
494 strip_prefix = "frc2020/roborio/",
Austin Schuha5778ae2020-10-21 21:15:35 -0700495 url = "https://www.frc971.org/Build-Dependencies/FRC-2020-Linux-Toolchain-7.3.0.tar.gz",
Austin Schuh55139fe2015-10-14 23:55:24 -0700496)
Austin Schuhe456f152015-11-27 13:44:39 -0800497
Brian Silverman4c7235a2021-11-17 19:04:37 -0800498# 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
499# The following files and folders are removed to make bazel happy with it:
Brian Silvermanbf4c1312020-01-12 11:35:45 -0800500# usr/share/ca-certificates
Brian Silverman4c7235a2021-11-17 19:04:37 -0800501# lib/systemd/system/system-systemd\\x2dcryptsetup.slice
Brian Silvermanbf4c1312020-01-12 11:35:45 -0800502http_archive(
503 name = "armhf_debian_rootfs",
Brian Silverman60606c92020-01-15 22:45:04 -0800504 build_file = "@//:compilers/debian_rootfs.BUILD",
Brian Silverman4c7235a2021-11-17 19:04:37 -0800505 sha256 = "734f26a0cfc943cc3cae88412536186adfc4ed148cc167e6ffb298497c686280",
506 url = "https://www.frc971.org/Build-Dependencies/2021-10-30-raspios-bullseye-armhf-lite_rootfs.tar.bz2",
Brian Silvermanbf4c1312020-01-12 11:35:45 -0800507)
508
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800509# 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
510# The following files and folders are removed to make bazel happy with it:
511# usr/share/ca-certificates
512# lib/systemd/system/system-systemd\\x2dcryptsetup.slice
513http_archive(
514 name = "arm64_debian_rootfs",
515 build_file = "@//:compilers/debian_rootfs.BUILD",
516 sha256 = "7e6ad432fec0a36f8b66c3fc2ab8795ea446e61f7dce7a206b55602677cf0904",
517 url = "https://www.frc971.org/Build-Dependencies/2021-10-30-raspios-bullseye-arm64-lite_rootfs.tar.bz2",
518)
519
Brian Silverman60606c92020-01-15 22:45:04 -0800520# Created with:
521# `debootstrap buster buster_sysroot`
522# and then chrooting in and running:
523# apt install libc6-dev libstdc++-7-dev
Brian Silverman4c7235a2021-11-17 19:04:37 -0800524# removing the apt cache,
Brian Silverman60606c92020-01-15 22:45:04 -0800525# and then tarring up the result
526http_archive(
527 name = "amd64_debian_sysroot",
528 build_file = "@//:compilers/debian_rootfs.BUILD",
Brian Silverman4c7235a2021-11-17 19:04:37 -0800529 sha256 = "5e10f4cac85a98a39da1716b218bc05fff4666c61cc471a7df27876710bc86d2",
530 url = "https://www.frc971.org/Build-Dependencies/2022-01-06-debian-bullseye_rootfs.tar.bz2",
Brian Silverman60606c92020-01-15 22:45:04 -0800531)
532
Austin Schuhe456f152015-11-27 13:44:39 -0800533new_git_repository(
Brian Silverman7bda6212018-08-05 11:42:11 -0700534 name = "python_gflags_repo",
Tyler Chatow2584bb12018-10-27 20:48:35 -0700535 build_file = "@//debian:gflags.BUILD",
Brian Silverman7bda6212018-08-05 11:42:11 -0700536 commit = "41c4571864f0db5823e07715317e7388e94faabc",
537 remote = "https://github.com/gflags/python-gflags.git",
Austin Schuhe456f152015-11-27 13:44:39 -0800538)
539
540bind(
Brian Silverman7bda6212018-08-05 11:42:11 -0700541 name = "python-gflags",
542 actual = "@python_gflags_repo//:gflags",
Austin Schuhe456f152015-11-27 13:44:39 -0800543)
544
Brian Silverman16a923c2018-10-31 19:40:51 -0700545local_repository(
546 name = "com_github_gflags_gflags",
547 path = "third_party/gflags",
548)
549
Brian Silverman8d644032020-02-02 12:15:43 -0800550# Downloaded from:
551# https://pypi.python.org/packages/source/g/glog/glog-0.1.tar.gz
Austin Schuhf093fa52019-06-23 20:47:23 -0700552http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -0700553 name = "python_glog_repo",
Austin Schuhf093fa52019-06-23 20:47:23 -0700554 build_file = "@//debian:glog.BUILD",
Brian Silverman7bda6212018-08-05 11:42:11 -0700555 sha256 = "953fd80122c48023d1148e6d1bda2763fcab59c8a81682bb298238a5935547b0",
556 strip_prefix = "glog-0.1",
Austin Schuha5778ae2020-10-21 21:15:35 -0700557 url = "https://www.frc971.org/Build-Dependencies/glog-0.1.tar.gz",
Austin Schuhe456f152015-11-27 13:44:39 -0800558)
559
560bind(
Brian Silverman7bda6212018-08-05 11:42:11 -0700561 name = "python-glog",
562 actual = "@python_glog_repo//:glog",
Austin Schuhe456f152015-11-27 13:44:39 -0800563)
Brian Silvermancee260a2015-12-24 16:27:51 -0800564
Brian Silverman82a12b92019-01-19 21:52:10 -0800565# Generated with:
Austin Schuh9950f682021-11-06 15:27:58 -0700566# git fetch https://github.com/wpilibsuite/ni-libraries main
Austin Schuhd3c72912022-02-22 18:05:32 -0800567# git archive --output=allwpilib_ni-libraries_776db4e8aed31a651fa2f590e7468c69b384b42a.tar.gz --format=tar.gz 776db4e8aed31a651fa2f590e7468c69b384b42a
Austin Schuhf093fa52019-06-23 20:47:23 -0700568http_archive(
James Kuszmaulc9c46b32019-12-08 21:10:00 -0800569 name = "allwpilib_ni_libraries",
570 build_file = "@//debian:ni-libraries.BUILD",
Austin Schuhd3c72912022-02-22 18:05:32 -0800571 sha256 = "525b9d777cd00091b9095893c2e4fd0a70c7609c76db161161d407769ad4ba74",
572 url = "https://www.frc971.org/Build-Dependencies/allwpilib_ni-libraries_776db4e8aed31a651fa2f590e7468c69b384b42a.tar.gz",
Brian Silverman82a12b92019-01-19 21:52:10 -0800573)
574
Brian Silverman3fca9d72016-02-20 02:32:51 -0500575# Downloaded from:
576# https://pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz
Austin Schuhf093fa52019-06-23 20:47:23 -0700577http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -0700578 name = "six_repo",
Austin Schuhf093fa52019-06-23 20:47:23 -0700579 build_file = "@//debian:six.BUILD",
Brian Silverman7bda6212018-08-05 11:42:11 -0700580 sha256 = "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a",
581 strip_prefix = "six-1.10.0",
Austin Schuha5778ae2020-10-21 21:15:35 -0700582 url = "https://www.frc971.org/Build-Dependencies/six-1.10.0.tar.gz",
Brian Silverman3fca9d72016-02-20 02:32:51 -0500583)
584
585# For protobuf. Don't use these.
586bind(
Brian Silverman7bda6212018-08-05 11:42:11 -0700587 name = "six",
588 actual = "@six_repo//:six",
Brian Silverman3fca9d72016-02-20 02:32:51 -0500589)
Brian Silverman7bda6212018-08-05 11:42:11 -0700590
Brian Silverman3fca9d72016-02-20 02:32:51 -0500591bind(
Brian Silverman7bda6212018-08-05 11:42:11 -0700592 name = "gtest",
593 actual = "//third_party/googletest:googlemock",
Brian Silverman3fca9d72016-02-20 02:32:51 -0500594)
Brian Silverman7bda6212018-08-05 11:42:11 -0700595
Brian Silverman3fca9d72016-02-20 02:32:51 -0500596bind(
Brian Silverman7bda6212018-08-05 11:42:11 -0700597 name = "gtest_main",
598 actual = "//third_party/googletest:googlemock_main",
Brian Silverman3fca9d72016-02-20 02:32:51 -0500599)
600
Brian Silverman4aa83042018-01-05 12:47:31 -0800601# Recompressed from libusb-1.0.21.7z.
602http_file(
Brian Silverman7bda6212018-08-05 11:42:11 -0700603 name = "libusb_1_0_windows",
Austin Schuh4ac96a82019-08-14 20:24:23 -0700604 downloaded_file_path = "libusb-1.0.21-windows.tar.xz",
Brian Silverman7bda6212018-08-05 11:42:11 -0700605 sha256 = "fc2ba03992f343aabbaf9eb90559c6e00cdc6a2bd914d7cebea85857d5244015",
Austin Schuha5778ae2020-10-21 21:15:35 -0700606 urls = ["https://www.frc971.org/Build-Dependencies/libusb-1.0.21-windows.tar.xz"],
Brian Silverman4aa83042018-01-05 12:47:31 -0800607)
Brian Silvermand3ad1652018-02-18 22:16:29 -0500608
609# The data tarball of the same-named Debian package.
Austin Schuhf093fa52019-06-23 20:47:23 -0700610http_archive(
Brian Silvermand3ad1652018-02-18 22:16:29 -0500611 name = "f2c",
Austin Schuhf093fa52019-06-23 20:47:23 -0700612 build_file = "@//debian:f2c.BUILD",
Brian Silvermand3ad1652018-02-18 22:16:29 -0500613 sha256 = "2c677437f8217a2e2b23e41b33995d0571644fc1bea46de858f8913a5053e3f4",
Austin Schuha5778ae2020-10-21 21:15:35 -0700614 url = "https://www.frc971.org/Build-Dependencies/f2c_20100827-1_amd64.xz.tar.xz",
Brian Silvermand3ad1652018-02-18 22:16:29 -0500615)
616
617# Downloaded from http://www.netlib.org/clapack/.
Austin Schuhf093fa52019-06-23 20:47:23 -0700618http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -0700619 name = "clapack",
Austin Schuhf093fa52019-06-23 20:47:23 -0700620 build_file = "@//debian:clapack.BUILD",
Brian Silverman7bda6212018-08-05 11:42:11 -0700621 sha256 = "6dc4c382164beec8aaed8fd2acc36ad24232c406eda6db462bd4c41d5e455fac",
622 strip_prefix = "CLAPACK-3.2.1/",
Austin Schuha5778ae2020-10-21 21:15:35 -0700623 url = "https://www.frc971.org/Build-Dependencies/clapack-3.2.1.tgz",
Brian Silverman7bda6212018-08-05 11:42:11 -0700624)
625
Austin Schuhf093fa52019-06-23 20:47:23 -0700626http_archive(
Philipp Schrader41011a12022-03-13 12:49:32 -0700627 name = "postgresql_amd64",
628 build_file = "@//debian:postgresql_amd64.BUILD",
629 sha256 = "2b8bb77deaf58f798c296ce31ee7a32781395d55e05dcddc8a7da7e827f38d7f",
630 url = "https://www.frc971.org/Build-Dependencies/postgresql_amd64.tar.gz",
631)
632
633http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -0700634 name = "patch",
Austin Schuhf093fa52019-06-23 20:47:23 -0700635 build_file = "@//debian:patch.BUILD",
Brian Silverman7bda6212018-08-05 11:42:11 -0700636 sha256 = "b5ce139648a2e04f5585948ddad2fdae24dd4ee7976ac5a22d6ae7bd5674631e",
Austin Schuha5778ae2020-10-21 21:15:35 -0700637 url = "https://www.frc971.org/Build-Dependencies/patch.tar.gz",
Brian Silvermand3ad1652018-02-18 22:16:29 -0500638)
Brian Silverman7297c0c2018-08-05 13:43:00 -0700639
Austin Schuhf093fa52019-06-23 20:47:23 -0700640http_archive(
Austin Schuh71f6fa72019-08-31 18:23:02 -0700641 name = "rsync",
642 build_file = "@//debian:rsync.BUILD",
643 sha256 = "53be65a9214aaa6d1b9176f135184fb4a78ccefd58f95ce0da37e6a392dfeb60",
Austin Schuha5778ae2020-10-21 21:15:35 -0700644 url = "https://www.frc971.org/Build-Dependencies/rsync.tar.gz",
Austin Schuh71f6fa72019-08-31 18:23:02 -0700645)
646
Brian Silvermanbd7860e2020-01-05 17:52:40 -0800647# //debian:ssh
Austin Schuh71f6fa72019-08-31 18:23:02 -0700648http_archive(
649 name = "ssh",
650 build_file = "@//debian:ssh.BUILD",
Brian Silvermanbd7860e2020-01-05 17:52:40 -0800651 sha256 = "470fdc1252a2133a9d3c3da778e892a5b88f04f402cb04d8eb1cff7853242034",
Austin Schuha5778ae2020-10-21 21:15:35 -0700652 url = "https://www.frc971.org/Build-Dependencies/ssh_v3.tar.gz",
Austin Schuh71f6fa72019-08-31 18:23:02 -0700653)
654
655http_archive(
Philipp Schraderd0e33a42022-01-22 21:55:15 -0800656 name = "apache2",
657 build_file = "@//debian:apache2.BUILD",
658 sha256 = "98b0ad6d911751ba0aa486429e6278f995e7bbabd928c7d3d44c888fa2bf371b",
659 url = "https://www.frc971.org/Build-Dependencies/apache2.tar.gz",
660)
661
662http_archive(
Brian Silverman7297c0c2018-08-05 13:43:00 -0700663 name = "pandoc",
Austin Schuhf093fa52019-06-23 20:47:23 -0700664 build_file = "@//debian:pandoc.BUILD",
Brian Silverman7297c0c2018-08-05 13:43:00 -0700665 sha256 = "9f7a7adb3974a1f14715054c349ff3edc2909e920dbe3438fca437a83845f3c4",
Austin Schuha5778ae2020-10-21 21:15:35 -0700666 url = "https://www.frc971.org/Build-Dependencies/pandoc.tar.gz",
Brian Silverman7297c0c2018-08-05 13:43:00 -0700667)
Brian Silverman4f6ba442018-08-05 14:34:58 -0700668
Austin Schuhf093fa52019-06-23 20:47:23 -0700669http_archive(
Brian Silverman4f6ba442018-08-05 14:34:58 -0700670 name = "libusb",
Austin Schuhf093fa52019-06-23 20:47:23 -0700671 build_file = "@//debian:libusb.BUILD",
Brian Silverman4f6ba442018-08-05 14:34:58 -0700672 sha256 = "3ca5cc2d317226f6646866ff9e8c443db3b0f6c82f828e800240982727531590",
Austin Schuha5778ae2020-10-21 21:15:35 -0700673 url = "https://www.frc971.org/Build-Dependencies/libusb.tar.gz",
Brian Silverman4f6ba442018-08-05 14:34:58 -0700674)
Brian Silvermanb80dc9f2018-08-05 14:59:24 -0700675
Austin Schuhf093fa52019-06-23 20:47:23 -0700676http_archive(
Brian Silvermanb80dc9f2018-08-05 14:59:24 -0700677 name = "mingw_compiler",
Austin Schuhf093fa52019-06-23 20:47:23 -0700678 build_file = "@//debian:mingw_compiler.BUILD",
Brian Silvermanb80dc9f2018-08-05 14:59:24 -0700679 sha256 = "45e86a8460f2151a4f0306e7ae7b06761029d2412ee16f63d1e8d2d29354e378",
Austin Schuha5778ae2020-10-21 21:15:35 -0700680 url = "https://www.frc971.org/Build-Dependencies/mingw_compiler.tar.gz",
Brian Silvermanb80dc9f2018-08-05 14:59:24 -0700681)
Brian Silverman6470f442018-08-05 12:08:16 -0700682
James Kuszmaul910f92b2020-01-01 15:30:38 -0800683# Note that we should generally keep the matplotlib repo in a folder not
684# named matplotlib, because otherwise the repository itself tends to end up
685# on the PYTHONPATH, rather than the matplotlib folder within this repo.
Austin Schuhf093fa52019-06-23 20:47:23 -0700686http_archive(
James Kuszmaul910f92b2020-01-01 15:30:38 -0800687 name = "matplotlib_repo",
Austin Schuhf093fa52019-06-23 20:47:23 -0700688 build_file = "@//debian:matplotlib.BUILD",
Brian Silverman4c7235a2021-11-17 19:04:37 -0800689 sha256 = "71d1512f1a9a3c90496f0ef3adcd46c4e5e4da4310d7cbb6b0da01a07e5e76e8",
690 url = "https://www.frc971.org/Build-Dependencies/matplotlib-6.tar.gz",
Brian Silverman6470f442018-08-05 12:08:16 -0700691)
692
Austin Schuhf093fa52019-06-23 20:47:23 -0700693http_archive(
Brian Silverman6470f442018-08-05 12:08:16 -0700694 name = "patchelf",
Austin Schuhf093fa52019-06-23 20:47:23 -0700695 build_file = "@//debian:patchelf.BUILD",
Brian Silverman6470f442018-08-05 12:08:16 -0700696 sha256 = "bf8b709909d7d9e30815dd228eeded7dc282e3ce3919d0589ccbb56ac8632abc",
Austin Schuha5778ae2020-10-21 21:15:35 -0700697 url = "https://www.frc971.org/Build-Dependencies/patchelf.tar.gz",
Brian Silverman6470f442018-08-05 12:08:16 -0700698)
Brian Silverman50b9ac02018-08-12 13:24:10 -0700699
Austin Schuhf093fa52019-06-23 20:47:23 -0700700http_archive(
Brian Silverman50b9ac02018-08-12 13:24:10 -0700701 name = "arm_frc_gnueabi_deps",
Austin Schuhf093fa52019-06-23 20:47:23 -0700702 build_file = "@//debian:arm_frc_gnueabi_deps.BUILD",
Brian Silverman50b9ac02018-08-12 13:24:10 -0700703 sha256 = "4b26fe45010817dc136488ee1604ade21bd7c264c29f17d864fc6eba9d7442c4",
Austin Schuha5778ae2020-10-21 21:15:35 -0700704 url = "https://www.frc971.org/Build-Dependencies/arm_frc_gnueabi_deps.tar.gz",
Brian Silverman50b9ac02018-08-12 13:24:10 -0700705)
Brian Silverman6c8b88b2018-09-03 18:17:02 -0700706
Austin Schuhf093fa52019-06-23 20:47:23 -0700707http_archive(
Brian Silvermanb0ebf1d2018-10-17 23:36:40 -0700708 name = "python_gtk",
Austin Schuhf093fa52019-06-23 20:47:23 -0700709 build_file = "@//debian:python_gtk.BUILD",
Philipp Schraderc3670b82022-02-22 19:11:30 -0800710 sha256 = "36db18fc2b2c9012312b5d1cdc3d392d7e9756040f759ea50cb623fea29ae817",
711 url = "https://www.frc971.org/Build-Dependencies/python_gtk-4.tar.gz",
Brian Silvermanb0ebf1d2018-10-17 23:36:40 -0700712)
713
Philipp Schraderfd5489f2022-09-17 17:31:09 -0700714http_archive(
715 name = "gtk_runtime",
716 build_file = "@//debian:gtk_runtime.BUILD",
Philipp Schrader7520ee62022-12-10 14:04:40 -0800717 sha256 = "5a6014d1783363be6bc95843d03bbb6513e650eaea60be2b1a4c65bf21981f9b",
718 url = "https://www.frc971.org/Build-Dependencies/gtk_runtime-4.tar.gz",
Philipp Schraderfd5489f2022-09-17 17:31:09 -0700719)
720
Brian Silverman6c8b88b2018-09-03 18:17:02 -0700721# Downloaded from
722# 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 -0700723http_archive(
Brian Silverman6c8b88b2018-09-03 18:17:02 -0700724 name = "gcc_arm_none_eabi",
Austin Schuhf093fa52019-06-23 20:47:23 -0700725 build_file = "@//:compilers/gcc_arm_none_eabi.BUILD",
Brian Silverman6c8b88b2018-09-03 18:17:02 -0700726 sha256 = "bb17109f0ee697254a5d4ae6e5e01440e3ea8f0277f2e8169bf95d07c7d5fe69",
727 strip_prefix = "gcc-arm-none-eabi-7-2018-q2-update/",
Austin Schuha5778ae2020-10-21 21:15:35 -0700728 url = "https://www.frc971.org/Build-Dependencies/gcc-arm-none-eabi-7-2018-q2-update-linux.tar.bz2",
Brian Silverman6c8b88b2018-09-03 18:17:02 -0700729)
Austin Schuhad596222018-01-31 23:34:03 -0800730
Tyler Chatowfba57822022-03-22 19:38:41 -0700731# Java11 JDK.
Philipp Schrader6efe5732022-02-12 15:11:13 -0800732remote_java_repository(
Austin Schuhe18baff2018-10-20 17:40:42 -0700733 name = "openjdk_linux_archive",
Philipp Schrader6efe5732022-02-12 15:11:13 -0800734 prefix = "openjdk",
Tyler Chatowfba57822022-03-22 19:38:41 -0700735 sha256 = "60e65d32e38876f81ddb623e87ac26c820465b637e263e8bed1acdecb4ca9be2",
736 strip_prefix = "zulu11.54.25-ca-jdk11.0.14.1-linux_x64",
Philipp Schrader9670a2a2023-01-11 01:20:16 -0800737 target_compatible_with = [
738 "@platforms//cpu:x86_64",
739 "@platforms//os:linux",
740 ],
Austin Schuhe18baff2018-10-20 17:40:42 -0700741 urls = [
Tyler Chatowfba57822022-03-22 19:38:41 -0700742 "https://www.frc971.org/Build-Dependencies/zulu11.54.25-ca-jdk11.0.14.1-linux_x64.tar.gz",
Austin Schuhe18baff2018-10-20 17:40:42 -0700743 ],
Tyler Chatowfba57822022-03-22 19:38:41 -0700744 version = "11",
745)
746
747remote_java_repository(
748 name = "openjdk_linux_archive_aarch64",
Tyler Chatowfba57822022-03-22 19:38:41 -0700749 prefix = "openjdk",
750 sha256 = "b0fb0bc303bb05b5042ef3d0939b9489f4a49a13a2d1c8f03c5d8ab23099454d",
751 strip_prefix = "zulu11.54.25-ca-jdk11.0.14.1-linux_aarch64",
Philipp Schrader9670a2a2023-01-11 01:20:16 -0800752 target_compatible_with = [
753 "@platforms//cpu:aarch64",
754 "@platforms//os:linux",
755 ],
Tyler Chatowfba57822022-03-22 19:38:41 -0700756 urls = [
757 "https://www.frc971.org/Build-Dependencies/zulu11.54.25-ca-jdk11.0.14.1-linux_aarch64.tar.gz",
758 ],
759 version = "11",
Austin Schuhe18baff2018-10-20 17:40:42 -0700760)
761
Austin Schuhf9724442018-10-28 20:30:21 -0700762local_repository(
763 name = "com_google_protobuf",
764 path = "third_party/protobuf",
Brian Silverman9c614bc2016-02-15 20:20:02 -0500765)
Austin Schuh10358f22019-01-21 20:25:11 -0800766
767local_repository(
768 name = "com_github_google_glog",
769 path = "third_party/google-glog",
770)
Austin Schuh6defdeb2019-01-21 21:00:30 -0800771
Alex Perrycb7da4b2019-08-28 19:35:56 -0700772local_repository(
773 name = "com_google_googletest",
774 path = "third_party/googletest",
775)
776
Austin Schuh6defdeb2019-01-21 21:00:30 -0800777# External dependency: Google Benchmark; has no Bazel build.
778local_repository(
779 name = "com_github_google_benchmark",
780 path = "third_party/google-benchmark",
Austin Schuhcbc17402019-01-21 21:00:30 -0800781)
Austin Schuh033df092019-01-21 19:46:48 -0800782
783local_repository(
784 name = "com_google_ceres_solver",
785 path = "third_party/ceres",
Austin Schuh70cc9552019-01-21 19:46:48 -0800786)
Austin Schuhf6b94632019-02-02 22:11:27 -0800787
Austin Schuhf093fa52019-06-23 20:47:23 -0700788http_archive(
James Kuszmaul02eb05e2019-12-22 12:32:18 -0800789 name = "ctre_phoenix_api_cpp_headers",
Austin Schuhf6b94632019-02-02 22:11:27 -0800790 build_file_content = """
791cc_library(
792 name = 'api-cpp',
793 visibility = ['//visibility:public'],
794 hdrs = glob(['ctre/phoenix/**/*.h']),
795)
796""",
Austin Schuhde605f12022-02-23 23:08:19 -0800797 sha256 = "ea4131d1809bc8ccbd72b15cc7a65bd6ebb89a65019afc6a336e2c92d91ec824",
Austin Schuhf6b94632019-02-02 22:11:27 -0800798 urls = [
Austin Schuhde605f12022-02-23 23:08:19 -0800799 "http://devsite.ctr-electronics.com/maven/release/com/ctre/phoenix/api-cpp/5.21.1/api-cpp-5.21.1-headers.zip",
Austin Schuhf6b94632019-02-02 22:11:27 -0800800 ],
801)
802
Austin Schuhf093fa52019-06-23 20:47:23 -0700803http_archive(
James Kuszmaul02eb05e2019-12-22 12:32:18 -0800804 name = "ctre_phoenix_api_cpp_athena",
Austin Schuhf6b94632019-02-02 22:11:27 -0800805 build_file_content = """
Austin Schuhde605f12022-02-23 23:08:19 -0800806filegroup(
807 name = 'shared_libraries',
808 srcs = [
809 'linux/athena/shared/libCTRE_Phoenix.so',
810 ],
811 visibility = ['//visibility:public'],
812)
813
Austin Schuhf6b94632019-02-02 22:11:27 -0800814cc_library(
815 name = 'api-cpp',
816 visibility = ['//visibility:public'],
Austin Schuhde605f12022-02-23 23:08:19 -0800817 srcs = ['linux/athena/shared/libCTRE_Phoenix.so'],
Philipp Schraderdada1072020-11-24 11:34:46 -0800818 target_compatible_with = ['@//tools/platforms/hardware:roborio'],
Austin Schuhf6b94632019-02-02 22:11:27 -0800819)
820""",
Austin Schuhde605f12022-02-23 23:08:19 -0800821 sha256 = "328130012a0fc1050c3ff09f30a2adf5106d15accc3d850b744fa60ec635a462",
Austin Schuhf6b94632019-02-02 22:11:27 -0800822 urls = [
Austin Schuhde605f12022-02-23 23:08:19 -0800823 "http://devsite.ctr-electronics.com/maven/release/com/ctre/phoenix/api-cpp/5.21.1/api-cpp-5.21.1-linuxathena.zip",
Austin Schuhf6b94632019-02-02 22:11:27 -0800824 ],
825)
826
James Kuszmaul02eb05e2019-12-22 12:32:18 -0800827http_archive(
828 name = "ctre_phoenix_cci_headers",
Austin Schuhf6b94632019-02-02 22:11:27 -0800829 build_file_content = """
830cc_library(
831 name = 'cci',
832 visibility = ['//visibility:public'],
833 hdrs = glob(['ctre/phoenix/**/*.h']),
834)
835""",
Austin Schuhde605f12022-02-23 23:08:19 -0800836 sha256 = "b3332885c6afe082f9f67c2335086e89f705b6ac6c5101188616f81c58d3e49a",
Austin Schuhf6b94632019-02-02 22:11:27 -0800837 urls = [
Austin Schuhde605f12022-02-23 23:08:19 -0800838 "http://devsite.ctr-electronics.com/maven/release/com/ctre/phoenix/cci/5.21.1/cci-5.21.1-headers.zip",
Austin Schuhf6b94632019-02-02 22:11:27 -0800839 ],
840)
841
Austin Schuhf093fa52019-06-23 20:47:23 -0700842http_archive(
James Kuszmaul02eb05e2019-12-22 12:32:18 -0800843 name = "ctre_phoenix_cci_athena",
Austin Schuhf6b94632019-02-02 22:11:27 -0800844 build_file_content = """
Austin Schuhde605f12022-02-23 23:08:19 -0800845filegroup(
846 name = 'shared_libraries',
847 srcs = [
848 'linux/athena/shared/libCTRE_PhoenixCCI.so',
849 ],
850 visibility = ['//visibility:public'],
851)
852
Austin Schuhf6b94632019-02-02 22:11:27 -0800853cc_library(
854 name = 'cci',
855 visibility = ['//visibility:public'],
Austin Schuhde605f12022-02-23 23:08:19 -0800856 srcs = ['linux/athena/shared/libCTRE_PhoenixCCI.so'],
Philipp Schraderdada1072020-11-24 11:34:46 -0800857 target_compatible_with = ['@//tools/platforms/hardware:roborio'],
Austin Schuhf6b94632019-02-02 22:11:27 -0800858)
859""",
Austin Schuhde605f12022-02-23 23:08:19 -0800860 sha256 = "94812541734d7905774d97e10a97e9c79b5c37cba60d9b6b2d6e4bf3bbabc2fb",
Austin Schuhf6b94632019-02-02 22:11:27 -0800861 urls = [
Austin Schuhde605f12022-02-23 23:08:19 -0800862 "http://devsite.ctr-electronics.com/maven/release/com/ctre/phoenix/cci/5.21.1/cci-5.21.1-linuxathena.zip",
Austin Schuhf6b94632019-02-02 22:11:27 -0800863 ],
864)
Austin Schuheed14442019-03-23 14:42:46 -0700865
866http_archive(
Austin Schuhda9d0602019-09-15 17:29:38 -0700867 name = "build_bazel_rules_nodejs",
Philipp Schrader87277f42022-01-01 07:45:12 -0800868 sha256 = "cfc289523cf1594598215901154a6c2515e8bf3671fd708264a6f6aefe02bf39",
869 urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/4.4.6/rules_nodejs-4.4.6.tar.gz"],
Austin Schuhda9d0602019-09-15 17:29:38 -0700870)
Austin Schuheed14442019-03-23 14:42:46 -0700871
Philipp Schrader87277f42022-01-01 07:45:12 -0800872load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories", "yarn_install")
Austin Schuheed14442019-03-23 14:42:46 -0700873
874node_repositories()
875
876# Setup Bazel managed npm dependencies with the `yarn_install` rule.
Philipp Schrader87277f42022-01-01 07:45:12 -0800877
Austin Schuhda9d0602019-09-15 17:29:38 -0700878# To run yarn by hand, use:
879# bazel run @nodejs_linux_amd64//:bin/yarn -- list
880# I'm sure there is a better path, but that works...
Austin Schuheed14442019-03-23 14:42:46 -0700881yarn_install(
882 name = "npm",
Alex Perryeddc18c2022-01-29 16:22:41 -0800883 frozen_lockfile = True,
Austin Schuheed14442019-03-23 14:42:46 -0700884 package_json = "//:package.json",
Philipp Schraderb48f8ea2022-03-13 20:59:54 -0700885 patch_args = ["-p1"],
886 post_install_patches = [
887 "//third_party:npm/@bazel/protractor/bazel-protractor.patch",
888 ],
Austin Schuhda9d0602019-09-15 17:29:38 -0700889 symlink_node_modules = False,
Austin Schuheed14442019-03-23 14:42:46 -0700890 yarn_lock = "//:yarn.lock",
891)
Austin Schuh4ac96a82019-08-14 20:24:23 -0700892
Philipp Schrader54047962022-02-16 21:05:11 -0800893load("@build_bazel_rules_nodejs//toolchains/esbuild:esbuild_repositories.bzl", "esbuild_repositories")
894
895esbuild_repositories(npm_repository = "npm")
896
Alex Perryb3168082022-01-22 13:36:13 -0800897http_archive(
898 name = "io_bazel_rules_webtesting",
Philipp Schrader54047962022-02-16 21:05:11 -0800899 patch_args = ["-p1"],
900 patches = [
901 "@//third_party:rules_webtesting/rules_webtesting.patch",
902 ],
Alex Perryb3168082022-01-22 13:36:13 -0800903 sha256 = "e9abb7658b6a129740c0b3ef6f5a2370864e102a5ba5ffca2cea565829ed825a",
904 urls = ["https://github.com/bazelbuild/rules_webtesting/releases/download/0.3.5/rules_webtesting.tar.gz"],
905)
906
Brian Silvermane84b0cf2022-08-13 19:36:21 -0700907http_archive(
908 name = "rules_rust_tinyjson",
909 build_file = "@rules_rust//util/process_wrapper:BUILD.tinyjson.bazel",
910 sha256 = "1a8304da9f9370f6a6f9020b7903b044aa9ce3470f300a1fba5bc77c78145a16",
911 strip_prefix = "tinyjson-2.3.0",
912 type = "tar.gz",
913 url = "https://crates.io/api/v1/crates/tinyjson/2.3.0/download",
914)
915
Brian Silverman01dfd872022-04-06 22:20:40 -0700916local_repository(
Ravago Jones16809802021-11-18 20:40:03 -0800917 name = "rules_rust",
Brian Silverman01dfd872022-04-06 22:20:40 -0700918 path = "third_party/rules_rust",
Ravago Jones16809802021-11-18 20:40:03 -0800919)
920
Brian Silvermane84b0cf2022-08-13 19:36:21 -0700921load("@rules_rust//rust:repositories.bzl", "rust_repository_set")
Ravago Jones16809802021-11-18 20:40:03 -0800922
Brian Silvermane84b0cf2022-08-13 19:36:21 -0700923rust_repository_set(
Ravago Jones16809802021-11-18 20:40:03 -0800924 name = "rust",
Brian Silverman8751d482022-05-18 23:28:44 -0700925 allocator_library = "@//tools/rust:forward_allocator",
Ravago Jones16809802021-11-18 20:40:03 -0800926 edition = "2021",
927 exec_triple = "x86_64-unknown-linux-gnu",
928 extra_target_triples = [
929 "arm-unknown-linux-gnueabi",
930 "armv7-unknown-linux-gnueabihf",
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800931 "aarch64-unknown-linux-gnu",
Ravago Jones16809802021-11-18 20:40:03 -0800932 ],
Brian Silvermane84b0cf2022-08-13 19:36:21 -0700933 register_toolchain = False,
Brian Silvermana8ad1af2022-07-23 16:05:12 -0700934 rustfmt_version = "1.62.0",
Brian Silvermana8ad1af2022-07-23 16:05:12 -0700935 version = "1.62.0",
Ravago Jones16809802021-11-18 20:40:03 -0800936)
937
Philipp Schrader54047962022-02-16 21:05:11 -0800938load("@io_bazel_rules_webtesting//web:repositories.bzl", "web_test_repositories")
939
940web_test_repositories()
941
942load("@io_bazel_rules_webtesting//web/versioned:browsers-0.3.3.bzl", "browser_repositories")
943
944browser_repositories(chromium = True)
945
Austin Schuh4ac96a82019-08-14 20:24:23 -0700946# Flatbuffers
947local_repository(
948 name = "com_github_google_flatbuffers",
949 path = "third_party/flatbuffers",
950)
James Kuszmaul7daef362019-12-31 18:28:17 -0800951
952http_file(
953 name = "sample_logfile",
954 downloaded_file_path = "log.fbs",
milind945708b2021-07-03 13:30:15 -0700955 sha256 = "45d1d19fb82786c476d3f21a8d62742abaeeedf4c16a00ec37ae350dcb61f1fc",
956 urls = ["https://www.frc971.org/Build-Dependencies/small_sample_logfile2.fbs"],
James Kuszmaul7daef362019-12-31 18:28:17 -0800957)
Brian Silvermand4260c72020-01-14 00:08:02 -0800958
James Kuszmaul9c128122021-03-22 22:24:36 -0700959http_archive(
James Kuszmaul531609d2020-02-18 17:12:23 -0800960 name = "drivetrain_replay",
James Kuszmaul9c128122021-03-22 22:24:36 -0700961 build_file_content = """
962filegroup(
963 name = "drivetrain_replay",
964 srcs = glob(["**/*.bfbs"]),
965 visibility = ["//visibility:public"],
966)
967 """,
968 sha256 = "115dcd2fe005cb9cad3325707aa7f4466390c43a08555edf331c06c108bdf692",
969 url = "https://www.frc971.org/Build-Dependencies/2021-03-20_drivetrain_spin_wheels.tar.gz",
James Kuszmaul531609d2020-02-18 17:12:23 -0800970)
971
milind-u7baf7342021-08-25 18:31:26 -0700972http_archive(
973 name = "superstructure_replay",
974 build_file_content = """
975filegroup(
976 name = "superstructure_replay",
977 srcs = glob(["**/*.bfbs"]),
978 visibility = ["//visibility:public"],
979)
980 """,
milind-u200b2762021-11-06 19:36:15 -0700981 sha256 = "2b9a3ecc83f2aba89a1909ae38fe51e6718a5b4d0e7c131846dfb2845df9cd19",
982 url = "https://www.frc971.org/Build-Dependencies/2021-10-03_superstructure_shoot_balls.tar.gz",
milind-u7baf7342021-08-25 18:31:26 -0700983)
984
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800985# OpenCV arm64 (for raspberry pi)
986http_archive(
987 name = "opencv_arm64",
988 build_file = "@//debian:opencv.BUILD",
989 sha256 = "d284fae46ca710cf24c81ff7ace34929773466bff38f365a80371bea3b36a2ed",
990 url = "https://www.frc971.org/Build-Dependencies/opencv_arm64.tar.gz",
991)
992
Brian Silvermand4260c72020-01-14 00:08:02 -0800993# OpenCV armhf (for raspberry pi)
994http_archive(
995 name = "opencv_armhf",
996 build_file = "@//debian:opencv.BUILD",
Brian Silverman4c7235a2021-11-17 19:04:37 -0800997 sha256 = "064165507bad1afa8f7b22961a9a9067b243abc70064d713d26b37bc8dc2bf56",
998 url = "https://www.frc971.org/Build-Dependencies/opencv_armhf_v4.tar.gz",
Brian Silvermand4260c72020-01-14 00:08:02 -0800999)
Brian Silvermand97a47c2020-01-16 00:47:53 -08001000
1001http_archive(
1002 name = "opencv_k8",
1003 build_file = "@//debian:opencv.BUILD",
Brian Silverman4c7235a2021-11-17 19:04:37 -08001004 sha256 = "b730f5d0c8eb59411157b4e84bfdddd3a6fceed10b842716d9d1b74ad322ea14",
1005 url = "https://www.frc971.org/Build-Dependencies/opencv_amd64_v3.tar.gz",
Brian Silvermand97a47c2020-01-16 00:47:53 -08001006)
Brian Silverman764945b2020-01-16 23:40:43 -08001007
Brian Silverman764945b2020-01-16 23:40:43 -08001008http_archive(
1009 name = "halide_k8",
1010 build_file = "@//debian:halide.BUILD",
Austin Schuh669068e2023-01-04 20:50:34 -08001011 sha256 = "be3bdd067acb9ee0d37d0830821113cd69174bee46da466a836d8829fef7cf91",
1012 strip_prefix = "Halide-14.0.0-x86-64-linux/",
1013 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 -08001014)
1015
Philipp Schraderf1bbf342022-02-05 14:30:15 -08001016http_archive(
1017 name = "halide_arm64",
1018 build_file = "@//debian:halide.BUILD",
Austin Schuh669068e2023-01-04 20:50:34 -08001019 sha256 = "cdd42411bcbba682f73d7db0af69837c4857ee90f1727c6feb37fc9a98132385",
1020 strip_prefix = "Halide-14.0.0-arm-64-linux/",
1021 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 -08001022)
1023
Brian Silverman764945b2020-01-16 23:40:43 -08001024http_archive(
1025 name = "halide_armhf",
1026 build_file = "@//debian:halide.BUILD",
Austin Schuh669068e2023-01-04 20:50:34 -08001027 sha256 = "6b3fe3396391b57990a2c41d8dcea74b0734d1b2a0fd42fe0858d954aa45df2b",
1028 strip_prefix = "Halide-14.0.0-arm-32-linux/",
1029 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 -08001030)
Brian Silverman4fe44ea2020-02-02 12:56:42 -08001031
1032# Downloaded from:
Austin Schuh085eab92020-11-26 13:54:51 -08001033# https://files.pythonhosted.org/packages/0f/13/192104516c4a3d92dc6b5e106ffcfbf0fe35f3c4faa49650205ff652af72/opencv_python-4.5.1.48-cp37-cp37m-manylinux2014_x86_64.whl
Brian Silverman4fe44ea2020-02-02 12:56:42 -08001034http_archive(
1035 name = "opencv_contrib_nonfree_amd64",
1036 build_file = "@//debian:opencv_python.BUILD",
Brian Silverman4c7235a2021-11-17 19:04:37 -08001037 sha256 = "a1dfa0486db367594510c0c799ec7481247dc86e651b69008806d875ab731471",
Brian Silverman4fe44ea2020-02-02 12:56:42 -08001038 type = "zip",
Brian Silverman4c7235a2021-11-17 19:04:37 -08001039 url = "https://www.frc971.org/Build-Dependencies/opencv_python-4.5.1.48-cp39-cp39-manylinux2014_x86_64.whl",
Brian Silverman4fe44ea2020-02-02 12:56:42 -08001040)
Tyler Chatow60671d32020-02-26 19:49:30 -08001041
1042http_archive(
Austin Schuh2e28d872022-02-19 18:25:57 -08001043 name = "osqp_amd64",
1044 build_file = "@//debian:osqp_python.BUILD",
1045 sha256 = "8003fc363f707daa46fef3af548e6a580372154d6cd49a7bf2f569ba5f807d15",
1046 type = "zip",
1047 url = "https://files.pythonhosted.org/packages/3f/e2/f1c40e890f00f8a566bc2481d0f215e52def3dfe8eea6b8ad4cc2d3cbca2/osqp-0.6.2.post5-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
1048)
1049
1050http_archive(
1051 name = "qdldl_amd64",
1052 build_file = "@//debian:qdldl_python.BUILD",
1053 sha256 = "2c09f4b1a1c6f3a0579af004443417e084491e7c844ff9fb73170bb5d43f70b5",
1054 type = "zip",
1055 url = "https://files.pythonhosted.org/packages/9e/26/ccb4f065b40c1e9ff35ee66970d4fa97dd2fe221b846da2110eb8cd6c3f4/qdldl-0.1.5.post0-cp39-cp39-manylinux2014_x86_64.whl",
1056)
1057
1058http_archive(
Tyler Chatow60671d32020-02-26 19:49:30 -08001059 name = "gstreamer_k8",
1060 build_file = "@//debian:gstreamer.BUILD",
Tyler Chatow6eda82c2022-03-27 22:37:38 -07001061 sha256 = "d4994261a432c188716f0bdf30fc3f0dff6727319d9c58e7156e2b3ed5105248",
1062 url = "https://www.frc971.org/Build-Dependencies/gstreamer_1.20.1-1~bpo11+1_amd64.tar.gz",
Tyler Chatow60671d32020-02-26 19:49:30 -08001063)
1064
1065http_archive(
1066 name = "gstreamer_armhf",
1067 build_file = "@//debian:gstreamer.BUILD",
1068 sha256 = "c5ac4c604952c274a50636e244f0d091bd1de302032446f24f0e9e03ae9c76f7",
Austin Schuha5778ae2020-10-21 21:15:35 -07001069 url = "https://www.frc971.org/Build-Dependencies/gstreamer_armhf.tar.gz",
Tyler Chatow60671d32020-02-26 19:49:30 -08001070)
James Kuszmaulc91e4402020-05-10 18:47:20 -07001071
Tyler Chatow6eda82c2022-03-27 22:37:38 -07001072http_archive(
1073 name = "gstreamer_arm64",
1074 build_file = "@//debian:gstreamer.BUILD",
1075 sha256 = "42b414c565ffdbae3d2d7796a66da9de42a650de757fa6554fd624f0cc3aaa9b",
1076 url = "https://www.frc971.org/Build-Dependencies/gstreamer_1.20.1-1~bpo11+1_arm64.tar.gz",
1077)
1078
James Kuszmaulc91e4402020-05-10 18:47:20 -07001079# Downloaded from:
1080# https://files.pythonhosted.org/packages/64/a7/45e11eebf2f15bf987c3bc11d37dcc838d9dc81250e67e4c5968f6008b6c/Jinja2-2.11.2.tar.gz
1081http_archive(
1082 name = "python_jinja2",
1083 build_file = "@//debian:python_jinja2.BUILD",
1084 sha256 = "89aab215427ef59c34ad58735269eb58b1a5808103067f7bb9d5836c651b3bb0",
1085 strip_prefix = "Jinja2-2.11.2",
Austin Schuha5778ae2020-10-21 21:15:35 -07001086 url = "https://www.frc971.org/Build-Dependencies/Jinja2-2.11.2.tar.gz",
James Kuszmaulc91e4402020-05-10 18:47:20 -07001087)
1088
1089# Downloaded from:
1090# https://files.pythonhosted.org/packages/b9/2e/64db92e53b86efccfaea71321f597fa2e1b2bd3853d8ce658568f7a13094/MarkupSafe-1.1.1.tar.gz
1091http_archive(
1092 name = "python_markupsafe",
1093 build_file = "@//debian:python_markupsafe.BUILD",
1094 sha256 = "29872e92839765e546828bb7754a68c418d927cd064fd4708fab9fe9c8bb116b",
1095 strip_prefix = "MarkupSafe-1.1.1",
Austin Schuha5778ae2020-10-21 21:15:35 -07001096 url = "https://www.frc971.org/Build-Dependencies/MarkupSafe-1.1.1.tar.gz",
James Kuszmaulc91e4402020-05-10 18:47:20 -07001097)
Austin Schuh023e7f52020-08-18 21:24:37 -07001098
Ravago Jones23dac942022-07-31 16:18:54 -07001099http_archive(
1100 name = "python_yapf",
1101 build_file = "@//debian:python_yapf.BUILD",
1102 sha256 = "410ed0f592c898d75d73f7792aee6569bdbc0b57bc72b417c722c17f41f66b12",
1103 strip_prefix = "yapf-0.32.0",
1104 url = "https://github.com/google/yapf/archive/refs/tags/v0.32.0.tar.gz",
1105)
1106
Brian Silvermanf59fe3f2020-09-22 21:04:09 -07001107# //debian:lzma_amd64
1108http_archive(
1109 name = "lzma_amd64",
1110 build_file_content = """
1111cc_library(
1112 name = "lib",
1113 srcs = [
1114 "usr/lib/x86_64-linux-gnu/liblzma.a",
1115 ],
1116 hdrs = glob([
1117 "usr/include/lzma/*.h",
1118 "usr/include/*.h",
1119 ]),
1120 strip_include_prefix = "usr/include",
1121 visibility = ["//visibility:public"],
1122)
1123""",
Austin Schuhe6751772022-06-27 00:58:26 -07001124 sha256 = "6fa0ad579b78bd41a0133024c34063b140442dd2ad4201fd2bf4c55229e7c13f",
1125 urls = ["https://www.frc971.org/Build-Dependencies/lzma_amd64-2.tar.gz"],
Brian Silvermanf59fe3f2020-09-22 21:04:09 -07001126)
1127
1128# //debian:lzma_arm64
1129http_archive(
1130 name = "lzma_arm64",
1131 build_file_content = """
1132cc_library(
1133 name = "lib",
1134 srcs = [
1135 "usr/lib/aarch64-linux-gnu/liblzma.a",
1136 ],
1137 hdrs = glob([
1138 "usr/include/lzma/*.h",
1139 "usr/include/*.h",
1140 ]),
1141 strip_include_prefix = "usr/include",
1142 visibility = ["//visibility:public"],
1143)
1144""",
Austin Schuhc020b182022-06-29 19:54:01 -07001145 sha256 = "b4ab9fd7cf3bfdb9e3fc67ac4a3c84db7f7e3c48431ccfc6e6e210f5829d17c9",
1146 urls = ["https://www.frc971.org/Build-Dependencies/lzma_arm64-2.tar.gz"],
Brian Silvermanf59fe3f2020-09-22 21:04:09 -07001147)
James Kuszmaul2cffe852021-10-27 20:17:49 -07001148
1149local_repository(
1150 name = "snappy",
1151 path = "third_party/snappy",
1152)
Philipp Schrader73e56602021-12-06 21:37:30 -08001153
1154http_archive(
1155 name = "io_bazel_rules_go",
Philipp Schrader039f5c32022-01-20 22:30:01 -08001156 patch_args = [
1157 "-p1",
1158 ],
1159 patches = [
1160 "@//third_party:rules_go/0001-Disable-warnings-for-external-repositories.patch",
1161 ],
Philipp Schrader73e56602021-12-06 21:37:30 -08001162 sha256 = "2b1641428dff9018f9e85c0384f03ec6c10660d935b750e3fa1492a281a53b0f",
1163 urls = [
1164 "https://www.frc971.org/Build-Dependencies/rules_go-v0.29.0.zip",
1165 "https://github.com/bazelbuild/rules_go/releases/download/v0.29.0/rules_go-v0.29.0.zip",
1166 ],
1167)
1168
Philipp Schrader37fdbb62021-12-18 00:30:37 -08001169http_archive(
1170 name = "bazel_gazelle",
1171 sha256 = "de69a09dc70417580aabf20a28619bb3ef60d038470c7cf8442fafcf627c21cb",
1172 urls = [
1173 "https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.24.0/bazel-gazelle-v0.24.0.tar.gz",
1174 "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.24.0/bazel-gazelle-v0.24.0.tar.gz",
1175 ],
1176)
1177
Philipp Schrader73e56602021-12-06 21:37:30 -08001178load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
1179
1180go_rules_dependencies()
1181
Philipp Schrader6097ed12022-03-26 15:37:37 -07001182go_register_toolchains(version = "1.18")
Philipp Schrader37fdbb62021-12-18 00:30:37 -08001183
1184load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
1185load("//:go_deps.bzl", "go_dependencies")
1186load("//tools/go:mirrored_go_deps.bzl", "mirrored_go_dependencies")
1187
1188mirrored_go_dependencies()
1189
1190# gazelle:repository_macro go_deps.bzl%go_dependencies
1191go_dependencies()
1192
1193gazelle_dependencies()
Philipp Schradercc016b32021-12-30 08:59:58 -08001194
1195http_archive(
1196 name = "com_github_bazelbuild_buildtools",
1197 sha256 = "44a6e5acc007e197d45ac3326e7f993f0160af9a58e8777ca7701e00501c0857",
1198 strip_prefix = "buildtools-4.2.4",
1199 urls = [
1200 "https://github.com/bazelbuild/buildtools/archive/refs/tags/4.2.4.tar.gz",
1201 ],
1202)
Philipp Schrader0f5d2502022-03-08 22:44:55 -08001203
1204http_archive(
Tyler Chatowec100e22022-03-22 16:23:04 -07001205 name = "libtinfo5_amd64",
Tyler Chatow8a51ac62022-03-15 13:23:12 -07001206 build_file_content = """
1207exports_files(
1208 [
1209 'lib/x86_64-linux-gnu/libtinfo.so.5',
1210 'lib/x86_64-linux-gnu/libtinfo.so.5.9',
1211 ],
1212 ["//visibility:public"],
1213)
1214""",
1215 patch_cmds = ["touch lib/x86_64-linux-gnu/BUILD"],
1216 sha256 = "059e14f77dce365c57b96284aae98c892f61e269b3fbb7d07714b7135c2e5617",
1217 urls = ["https://www.frc971.org/Build-Dependencies/libtinfo5_amd64.tar.gz"],
1218)
Tyler Chatowec100e22022-03-22 16:23:04 -07001219
1220http_archive(
1221 name = "libtinfo5_arm64",
1222 build_file_content = """
1223exports_files(
1224 [
1225 'lib/aarch64-linux-gnu/libtinfo.so.5',
1226 'lib/aarch64-linux-gnu/libtinfo.so.5.9',
1227 ],
1228 ["//visibility:public"],
1229)
1230""",
1231 patch_cmds = ["touch lib/aarch64-linux-gnu/BUILD"],
1232 sha256 = "df4ea5194c80df8d1f5f6ed68b47ce9dbf78aa8cdebbc61cf00654d9075f8e3c",
1233 urls = ["https://www.frc971.org/Build-Dependencies/libtinfo5_arm64.tar.gz"],
1234)
James Kuszmaul4ed5fb12022-03-22 15:20:04 -07001235
1236local_repository(
1237 name = "com_github_nlohmann_json",
1238 path = "third_party/com_github_nlohmann_json",
1239)
James Kuszmaul5c56ed32022-03-30 15:10:07 -07001240
Austin Schuh86110712022-09-16 15:40:54 -07001241# https://curl.haxx.se/download/curl-7.69.1.tar.gz
1242http_archive(
1243 name = "com_github_curl_curl",
1244 build_file = "//debian:curl.BUILD",
1245 sha256 = "01ae0c123dee45b01bbaef94c0bc00ed2aec89cb2ee0fd598e0d302a6b5e0a98",
1246 strip_prefix = "curl-7.69.1",
1247 url = "https://www.frc971.org/Build-Dependencies/curl-7.69.1.tar.gz",
1248)
1249
1250http_archive(
1251 # No official name exists. Names used in our external dependencies include
1252 # zlib, madler_zlib, com_github_madler_zlib.
1253 name = "zlib",
1254 build_file = "//debian:BUILD.zlib.bazel",
1255 sha256 = "629380c90a77b964d896ed37163f5c3a34f6e6d897311f1df2a7016355c45eff",
1256 strip_prefix = "zlib-1.2.11",
1257 urls = [
1258 "https://github.com/madler/zlib/archive/v1.2.11.tar.gz",
1259 ],
1260)
1261
1262# This one is tricky to get an archive because it has recursive submodules. These semi-automated steps do work though:
1263# git clone -b version1.9 --recurse-submodules --depth=1 https://github.com/aws/aws-sdk-cpp
1264# cd aws-sdk-cpp
1265# 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/\)')
1266# Now run the command that printed, and the output will be at aws_sdk-version.tar.gz.
1267http_archive(
1268 name = "aws_sdk",
1269 build_file = "//debian:aws_sdk.BUILD",
1270 patch_args = ["-p1"],
1271 patches = ["//debian:aws_sdk.patch"],
1272 sha256 = "1a2668722e5b5b2608a6ab21c876c1d98b5fd8c7d613129ced9561f5520817dc",
1273 url = "https://www.frc971.org/Build-Dependencies/aws_sdk-19.0.0-RC1.tar.gz",
1274)
1275
James Kuszmaul5ab990d2022-11-07 16:35:49 -08001276# Source code of LZ4 (files under lib/) are under BSD 2-Clause.
1277# The rest of the repository (build information, documentation, etc.) is under GPLv2.
1278# We only care about the lib/ subfolder anyways, and strip out any other files.
1279http_archive(
1280 name = "com_github_lz4_lz4",
1281 build_file = "//debian:BUILD.lz4.bazel",
1282 sha256 = "0b0e3aa07c8c063ddf40b082bdf7e37a1562bda40a0ff5272957f3e987e0e54b",
1283 strip_prefix = "lz4-1.9.4/lib",
1284 url = "https://github.com/lz4/lz4/archive/refs/tags/v1.9.4.tar.gz",
1285)
1286
James Kuszmaul5c56ed32022-03-30 15:10:07 -07001287http_file(
1288 name = "com_github_foxglove_mcap_mcap",
1289 executable = True,
James Kuszmaul5ab990d2022-11-07 16:35:49 -08001290 sha256 = "ae745dd09cf4c9570c1c038a72630c07b073f0ed4b05983d64108ff748a40d3f",
1291 urls = ["https://github.com/foxglove/mcap/releases/download/releases%2Fmcap-cli%2Fv0.0.22/mcap-linux-amd64"],
James Kuszmaul5c56ed32022-03-30 15:10:07 -07001292)
Brian Silverman0aa13732022-05-19 23:14:08 -07001293
1294http_archive(
1295 name = "cargo_raze",
1296 patches = ["@//third_party/cargo_raze:cargo_raze.patch"],
1297 sha256 = "08bfc8859ff686ecb55005a3c4a9cf790115de0abdbcc69cf57b15be0745a859",
1298 strip_prefix = "cargo-raze-0.14.2",
1299 url = "https://github.com/google/cargo-raze/archive/v0.14.2.tar.gz",
1300)
1301
1302http_archive(
1303 name = "rules_foreign_cc",
1304 patch_args = ["-p1"],
1305 patches = ["@//third_party/rules_foreign_cc:backport_d93bd96dc719760c968b54730258ad0a5b10f8fb.patch"],
1306 sha256 = "69023642d5781c68911beda769f91fcbc8ca48711db935a75da7f6536b65047f",
1307 strip_prefix = "rules_foreign_cc-0.6.0",
1308 url = "https://github.com/bazelbuild/rules_foreign_cc/archive/0.6.0.tar.gz",
1309)
1310
1311load("@cargo_raze//:repositories.bzl", "cargo_raze_repositories")
1312
1313cargo_raze_repositories()
1314
1315# cargo_raze_transitive_deps wants to do `rust_repositories`, which we do
1316# manually to get the right platforms. rules_foreign_cc is currently the only
1317# other thing it has, so just do that manually.
1318load("@rules_foreign_cc//foreign_cc:repositories.bzl", "rules_foreign_cc_dependencies")
1319
1320rules_foreign_cc_dependencies()
Brian Silverman547eda02022-05-19 23:14:08 -07001321
1322load("//third_party/cargo:crates.bzl", "raze_fetch_remote_crates")
1323
1324raze_fetch_remote_crates()
James Kuszmaul0de4feb2022-04-15 12:16:59 -07001325
1326http_archive(
1327 name = "com_github_zaphoyd_websocketpp",
1328 build_file = "//third_party/websocketpp:websocketpp.BUILD",
1329 sha256 = "6ce889d85ecdc2d8fa07408d6787e7352510750daa66b5ad44aacb47bea76755",
1330 strip_prefix = "websocketpp-0.8.2",
1331 url = "https://github.com/zaphoyd/websocketpp/archive/refs/tags/0.8.2.tar.gz",
1332)
1333
1334http_archive(
1335 name = "com_github_foxglove_ws-protocol",
1336 build_file = "//third_party/foxglove_ws_protocol:foxglove_ws_protocol.BUILD",
1337 patch_args = ["-p1"],
1338 patches = ["//third_party/foxglove_ws_protocol:foxglove_ws_protocol.patch"],
1339 sha256 = "3256f09a67419f6556778c443d332f1a4bf53ba0e7a464179bf838abffa366ab",
1340 strip_prefix = "ws-protocol-releases-typescript-ws-protocol-examples-v0.0.6",
1341 url = "https://github.com/foxglove/ws-protocol/archive/refs/tags/releases/typescript/ws-protocol-examples/v0.0.6.tar.gz",
1342)
1343
1344http_archive(
1345 name = "asio",
1346 build_file_content = """
1347cc_library(
1348 name = "asio",
1349 hdrs = glob(["include/asio/**/*.hpp", "include/asio/**/*.ipp", "include/asio.hpp"]),
1350 visibility = ["//visibility:public"],
1351 defines = ["ASIO_STANDALONE"],
1352 includes = ["include/"],
1353)""",
1354 sha256 = "8976812c24a118600f6fcf071a20606630a69afe4c0abee3b0dea528e682c585",
1355 strip_prefix = "asio-1.24.0",
1356 url = "https://downloads.sourceforge.net/project/asio/asio/1.24.0%2520%2528Stable%2529/asio-1.24.0.tar.bz2",
1357)