blob: 289281493fc167e09acc34d80aca5b4140fe96c0 [file] [log] [blame]
Austin Schuh86cd5722019-04-14 13:34:20 -07001load("//aos/seasocks:gen_embedded.bzl", "gen_embedded")
2load("//aos/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",
31 "//aos/logging",
32 "//aos/seasocks:seasocks_logger",
33 "//aos/time",
34 "//aos/util:phased_loop",
35 "//frc971/autonomous:auto_queue",
36 "//third_party/seasocks",
37 "//y2016/control_loops/superstructure:superstructure_queue",
38 "//y2016/queues:ball_detector",
39 "//y2016/vision:vision_queue",
40 ],
Comran Morsheddaf69232016-04-20 22:25:37 -070041)