James Kuszmaul | f01da39 | 2023-12-14 11:22:14 -0800 | [diff] [blame] | 1 | load("//aos/flatbuffers:generate.bzl", "static_flatbuffer") |
Maxwell Henderson | f8c9689 | 2023-06-28 19:55:59 -0700 | [diff] [blame] | 2 | |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 3 | package(default_visibility = ["//visibility:public"]) |
| 4 | |
Austin Schuh | b02d233 | 2023-09-05 22:18:35 -0700 | [diff] [blame] | 5 | exports_files(["halide_generator.sh"]) |
| 6 | |
Austin Schuh | 044e18b | 2015-10-21 20:17:09 -0700 | [diff] [blame] | 7 | cc_library( |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 8 | name = "shifter_hall_effect", |
| 9 | hdrs = [ |
| 10 | "shifter_hall_effect.h", |
| 11 | ], |
James Kuszmaul | 6802533 | 2024-01-20 17:06:02 -0800 | [diff] [blame] | 12 | deps = ["//frc971/control_loops/drivetrain:drivetrain_config_fbs"], |
Austin Schuh | 044e18b | 2015-10-21 20:17:09 -0700 | [diff] [blame] | 13 | ) |
| 14 | |
| 15 | cc_library( |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 16 | name = "constants", |
| 17 | hdrs = [ |
| 18 | "constants.h", |
| 19 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 20 | target_compatible_with = ["@platforms//os:linux"], |
James Kuszmaul | d12497a | 2024-01-14 18:00:34 -0800 | [diff] [blame] | 21 | deps = [ |
| 22 | "//frc971/control_loops:control_loops_fbs", |
| 23 | "//frc971/zeroing:constants_fbs", |
| 24 | ], |
Austin Schuh | 044e18b | 2015-10-21 20:17:09 -0700 | [diff] [blame] | 25 | ) |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 26 | |
| 27 | py_library( |
| 28 | name = "python_init", |
| 29 | srcs = ["__init__.py"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 30 | target_compatible_with = ["@platforms//os:linux"], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 31 | visibility = ["//visibility:public"], |
| 32 | ) |
Maxwell Henderson | f8c9689 | 2023-06-28 19:55:59 -0700 | [diff] [blame] | 33 | |
James Kuszmaul | f01da39 | 2023-12-14 11:22:14 -0800 | [diff] [blame] | 34 | static_flatbuffer( |
Maxwell Henderson | f8c9689 | 2023-06-28 19:55:59 -0700 | [diff] [blame] | 35 | name = "can_configuration_fbs", |
| 36 | srcs = [ |
| 37 | ":can_configuration.fbs", |
| 38 | ], |
Maxwell Henderson | f8c9689 | 2023-06-28 19:55:59 -0700 | [diff] [blame] | 39 | visibility = ["//visibility:public"], |
| 40 | ) |
Austin Schuh | b02d233 | 2023-09-05 22:18:35 -0700 | [diff] [blame] | 41 | |
| 42 | sh_binary( |
| 43 | name = "halide_generator_compile_script", |
| 44 | srcs = [ |
| 45 | "//frc971:halide_generator.sh", |
| 46 | ], |
| 47 | data = [ |
| 48 | "@amd64_debian_sysroot//:sysroot_files", |
| 49 | "@deb_zlib1g_dev_1_2_11_dfsg_2_amd64_deb_repo//file", |
| 50 | "@halide_k8//:build_files", |
| 51 | "@llvm_toolchain//:all-components-x86_64-linux", |
| 52 | ], |
| 53 | deps = [ |
| 54 | "@bazel_tools//tools/bash/runfiles", |
| 55 | ], |
| 56 | ) |