blob: 42874625ab7cee7943bcc5a7359ebbae4e59e2fa [file] [log] [blame]
Maxwell Hendersonf8c96892023-06-28 19:55:59 -07001load("@com_github_google_flatbuffers//:build_defs.bzl", "flatbuffer_cc_library")
2
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
29flatbuffer_cc_library(
30 name = "can_configuration_fbs",
31 srcs = [
32 ":can_configuration.fbs",
33 ],
34 gen_reflections = 1,
35 visibility = ["//visibility:public"],
36)
Austin Schuhb02d2332023-09-05 22:18:35 -070037
38sh_binary(
39 name = "halide_generator_compile_script",
40 srcs = [
41 "//frc971:halide_generator.sh",
42 ],
43 data = [
44 "@amd64_debian_sysroot//:sysroot_files",
45 "@deb_zlib1g_dev_1_2_11_dfsg_2_amd64_deb_repo//file",
46 "@halide_k8//:build_files",
47 "@llvm_toolchain//:all-components-x86_64-linux",
48 ],
49 deps = [
50 "@bazel_tools//tools/bash/runfiles",
51 ],
52)