Austin Schuh | 86cd572 | 2019-04-14 13:34:20 -0700 | [diff] [blame] | 1 | load("//aos/seasocks:gen_embedded.bzl", "gen_embedded") |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 2 | load("//frc971/downloader:downloader.bzl", "aos_downloader_dir") |
Comran Morshed | daf6923 | 2016-04-20 22:25:37 -0700 | [diff] [blame] | 3 | |
| 4 | gen_embedded( |
Austin Schuh | 86cd572 | 2019-04-14 13:34:20 -0700 | [diff] [blame] | 5 | name = "gen_embedded", |
| 6 | srcs = glob( |
| 7 | ["www_defaults/**/*"], |
| 8 | exclude = ["www/**/*"], |
| 9 | ), |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame^] | 10 | target_compatible_with = ["@platforms//os:linux"], |
Comran Morshed | daf6923 | 2016-04-20 22:25:37 -0700 | [diff] [blame] | 11 | ) |
| 12 | |
Comran Morshed | 3896733 | 2016-04-23 19:26:48 -0700 | [diff] [blame] | 13 | aos_downloader_dir( |
Austin Schuh | 86cd572 | 2019-04-14 13:34:20 -0700 | [diff] [blame] | 14 | name = "www_files", |
| 15 | srcs = glob([ |
| 16 | "www/**/*", |
| 17 | ]), |
| 18 | dir = "www", |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame^] | 19 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 86cd572 | 2019-04-14 13:34:20 -0700 | [diff] [blame] | 20 | visibility = ["//visibility:public"], |
Comran Morshed | 3896733 | 2016-04-23 19:26:48 -0700 | [diff] [blame] | 21 | ) |
| 22 | |
Comran Morshed | daf6923 | 2016-04-20 22:25:37 -0700 | [diff] [blame] | 23 | cc_binary( |
Austin Schuh | 86cd572 | 2019-04-14 13:34:20 -0700 | [diff] [blame] | 24 | name = "dashboard", |
| 25 | srcs = [ |
| 26 | "dashboard.cc", |
| 27 | "dashboard.h", |
| 28 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame^] | 29 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 86cd572 | 2019-04-14 13:34:20 -0700 | [diff] [blame] | 30 | visibility = ["//visibility:public"], |
| 31 | deps = [ |
| 32 | ":gen_embedded", |
| 33 | "//aos:init", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 34 | "//aos/events:event_loop", |
| 35 | "//aos/events:shm_event_loop", |
Austin Schuh | 86cd572 | 2019-04-14 13:34:20 -0700 | [diff] [blame] | 36 | "//aos/logging", |
| 37 | "//aos/seasocks:seasocks_logger", |
| 38 | "//aos/time", |
| 39 | "//aos/util:phased_loop", |
Austin Schuh | ed5b26d | 2019-12-05 20:51:59 -0800 | [diff] [blame] | 40 | "//frc971/autonomous:auto_mode_fbs", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 41 | "//frc971/control_loops:control_loops_fbs", |
Austin Schuh | 86cd572 | 2019-04-14 13:34:20 -0700 | [diff] [blame] | 42 | "//third_party/seasocks", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 43 | "//y2016/control_loops/superstructure:superstructure_status_fbs", |
| 44 | "//y2016/queues:ball_detector_fbs", |
| 45 | "//y2016/vision:vision_fbs", |
Austin Schuh | 86cd572 | 2019-04-14 13:34:20 -0700 | [diff] [blame] | 46 | ], |
Comran Morshed | daf6923 | 2016-04-20 22:25:37 -0700 | [diff] [blame] | 47 | ) |