Reduce gsl::span usage so we can remove it
We already have absl::Span, no need to add more animals to the zoo.
This should let us delete 2 libraries out of third_party.
While we are here, the teensy code for 2019 wasn't being built. Fix
that.
Change-Id: I247750016926122240bc76e6194cf2ddfc15e9c2
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/y2019/jevois/BUILD b/y2019/jevois/BUILD
index 915e37b..674924a 100644
--- a/y2019/jevois/BUILD
+++ b/y2019/jevois/BUILD
@@ -46,7 +46,6 @@
"$(location jevois_crc.c)",
]),
]),
- target_compatible_with = ["@platforms//os:linux"],
tools = [
"//third_party/pycrc:pycrc_main",
],
@@ -60,9 +59,8 @@
hdrs = [
"jevois_crc.h",
],
- target_compatible_with = ["@platforms//os:linux"],
deps = [
- "//third_party/GSL",
+ "@com_google_absl//absl/types:span",
],
)
@@ -92,7 +90,7 @@
":jevois_crc",
":structures",
"//aos/util:bitpacking",
- "//third_party/GSL",
+ "@com_google_absl//absl/types:span",
] + select({
"@platforms//os:linux": ["//aos/logging"],
"//conditions:default": [],
@@ -114,7 +112,7 @@
":structures",
"//aos/containers:sized_array",
"//aos/util:bitpacking",
- "//third_party/GSL",
+ "@com_google_absl//absl/types:span",
] + select({
"@platforms//os:linux": ["//aos/logging"],
"//conditions:default": [],
@@ -151,7 +149,7 @@
"cobs.h",
],
deps = [
- "//third_party/GSL",
+ "@com_google_absl//absl/types:span",
],
)
@@ -165,7 +163,7 @@
":cobs",
"//aos/testing:googletest",
"//aos/testing:test_logging",
- "//third_party/GSL",
+ "@com_google_absl//absl/types:span",
],
)
@@ -197,8 +195,8 @@
"//motors/peripheral:spi",
"//motors/peripheral:uart",
"//motors/print:usb",
- "//third_party/GSL",
"//y2019/vision:constants",
+ "@com_google_absl//absl/types:span",
],
)