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", |
| 7 | ) |
| 8 | |
| 9 | filegroup( |
| 10 | name = "fbs_files", |
| 11 | srcs = ["%s.fbs" % name for name in FILE_NAMES], |
| 12 | visibility = ["//visibility:public"], |
| 13 | ) |
| 14 | |
Philipp Schrader | cdb5cfc | 2022-02-20 14:57:07 -0800 | [diff] [blame] | 15 | [( |
| 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 Schrader | d9096a3 | 2022-02-24 17:53:09 -0800 | [diff] [blame] | 29 | ) for name in FILE_NAMES] |