blob: f5b0a813aeb4114734984db734515a37014fdc8a [file] [log] [blame] [edit]
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
go_library(
name = "webserver_lib",
srcs = ["main.go"],
importpath = "github.com/frc971/971-Robot-Code/scouting/webserver",
target_compatible_with = ["@platforms//cpu:x86_64"],
visibility = ["//visibility:private"],
deps = [
"//scouting/background_task",
"//scouting/db",
"//scouting/webserver/driver_ranking",
"//scouting/webserver/match_list",
"//scouting/webserver/rankings",
"//scouting/webserver/requests",
"//scouting/webserver/server",
"//scouting/webserver/static",
],
)
go_binary(
name = "webserver",
embed = [":webserver_lib"],
target_compatible_with = ["@platforms//cpu:x86_64"],
visibility = ["//visibility:public"],
)