blob: dd1b3679d469e8967b9ed043242ad8ff9dbbd24b [file] [log] [blame]
James Kuszmaulf01da392023-12-14 11:22:14 -08001load("//aos/flatbuffers:generate.bzl", "static_flatbuffer")
Maxwell Hendersonf8c96892023-06-28 19:55:59 -07002
Austin Schuhbcce26a2018-03-26 23:41:24 -07003package(default_visibility = ["//visibility:public"])
4
Austin Schuhb02d2332023-09-05 22:18:35 -07005exports_files(["halide_generator.sh"])
6
Austin Schuh044e18b2015-10-21 20:17:09 -07007cc_library(
Austin Schuhbcce26a2018-03-26 23:41:24 -07008 name = "shifter_hall_effect",
9 hdrs = [
10 "shifter_hall_effect.h",
11 ],
Austin Schuh044e18b2015-10-21 20:17:09 -070012)
13
14cc_library(
Austin Schuhbcce26a2018-03-26 23:41:24 -070015 name = "constants",
16 hdrs = [
17 "constants.h",
18 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080019 target_compatible_with = ["@platforms//os:linux"],
James Kuszmauld12497a2024-01-14 18:00:34 -080020 deps = [
21 "//frc971/control_loops:control_loops_fbs",
22 "//frc971/zeroing:constants_fbs",
23 ],
Austin Schuh044e18b2015-10-21 20:17:09 -070024)
Brian Silverman6470f442018-08-05 12:08:16 -070025
26py_library(
27 name = "python_init",
28 srcs = ["__init__.py"],
Philipp Schraderdada1072020-11-24 11:34:46 -080029 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -070030 visibility = ["//visibility:public"],
31)
Maxwell Hendersonf8c96892023-06-28 19:55:59 -070032
James Kuszmaulf01da392023-12-14 11:22:14 -080033static_flatbuffer(
Maxwell Hendersonf8c96892023-06-28 19:55:59 -070034 name = "can_configuration_fbs",
35 srcs = [
36 ":can_configuration.fbs",
37 ],
Maxwell Hendersonf8c96892023-06-28 19:55:59 -070038 visibility = ["//visibility:public"],
39)
Austin Schuhb02d2332023-09-05 22:18:35 -070040
41sh_binary(
42 name = "halide_generator_compile_script",
43 srcs = [
44 "//frc971:halide_generator.sh",
45 ],
46 data = [
47 "@amd64_debian_sysroot//:sysroot_files",
48 "@deb_zlib1g_dev_1_2_11_dfsg_2_amd64_deb_repo//file",
49 "@halide_k8//:build_files",
50 "@llvm_toolchain//:all-components-x86_64-linux",
51 ],
52 deps = [
53 "@bazel_tools//tools/bash/runfiles",
54 ],
55)