blob: d472a6f7965a1eefb8030c64e09b6dec46a24c4c [file] [log] [blame]
Alex Perry0d0aae32022-02-09 21:10:17 -08001load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
2
3go_library(
4 name = "go_flatbuffer_lib",
5 srcs = ["go_fbs.go"],
6 importpath = "github.com/frc971/971-Robot-Code/build_tests/go_flatbuffer",
7 target_compatible_with = ["@platforms//cpu:x86_64"],
8 visibility = ["//visibility:private"],
9 deps = [
10 "//build_tests:test_go_fbs",
11 "@com_github_google_flatbuffers//go:go_default_library",
12 ],
13)
14
15go_binary(
16 name = "go_flatbuffer",
17 embed = [":go_flatbuffer_lib"],
18 target_compatible_with = ["@platforms//cpu:x86_64"],
19 visibility = ["//visibility:public"],
20)