blob: a8613161621b77cbb558a77c436027d8c2dfadb8 [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"],
Austin Schuh044e18b2015-10-21 20:17:09 -070020)
Brian Silverman6470f442018-08-05 12:08:16 -070021
22py_library(
23 name = "python_init",
24 srcs = ["__init__.py"],
Philipp Schraderdada1072020-11-24 11:34:46 -080025 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -070026 visibility = ["//visibility:public"],
27)
Maxwell Hendersonf8c96892023-06-28 19:55:59 -070028
James Kuszmaulf01da392023-12-14 11:22:14 -080029static_flatbuffer(
Maxwell Hendersonf8c96892023-06-28 19:55:59 -070030 name = "can_configuration_fbs",
31 srcs = [
32 ":can_configuration.fbs",
33 ],
Maxwell Hendersonf8c96892023-06-28 19:55:59 -070034 visibility = ["//visibility:public"],
35)
Austin Schuhb02d2332023-09-05 22:18:35 -070036
37sh_binary(
38 name = "halide_generator_compile_script",
39 srcs = [
40 "//frc971:halide_generator.sh",
41 ],
42 data = [
43 "@amd64_debian_sysroot//:sysroot_files",
44 "@deb_zlib1g_dev_1_2_11_dfsg_2_amd64_deb_repo//file",
45 "@halide_k8//:build_files",
46 "@llvm_toolchain//:all-components-x86_64-linux",
47 ],
48 deps = [
49 "@bazel_tools//tools/bash/runfiles",
50 ],
51)