Austin Schuh | a1d006e | 2022-09-14 21:50:42 -0700 | [diff] [blame] | 1 | load("@com_github_google_flatbuffers//:build_defs.bzl", "flatbuffer_go_library") |
| 2 | load("@com_github_google_flatbuffers//:typescript.bzl", "flatbuffer_ts_library") |
Philipp Schrader | cdb5cfc | 2022-02-20 14:57:07 -0800 | [diff] [blame] | 3 | |
Philipp Schrader | d9096a3 | 2022-02-24 17:53:09 -0800 | [diff] [blame] | 4 | FILE_NAMES = ( |
| 5 | "error_response", |
| 6 | "submit_data_scouting", |
| 7 | "submit_data_scouting_response", |
Filip Kujawa | f882e02 | 2022-12-14 13:14:08 -0800 | [diff] [blame] | 8 | "request_all_driver_rankings", |
| 9 | "request_all_driver_rankings_response", |
Sabina Leaver | e66c2fc | 2022-02-24 16:56:15 -0800 | [diff] [blame] | 10 | "request_all_matches", |
| 11 | "request_all_matches_response", |
Filip Kujawa | f882e02 | 2022-12-14 13:14:08 -0800 | [diff] [blame] | 12 | "request_all_notes", |
| 13 | "request_all_notes_response", |
Sabina Leaver | e66c2fc | 2022-02-24 16:56:15 -0800 | [diff] [blame] | 14 | "request_matches_for_team", |
| 15 | "request_matches_for_team_response", |
| 16 | "request_data_scouting", |
| 17 | "request_data_scouting_response", |
Philipp Schrader | d3fac19 | 2022-03-02 20:35:46 -0800 | [diff] [blame] | 18 | "refresh_match_list", |
| 19 | "refresh_match_list_response", |
Alex Perry | 81f96ba | 2022-03-13 18:26:19 -0700 | [diff] [blame] | 20 | "submit_notes", |
| 21 | "submit_notes_response", |
| 22 | "request_notes_for_team", |
| 23 | "request_notes_for_team_response", |
Milo Lin | 1d59f0c | 2022-06-22 20:30:58 -0700 | [diff] [blame] | 24 | "request_shift_schedule", |
| 25 | "request_shift_schedule_response", |
| 26 | "submit_shift_schedule", |
| 27 | "submit_shift_schedule_response", |
Filip Kujawa | 210a03b | 2022-11-24 14:41:11 -0800 | [diff] [blame] | 28 | "submit_driver_ranking", |
| 29 | "submit_driver_ranking_response", |
Sabina Leaver | 759090b | 2023-01-14 20:42:56 -0800 | [diff] [blame^] | 30 | "submit_actions", |
| 31 | "submit_actions_response", |
Philipp Schrader | d9096a3 | 2022-02-24 17:53:09 -0800 | [diff] [blame] | 32 | ) |
| 33 | |
| 34 | filegroup( |
| 35 | name = "fbs_files", |
| 36 | srcs = ["%s.fbs" % name for name in FILE_NAMES], |
| 37 | visibility = ["//visibility:public"], |
| 38 | ) |
| 39 | |
Philipp Schrader | cdb5cfc | 2022-02-20 14:57:07 -0800 | [diff] [blame] | 40 | [( |
| 41 | flatbuffer_go_library( |
| 42 | name = name + "_go_fbs", |
| 43 | srcs = [name + ".fbs"], |
| 44 | importpath = "github.com/frc971/971-Robot-Code/scouting/webserver/requests/messages/" + name, |
| 45 | target_compatible_with = ["@platforms//cpu:x86_64"], |
| 46 | visibility = ["//visibility:public"], |
| 47 | ), |
| 48 | flatbuffer_ts_library( |
| 49 | name = name + "_ts_fbs", |
| 50 | srcs = [name + ".fbs"], |
| 51 | target_compatible_with = ["@platforms//cpu:x86_64"], |
| 52 | visibility = ["//visibility:public"], |
| 53 | ), |
Philipp Schrader | d9096a3 | 2022-02-24 17:53:09 -0800 | [diff] [blame] | 54 | ) for name in FILE_NAMES] |