blob: 9e8198a397b046e38519c01f67613b1afc05e31a [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 ),
Comran Morsheddaf69232016-04-20 22:25:37 -070010)
11
Comran Morshed38967332016-04-23 19:26:48 -070012aos_downloader_dir(
Austin Schuh86cd5722019-04-14 13:34:20 -070013 name = "www_files",
14 srcs = glob([
15 "www/**/*",
16 ]),
17 dir = "www",
18 visibility = ["//visibility:public"],
Comran Morshed38967332016-04-23 19:26:48 -070019)
20
Comran Morsheddaf69232016-04-20 22:25:37 -070021cc_binary(
Austin Schuh86cd5722019-04-14 13:34:20 -070022 name = "dashboard",
23 srcs = [
24 "dashboard.cc",
25 "dashboard.h",
26 ],
27 visibility = ["//visibility:public"],
28 deps = [
29 ":gen_embedded",
30 "//aos:init",
Alex Perrycb7da4b2019-08-28 19:35:56 -070031 "//aos/events:event_loop",
32 "//aos/events:shm_event_loop",
Austin Schuh86cd5722019-04-14 13:34:20 -070033 "//aos/logging",
34 "//aos/seasocks:seasocks_logger",
35 "//aos/time",
36 "//aos/util:phased_loop",
Austin Schuhed5b26d2019-12-05 20:51:59 -080037 "//frc971/autonomous:auto_mode_fbs",
Alex Perrycb7da4b2019-08-28 19:35:56 -070038 "//frc971/control_loops:control_loops_fbs",
Austin Schuh86cd5722019-04-14 13:34:20 -070039 "//third_party/seasocks",
Alex Perrycb7da4b2019-08-28 19:35:56 -070040 "//y2016/control_loops/superstructure:superstructure_status_fbs",
41 "//y2016/queues:ball_detector_fbs",
42 "//y2016/vision:vision_fbs",
Austin Schuh86cd5722019-04-14 13:34:20 -070043 ],
Comran Morsheddaf69232016-04-20 22:25:37 -070044)