load("@rules_proto//proto:defs.bzl", "proto_library")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")

proto_library(
    name = "custom_evaluator_proto",
    srcs = ["custom_evaluator.proto"],
    visibility = ["//visibility:public"],
    deps = ["//pb/test_status:test_status_proto"],
)

go_proto_library(
    name = "custom_evaluator_go_proto",
    importpath = "github.com/GoogleCloudPlatform/testgrid/pb/custom_evaluator",
    proto = ":custom_evaluator_proto",
    visibility = ["//visibility:public"],
    deps = ["//pb/test_status:go_default_library"],
)

go_library(
    name = "go_default_library",
    embed = [":custom_evaluator_go_proto"],
    importpath = "github.com/GoogleCloudPlatform/testgrid/pb/custom_evaluator",
    visibility = ["//visibility:public"],
)

filegroup(
    name = "package-srcs",
    srcs = glob(["**"]),
    tags = ["automanaged"],
    visibility = ["//visibility:private"],
)

filegroup(
    name = "all-srcs",
    srcs = [":package-srcs"],
    tags = ["automanaged"],
    visibility = ["//visibility:public"],
)
