blob: f3116de3f7dfe927b57b0e1bdd10b9606077cc35 [file] [log] [blame]
James Kuszmaulf01da392023-12-14 11:22:14 -08001load("//aos/flatbuffers:generate.bzl", "static_flatbuffer")
Comran Morshed41ed7c22015-11-04 21:03:37 +00002
Philipp Schradercc016b32021-12-30 08:59:58 -08003package(default_visibility = ["//visibility:public"])
4
James Kuszmaulf01da392023-12-14 11:22:14 -08005static_flatbuffer(
Alex Perrycb7da4b2019-08-28 19:35:56 -07006 name = "rollers_goal_fbs",
Austin Schuh55a13dc2019-01-27 22:39:03 -08007 srcs = [
Alex Perrycb7da4b2019-08-28 19:35:56 -07008 "rollers_goal.fbs",
Austin Schuh55a13dc2019-01-27 22:39:03 -08009 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080010 target_compatible_with = ["@platforms//os:linux"],
Alex Perrycb7da4b2019-08-28 19:35:56 -070011)
12
James Kuszmaulf01da392023-12-14 11:22:14 -080013static_flatbuffer(
Alex Perrycb7da4b2019-08-28 19:35:56 -070014 name = "rollers_position_fbs",
15 srcs = [
16 "rollers_position.fbs",
Austin Schuh55a13dc2019-01-27 22:39:03 -080017 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080018 target_compatible_with = ["@platforms//os:linux"],
Alex Perrycb7da4b2019-08-28 19:35:56 -070019)
20
James Kuszmaulf01da392023-12-14 11:22:14 -080021static_flatbuffer(
Alex Perrycb7da4b2019-08-28 19:35:56 -070022 name = "rollers_output_fbs",
23 srcs = [
24 "rollers_output.fbs",
25 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080026 target_compatible_with = ["@platforms//os:linux"],
Alex Perrycb7da4b2019-08-28 19:35:56 -070027)
28
James Kuszmaulf01da392023-12-14 11:22:14 -080029static_flatbuffer(
Alex Perrycb7da4b2019-08-28 19:35:56 -070030 name = "rollers_status_fbs",
31 srcs = [
32 "rollers_status.fbs",
33 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080034 target_compatible_with = ["@platforms//os:linux"],
Comran Morshed41ed7c22015-11-04 21:03:37 +000035)
36
37cc_library(
Austin Schuh55a13dc2019-01-27 22:39:03 -080038 name = "rollers_lib",
39 srcs = [
40 "rollers.cc",
41 ],
42 hdrs = [
43 "rollers.h",
44 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080045 target_compatible_with = ["@platforms//os:linux"],
Austin Schuh55a13dc2019-01-27 22:39:03 -080046 deps = [
Alex Perrycb7da4b2019-08-28 19:35:56 -070047 ":rollers_goal_fbs",
48 ":rollers_output_fbs",
49 ":rollers_position_fbs",
50 ":rollers_status_fbs",
Austin Schuh55a13dc2019-01-27 22:39:03 -080051 "//aos/logging",
Austin Schuh0a3c9d42021-07-15 22:36:24 -070052 "//frc971/control_loops:control_loop",
Austin Schuh55a13dc2019-01-27 22:39:03 -080053 ],
Comran Morshed41ed7c22015-11-04 21:03:37 +000054)
55
56cc_binary(
Austin Schuh55a13dc2019-01-27 22:39:03 -080057 name = "rollers",
58 srcs = [
59 "rollers_main.cc",
60 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080061 target_compatible_with = ["@platforms//os:linux"],
Austin Schuh55a13dc2019-01-27 22:39:03 -080062 deps = [
63 ":rollers_lib",
64 "//aos:init",
Alex Perrycb7da4b2019-08-28 19:35:56 -070065 "//aos/events:shm_event_loop",
Austin Schuh55a13dc2019-01-27 22:39:03 -080066 ],
Comran Morshed41ed7c22015-11-04 21:03:37 +000067)