Philipp Schrader | 5562df7 | 2022-02-16 20:56:51 -0800 | [diff] [blame^] | 1 | load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") |
| 2 | |
| 3 | go_library( |
| 4 | name = "webserver_lib", |
| 5 | srcs = ["main.go"], |
| 6 | importpath = "github.com/frc971/971-Robot-Code/scouting/webserver", |
| 7 | target_compatible_with = ["@platforms//cpu:x86_64"], |
| 8 | visibility = ["//visibility:private"], |
| 9 | deps = [ |
| 10 | "//scouting/webserver/server", |
| 11 | "//scouting/webserver/static", |
| 12 | ], |
| 13 | ) |
| 14 | |
| 15 | go_binary( |
| 16 | name = "webserver", |
| 17 | embed = [":webserver_lib"], |
| 18 | target_compatible_with = ["@platforms//cpu:x86_64"], |
| 19 | visibility = ["//visibility:public"], |
| 20 | ) |