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