blob: 53ceab2f97982c869461006cb41ee31a61fe7aed [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 Schraderd9096a32022-02-24 17:53:09 -080013)
14
15filegroup(
16 name = "fbs_files",
17 srcs = ["%s.fbs" % name for name in FILE_NAMES],
18 visibility = ["//visibility:public"],
19)
20
Philipp Schradercdb5cfc2022-02-20 14:57:07 -080021[(
22 flatbuffer_go_library(
23 name = name + "_go_fbs",
24 srcs = [name + ".fbs"],
25 importpath = "github.com/frc971/971-Robot-Code/scouting/webserver/requests/messages/" + name,
26 target_compatible_with = ["@platforms//cpu:x86_64"],
27 visibility = ["//visibility:public"],
28 ),
29 flatbuffer_ts_library(
30 name = name + "_ts_fbs",
31 srcs = [name + ".fbs"],
32 target_compatible_with = ["@platforms//cpu:x86_64"],
33 visibility = ["//visibility:public"],
34 ),
Philipp Schraderd9096a32022-02-24 17:53:09 -080035) for name in FILE_NAMES]