go-common/app/tool/warden/generator/BUILD

49 lines
1.0 KiB
Python
Raw Normal View History

2019-04-22 10:49:16 +00:00
package(default_visibility = ["//visibility:public"])
load(
"@io_bazel_rules_go//go:def.bzl",
"go_test",
"go_library",
)
go_test(
name = "go_default_test",
srcs = ["genservice_test.go"],
embed = [":go_default_library"],
rundir = ".",
tags = ["automanaged"],
)
go_library(
name = "go_default_library",
srcs = [
"gencscode.go",
"genservice.go",
"protoc.go",
],
importpath = "go-common/app/tool/warden/generator",
tags = ["automanaged"],
visibility = ["//visibility:public"],
deps = [
"//app/tool/warden/generator/templates:go_default_library",
"//app/tool/warden/types:go_default_library",
],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [
":package-srcs",
"//app/tool/warden/generator/templates:all-srcs",
],
tags = ["automanaged"],
visibility = ["//visibility:public"],
)