mirror of
https://github.com/kubernetes/sample-controller.git
synced 2025-01-21 17:32:50 +08:00
52 lines
1.3 KiB
Python
52 lines
1.3 KiB
Python
package(default_visibility = ["//visibility:public"])
|
|
|
|
load(
|
|
"@io_bazel_rules_go//go:def.bzl",
|
|
"go_library",
|
|
"go_test",
|
|
)
|
|
|
|
go_library(
|
|
name = "go_default_library",
|
|
srcs = [
|
|
"cmd.go",
|
|
"generator.go",
|
|
"import_tracker.go",
|
|
"namer.go",
|
|
"package.go",
|
|
"parser.go",
|
|
"tags.go",
|
|
],
|
|
importpath = "k8s.io/code-generator/cmd/go-to-protobuf/protobuf",
|
|
deps = [
|
|
"//vendor/github.com/golang/glog:go_default_library",
|
|
"//vendor/github.com/spf13/pflag:go_default_library",
|
|
"//vendor/k8s.io/code-generator/pkg/util:go_default_library",
|
|
"//vendor/k8s.io/code-generator/third_party/forked/golang/reflect:go_default_library",
|
|
"//vendor/k8s.io/gengo/args:go_default_library",
|
|
"//vendor/k8s.io/gengo/generator:go_default_library",
|
|
"//vendor/k8s.io/gengo/namer:go_default_library",
|
|
"//vendor/k8s.io/gengo/parser:go_default_library",
|
|
"//vendor/k8s.io/gengo/types:go_default_library",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "go_default_test",
|
|
srcs = ["namer_test.go"],
|
|
embed = [":go_default_library"],
|
|
)
|
|
|
|
filegroup(
|
|
name = "package-srcs",
|
|
srcs = glob(["**"]),
|
|
tags = ["automanaged"],
|
|
visibility = ["//visibility:private"],
|
|
)
|
|
|
|
filegroup(
|
|
name = "all-srcs",
|
|
srcs = [":package-srcs"],
|
|
tags = ["automanaged"],
|
|
)
|