blob: 8f749f3fa069131f09d0bbccb79eb2aef2f11ce9 [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 ],
James Kuszmaul68025332024-01-20 17:06:02 -080012 deps = ["//frc971/control_loops/drivetrain:drivetrain_config_fbs"],
Austin Schuh044e18b2015-10-21 20:17:09 -070013)
14
15cc_library(
Austin Schuhbcce26a2018-03-26 23:41:24 -070016 name = "constants",
17 hdrs = [
18 "constants.h",
19 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080020 target_compatible_with = ["@platforms//os:linux"],
James Kuszmauld12497a2024-01-14 18:00:34 -080021 deps = [
22 "//frc971/control_loops:control_loops_fbs",
23 "//frc971/zeroing:constants_fbs",
24 ],
Austin Schuh044e18b2015-10-21 20:17:09 -070025)
Brian Silverman6470f442018-08-05 12:08:16 -070026
27py_library(
28 name = "python_init",
29 srcs = ["__init__.py"],
Philipp Schraderdada1072020-11-24 11:34:46 -080030 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -070031 visibility = ["//visibility:public"],
32)
Maxwell Hendersonf8c96892023-06-28 19:55:59 -070033
James Kuszmaulf01da392023-12-14 11:22:14 -080034static_flatbuffer(
Maxwell Hendersonf8c96892023-06-28 19:55:59 -070035 name = "can_configuration_fbs",
36 srcs = [
37 ":can_configuration.fbs",
38 ],
Maxwell Hendersonf8c96892023-06-28 19:55:59 -070039 visibility = ["//visibility:public"],
40)
Austin Schuhb02d2332023-09-05 22:18:35 -070041
42sh_binary(
43 name = "halide_generator_compile_script",
44 srcs = [
45 "//frc971:halide_generator.sh",
46 ],
47 data = [
48 "@amd64_debian_sysroot//:sysroot_files",
Austin Schuh94dbdf32024-04-11 22:51:09 -070049 "@clang_amd64_deps//:all",
Austin Schuhb02d2332023-09-05 22:18:35 -070050 "@deb_zlib1g_dev_1_2_11_dfsg_2_amd64_deb_repo//file",
51 "@halide_k8//:build_files",
52 "@llvm_toolchain//:all-components-x86_64-linux",
53 ],
54 deps = [
55 "@bazel_tools//tools/bash/runfiles",
56 ],
57)