2022-11-07 10:29:27 +00:00
|
|
|
load("@prysm//tools/go:def.bzl", "go_library")
|
|
|
|
load("@bazel_skylib//rules:common_settings.bzl", "bool_flag")
|
|
|
|
|
|
|
|
bool_flag(
|
|
|
|
name = "use_beacon_api",
|
|
|
|
build_setting_default = False,
|
|
|
|
)
|
|
|
|
|
|
|
|
config_setting(
|
|
|
|
name = "beacon_api_usage",
|
|
|
|
flag_values = {
|
|
|
|
":use_beacon_api": "true",
|
|
|
|
},
|
|
|
|
)
|
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
|
|
|
srcs = select({
|
|
|
|
":beacon_api_usage": ["beacon_api_validator_client_factory.go"],
|
|
|
|
"//conditions:default": ["grpc_validator_client_factory.go"],
|
|
|
|
}),
|
|
|
|
importpath = "github.com/prysmaticlabs/prysm/v3/validator/client/validator-client-factory",
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
2022-11-24 11:09:07 +00:00
|
|
|
"//validator/client/grpc-api:go_default_library",
|
2022-11-07 10:29:27 +00:00
|
|
|
"//validator/client/iface:go_default_library",
|
2022-11-11 17:33:48 +00:00
|
|
|
"//validator/helpers:go_default_library",
|
2022-11-07 10:29:27 +00:00
|
|
|
] + select({
|
|
|
|
":beacon_api_usage": ["//validator/client/beacon-api:go_default_library"],
|
2022-11-24 11:09:07 +00:00
|
|
|
"//conditions:default": [],
|
2022-11-07 10:29:27 +00:00
|
|
|
}),
|
|
|
|
)
|