Add ctre support for arm64
Signed-off-by: Maxwell Henderson <mxwhenderson@gmail.com>
Change-Id: I628ecf90567acfae287efdae4670e7bc9e96ff2b
diff --git a/third_party/BUILD b/third_party/BUILD
index 3a6284d..b017a18 100644
--- a/third_party/BUILD
+++ b/third_party/BUILD
@@ -43,14 +43,21 @@
"-Wl,-rpath",
"-Wl,.",
],
- target_compatible_with = ["//tools/platforms/hardware:roborio"],
visibility = ["//visibility:public"],
- deps = [
- "@ctre_phoenix6_api_cpp_athena//:api-cpp",
- "@ctre_phoenix6_api_cpp_headers//:api-cpp",
- "@ctre_phoenix6_tools_athena//:tools",
- "@ctre_phoenix6_tools_headers//:tools",
- ],
+ deps = select({
+ "//tools/platforms/hardware:roborio": [
+ "@ctre_phoenix6_api_cpp_headers//:api-cpp",
+ "@ctre_phoenix6_api_cpp_athena//:api-cpp",
+ "@ctre_phoenix6_tools_athena//:tools",
+ "@ctre_phoenix6_tools_headers//:tools",
+ "//third_party:wpilib"
+ ],
+ "@platforms//cpu:arm64": [
+ "@ctre_phoenix6_arm64//:headers",
+ "@ctre_phoenix6_arm64//:shared_libraries_lib",
+ ],
+ "//conditions:default": [":unavailable"],
+ }),
)
cc_library(