2019-02-15 18:31:07 +00:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
|
|
|
srcs = ["bls.go"],
|
|
|
|
importpath = "github.com/prysmaticlabs/prysm/shared/bls",
|
|
|
|
visibility = ["//visibility:public"],
|
2019-02-19 15:09:50 +00:00
|
|
|
deps = [
|
|
|
|
"//shared/bytesutil:go_default_library",
|
2019-09-27 18:28:43 +00:00
|
|
|
"//shared/featureconfig:go_default_library",
|
2019-10-02 00:13:59 +00:00
|
|
|
"//shared/hashutil:go_default_library",
|
2019-09-25 18:51:14 +00:00
|
|
|
"@com_github_karlseguin_ccache//:go_default_library",
|
2019-11-18 06:48:22 +00:00
|
|
|
"@com_github_kilic_bls12-381//:go_default_library",
|
2019-08-02 02:27:38 +00:00
|
|
|
"@com_github_pkg_errors//:go_default_library",
|
2019-02-19 15:09:50 +00:00
|
|
|
],
|
2019-02-15 18:31:07 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_default_test",
|
2019-06-30 16:00:22 +00:00
|
|
|
size = "small",
|
2019-02-15 18:31:07 +00:00
|
|
|
srcs = ["bls_test.go"],
|
|
|
|
embed = [":go_default_library"],
|
2019-02-19 15:09:50 +00:00
|
|
|
deps = ["//shared/bytesutil:go_default_library"],
|
2019-02-15 18:31:07 +00:00
|
|
|
)
|
2019-08-06 00:11:38 +00:00
|
|
|
|
|
|
|
# gazelle:exclude bls_benchmark_test.go
|
|
|
|
go_test(
|
|
|
|
name = "go_benchmark_test",
|
|
|
|
size = "small",
|
|
|
|
srcs = ["bls_benchmark_test.go"],
|
|
|
|
args = [
|
|
|
|
"-test.bench=.",
|
|
|
|
"-test.benchmem",
|
|
|
|
"-test.v",
|
|
|
|
],
|
|
|
|
local = True,
|
|
|
|
tags = [
|
|
|
|
"benchmark",
|
|
|
|
"manual",
|
|
|
|
"no-cache",
|
|
|
|
],
|
|
|
|
deps = [
|
|
|
|
"//shared/bls:go_default_library",
|
|
|
|
],
|
|
|
|
)
|