blob: 644741283a1db09c9176e34252be4fc8b15fdc26 [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(
Philipp Schraderd0e33a42022-01-22 21:55:15 -080092 "//debian:apache2.bzl",
93 apache2_debs = "files",
94)
95load(
Philipp Schrader41011a12022-03-13 12:49:32 -070096 "//debian:postgresql_amd64.bzl",
97 postgresql_amd64_debs = "files",
98)
99load(
Brian Silverman7bda6212018-08-05 11:42:11 -0700100 "//debian:patch.bzl",
101 patch_debs = "files",
102)
Brian Silverman7297c0c2018-08-05 13:43:00 -0700103load(
Austin Schuh71f6fa72019-08-31 18:23:02 -0700104 "//debian:rsync.bzl",
105 rsync_debs = "files",
106)
107load(
108 "//debian:ssh.bzl",
109 ssh_debs = "files",
110)
111load(
Brian Silverman7297c0c2018-08-05 13:43:00 -0700112 "//debian:pandoc.bzl",
113 pandoc_debs = "files",
114)
Brian Silverman4f6ba442018-08-05 14:34:58 -0700115load(
116 "//debian:libusb.bzl",
117 libusb_debs = "files",
118)
Brian Silvermanb80dc9f2018-08-05 14:59:24 -0700119load(
120 "//debian:mingw_compiler.bzl",
121 mingw_compiler_debs = "files",
122)
Brian Silverman6470f442018-08-05 12:08:16 -0700123load(
124 "//debian:patchelf.bzl",
125 patchelf_debs = "files",
126)
127load(
Brian Silverman50b9ac02018-08-12 13:24:10 -0700128 "//debian:arm_frc_gnueabi_deps.bzl",
129 arm_frc_gnueabi_deps_debs = "files",
130)
Brian Silvermanb0ebf1d2018-10-17 23:36:40 -0700131load(
Philipp Schraderfd5489f2022-09-17 17:31:09 -0700132 "//debian:gtk_runtime.bzl",
133 gtk_runtime_debs = "files",
134)
135load(
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800136 "//debian:opencv_arm64.bzl",
137 opencv_arm64_debs = "files",
138)
139load(
Brian Silvermand4260c72020-01-14 00:08:02 -0800140 "//debian:opencv_armhf.bzl",
141 opencv_armhf_debs = "files",
142)
Brian Silvermand97a47c2020-01-16 00:47:53 -0800143load(
144 "//debian:opencv_amd64.bzl",
145 opencv_amd64_debs = "files",
146)
Tyler Chatow60671d32020-02-26 19:49:30 -0800147load(
148 "//debian:gstreamer_amd64.bzl",
James Kuszmaulc91e4402020-05-10 18:47:20 -0700149 gstreamer_amd64_debs = "files",
Tyler Chatow60671d32020-02-26 19:49:30 -0800150)
151load(
152 "//debian:gstreamer_armhf.bzl",
James Kuszmaulc91e4402020-05-10 18:47:20 -0700153 gstreamer_armhf_debs = "files",
Tyler Chatow60671d32020-02-26 19:49:30 -0800154)
Austin Schuh023e7f52020-08-18 21:24:37 -0700155load(
Tyler Chatow6eda82c2022-03-27 22:37:38 -0700156 "//debian:gstreamer_arm64.bzl",
157 gstreamer_arm64_debs = "files",
158)
159load(
Austin Schuh023e7f52020-08-18 21:24:37 -0700160 "//debian:m4.bzl",
161 m4_debs = "files",
162)
Brian Silvermanf59fe3f2020-09-22 21:04:09 -0700163load(
164 "//debian:lzma_amd64.bzl",
165 lzma_amd64_debs = "files",
166)
167load(
168 "//debian:lzma_arm64.bzl",
169 lzma_arm64_debs = "files",
170)
Tyler Chatow8a51ac62022-03-15 13:23:12 -0700171load(
172 "//debian:libtinfo5_amd64.bzl",
173 libtinfo5_amd64_debs = "files",
174)
Tyler Chatowec100e22022-03-22 16:23:04 -0700175load(
176 "//debian:libtinfo5_arm64.bzl",
177 libtinfo5_arm64_debs = "files",
178)
Philipp Schrader0e19c602018-03-07 21:07:22 -0800179load("//debian:packages.bzl", "generate_repositories_for_debs")
180
Austin Schuh71f6fa72019-08-31 18:23:02 -0700181generate_repositories_for_debs(rsync_debs)
182
183generate_repositories_for_debs(ssh_debs)
184
Philipp Schraderd0e33a42022-01-22 21:55:15 -0800185generate_repositories_for_debs(apache2_debs)
186
Philipp Schrader41011a12022-03-13 12:49:32 -0700187generate_repositories_for_debs(postgresql_amd64_debs)
188
Brian Silverman7bda6212018-08-05 11:42:11 -0700189generate_repositories_for_debs(patch_debs)
190
Brian Silverman7297c0c2018-08-05 13:43:00 -0700191generate_repositories_for_debs(pandoc_debs)
192
Brian Silverman4f6ba442018-08-05 14:34:58 -0700193generate_repositories_for_debs(libusb_debs)
194
Brian Silvermanb80dc9f2018-08-05 14:59:24 -0700195generate_repositories_for_debs(mingw_compiler_debs)
196
Brian Silverman6470f442018-08-05 12:08:16 -0700197generate_repositories_for_debs(patchelf_debs)
198
Brian Silverman50b9ac02018-08-12 13:24:10 -0700199generate_repositories_for_debs(arm_frc_gnueabi_deps_debs)
200
Philipp Schraderfd5489f2022-09-17 17:31:09 -0700201generate_repositories_for_debs(gtk_runtime_debs)
202
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800203generate_repositories_for_debs(opencv_arm64_debs)
204
Brian Silvermand4260c72020-01-14 00:08:02 -0800205generate_repositories_for_debs(opencv_armhf_debs)
206
Brian Silvermand97a47c2020-01-16 00:47:53 -0800207generate_repositories_for_debs(opencv_amd64_debs)
208
Tyler Chatow6eda82c2022-03-27 22:37:38 -0700209generate_repositories_for_debs(
210 gstreamer_amd64_debs,
211 base_url = "https://www.frc971.org/Build-Dependencies/gstreamer_bullseye_amd64_deps",
212)
Tyler Chatow60671d32020-02-26 19:49:30 -0800213
214generate_repositories_for_debs(gstreamer_armhf_debs)
215
Tyler Chatow6eda82c2022-03-27 22:37:38 -0700216generate_repositories_for_debs(
217 gstreamer_arm64_debs,
218 base_url = "https://www.frc971.org/Build-Dependencies/gstreamer_bullseye_arm64_deps",
219)
220
Austin Schuh023e7f52020-08-18 21:24:37 -0700221generate_repositories_for_debs(m4_debs)
222
Brian Silvermanf59fe3f2020-09-22 21:04:09 -0700223generate_repositories_for_debs(lzma_amd64_debs)
224
225generate_repositories_for_debs(lzma_arm64_debs)
226
Tyler Chatow8a51ac62022-03-15 13:23:12 -0700227generate_repositories_for_debs(libtinfo5_amd64_debs)
228
Tyler Chatowec100e22022-03-22 16:23:04 -0700229generate_repositories_for_debs(libtinfo5_arm64_debs)
230
Brian Silvermanc0309a02022-01-01 23:57:03 -0800231local_repository(
232 name = "com_grail_bazel_toolchain",
233 path = "third_party/bazel-toolchain",
234)
235
Brian Silverman4c7235a2021-11-17 19:04:37 -0800236load("@com_grail_bazel_toolchain//toolchain:rules.bzl", "llvm", "llvm_toolchain")
237
238llvm_version = "13.0.0"
239
240llvm(
241 name = "llvm_k8",
242 distribution = "clang+llvm-%s-x86_64-linux-gnu-ubuntu-16.04.tar.xz" % llvm_version,
243 llvm_version = llvm_version,
244)
245
246llvm(
247 name = "llvm_armv7",
248 distribution = "clang+llvm-%s-armv7a-linux-gnueabihf.tar.xz" % llvm_version,
249 llvm_version = llvm_version,
250)
251
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800252llvm(
253 name = "llvm_aarch64",
254 distribution = "clang+llvm-%s-aarch64-linux-gnu.tar.xz" % llvm_version,
255 llvm_version = llvm_version,
256)
257
Brian Silverman4c7235a2021-11-17 19:04:37 -0800258llvm_conlyopts = [
259 "-std=gnu99",
260]
261
262llvm_copts = [
263 "-D__STDC_FORMAT_MACROS",
264 "-D__STDC_CONSTANT_MACROS",
265 "-D__STDC_LIMIT_MACROS",
266 "-D_FILE_OFFSET_BITS=64",
267 "-fmessage-length=100",
268 "-fmacro-backtrace-limit=0",
269 "-Wextra",
270 "-Wpointer-arith",
271 "-Wstrict-aliasing",
272 "-Wcast-qual",
273 "-Wcast-align",
274 "-Wwrite-strings",
275 "-Wtype-limits",
276 "-Wsign-compare",
277 "-Wformat=2",
278 "-Werror",
279 "-ggdb3",
Brian Silverman4c7235a2021-11-17 19:04:37 -0800280]
281
282llvm_cxxopts = [
283 "-std=gnu++17",
284]
285
Brian Silverman1e7c8972022-02-03 23:15:41 -0800286llvm_opt_copts = [
287 "-DAOS_DEBUG=0",
288]
289
290llvm_fastbuild_copts = [
291 "-DAOS_DEBUG=0",
292]
293
Brian Silverman4c7235a2021-11-17 19:04:37 -0800294llvm_dbg_copts = [
295 "-DAOS_DEBUG=1",
296]
Brian Silvermanc0309a02022-01-01 23:57:03 -0800297
298llvm_toolchain(
299 name = "llvm_toolchain",
Brian Silverman4c7235a2021-11-17 19:04:37 -0800300 additional_target_compatible_with = {
301 "linux-armv7": [
302 "@//tools/platforms/hardware:raspberry_pi",
303 ],
304 },
305 conlyopts = {
306 "linux-x86_64": llvm_conlyopts,
307 "linux-armv7": llvm_conlyopts,
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800308 "linux-aarch64": llvm_conlyopts,
Brian Silverman4c7235a2021-11-17 19:04:37 -0800309 },
310 copts = {
311 "linux-x86_64": llvm_copts,
312 "linux-armv7": llvm_copts,
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800313 "linux-aarch64": llvm_copts,
Brian Silverman4c7235a2021-11-17 19:04:37 -0800314 },
315 cxxopts = {
316 "linux-x86_64": llvm_cxxopts,
317 "linux-armv7": llvm_cxxopts,
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800318 "linux-aarch64": llvm_cxxopts,
Brian Silverman4c7235a2021-11-17 19:04:37 -0800319 },
320 dbg_copts = {
321 "linux-x86_64": llvm_dbg_copts,
Brian Silverman1e7c8972022-02-03 23:15:41 -0800322 "linux-armv7": llvm_dbg_copts,
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800323 "linux-aarch64": llvm_dbg_copts,
Brian Silverman1e7c8972022-02-03 23:15:41 -0800324 },
325 fastbuild_copts = {
326 "linux-x86_64": llvm_fastbuild_copts,
327 "linux-armv7": llvm_fastbuild_copts,
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800328 "linux-aarch64": llvm_fastbuild_copts,
Brian Silverman4c7235a2021-11-17 19:04:37 -0800329 },
330 llvm_version = llvm_version,
Brian Silverman1e7c8972022-02-03 23:15:41 -0800331 opt_copts = {
332 "linux-x86_64": llvm_opt_copts,
333 "linux-armv7": llvm_opt_copts,
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800334 "linux-aarch64": llvm_opt_copts,
Brian Silverman1e7c8972022-02-03 23:15:41 -0800335 },
Brian Silverman4c7235a2021-11-17 19:04:37 -0800336 standard_libraries = {
337 "linux-x86_64": "libstdc++-10",
338 "linux-armv7": "libstdc++-10",
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800339 "linux-aarch64": "libstdc++-10",
Brian Silverman4c7235a2021-11-17 19:04:37 -0800340 },
341 static_libstdcxx = False,
Brian Silvermanc0309a02022-01-01 23:57:03 -0800342 sysroot = {
343 "linux-x86_64": "@amd64_debian_sysroot//:sysroot_files",
Brian Silverman4c7235a2021-11-17 19:04:37 -0800344 "linux-armv7": "@armhf_debian_rootfs//:sysroot_files",
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800345 "linux-aarch64": "@arm64_debian_rootfs//:sysroot_files",
Brian Silverman4c7235a2021-11-17 19:04:37 -0800346 },
347 target_toolchain_roots = {
348 "linux-x86_64": "@llvm_k8//",
349 "linux-armv7": "@llvm_armv7//",
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800350 "linux-aarch64": "@llvm_aarch64//",
Brian Silverman4c7235a2021-11-17 19:04:37 -0800351 },
352 toolchain_roots = {
353 "linux-x86_64": "@llvm_k8//",
Tyler Chatow486ad3e2022-03-23 13:32:03 -0700354 "linux-aarch64": "@llvm_aarch64//",
Brian Silvermanc0309a02022-01-01 23:57:03 -0800355 },
356)
357
Brian Silverman4c7235a2021-11-17 19:04:37 -0800358load("@llvm_toolchain//:toolchains.bzl", "llvm_register_toolchains")
359
360llvm_register_toolchains()
361
Philipp Schraderdada1072020-11-24 11:34:46 -0800362register_toolchains(
Philipp Schraderdada1072020-11-24 11:34:46 -0800363 "//tools/cpp:cc-toolchain-roborio",
364 "//tools/cpp:cc-toolchain-cortex-m4f",
Austin Schuh0a96ea32022-01-01 22:29:30 -0800365 "//tools/cpp:cc-toolchain-rp2040",
Philipp Schraderdada1072020-11-24 11:34:46 -0800366 # Find a good way to select between these two M4F toolchains.
367 #"//tools/cpp:cc-toolchain-cortex-m4f-k22",
Philipp Schraderf198a152021-12-05 09:18:23 -0800368 "//tools/python:python_toolchain",
Philipp Schrader73e56602021-12-06 21:37:30 -0800369 "//tools/go:noop_go_toolchain",
Brian Silverman847121b2022-03-09 15:48:08 -0800370 "//tools/rust:rust-toolchain-x86",
371 "//tools/rust:rust-toolchain-armv7",
372 "//tools/rust:rust-toolchain-arm64",
Brian Silvermana8ad1af2022-07-23 16:05:12 -0700373 # TODO(Brian): Make this work. See the comment on
374 # //tools/platforms:linux_roborio for details.
375 #"//tools/rust:rust-toolchain-roborio",
Ravago Jones16809802021-11-18 20:40:03 -0800376 "//tools/rust:noop_rust_toolchain",
Philipp Schrader54047962022-02-16 21:05:11 -0800377 "//tools/ts:noop_node_toolchain",
Philipp Schraderdada1072020-11-24 11:34:46 -0800378)
379
Austin Schuhf093fa52019-06-23 20:47:23 -0700380http_archive(
Austin Schuh7466fe12020-12-29 23:01:47 -0800381 name = "com_github_stevengj_nlopt",
382 build_file = "@//debian:nlopt.BUILD",
383 patch_args = ["-p1"],
384 patches = ["//debian:nlopt.patch"],
385 sha256 = "2d65815b21c30813499fe19c63947f7da56b10c0d4a459dce05417899b43e461",
386 strip_prefix = "nlopt-496be736b8b249273838b891f4c8ca3669551127",
387 url = "https://www.frc971.org/Build-Dependencies/nlopt-496be736b8b249273838b891f4c8ca3669551127.zip",
388)
389
James Kuszmaul203bfc22023-01-13 22:37:06 -0800390http_archive(
Austin Schuhd57edc42019-09-21 17:52:38 -0700391 name = "com_google_absl",
James Kuszmaul203bfc22023-01-13 22:37:06 -0800392 patch_args = ["-p1"],
393 patches = ["//third_party/abseil:abseil.patch"],
394 sha256 = "91209b5eecd9c3d862b230fefbc2728c7f2764ff6d5866ec398d48db1aaa1e90",
395 strip_prefix = "abseil-cpp-bb63a76710554cebbeb20306739a7b832be38c4a",
396 url = "https://github.com/abseil/abseil-cpp/archive/bb63a76710554cebbeb20306739a7b832be38c4a.zip",
Austin Schuh36244a12019-09-21 17:52:38 -0700397)
398
Alex Perrycb7da4b2019-08-28 19:35:56 -0700399local_repository(
400 name = "org_tuxfamily_eigen",
401 path = "third_party/eigen",
402)
403
James Kuszmaulbc02ff42021-01-15 20:41:30 -0800404local_repository(
405 name = "com_github_rawrtc_re",
406 path = "third_party/rawrtc/re",
407)
408
409local_repository(
410 name = "com_github_rawrtc_rew",
411 path = "third_party/rawrtc/rew",
412)
413
414local_repository(
415 name = "com_github_rawrtc_usrsctp",
416 path = "third_party/rawrtc/usrsctp",
417)
418
419local_repository(
420 name = "com_github_rawrtc_rawrtc_common",
421 path = "third_party/rawrtc/rawrtc-common",
422)
423
424local_repository(
425 name = "com_github_rawrtc_rawrtc_data_channel",
426 path = "third_party/rawrtc/rawrtc-data-channel",
427)
428
429local_repository(
430 name = "com_github_rawrtc_rawrtc",
431 path = "third_party/rawrtc/rawrtc",
432)
433
Austin Schuh0ca51f32020-12-25 21:51:45 -0800434http_archive(
435 name = "boringssl",
436 patch_args = ["-p1"],
437 patches = ["//debian:boringssl.patch"],
438 sha256 = "bcab08a22c28f5322316542aa2c3a9ef0a9f9fde9be22d489cee574867b24675",
439 strip_prefix = "boringssl-613fe9dbe74b58d6aaaf0d22fe57dccd964c7413",
440 urls = ["https://www.frc971.org/Build-Dependencies/boringssl-613fe9dbe74b58d6aaaf0d22fe57dccd964c7413.zip"],
441)
442
Austin Schuh36244a12019-09-21 17:52:38 -0700443# C++ rules for Bazel.
444http_archive(
445 name = "rules_cc",
Austin Schuh968174a2021-03-31 20:04:01 -0700446 sha256 = "ed36cc7a6f46b7c28ab4009db4a37e350e1ba367446b0886bcc9cdc1df92752e",
447 strip_prefix = "rules_cc-608c7b605fb844a20e96a3eddc9b49ad2542adab",
Austin Schuh36244a12019-09-21 17:52:38 -0700448 urls = [
Austin Schuh968174a2021-03-31 20:04:01 -0700449 "https://www.frc971.org/Build-Dependencies/rules_cc-608c7b605fb844a20e96a3eddc9b49ad2542adab.zip",
Austin Schuh36244a12019-09-21 17:52:38 -0700450 ],
451)
Austin Schuhd57edc42019-09-21 17:52:38 -0700452
Austin Schuh4759ffc2015-10-07 20:39:56 -0700453new_local_repository(
Brian Silverman7bda6212018-08-05 11:42:11 -0700454 name = "usr_repo",
Austin Schuhf093fa52019-06-23 20:47:23 -0700455 build_file = "@//debian:usr.BUILD",
Brian Silverman7bda6212018-08-05 11:42:11 -0700456 path = "/usr",
Austin Schuh4759ffc2015-10-07 20:39:56 -0700457)
458
Austin Schuh1f9aeb42015-11-12 23:34:49 -0800459new_git_repository(
Brian Silverman7bda6212018-08-05 11:42:11 -0700460 name = "slycot_repo",
Tyler Chatow2584bb12018-10-27 20:48:35 -0700461 build_file = "@//debian:slycot.BUILD",
Brian Silverman7bda6212018-08-05 11:42:11 -0700462 commit = "5af5f283cb23cbe23c4dfea4d5e56071bdbd6e70",
463 remote = "https://github.com/avventi/Slycot.git",
Austin Schuh1f9aeb42015-11-12 23:34:49 -0800464)
465
Austin Schuh9950f682021-11-06 15:27:58 -0700466# TODO(austin): https://github.com/wpilibsuite/roborio-toolchain/releases/tag/v2022-1
Austin Schuhf093fa52019-06-23 20:47:23 -0700467http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -0700468 name = "arm_frc_linux_gnueabi_repo",
Austin Schuhf093fa52019-06-23 20:47:23 -0700469 build_file = "@//tools/cpp/arm-frc-linux-gnueabi:arm-frc-linux-gnueabi.BUILD",
Austin Schuhe991fe22020-11-18 16:53:39 -0800470 patches = ["//debian:fts.patch"],
James Kuszmaul3ae42262019-11-08 12:33:41 -0800471 sha256 = "043a5b047c2af9cf80d146d8327b588264c98a01e0f3f41e3564dd2bbbc95c0e",
472 strip_prefix = "frc2020/roborio/",
Austin Schuha5778ae2020-10-21 21:15:35 -0700473 url = "https://www.frc971.org/Build-Dependencies/FRC-2020-Linux-Toolchain-7.3.0.tar.gz",
Austin Schuh55139fe2015-10-14 23:55:24 -0700474)
Austin Schuhe456f152015-11-27 13:44:39 -0800475
Brian Silverman4c7235a2021-11-17 19:04:37 -0800476# 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
477# The following files and folders are removed to make bazel happy with it:
Brian Silvermanbf4c1312020-01-12 11:35:45 -0800478# usr/share/ca-certificates
Brian Silverman4c7235a2021-11-17 19:04:37 -0800479# lib/systemd/system/system-systemd\\x2dcryptsetup.slice
Brian Silvermanbf4c1312020-01-12 11:35:45 -0800480http_archive(
481 name = "armhf_debian_rootfs",
Brian Silverman60606c92020-01-15 22:45:04 -0800482 build_file = "@//:compilers/debian_rootfs.BUILD",
Brian Silverman4c7235a2021-11-17 19:04:37 -0800483 sha256 = "734f26a0cfc943cc3cae88412536186adfc4ed148cc167e6ffb298497c686280",
484 url = "https://www.frc971.org/Build-Dependencies/2021-10-30-raspios-bullseye-armhf-lite_rootfs.tar.bz2",
Brian Silvermanbf4c1312020-01-12 11:35:45 -0800485)
486
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800487# 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
488# The following files and folders are removed to make bazel happy with it:
489# usr/share/ca-certificates
490# lib/systemd/system/system-systemd\\x2dcryptsetup.slice
491http_archive(
492 name = "arm64_debian_rootfs",
493 build_file = "@//:compilers/debian_rootfs.BUILD",
494 sha256 = "7e6ad432fec0a36f8b66c3fc2ab8795ea446e61f7dce7a206b55602677cf0904",
495 url = "https://www.frc971.org/Build-Dependencies/2021-10-30-raspios-bullseye-arm64-lite_rootfs.tar.bz2",
496)
497
Brian Silverman60606c92020-01-15 22:45:04 -0800498# Created with:
499# `debootstrap buster buster_sysroot`
500# and then chrooting in and running:
501# apt install libc6-dev libstdc++-7-dev
Brian Silverman4c7235a2021-11-17 19:04:37 -0800502# removing the apt cache,
Brian Silverman60606c92020-01-15 22:45:04 -0800503# and then tarring up the result
504http_archive(
505 name = "amd64_debian_sysroot",
506 build_file = "@//:compilers/debian_rootfs.BUILD",
Brian Silverman4c7235a2021-11-17 19:04:37 -0800507 sha256 = "5e10f4cac85a98a39da1716b218bc05fff4666c61cc471a7df27876710bc86d2",
508 url = "https://www.frc971.org/Build-Dependencies/2022-01-06-debian-bullseye_rootfs.tar.bz2",
Brian Silverman60606c92020-01-15 22:45:04 -0800509)
510
Brian Silverman16a923c2018-10-31 19:40:51 -0700511local_repository(
512 name = "com_github_gflags_gflags",
513 path = "third_party/gflags",
514)
515
Brian Silverman82a12b92019-01-19 21:52:10 -0800516# Generated with:
Austin Schuh9950f682021-11-06 15:27:58 -0700517# git fetch https://github.com/wpilibsuite/ni-libraries main
Austin Schuhd3c72912022-02-22 18:05:32 -0800518# git archive --output=allwpilib_ni-libraries_776db4e8aed31a651fa2f590e7468c69b384b42a.tar.gz --format=tar.gz 776db4e8aed31a651fa2f590e7468c69b384b42a
Austin Schuhf093fa52019-06-23 20:47:23 -0700519http_archive(
James Kuszmaulc9c46b32019-12-08 21:10:00 -0800520 name = "allwpilib_ni_libraries",
521 build_file = "@//debian:ni-libraries.BUILD",
Austin Schuhd3c72912022-02-22 18:05:32 -0800522 sha256 = "525b9d777cd00091b9095893c2e4fd0a70c7609c76db161161d407769ad4ba74",
523 url = "https://www.frc971.org/Build-Dependencies/allwpilib_ni-libraries_776db4e8aed31a651fa2f590e7468c69b384b42a.tar.gz",
Brian Silverman82a12b92019-01-19 21:52:10 -0800524)
525
Brian Silverman3fca9d72016-02-20 02:32:51 -0500526# For protobuf. Don't use these.
527bind(
Brian Silverman7bda6212018-08-05 11:42:11 -0700528 name = "six",
Philipp Schrader01535ee2023-01-08 13:19:03 -0800529 actual = "@pip//six",
Brian Silverman3fca9d72016-02-20 02:32:51 -0500530)
Brian Silverman7bda6212018-08-05 11:42:11 -0700531
Brian Silverman3fca9d72016-02-20 02:32:51 -0500532bind(
Brian Silverman7bda6212018-08-05 11:42:11 -0700533 name = "gtest",
James Kuszmaul3aabc1c2023-01-13 21:33:43 -0800534 actual = "@com_google_googletest//:gtest",
Brian Silverman3fca9d72016-02-20 02:32:51 -0500535)
Brian Silverman7bda6212018-08-05 11:42:11 -0700536
Brian Silverman3fca9d72016-02-20 02:32:51 -0500537bind(
Brian Silverman7bda6212018-08-05 11:42:11 -0700538 name = "gtest_main",
James Kuszmaul3aabc1c2023-01-13 21:33:43 -0800539 actual = "@com_google_googletest//:gtest_main",
Brian Silverman3fca9d72016-02-20 02:32:51 -0500540)
541
Brian Silverman4aa83042018-01-05 12:47:31 -0800542# Recompressed from libusb-1.0.21.7z.
543http_file(
Brian Silverman7bda6212018-08-05 11:42:11 -0700544 name = "libusb_1_0_windows",
Austin Schuh4ac96a82019-08-14 20:24:23 -0700545 downloaded_file_path = "libusb-1.0.21-windows.tar.xz",
Brian Silverman7bda6212018-08-05 11:42:11 -0700546 sha256 = "fc2ba03992f343aabbaf9eb90559c6e00cdc6a2bd914d7cebea85857d5244015",
Austin Schuha5778ae2020-10-21 21:15:35 -0700547 urls = ["https://www.frc971.org/Build-Dependencies/libusb-1.0.21-windows.tar.xz"],
Brian Silverman4aa83042018-01-05 12:47:31 -0800548)
Brian Silvermand3ad1652018-02-18 22:16:29 -0500549
550# The data tarball of the same-named Debian package.
Austin Schuhf093fa52019-06-23 20:47:23 -0700551http_archive(
Brian Silvermand3ad1652018-02-18 22:16:29 -0500552 name = "f2c",
Austin Schuhf093fa52019-06-23 20:47:23 -0700553 build_file = "@//debian:f2c.BUILD",
Brian Silvermand3ad1652018-02-18 22:16:29 -0500554 sha256 = "2c677437f8217a2e2b23e41b33995d0571644fc1bea46de858f8913a5053e3f4",
Austin Schuha5778ae2020-10-21 21:15:35 -0700555 url = "https://www.frc971.org/Build-Dependencies/f2c_20100827-1_amd64.xz.tar.xz",
Brian Silvermand3ad1652018-02-18 22:16:29 -0500556)
557
558# Downloaded from http://www.netlib.org/clapack/.
Austin Schuhf093fa52019-06-23 20:47:23 -0700559http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -0700560 name = "clapack",
Austin Schuhf093fa52019-06-23 20:47:23 -0700561 build_file = "@//debian:clapack.BUILD",
Brian Silverman7bda6212018-08-05 11:42:11 -0700562 sha256 = "6dc4c382164beec8aaed8fd2acc36ad24232c406eda6db462bd4c41d5e455fac",
563 strip_prefix = "CLAPACK-3.2.1/",
Austin Schuha5778ae2020-10-21 21:15:35 -0700564 url = "https://www.frc971.org/Build-Dependencies/clapack-3.2.1.tgz",
Brian Silverman7bda6212018-08-05 11:42:11 -0700565)
566
Austin Schuhf093fa52019-06-23 20:47:23 -0700567http_archive(
Philipp Schrader41011a12022-03-13 12:49:32 -0700568 name = "postgresql_amd64",
569 build_file = "@//debian:postgresql_amd64.BUILD",
570 sha256 = "2b8bb77deaf58f798c296ce31ee7a32781395d55e05dcddc8a7da7e827f38d7f",
571 url = "https://www.frc971.org/Build-Dependencies/postgresql_amd64.tar.gz",
572)
573
574http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -0700575 name = "patch",
Austin Schuhf093fa52019-06-23 20:47:23 -0700576 build_file = "@//debian:patch.BUILD",
Brian Silverman7bda6212018-08-05 11:42:11 -0700577 sha256 = "b5ce139648a2e04f5585948ddad2fdae24dd4ee7976ac5a22d6ae7bd5674631e",
Austin Schuha5778ae2020-10-21 21:15:35 -0700578 url = "https://www.frc971.org/Build-Dependencies/patch.tar.gz",
Brian Silvermand3ad1652018-02-18 22:16:29 -0500579)
Brian Silverman7297c0c2018-08-05 13:43:00 -0700580
Austin Schuhf093fa52019-06-23 20:47:23 -0700581http_archive(
Austin Schuh71f6fa72019-08-31 18:23:02 -0700582 name = "rsync",
583 build_file = "@//debian:rsync.BUILD",
584 sha256 = "53be65a9214aaa6d1b9176f135184fb4a78ccefd58f95ce0da37e6a392dfeb60",
Austin Schuha5778ae2020-10-21 21:15:35 -0700585 url = "https://www.frc971.org/Build-Dependencies/rsync.tar.gz",
Austin Schuh71f6fa72019-08-31 18:23:02 -0700586)
587
Brian Silvermanbd7860e2020-01-05 17:52:40 -0800588# //debian:ssh
Austin Schuh71f6fa72019-08-31 18:23:02 -0700589http_archive(
590 name = "ssh",
591 build_file = "@//debian:ssh.BUILD",
Brian Silvermanbd7860e2020-01-05 17:52:40 -0800592 sha256 = "470fdc1252a2133a9d3c3da778e892a5b88f04f402cb04d8eb1cff7853242034",
Austin Schuha5778ae2020-10-21 21:15:35 -0700593 url = "https://www.frc971.org/Build-Dependencies/ssh_v3.tar.gz",
Austin Schuh71f6fa72019-08-31 18:23:02 -0700594)
595
596http_archive(
Philipp Schraderd0e33a42022-01-22 21:55:15 -0800597 name = "apache2",
598 build_file = "@//debian:apache2.BUILD",
599 sha256 = "98b0ad6d911751ba0aa486429e6278f995e7bbabd928c7d3d44c888fa2bf371b",
600 url = "https://www.frc971.org/Build-Dependencies/apache2.tar.gz",
601)
602
603http_archive(
Brian Silverman7297c0c2018-08-05 13:43:00 -0700604 name = "pandoc",
Austin Schuhf093fa52019-06-23 20:47:23 -0700605 build_file = "@//debian:pandoc.BUILD",
Brian Silverman7297c0c2018-08-05 13:43:00 -0700606 sha256 = "9f7a7adb3974a1f14715054c349ff3edc2909e920dbe3438fca437a83845f3c4",
Austin Schuha5778ae2020-10-21 21:15:35 -0700607 url = "https://www.frc971.org/Build-Dependencies/pandoc.tar.gz",
Brian Silverman7297c0c2018-08-05 13:43:00 -0700608)
Brian Silverman4f6ba442018-08-05 14:34:58 -0700609
Austin Schuhf093fa52019-06-23 20:47:23 -0700610http_archive(
Brian Silverman4f6ba442018-08-05 14:34:58 -0700611 name = "libusb",
Austin Schuhf093fa52019-06-23 20:47:23 -0700612 build_file = "@//debian:libusb.BUILD",
Brian Silverman4f6ba442018-08-05 14:34:58 -0700613 sha256 = "3ca5cc2d317226f6646866ff9e8c443db3b0f6c82f828e800240982727531590",
Austin Schuha5778ae2020-10-21 21:15:35 -0700614 url = "https://www.frc971.org/Build-Dependencies/libusb.tar.gz",
Brian Silverman4f6ba442018-08-05 14:34:58 -0700615)
Brian Silvermanb80dc9f2018-08-05 14:59:24 -0700616
Austin Schuhf093fa52019-06-23 20:47:23 -0700617http_archive(
Brian Silvermanb80dc9f2018-08-05 14:59:24 -0700618 name = "mingw_compiler",
Austin Schuhf093fa52019-06-23 20:47:23 -0700619 build_file = "@//debian:mingw_compiler.BUILD",
Brian Silvermanb80dc9f2018-08-05 14:59:24 -0700620 sha256 = "45e86a8460f2151a4f0306e7ae7b06761029d2412ee16f63d1e8d2d29354e378",
Austin Schuha5778ae2020-10-21 21:15:35 -0700621 url = "https://www.frc971.org/Build-Dependencies/mingw_compiler.tar.gz",
Brian Silvermanb80dc9f2018-08-05 14:59:24 -0700622)
Brian Silverman6470f442018-08-05 12:08:16 -0700623
Austin Schuhf093fa52019-06-23 20:47:23 -0700624http_archive(
Brian Silverman6470f442018-08-05 12:08:16 -0700625 name = "patchelf",
Austin Schuhf093fa52019-06-23 20:47:23 -0700626 build_file = "@//debian:patchelf.BUILD",
Brian Silverman6470f442018-08-05 12:08:16 -0700627 sha256 = "bf8b709909d7d9e30815dd228eeded7dc282e3ce3919d0589ccbb56ac8632abc",
Austin Schuha5778ae2020-10-21 21:15:35 -0700628 url = "https://www.frc971.org/Build-Dependencies/patchelf.tar.gz",
Brian Silverman6470f442018-08-05 12:08:16 -0700629)
Brian Silverman50b9ac02018-08-12 13:24:10 -0700630
Austin Schuhf093fa52019-06-23 20:47:23 -0700631http_archive(
Brian Silverman50b9ac02018-08-12 13:24:10 -0700632 name = "arm_frc_gnueabi_deps",
Austin Schuhf093fa52019-06-23 20:47:23 -0700633 build_file = "@//debian:arm_frc_gnueabi_deps.BUILD",
Brian Silverman50b9ac02018-08-12 13:24:10 -0700634 sha256 = "4b26fe45010817dc136488ee1604ade21bd7c264c29f17d864fc6eba9d7442c4",
Austin Schuha5778ae2020-10-21 21:15:35 -0700635 url = "https://www.frc971.org/Build-Dependencies/arm_frc_gnueabi_deps.tar.gz",
Brian Silverman50b9ac02018-08-12 13:24:10 -0700636)
Brian Silverman6c8b88b2018-09-03 18:17:02 -0700637
Austin Schuhf093fa52019-06-23 20:47:23 -0700638http_archive(
Philipp Schraderfd5489f2022-09-17 17:31:09 -0700639 name = "gtk_runtime",
640 build_file = "@//debian:gtk_runtime.BUILD",
Philipp Schrader7520ee62022-12-10 14:04:40 -0800641 sha256 = "5a6014d1783363be6bc95843d03bbb6513e650eaea60be2b1a4c65bf21981f9b",
642 url = "https://www.frc971.org/Build-Dependencies/gtk_runtime-4.tar.gz",
Philipp Schraderfd5489f2022-09-17 17:31:09 -0700643)
644
Brian Silverman6c8b88b2018-09-03 18:17:02 -0700645# Downloaded from
646# 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 -0700647http_archive(
Brian Silverman6c8b88b2018-09-03 18:17:02 -0700648 name = "gcc_arm_none_eabi",
Austin Schuhf093fa52019-06-23 20:47:23 -0700649 build_file = "@//:compilers/gcc_arm_none_eabi.BUILD",
Brian Silverman6c8b88b2018-09-03 18:17:02 -0700650 sha256 = "bb17109f0ee697254a5d4ae6e5e01440e3ea8f0277f2e8169bf95d07c7d5fe69",
651 strip_prefix = "gcc-arm-none-eabi-7-2018-q2-update/",
Austin Schuha5778ae2020-10-21 21:15:35 -0700652 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 -0700653)
Austin Schuhad596222018-01-31 23:34:03 -0800654
Tyler Chatowfba57822022-03-22 19:38:41 -0700655# Java11 JDK.
Philipp Schrader6efe5732022-02-12 15:11:13 -0800656remote_java_repository(
Austin Schuhe18baff2018-10-20 17:40:42 -0700657 name = "openjdk_linux_archive",
Philipp Schrader6efe5732022-02-12 15:11:13 -0800658 prefix = "openjdk",
Tyler Chatowfba57822022-03-22 19:38:41 -0700659 sha256 = "60e65d32e38876f81ddb623e87ac26c820465b637e263e8bed1acdecb4ca9be2",
660 strip_prefix = "zulu11.54.25-ca-jdk11.0.14.1-linux_x64",
Philipp Schrader9670a2a2023-01-11 01:20:16 -0800661 target_compatible_with = [
662 "@platforms//cpu:x86_64",
663 "@platforms//os:linux",
664 ],
Austin Schuhe18baff2018-10-20 17:40:42 -0700665 urls = [
Tyler Chatowfba57822022-03-22 19:38:41 -0700666 "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 -0700667 ],
Tyler Chatowfba57822022-03-22 19:38:41 -0700668 version = "11",
669)
670
671remote_java_repository(
672 name = "openjdk_linux_archive_aarch64",
Tyler Chatowfba57822022-03-22 19:38:41 -0700673 prefix = "openjdk",
674 sha256 = "b0fb0bc303bb05b5042ef3d0939b9489f4a49a13a2d1c8f03c5d8ab23099454d",
675 strip_prefix = "zulu11.54.25-ca-jdk11.0.14.1-linux_aarch64",
Philipp Schrader9670a2a2023-01-11 01:20:16 -0800676 target_compatible_with = [
677 "@platforms//cpu:aarch64",
678 "@platforms//os:linux",
679 ],
Tyler Chatowfba57822022-03-22 19:38:41 -0700680 urls = [
681 "https://www.frc971.org/Build-Dependencies/zulu11.54.25-ca-jdk11.0.14.1-linux_aarch64.tar.gz",
682 ],
683 version = "11",
Austin Schuhe18baff2018-10-20 17:40:42 -0700684)
685
Austin Schuhf9724442018-10-28 20:30:21 -0700686local_repository(
687 name = "com_google_protobuf",
688 path = "third_party/protobuf",
Brian Silverman9c614bc2016-02-15 20:20:02 -0500689)
Austin Schuh10358f22019-01-21 20:25:11 -0800690
691local_repository(
692 name = "com_github_google_glog",
693 path = "third_party/google-glog",
694)
Austin Schuh6defdeb2019-01-21 21:00:30 -0800695
James Kuszmaul3aabc1c2023-01-13 21:33:43 -0800696http_archive(
Alex Perrycb7da4b2019-08-28 19:35:56 -0700697 name = "com_google_googletest",
James Kuszmaul3aabc1c2023-01-13 21:33:43 -0800698 patch_args = ["-p1"],
699 patches = ["//third_party/googletest:googletest.patch"],
700 sha256 = "5c6d595243de011f8ce8cc68050cc0490726786e80cdfd6555ebfe148d920407",
701 strip_prefix = "googletest-356fc301251378e0f6fa6aa794d73714202887ac",
702 urls = ["https://github.com/google/googletest/archive/356fc301251378e0f6fa6aa794d73714202887ac.zip"],
Alex Perrycb7da4b2019-08-28 19:35:56 -0700703)
704
Austin Schuh6defdeb2019-01-21 21:00:30 -0800705# External dependency: Google Benchmark; has no Bazel build.
James Kuszmaul38169b92023-01-13 21:17:05 -0800706http_archive(
Austin Schuh6defdeb2019-01-21 21:00:30 -0800707 name = "com_github_google_benchmark",
James Kuszmaul38169b92023-01-13 21:17:05 -0800708 patch_args = ["-p1"],
709 patches = ["//third_party/google-benchmark:benchmark.patch"],
710 sha256 = "6430e4092653380d9dc4ccb45a1e2dc9259d581f4866dc0759713126056bc1d7",
711 strip_prefix = "benchmark-1.7.1",
712 urls = ["https://github.com/google/benchmark/archive/refs/tags/v1.7.1.tar.gz"],
Austin Schuhcbc17402019-01-21 21:00:30 -0800713)
Austin Schuh033df092019-01-21 19:46:48 -0800714
715local_repository(
716 name = "com_google_ceres_solver",
717 path = "third_party/ceres",
Austin Schuh70cc9552019-01-21 19:46:48 -0800718)
Austin Schuhf6b94632019-02-02 22:11:27 -0800719
Austin Schuhf093fa52019-06-23 20:47:23 -0700720http_archive(
James Kuszmaul02eb05e2019-12-22 12:32:18 -0800721 name = "ctre_phoenix_api_cpp_headers",
Austin Schuhf6b94632019-02-02 22:11:27 -0800722 build_file_content = """
723cc_library(
724 name = 'api-cpp',
725 visibility = ['//visibility:public'],
726 hdrs = glob(['ctre/phoenix/**/*.h']),
727)
728""",
Austin Schuhde605f12022-02-23 23:08:19 -0800729 sha256 = "ea4131d1809bc8ccbd72b15cc7a65bd6ebb89a65019afc6a336e2c92d91ec824",
Austin Schuhf6b94632019-02-02 22:11:27 -0800730 urls = [
Austin Schuhde605f12022-02-23 23:08:19 -0800731 "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 -0800732 ],
733)
734
Austin Schuhf093fa52019-06-23 20:47:23 -0700735http_archive(
James Kuszmaul02eb05e2019-12-22 12:32:18 -0800736 name = "ctre_phoenix_api_cpp_athena",
Austin Schuhf6b94632019-02-02 22:11:27 -0800737 build_file_content = """
Austin Schuhde605f12022-02-23 23:08:19 -0800738filegroup(
739 name = 'shared_libraries',
740 srcs = [
741 'linux/athena/shared/libCTRE_Phoenix.so',
742 ],
743 visibility = ['//visibility:public'],
744)
745
Austin Schuhf6b94632019-02-02 22:11:27 -0800746cc_library(
747 name = 'api-cpp',
748 visibility = ['//visibility:public'],
Austin Schuhde605f12022-02-23 23:08:19 -0800749 srcs = ['linux/athena/shared/libCTRE_Phoenix.so'],
Philipp Schraderdada1072020-11-24 11:34:46 -0800750 target_compatible_with = ['@//tools/platforms/hardware:roborio'],
Austin Schuhf6b94632019-02-02 22:11:27 -0800751)
752""",
Austin Schuhde605f12022-02-23 23:08:19 -0800753 sha256 = "328130012a0fc1050c3ff09f30a2adf5106d15accc3d850b744fa60ec635a462",
Austin Schuhf6b94632019-02-02 22:11:27 -0800754 urls = [
Austin Schuhde605f12022-02-23 23:08:19 -0800755 "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 -0800756 ],
757)
758
James Kuszmaul02eb05e2019-12-22 12:32:18 -0800759http_archive(
760 name = "ctre_phoenix_cci_headers",
Austin Schuhf6b94632019-02-02 22:11:27 -0800761 build_file_content = """
762cc_library(
763 name = 'cci',
764 visibility = ['//visibility:public'],
765 hdrs = glob(['ctre/phoenix/**/*.h']),
766)
767""",
Austin Schuhde605f12022-02-23 23:08:19 -0800768 sha256 = "b3332885c6afe082f9f67c2335086e89f705b6ac6c5101188616f81c58d3e49a",
Austin Schuhf6b94632019-02-02 22:11:27 -0800769 urls = [
Austin Schuhde605f12022-02-23 23:08:19 -0800770 "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 -0800771 ],
772)
773
Austin Schuhf093fa52019-06-23 20:47:23 -0700774http_archive(
James Kuszmaul02eb05e2019-12-22 12:32:18 -0800775 name = "ctre_phoenix_cci_athena",
Austin Schuhf6b94632019-02-02 22:11:27 -0800776 build_file_content = """
Austin Schuhde605f12022-02-23 23:08:19 -0800777filegroup(
778 name = 'shared_libraries',
779 srcs = [
780 'linux/athena/shared/libCTRE_PhoenixCCI.so',
781 ],
782 visibility = ['//visibility:public'],
783)
784
Austin Schuhf6b94632019-02-02 22:11:27 -0800785cc_library(
786 name = 'cci',
787 visibility = ['//visibility:public'],
Austin Schuhde605f12022-02-23 23:08:19 -0800788 srcs = ['linux/athena/shared/libCTRE_PhoenixCCI.so'],
Philipp Schraderdada1072020-11-24 11:34:46 -0800789 target_compatible_with = ['@//tools/platforms/hardware:roborio'],
Austin Schuhf6b94632019-02-02 22:11:27 -0800790)
791""",
Austin Schuhde605f12022-02-23 23:08:19 -0800792 sha256 = "94812541734d7905774d97e10a97e9c79b5c37cba60d9b6b2d6e4bf3bbabc2fb",
Austin Schuhf6b94632019-02-02 22:11:27 -0800793 urls = [
Austin Schuhde605f12022-02-23 23:08:19 -0800794 "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 -0800795 ],
796)
Austin Schuheed14442019-03-23 14:42:46 -0700797
798http_archive(
Austin Schuhda9d0602019-09-15 17:29:38 -0700799 name = "build_bazel_rules_nodejs",
Philipp Schrader87277f42022-01-01 07:45:12 -0800800 sha256 = "cfc289523cf1594598215901154a6c2515e8bf3671fd708264a6f6aefe02bf39",
801 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 -0700802)
Austin Schuheed14442019-03-23 14:42:46 -0700803
Philipp Schrader87277f42022-01-01 07:45:12 -0800804load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories", "yarn_install")
Austin Schuheed14442019-03-23 14:42:46 -0700805
806node_repositories()
807
808# Setup Bazel managed npm dependencies with the `yarn_install` rule.
Philipp Schrader87277f42022-01-01 07:45:12 -0800809
Austin Schuhda9d0602019-09-15 17:29:38 -0700810# To run yarn by hand, use:
811# bazel run @nodejs_linux_amd64//:bin/yarn -- list
812# I'm sure there is a better path, but that works...
Austin Schuheed14442019-03-23 14:42:46 -0700813yarn_install(
814 name = "npm",
Alex Perryeddc18c2022-01-29 16:22:41 -0800815 frozen_lockfile = True,
Austin Schuheed14442019-03-23 14:42:46 -0700816 package_json = "//:package.json",
Philipp Schraderb48f8ea2022-03-13 20:59:54 -0700817 patch_args = ["-p1"],
818 post_install_patches = [
819 "//third_party:npm/@bazel/protractor/bazel-protractor.patch",
820 ],
Austin Schuhda9d0602019-09-15 17:29:38 -0700821 symlink_node_modules = False,
Austin Schuheed14442019-03-23 14:42:46 -0700822 yarn_lock = "//:yarn.lock",
823)
Austin Schuh4ac96a82019-08-14 20:24:23 -0700824
Philipp Schrader54047962022-02-16 21:05:11 -0800825load("@build_bazel_rules_nodejs//toolchains/esbuild:esbuild_repositories.bzl", "esbuild_repositories")
826
827esbuild_repositories(npm_repository = "npm")
828
Alex Perryb3168082022-01-22 13:36:13 -0800829http_archive(
830 name = "io_bazel_rules_webtesting",
Philipp Schrader54047962022-02-16 21:05:11 -0800831 patch_args = ["-p1"],
832 patches = [
833 "@//third_party:rules_webtesting/rules_webtesting.patch",
834 ],
Alex Perryb3168082022-01-22 13:36:13 -0800835 sha256 = "e9abb7658b6a129740c0b3ef6f5a2370864e102a5ba5ffca2cea565829ed825a",
836 urls = ["https://github.com/bazelbuild/rules_webtesting/releases/download/0.3.5/rules_webtesting.tar.gz"],
837)
838
Brian Silvermane84b0cf2022-08-13 19:36:21 -0700839http_archive(
840 name = "rules_rust_tinyjson",
841 build_file = "@rules_rust//util/process_wrapper:BUILD.tinyjson.bazel",
842 sha256 = "1a8304da9f9370f6a6f9020b7903b044aa9ce3470f300a1fba5bc77c78145a16",
843 strip_prefix = "tinyjson-2.3.0",
844 type = "tar.gz",
845 url = "https://crates.io/api/v1/crates/tinyjson/2.3.0/download",
846)
847
Brian Silverman01dfd872022-04-06 22:20:40 -0700848local_repository(
Ravago Jones16809802021-11-18 20:40:03 -0800849 name = "rules_rust",
Brian Silverman01dfd872022-04-06 22:20:40 -0700850 path = "third_party/rules_rust",
Ravago Jones16809802021-11-18 20:40:03 -0800851)
852
Brian Silvermane84b0cf2022-08-13 19:36:21 -0700853load("@rules_rust//rust:repositories.bzl", "rust_repository_set")
Ravago Jones16809802021-11-18 20:40:03 -0800854
Brian Silvermane84b0cf2022-08-13 19:36:21 -0700855rust_repository_set(
Ravago Jones16809802021-11-18 20:40:03 -0800856 name = "rust",
Brian Silverman8751d482022-05-18 23:28:44 -0700857 allocator_library = "@//tools/rust:forward_allocator",
Ravago Jones16809802021-11-18 20:40:03 -0800858 edition = "2021",
859 exec_triple = "x86_64-unknown-linux-gnu",
860 extra_target_triples = [
861 "arm-unknown-linux-gnueabi",
862 "armv7-unknown-linux-gnueabihf",
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800863 "aarch64-unknown-linux-gnu",
Ravago Jones16809802021-11-18 20:40:03 -0800864 ],
Brian Silvermane84b0cf2022-08-13 19:36:21 -0700865 register_toolchain = False,
Brian Silvermana8ad1af2022-07-23 16:05:12 -0700866 rustfmt_version = "1.62.0",
Brian Silvermana8ad1af2022-07-23 16:05:12 -0700867 version = "1.62.0",
Ravago Jones16809802021-11-18 20:40:03 -0800868)
869
Philipp Schrader54047962022-02-16 21:05:11 -0800870load("@io_bazel_rules_webtesting//web:repositories.bzl", "web_test_repositories")
871
872web_test_repositories()
873
874load("@io_bazel_rules_webtesting//web/versioned:browsers-0.3.3.bzl", "browser_repositories")
875
876browser_repositories(chromium = True)
877
Austin Schuh4ac96a82019-08-14 20:24:23 -0700878# Flatbuffers
879local_repository(
880 name = "com_github_google_flatbuffers",
881 path = "third_party/flatbuffers",
882)
James Kuszmaul7daef362019-12-31 18:28:17 -0800883
884http_file(
885 name = "sample_logfile",
886 downloaded_file_path = "log.fbs",
milind945708b2021-07-03 13:30:15 -0700887 sha256 = "45d1d19fb82786c476d3f21a8d62742abaeeedf4c16a00ec37ae350dcb61f1fc",
888 urls = ["https://www.frc971.org/Build-Dependencies/small_sample_logfile2.fbs"],
James Kuszmaul7daef362019-12-31 18:28:17 -0800889)
Brian Silvermand4260c72020-01-14 00:08:02 -0800890
James Kuszmaul9c128122021-03-22 22:24:36 -0700891http_archive(
James Kuszmaul531609d2020-02-18 17:12:23 -0800892 name = "drivetrain_replay",
James Kuszmaul9c128122021-03-22 22:24:36 -0700893 build_file_content = """
894filegroup(
895 name = "drivetrain_replay",
896 srcs = glob(["**/*.bfbs"]),
897 visibility = ["//visibility:public"],
898)
899 """,
900 sha256 = "115dcd2fe005cb9cad3325707aa7f4466390c43a08555edf331c06c108bdf692",
901 url = "https://www.frc971.org/Build-Dependencies/2021-03-20_drivetrain_spin_wheels.tar.gz",
James Kuszmaul531609d2020-02-18 17:12:23 -0800902)
903
milind-u7baf7342021-08-25 18:31:26 -0700904http_archive(
905 name = "superstructure_replay",
906 build_file_content = """
907filegroup(
908 name = "superstructure_replay",
909 srcs = glob(["**/*.bfbs"]),
910 visibility = ["//visibility:public"],
911)
912 """,
milind-u200b2762021-11-06 19:36:15 -0700913 sha256 = "2b9a3ecc83f2aba89a1909ae38fe51e6718a5b4d0e7c131846dfb2845df9cd19",
914 url = "https://www.frc971.org/Build-Dependencies/2021-10-03_superstructure_shoot_balls.tar.gz",
milind-u7baf7342021-08-25 18:31:26 -0700915)
916
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800917# OpenCV arm64 (for raspberry pi)
918http_archive(
919 name = "opencv_arm64",
920 build_file = "@//debian:opencv.BUILD",
921 sha256 = "d284fae46ca710cf24c81ff7ace34929773466bff38f365a80371bea3b36a2ed",
922 url = "https://www.frc971.org/Build-Dependencies/opencv_arm64.tar.gz",
923)
924
Brian Silvermand4260c72020-01-14 00:08:02 -0800925# OpenCV armhf (for raspberry pi)
926http_archive(
927 name = "opencv_armhf",
928 build_file = "@//debian:opencv.BUILD",
Brian Silverman4c7235a2021-11-17 19:04:37 -0800929 sha256 = "064165507bad1afa8f7b22961a9a9067b243abc70064d713d26b37bc8dc2bf56",
930 url = "https://www.frc971.org/Build-Dependencies/opencv_armhf_v4.tar.gz",
Brian Silvermand4260c72020-01-14 00:08:02 -0800931)
Brian Silvermand97a47c2020-01-16 00:47:53 -0800932
933http_archive(
934 name = "opencv_k8",
935 build_file = "@//debian:opencv.BUILD",
Brian Silverman4c7235a2021-11-17 19:04:37 -0800936 sha256 = "b730f5d0c8eb59411157b4e84bfdddd3a6fceed10b842716d9d1b74ad322ea14",
937 url = "https://www.frc971.org/Build-Dependencies/opencv_amd64_v3.tar.gz",
Brian Silvermand97a47c2020-01-16 00:47:53 -0800938)
Brian Silverman764945b2020-01-16 23:40:43 -0800939
Brian Silverman764945b2020-01-16 23:40:43 -0800940http_archive(
941 name = "halide_k8",
942 build_file = "@//debian:halide.BUILD",
Austin Schuh669068e2023-01-04 20:50:34 -0800943 sha256 = "be3bdd067acb9ee0d37d0830821113cd69174bee46da466a836d8829fef7cf91",
944 strip_prefix = "Halide-14.0.0-x86-64-linux/",
945 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 -0800946)
947
Philipp Schraderf1bbf342022-02-05 14:30:15 -0800948http_archive(
949 name = "halide_arm64",
950 build_file = "@//debian:halide.BUILD",
Austin Schuh669068e2023-01-04 20:50:34 -0800951 sha256 = "cdd42411bcbba682f73d7db0af69837c4857ee90f1727c6feb37fc9a98132385",
952 strip_prefix = "Halide-14.0.0-arm-64-linux/",
953 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 -0800954)
955
Brian Silverman764945b2020-01-16 23:40:43 -0800956http_archive(
957 name = "halide_armhf",
958 build_file = "@//debian:halide.BUILD",
Austin Schuh669068e2023-01-04 20:50:34 -0800959 sha256 = "6b3fe3396391b57990a2c41d8dcea74b0734d1b2a0fd42fe0858d954aa45df2b",
960 strip_prefix = "Halide-14.0.0-arm-32-linux/",
961 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 -0800962)
Brian Silverman4fe44ea2020-02-02 12:56:42 -0800963
Austin Schuh2e28d872022-02-19 18:25:57 -0800964http_archive(
Tyler Chatow60671d32020-02-26 19:49:30 -0800965 name = "gstreamer_k8",
966 build_file = "@//debian:gstreamer.BUILD",
Tyler Chatow6eda82c2022-03-27 22:37:38 -0700967 sha256 = "d4994261a432c188716f0bdf30fc3f0dff6727319d9c58e7156e2b3ed5105248",
968 url = "https://www.frc971.org/Build-Dependencies/gstreamer_1.20.1-1~bpo11+1_amd64.tar.gz",
Tyler Chatow60671d32020-02-26 19:49:30 -0800969)
970
971http_archive(
972 name = "gstreamer_armhf",
973 build_file = "@//debian:gstreamer.BUILD",
974 sha256 = "c5ac4c604952c274a50636e244f0d091bd1de302032446f24f0e9e03ae9c76f7",
Austin Schuha5778ae2020-10-21 21:15:35 -0700975 url = "https://www.frc971.org/Build-Dependencies/gstreamer_armhf.tar.gz",
Tyler Chatow60671d32020-02-26 19:49:30 -0800976)
James Kuszmaulc91e4402020-05-10 18:47:20 -0700977
Tyler Chatow6eda82c2022-03-27 22:37:38 -0700978http_archive(
979 name = "gstreamer_arm64",
980 build_file = "@//debian:gstreamer.BUILD",
981 sha256 = "42b414c565ffdbae3d2d7796a66da9de42a650de757fa6554fd624f0cc3aaa9b",
982 url = "https://www.frc971.org/Build-Dependencies/gstreamer_1.20.1-1~bpo11+1_arm64.tar.gz",
983)
984
Brian Silvermanf59fe3f2020-09-22 21:04:09 -0700985# //debian:lzma_amd64
986http_archive(
987 name = "lzma_amd64",
988 build_file_content = """
989cc_library(
990 name = "lib",
991 srcs = [
992 "usr/lib/x86_64-linux-gnu/liblzma.a",
993 ],
994 hdrs = glob([
995 "usr/include/lzma/*.h",
996 "usr/include/*.h",
997 ]),
998 strip_include_prefix = "usr/include",
999 visibility = ["//visibility:public"],
1000)
1001""",
Austin Schuhe6751772022-06-27 00:58:26 -07001002 sha256 = "6fa0ad579b78bd41a0133024c34063b140442dd2ad4201fd2bf4c55229e7c13f",
1003 urls = ["https://www.frc971.org/Build-Dependencies/lzma_amd64-2.tar.gz"],
Brian Silvermanf59fe3f2020-09-22 21:04:09 -07001004)
1005
1006# //debian:lzma_arm64
1007http_archive(
1008 name = "lzma_arm64",
1009 build_file_content = """
1010cc_library(
1011 name = "lib",
1012 srcs = [
1013 "usr/lib/aarch64-linux-gnu/liblzma.a",
1014 ],
1015 hdrs = glob([
1016 "usr/include/lzma/*.h",
1017 "usr/include/*.h",
1018 ]),
1019 strip_include_prefix = "usr/include",
1020 visibility = ["//visibility:public"],
1021)
1022""",
Austin Schuhc020b182022-06-29 19:54:01 -07001023 sha256 = "b4ab9fd7cf3bfdb9e3fc67ac4a3c84db7f7e3c48431ccfc6e6e210f5829d17c9",
1024 urls = ["https://www.frc971.org/Build-Dependencies/lzma_arm64-2.tar.gz"],
Brian Silvermanf59fe3f2020-09-22 21:04:09 -07001025)
James Kuszmaul2cffe852021-10-27 20:17:49 -07001026
1027local_repository(
1028 name = "snappy",
1029 path = "third_party/snappy",
1030)
Philipp Schrader73e56602021-12-06 21:37:30 -08001031
1032http_archive(
1033 name = "io_bazel_rules_go",
Philipp Schrader039f5c32022-01-20 22:30:01 -08001034 patch_args = [
1035 "-p1",
1036 ],
1037 patches = [
1038 "@//third_party:rules_go/0001-Disable-warnings-for-external-repositories.patch",
1039 ],
Philipp Schrader73e56602021-12-06 21:37:30 -08001040 sha256 = "2b1641428dff9018f9e85c0384f03ec6c10660d935b750e3fa1492a281a53b0f",
1041 urls = [
1042 "https://www.frc971.org/Build-Dependencies/rules_go-v0.29.0.zip",
1043 "https://github.com/bazelbuild/rules_go/releases/download/v0.29.0/rules_go-v0.29.0.zip",
1044 ],
1045)
1046
Philipp Schrader37fdbb62021-12-18 00:30:37 -08001047http_archive(
1048 name = "bazel_gazelle",
1049 sha256 = "de69a09dc70417580aabf20a28619bb3ef60d038470c7cf8442fafcf627c21cb",
1050 urls = [
1051 "https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.24.0/bazel-gazelle-v0.24.0.tar.gz",
1052 "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.24.0/bazel-gazelle-v0.24.0.tar.gz",
1053 ],
1054)
1055
Philipp Schrader73e56602021-12-06 21:37:30 -08001056load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
1057
1058go_rules_dependencies()
1059
Philipp Schrader6097ed12022-03-26 15:37:37 -07001060go_register_toolchains(version = "1.18")
Philipp Schrader37fdbb62021-12-18 00:30:37 -08001061
1062load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
1063load("//:go_deps.bzl", "go_dependencies")
1064load("//tools/go:mirrored_go_deps.bzl", "mirrored_go_dependencies")
1065
1066mirrored_go_dependencies()
1067
1068# gazelle:repository_macro go_deps.bzl%go_dependencies
1069go_dependencies()
1070
1071gazelle_dependencies()
Philipp Schradercc016b32021-12-30 08:59:58 -08001072
1073http_archive(
1074 name = "com_github_bazelbuild_buildtools",
1075 sha256 = "44a6e5acc007e197d45ac3326e7f993f0160af9a58e8777ca7701e00501c0857",
1076 strip_prefix = "buildtools-4.2.4",
1077 urls = [
1078 "https://github.com/bazelbuild/buildtools/archive/refs/tags/4.2.4.tar.gz",
1079 ],
1080)
Philipp Schrader0f5d2502022-03-08 22:44:55 -08001081
1082http_archive(
Tyler Chatowec100e22022-03-22 16:23:04 -07001083 name = "libtinfo5_amd64",
Tyler Chatow8a51ac62022-03-15 13:23:12 -07001084 build_file_content = """
1085exports_files(
1086 [
1087 'lib/x86_64-linux-gnu/libtinfo.so.5',
1088 'lib/x86_64-linux-gnu/libtinfo.so.5.9',
1089 ],
1090 ["//visibility:public"],
1091)
1092""",
1093 patch_cmds = ["touch lib/x86_64-linux-gnu/BUILD"],
1094 sha256 = "059e14f77dce365c57b96284aae98c892f61e269b3fbb7d07714b7135c2e5617",
1095 urls = ["https://www.frc971.org/Build-Dependencies/libtinfo5_amd64.tar.gz"],
1096)
Tyler Chatowec100e22022-03-22 16:23:04 -07001097
1098http_archive(
1099 name = "libtinfo5_arm64",
1100 build_file_content = """
1101exports_files(
1102 [
1103 'lib/aarch64-linux-gnu/libtinfo.so.5',
1104 'lib/aarch64-linux-gnu/libtinfo.so.5.9',
1105 ],
1106 ["//visibility:public"],
1107)
1108""",
1109 patch_cmds = ["touch lib/aarch64-linux-gnu/BUILD"],
1110 sha256 = "df4ea5194c80df8d1f5f6ed68b47ce9dbf78aa8cdebbc61cf00654d9075f8e3c",
1111 urls = ["https://www.frc971.org/Build-Dependencies/libtinfo5_arm64.tar.gz"],
1112)
James Kuszmaul4ed5fb12022-03-22 15:20:04 -07001113
1114local_repository(
1115 name = "com_github_nlohmann_json",
1116 path = "third_party/com_github_nlohmann_json",
1117)
James Kuszmaul5c56ed32022-03-30 15:10:07 -07001118
Austin Schuh86110712022-09-16 15:40:54 -07001119# https://curl.haxx.se/download/curl-7.69.1.tar.gz
1120http_archive(
1121 name = "com_github_curl_curl",
1122 build_file = "//debian:curl.BUILD",
1123 sha256 = "01ae0c123dee45b01bbaef94c0bc00ed2aec89cb2ee0fd598e0d302a6b5e0a98",
1124 strip_prefix = "curl-7.69.1",
1125 url = "https://www.frc971.org/Build-Dependencies/curl-7.69.1.tar.gz",
1126)
1127
1128http_archive(
1129 # No official name exists. Names used in our external dependencies include
1130 # zlib, madler_zlib, com_github_madler_zlib.
1131 name = "zlib",
1132 build_file = "//debian:BUILD.zlib.bazel",
1133 sha256 = "629380c90a77b964d896ed37163f5c3a34f6e6d897311f1df2a7016355c45eff",
1134 strip_prefix = "zlib-1.2.11",
1135 urls = [
1136 "https://github.com/madler/zlib/archive/v1.2.11.tar.gz",
1137 ],
1138)
1139
1140# This one is tricky to get an archive because it has recursive submodules. These semi-automated steps do work though:
1141# git clone -b version1.9 --recurse-submodules --depth=1 https://github.com/aws/aws-sdk-cpp
1142# cd aws-sdk-cpp
1143# 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/\)')
1144# Now run the command that printed, and the output will be at aws_sdk-version.tar.gz.
1145http_archive(
1146 name = "aws_sdk",
1147 build_file = "//debian:aws_sdk.BUILD",
1148 patch_args = ["-p1"],
1149 patches = ["//debian:aws_sdk.patch"],
1150 sha256 = "1a2668722e5b5b2608a6ab21c876c1d98b5fd8c7d613129ced9561f5520817dc",
1151 url = "https://www.frc971.org/Build-Dependencies/aws_sdk-19.0.0-RC1.tar.gz",
1152)
1153
James Kuszmaul5ab990d2022-11-07 16:35:49 -08001154# Source code of LZ4 (files under lib/) are under BSD 2-Clause.
1155# The rest of the repository (build information, documentation, etc.) is under GPLv2.
1156# We only care about the lib/ subfolder anyways, and strip out any other files.
1157http_archive(
1158 name = "com_github_lz4_lz4",
1159 build_file = "//debian:BUILD.lz4.bazel",
1160 sha256 = "0b0e3aa07c8c063ddf40b082bdf7e37a1562bda40a0ff5272957f3e987e0e54b",
1161 strip_prefix = "lz4-1.9.4/lib",
1162 url = "https://github.com/lz4/lz4/archive/refs/tags/v1.9.4.tar.gz",
1163)
1164
James Kuszmaul5c56ed32022-03-30 15:10:07 -07001165http_file(
1166 name = "com_github_foxglove_mcap_mcap",
1167 executable = True,
James Kuszmaul5ab990d2022-11-07 16:35:49 -08001168 sha256 = "ae745dd09cf4c9570c1c038a72630c07b073f0ed4b05983d64108ff748a40d3f",
1169 urls = ["https://github.com/foxglove/mcap/releases/download/releases%2Fmcap-cli%2Fv0.0.22/mcap-linux-amd64"],
James Kuszmaul5c56ed32022-03-30 15:10:07 -07001170)
Brian Silverman0aa13732022-05-19 23:14:08 -07001171
1172http_archive(
1173 name = "cargo_raze",
1174 patches = ["@//third_party/cargo_raze:cargo_raze.patch"],
1175 sha256 = "08bfc8859ff686ecb55005a3c4a9cf790115de0abdbcc69cf57b15be0745a859",
1176 strip_prefix = "cargo-raze-0.14.2",
1177 url = "https://github.com/google/cargo-raze/archive/v0.14.2.tar.gz",
1178)
1179
1180http_archive(
1181 name = "rules_foreign_cc",
1182 patch_args = ["-p1"],
1183 patches = ["@//third_party/rules_foreign_cc:backport_d93bd96dc719760c968b54730258ad0a5b10f8fb.patch"],
1184 sha256 = "69023642d5781c68911beda769f91fcbc8ca48711db935a75da7f6536b65047f",
1185 strip_prefix = "rules_foreign_cc-0.6.0",
1186 url = "https://github.com/bazelbuild/rules_foreign_cc/archive/0.6.0.tar.gz",
1187)
1188
1189load("@cargo_raze//:repositories.bzl", "cargo_raze_repositories")
1190
1191cargo_raze_repositories()
1192
1193# cargo_raze_transitive_deps wants to do `rust_repositories`, which we do
1194# manually to get the right platforms. rules_foreign_cc is currently the only
1195# other thing it has, so just do that manually.
1196load("@rules_foreign_cc//foreign_cc:repositories.bzl", "rules_foreign_cc_dependencies")
1197
1198rules_foreign_cc_dependencies()
Brian Silverman547eda02022-05-19 23:14:08 -07001199
1200load("//third_party/cargo:crates.bzl", "raze_fetch_remote_crates")
1201
1202raze_fetch_remote_crates()
James Kuszmaul0de4feb2022-04-15 12:16:59 -07001203
1204http_archive(
1205 name = "com_github_zaphoyd_websocketpp",
1206 build_file = "//third_party/websocketpp:websocketpp.BUILD",
1207 sha256 = "6ce889d85ecdc2d8fa07408d6787e7352510750daa66b5ad44aacb47bea76755",
1208 strip_prefix = "websocketpp-0.8.2",
1209 url = "https://github.com/zaphoyd/websocketpp/archive/refs/tags/0.8.2.tar.gz",
1210)
1211
1212http_archive(
1213 name = "com_github_foxglove_ws-protocol",
1214 build_file = "//third_party/foxglove_ws_protocol:foxglove_ws_protocol.BUILD",
1215 patch_args = ["-p1"],
1216 patches = ["//third_party/foxglove_ws_protocol:foxglove_ws_protocol.patch"],
1217 sha256 = "3256f09a67419f6556778c443d332f1a4bf53ba0e7a464179bf838abffa366ab",
1218 strip_prefix = "ws-protocol-releases-typescript-ws-protocol-examples-v0.0.6",
1219 url = "https://github.com/foxglove/ws-protocol/archive/refs/tags/releases/typescript/ws-protocol-examples/v0.0.6.tar.gz",
1220)
1221
1222http_archive(
1223 name = "asio",
1224 build_file_content = """
1225cc_library(
1226 name = "asio",
1227 hdrs = glob(["include/asio/**/*.hpp", "include/asio/**/*.ipp", "include/asio.hpp"]),
1228 visibility = ["//visibility:public"],
1229 defines = ["ASIO_STANDALONE"],
1230 includes = ["include/"],
1231)""",
1232 sha256 = "8976812c24a118600f6fcf071a20606630a69afe4c0abee3b0dea528e682c585",
1233 strip_prefix = "asio-1.24.0",
1234 url = "https://downloads.sourceforge.net/project/asio/asio/1.24.0%2520%2528Stable%2529/asio-1.24.0.tar.bz2",
1235)