You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
76 lines
1.9 KiB
76 lines
1.9 KiB
package(default_visibility = ["//visibility:public"]) |
|
|
|
load( |
|
"@io_bazel_rules_go//go:def.bzl", |
|
"go_test", |
|
"go_library", |
|
) |
|
|
|
go_test( |
|
name = "go_default_test", |
|
srcs = [ |
|
"ecode_test.go", |
|
"status_test.go", |
|
], |
|
embed = [":go_default_library"], |
|
rundir = ".", |
|
tags = ["manual"], |
|
deps = [ |
|
"//library/ecode/internal/types:go_default_library", |
|
"//vendor/github.com/smartystreets/goconvey/convey:go_default_library", |
|
"//vendor/github.com/stretchr/testify/assert:go_default_library", |
|
"@io_bazel_rules_go//proto/wkt:timestamp_go_proto", |
|
], |
|
) |
|
|
|
go_library( |
|
name = "go_default_library", |
|
srcs = [ |
|
"bbq_ecode.go", |
|
"common_ecode.go", |
|
"ecode.go", |
|
"ep_ecode.go", |
|
"live_ecode.go", |
|
"main_ecode.go", |
|
"open_ecode.go", |
|
"status.go", |
|
], |
|
importpath = "go-common/library/ecode", |
|
tags = ["automanaged"], |
|
visibility = ["//visibility:public"], |
|
deps = [ |
|
"//library/ecode/internal/types:go_default_library", |
|
"//vendor/github.com/pkg/errors:go_default_library", |
|
"@com_github_golang_protobuf//proto:go_default_library", |
|
"@com_github_golang_protobuf//ptypes:go_default_library_gen", |
|
], |
|
) |
|
|
|
go_test( |
|
name = "go_default_xtest", |
|
srcs = ["example_test.go"], |
|
tags = ["automanaged"], |
|
deps = [ |
|
"//library/ecode:go_default_library", |
|
"//vendor/github.com/pkg/errors:go_default_library", |
|
], |
|
) |
|
|
|
filegroup( |
|
name = "package-srcs", |
|
srcs = glob(["**"]), |
|
tags = ["automanaged"], |
|
visibility = ["//visibility:private"], |
|
) |
|
|
|
filegroup( |
|
name = "all-srcs", |
|
srcs = [ |
|
":package-srcs", |
|
"//library/ecode/internal/types:all-srcs", |
|
"//library/ecode/pb:all-srcs", |
|
"//library/ecode/tip:all-srcs", |
|
], |
|
tags = ["automanaged"], |
|
visibility = ["//visibility:public"], |
|
)
|
|
|