Alex Perry | 0d0aae3 | 2022-02-09 21:10:17 -0800 | [diff] [blame^] | 1 | load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") |
| 2 | |
| 3 | go_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 | |
| 15 | go_binary( |
| 16 | name = "go_flatbuffer", |
| 17 | embed = [":go_flatbuffer_lib"], |
| 18 | target_compatible_with = ["@platforms//cpu:x86_64"], |
| 19 | visibility = ["//visibility:public"], |
| 20 | ) |