blob: 4f1fcc702337d7276f9a373d09c8dd370b98e1e5 [file] [log] [blame]
package(default_visibility = ["//visibility:public"])
load("@com_github_google_flatbuffers//:build_defs.bzl", "flatbuffer_cc_library")
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",
],
)