blob: f7e194b2a9a661fb3a71f26ba9a1cb1a6ad5d200 [file] [log] [blame]
Philipp Schradercdb5cfc2022-02-20 14:57:07 -08001load("@com_github_google_flatbuffers//:build_defs.bzl", "flatbuffer_go_library", "flatbuffer_ts_library")
2
Philipp Schraderd9096a32022-02-24 17:53:09 -08003FILE_NAMES = (
4 "error_response",
5 "submit_data_scouting",
6 "submit_data_scouting_response",
Sabina Leavere66c2fc2022-02-24 16:56:15 -08007 "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 Schraderd3fac192022-03-02 20:35:46 -080013 "refresh_match_list",
14 "refresh_match_list_response",
Alex Perry81f96ba2022-03-13 18:26:19 -070015 "submit_notes",
16 "submit_notes_response",
17 "request_notes_for_team",
18 "request_notes_for_team_response",
Philipp Schraderd9096a32022-02-24 17:53:09 -080019)
20
21filegroup(
22 name = "fbs_files",
23 srcs = ["%s.fbs" % name for name in FILE_NAMES],
24 visibility = ["//visibility:public"],
25)
26
Philipp Schradercdb5cfc2022-02-20 14:57:07 -080027[(
28 flatbuffer_go_library(
29 name = name + "_go_fbs",
30 srcs = [name + ".fbs"],
31 importpath = "github.com/frc971/971-Robot-Code/scouting/webserver/requests/messages/" + name,
32 target_compatible_with = ["@platforms//cpu:x86_64"],
33 visibility = ["//visibility:public"],
34 ),
35 flatbuffer_ts_library(
36 name = name + "_ts_fbs",
37 srcs = [name + ".fbs"],
38 target_compatible_with = ["@platforms//cpu:x86_64"],
39 visibility = ["//visibility:public"],
40 ),
Philipp Schraderd9096a32022-02-24 17:53:09 -080041) for name in FILE_NAMES]