blob: 15679358af6e0a43c225d12a1a7aa7589056bf80 [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",
7)
8
9filegroup(
10 name = "fbs_files",
11 srcs = ["%s.fbs" % name for name in FILE_NAMES],
12 visibility = ["//visibility:public"],
13)
14
Philipp Schradercdb5cfc2022-02-20 14:57:07 -080015[(
16 flatbuffer_go_library(
17 name = name + "_go_fbs",
18 srcs = [name + ".fbs"],
19 importpath = "github.com/frc971/971-Robot-Code/scouting/webserver/requests/messages/" + name,
20 target_compatible_with = ["@platforms//cpu:x86_64"],
21 visibility = ["//visibility:public"],
22 ),
23 flatbuffer_ts_library(
24 name = name + "_ts_fbs",
25 srcs = [name + ".fbs"],
26 target_compatible_with = ["@platforms//cpu:x86_64"],
27 visibility = ["//visibility:public"],
28 ),
Philipp Schraderd9096a32022-02-24 17:53:09 -080029) for name in FILE_NAMES]