blob: ccbd94d6a16c74bdb8c73a8f5565d5a08c1ccd60 [file] [log] [blame]
load("@com_github_google_flatbuffers//:build_defs.bzl", "flatbuffer_cc_library")
package(default_visibility = ["//visibility:public"])
flatbuffer_cc_library(
name = "rollers_goal_fbs",
srcs = [
"rollers_goal.fbs",
],
gen_reflections = 1,
target_compatible_with = ["@platforms//os:linux"],
)
flatbuffer_cc_library(
name = "rollers_position_fbs",
srcs = [
"rollers_position.fbs",
],
gen_reflections = 1,
target_compatible_with = ["@platforms//os:linux"],
)
flatbuffer_cc_library(
name = "rollers_output_fbs",
srcs = [
"rollers_output.fbs",
],
gen_reflections = 1,
target_compatible_with = ["@platforms//os:linux"],
)
flatbuffer_cc_library(
name = "rollers_status_fbs",
srcs = [
"rollers_status.fbs",
],
gen_reflections = 1,
target_compatible_with = ["@platforms//os:linux"],
)
cc_library(
name = "rollers_lib",
srcs = [
"rollers.cc",
],
hdrs = [
"rollers.h",
],
target_compatible_with = ["@platforms//os:linux"],
deps = [
":rollers_goal_fbs",
":rollers_output_fbs",
":rollers_position_fbs",
":rollers_status_fbs",
"//aos/logging",
"//frc971/control_loops:control_loop",
],
)
cc_binary(
name = "rollers",
srcs = [
"rollers_main.cc",
],
target_compatible_with = ["@platforms//os:linux"],
deps = [
":rollers_lib",
"//aos:init",
"//aos/events:shm_event_loop",
],
)