blob: 0dc3ad48f60ff856da7ce3710601fa4525ac23e9 [file] [log] [blame]
Austin Schuh86cd5722019-04-14 13:34:20 -07001load("//aos/seasocks:gen_embedded.bzl", "gen_embedded")
Alex Perrycb7da4b2019-08-28 19:35:56 -07002load("//frc971/downloader:downloader.bzl", "aos_downloader_dir")
Comran Morsheddaf69232016-04-20 22:25:37 -07003
4gen_embedded(
Austin Schuh86cd5722019-04-14 13:34:20 -07005 name = "gen_embedded",
6 srcs = glob(
7 ["www_defaults/**/*"],
8 exclude = ["www/**/*"],
9 ),
Philipp Schraderdada1072020-11-24 11:34:46 -080010 target_compatible_with = ["@platforms//os:linux"],
Comran Morsheddaf69232016-04-20 22:25:37 -070011)
12
Comran Morshed38967332016-04-23 19:26:48 -070013aos_downloader_dir(
Austin Schuh86cd5722019-04-14 13:34:20 -070014 name = "www_files",
15 srcs = glob([
16 "www/**/*",
17 ]),
18 dir = "www",
Philipp Schraderdada1072020-11-24 11:34:46 -080019 target_compatible_with = ["@platforms//os:linux"],
Austin Schuh86cd5722019-04-14 13:34:20 -070020 visibility = ["//visibility:public"],
Comran Morshed38967332016-04-23 19:26:48 -070021)
22
Comran Morsheddaf69232016-04-20 22:25:37 -070023cc_binary(
Austin Schuh86cd5722019-04-14 13:34:20 -070024 name = "dashboard",
25 srcs = [
26 "dashboard.cc",
27 "dashboard.h",
28 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080029 target_compatible_with = ["@platforms//os:linux"],
Austin Schuh86cd5722019-04-14 13:34:20 -070030 visibility = ["//visibility:public"],
31 deps = [
32 ":gen_embedded",
33 "//aos:init",
Alex Perrycb7da4b2019-08-28 19:35:56 -070034 "//aos/events:event_loop",
35 "//aos/events:shm_event_loop",
Austin Schuh86cd5722019-04-14 13:34:20 -070036 "//aos/logging",
37 "//aos/seasocks:seasocks_logger",
38 "//aos/time",
39 "//aos/util:phased_loop",
Austin Schuhed5b26d2019-12-05 20:51:59 -080040 "//frc971/autonomous:auto_mode_fbs",
Alex Perrycb7da4b2019-08-28 19:35:56 -070041 "//frc971/control_loops:control_loops_fbs",
Austin Schuh86cd5722019-04-14 13:34:20 -070042 "//third_party/seasocks",
Alex Perrycb7da4b2019-08-28 19:35:56 -070043 "//y2016/control_loops/superstructure:superstructure_status_fbs",
44 "//y2016/queues:ball_detector_fbs",
45 "//y2016/vision:vision_fbs",
Austin Schuh86cd5722019-04-14 13:34:20 -070046 ],
Comran Morsheddaf69232016-04-20 22:25:37 -070047)