74 lines
2.1 KiB
Python
74 lines
2.1 KiB
Python
|
package(default_visibility = ["//visibility:public"])
|
||
|
|
||
|
load(
|
||
|
"@io_bazel_rules_go//go:def.bzl",
|
||
|
"go_binary",
|
||
|
"go_test",
|
||
|
"go_library",
|
||
|
)
|
||
|
|
||
|
go_binary(
|
||
|
name = "protoc-gen-bm",
|
||
|
embed = [":go_default_library"],
|
||
|
tags = ["automanaged"],
|
||
|
)
|
||
|
|
||
|
go_test(
|
||
|
name = "go_default_test",
|
||
|
srcs = [
|
||
|
"command_line_test.go",
|
||
|
"generator_test.go",
|
||
|
],
|
||
|
embed = [":go_default_library"],
|
||
|
rundir = ".",
|
||
|
tags = ["automanaged"],
|
||
|
deps = [
|
||
|
"@com_github_golang_protobuf//proto:go_default_library",
|
||
|
"@com_github_golang_protobuf//protoc-gen-go/plugin:go_default_library",
|
||
|
],
|
||
|
)
|
||
|
|
||
|
go_library(
|
||
|
name = "go_default_library",
|
||
|
srcs = [
|
||
|
"command_line.go",
|
||
|
"generator.go",
|
||
|
"go_naming.go",
|
||
|
"helper.go",
|
||
|
"main.go",
|
||
|
],
|
||
|
importpath = "go-common/app/tool/bmproto/protoc-gen-bm",
|
||
|
tags = ["automanaged"],
|
||
|
visibility = ["//visibility:public"],
|
||
|
deps = [
|
||
|
"//app/tool/bmproto/protoc-gen-bm/extensions/gogoproto:go_default_library",
|
||
|
"//app/tool/liverpc/protoc-gen-liverpc/gen:go_default_library",
|
||
|
"//app/tool/liverpc/protoc-gen-liverpc/gen/stringutils:go_default_library",
|
||
|
"//app/tool/liverpc/protoc-gen-liverpc/gen/typemap:go_default_library",
|
||
|
"//vendor/github.com/pkg/errors:go_default_library",
|
||
|
"//vendor/github.com/siddontang/go/ioutil2:go_default_library",
|
||
|
"//vendor/google.golang.org/genproto/googleapis/api/annotations:go_default_library",
|
||
|
"@com_github_golang_protobuf//proto:go_default_library",
|
||
|
"@com_github_golang_protobuf//protoc-gen-go/descriptor:go_default_library",
|
||
|
"@com_github_golang_protobuf//protoc-gen-go/plugin:go_default_library",
|
||
|
],
|
||
|
)
|
||
|
|
||
|
filegroup(
|
||
|
name = "package-srcs",
|
||
|
srcs = glob(["**"]),
|
||
|
tags = ["automanaged"],
|
||
|
visibility = ["//visibility:private"],
|
||
|
)
|
||
|
|
||
|
filegroup(
|
||
|
name = "all-srcs",
|
||
|
srcs = [
|
||
|
":package-srcs",
|
||
|
"//app/tool/bmproto/protoc-gen-bm/example:all-srcs",
|
||
|
"//app/tool/bmproto/protoc-gen-bm/extensions/gogoproto:all-srcs",
|
||
|
],
|
||
|
tags = ["automanaged"],
|
||
|
visibility = ["//visibility:public"],
|
||
|
)
|