-
Notifications
You must be signed in to change notification settings - Fork 155
Expand file tree
/
Copy pathBUILD.bazel
More file actions
63 lines (59 loc) · 1.41 KB
/
BUILD.bazel
File metadata and controls
63 lines (59 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "builtin",
srcs = [
"cpp_plugin.go",
"csharp_plugin.go",
"doc.go",
"grpc_grpc_cpp.go",
"java_plugin.go",
"js_closure_plugin.go",
"js_common_plugin.go",
"objc_plugin.go",
"php_plugin.go",
"pyi_plugin.go",
"python_plugin.go",
"ruby_plugin.go",
],
importpath = "github.com/stackb/rules_proto/pkg/plugin/builtin",
visibility = ["//visibility:public"],
deps = [
"//pkg/protoc",
"@bazel_gazelle//label",
],
)
go_test(
name = "builtin_test",
srcs = [
"cpp_plugin_test.go",
"csharp_plugin_test.go",
"java_plugin_test.go",
"js_closure_plugin_test.go",
"js_common_plugin_test.go",
"objc_plugin_test.go",
"php_plugin_test.go",
"pyi_plugin_test.go",
"python_plugin_test.go",
"ruby_plugin_test.go",
],
data = [":protoc"],
deps = [
":builtin",
"//pkg/plugintest",
],
)
genrule(
name = "protoc_tool",
outs = ["protoc"],
cmd = "cp $(location @com_google_protobuf//:protoc) $@",
executable = True,
tools = ["@com_google_protobuf//:protoc"],
)
filegroup(
name = "all_files",
testonly = True,
srcs = [
"BUILD.bazel",
] + glob(["*.go"]),
visibility = ["//pkg:__pkg__"],
)