forked from bufbuild/protoc-gen-validate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
85 lines (78 loc) · 2.11 KB
/
BUILD
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
load("@rules_java//java:defs.bzl", "java_proto_library")
load("@rules_proto//proto:defs.bzl", "proto_library")
load(
"//bazel:pgv_proto_library.bzl",
"pgv_cc_proto_library",
"pgv_go_proto_library",
"pgv_java_proto_library",
"pgv_python_proto_library",
)
# gazelle:go_generate_proto false
proto_library(
name = "cases_proto",
srcs = [
"bool.proto",
"bytes.proto",
"enums.proto",
"filename-with-dash.proto",
"kitchen_sink.proto",
"maps.proto",
"messages.proto",
"numbers.proto",
"oneofs.proto",
"repeated.proto",
"strings.proto",
"wkt_any.proto",
"wkt_duration.proto",
"wkt_timestamp.proto",
"wkt_wrappers.proto",
],
visibility = ["//visibility:public"],
deps = [
"//tests/harness/cases/other_package:embed_proto",
"//validate:validate_proto",
"@com_google_protobuf//:any_proto",
"@com_google_protobuf//:duration_proto",
"@com_google_protobuf//:timestamp_proto",
"@com_google_protobuf//:wrappers_proto",
],
)
pgv_go_proto_library(
name = "go",
importpath = "github.com/envoyproxy/protoc-gen-validate/tests/harness/cases/go",
proto = ":cases_proto",
deps = [
"//tests/harness/cases/other_package:go",
"@com_github_golang_protobuf//ptypes:go_default_library_gen",
],
)
pgv_cc_proto_library(
name = "cc",
cc_deps = [
"//tests/harness/cases/other_package:cc",
],
visibility = ["//tests:__subpackages__"],
deps = [":cases_proto"],
)
java_proto_library(
name = "cases_java_proto",
visibility = ["//visibility:public"],
deps = [":cases_proto"],
)
pgv_java_proto_library(
name = "java",
java_deps = [
":cases_java_proto",
"//tests/harness/cases/other_package:java",
],
visibility = ["//visibility:public"],
deps = [":cases_proto"],
)
pgv_python_proto_library(
name = "python",
python_deps = [
"//tests/harness/cases/other_package:python",
],
visibility = ["//visibility:public"],
deps = [":cases_proto"],
)