mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-26 05:17:22 +00:00
7d47be84ed
* WIP on build time configuration changes * add ssz_minimal tests * split up spec tests into mainnet and minimal, skip any minimal test that are failing without --define ssz=minimal * lint * add commentary to ssz_proto_library
48 lines
1.3 KiB
Python
48 lines
1.3 KiB
Python
# gazelle:ignore
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
|
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
|
|
load("//proto:ssz_proto_library.bzl", "ssz_proto_files")
|
|
|
|
go_proto_library(
|
|
name = "v1_go_proto",
|
|
compiler = "//:proto_compiler",
|
|
importpath = "github.com/prysmaticlabs/prysm/proto/beacon/p2p/v1",
|
|
proto = ":v1_proto",
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//proto/eth/v1alpha1:go_default_library",
|
|
"@com_github_prysmaticlabs_go_bitfield//:go_default_library",
|
|
],
|
|
)
|
|
|
|
go_library(
|
|
name = "go_default_library",
|
|
embed = [":v1_go_proto"],
|
|
importpath = "github.com/prysmaticlabs/prysm/proto/beacon/p2p/v1",
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
ssz_proto_files(
|
|
name = "ssz_proto_files",
|
|
srcs = [
|
|
"messages.proto",
|
|
"types.proto",
|
|
],
|
|
config = select({
|
|
"//conditions:default": "mainnet",
|
|
"//proto:ssz_mainnet": "mainnet",
|
|
"//proto:ssz_minimal": "minimal",
|
|
}),
|
|
)
|
|
|
|
proto_library(
|
|
name = "v1_proto",
|
|
srcs = [":ssz_proto_files"],
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//proto/eth/v1alpha1:v1alpha1_proto",
|
|
"@com_google_protobuf//:timestamp_proto",
|
|
"@gogo_special_proto//github.com/gogo/protobuf/gogoproto",
|
|
],
|
|
)
|