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 | ], |
Austin Schuh | 044e18b | 2015-10-21 20:17:09 -0700 | [diff] [blame] | 12 | ) |
| 13 | |
| 14 | cc_library( |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 15 | name = "constants", |
| 16 | hdrs = [ |
| 17 | "constants.h", |
| 18 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 19 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 044e18b | 2015-10-21 20:17:09 -0700 | [diff] [blame] | 20 | ) |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 21 | |
| 22 | py_library( |
| 23 | name = "python_init", |
| 24 | srcs = ["__init__.py"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 25 | target_compatible_with = ["@platforms//os:linux"], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 26 | visibility = ["//visibility:public"], |
| 27 | ) |
Maxwell Henderson | f8c9689 | 2023-06-28 19:55:59 -0700 | [diff] [blame] | 28 | |
James Kuszmaul | f01da39 | 2023-12-14 11:22:14 -0800 | [diff] [blame] | 29 | static_flatbuffer( |
Maxwell Henderson | f8c9689 | 2023-06-28 19:55:59 -0700 | [diff] [blame] | 30 | name = "can_configuration_fbs", |
| 31 | srcs = [ |
| 32 | ":can_configuration.fbs", |
| 33 | ], |
Maxwell Henderson | f8c9689 | 2023-06-28 19:55:59 -0700 | [diff] [blame] | 34 | visibility = ["//visibility:public"], |
| 35 | ) |
Austin Schuh | b02d233 | 2023-09-05 22:18:35 -0700 | [diff] [blame] | 36 | |
| 37 | sh_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 | ) |