| load("//aos/flatbuffers:generate.bzl", "static_flatbuffer") |
| |
| package(default_visibility = ["//visibility:public"]) |
| |
| exports_files(["halide_generator.sh"]) |
| |
| cc_library( |
| name = "shifter_hall_effect", |
| hdrs = [ |
| "shifter_hall_effect.h", |
| ], |
| deps = ["//frc971/control_loops/drivetrain:drivetrain_config_fbs"], |
| ) |
| |
| cc_library( |
| name = "constants", |
| hdrs = [ |
| "constants.h", |
| ], |
| target_compatible_with = ["@platforms//os:linux"], |
| deps = [ |
| "//frc971/control_loops:control_loops_fbs", |
| "//frc971/zeroing:constants_fbs", |
| ], |
| ) |
| |
| py_library( |
| name = "python_init", |
| srcs = ["__init__.py"], |
| target_compatible_with = ["@platforms//os:linux"], |
| visibility = ["//visibility:public"], |
| ) |
| |
| static_flatbuffer( |
| name = "can_configuration_fbs", |
| srcs = [ |
| ":can_configuration.fbs", |
| ], |
| visibility = ["//visibility:public"], |
| ) |
| |
| sh_binary( |
| name = "halide_generator_compile_script", |
| srcs = [ |
| "//frc971:halide_generator.sh", |
| ], |
| data = [ |
| "@amd64_debian_sysroot//:sysroot_files", |
| "@clang_amd64_deps//:all", |
| "@deb_zlib1g_dev_1_2_11_dfsg_2_amd64_deb_repo//file", |
| "@halide_k8//:build_files", |
| "@llvm_toolchain//:all-components-x86_64-linux", |
| ], |
| deps = [ |
| "@bazel_tools//tools/bash/runfiles", |
| ], |
| ) |